of     1   

MrStuffedTiger
#140969370Sunday, July 20, 2014 6:48 PM GMT

I wanna connect my TextButton on my Surface Gui to make a Screen Gui's Frame turn Visible. I don't know how to connect both of them but here is my script function onClick() game.Players.LocalPlayer.PlayerGui.SwordsGui.Frame.Visible = True wait(1) end script.Parent.MouseButton1Down:connect(onClick)
brinkokevin
#140969548Sunday, July 20, 2014 6:50 PM GMT

u have to make a local surface gui xd put surfacegui inside of playergui and set surfaceguis adornee to the part u want gui to be and then u can simply get player
MrStuffedTiger
#140969760Sunday, July 20, 2014 6:53 PM GMT

So what would the script be like? Would I put it and do SurfaceGuiName.Parent = --Something in the player gui?
MrStuffedTiger
#140974241Sunday, July 20, 2014 7:41 PM GMT

How do I do it? Does anyone know?
MrStuffedTiger
#140977627Sunday, July 20, 2014 8:19 PM GMT

Anyone?
bibo5o
#140977822Sunday, July 20, 2014 8:21 PM GMT

What brinkokevin was trying to say was, you need to put the surface gui in the startergui, then script the .Adornee value to the part it's supposed to display on. Then you can access the player.
MrStuffedTiger
#140981586Sunday, July 20, 2014 9:04 PM GMT

How do I set an adornee value?
Tynexx
#140983053Sunday, July 20, 2014 9:20 PM GMT

gui.Adornee = game.Workspace.Part
MrStuffedTiger
#140983635Sunday, July 20, 2014 9:26 PM GMT

Ahh ok thank you very much guys :)
Accedo
#140983863Sunday, July 20, 2014 9:28 PM GMT

I haz something to say, I mean it doesn't matter but dun use fake functions leik onClick ;3
MrStuffedTiger
#140984147Sunday, July 20, 2014 9:31 PM GMT

Ok I adornee'd my board and now the button is working but this command isnt working.. Anyone know the issue or an alternative for this? game.Players.LocalPlayer.PlayerGui.SwordsGui.Frame.Visible = True
Accedo
#140984209Sunday, July 20, 2014 9:32 PM GMT

Uhh what are you trying to make it do >.>
MrStuffedTiger
#140984405Sunday, July 20, 2014 9:34 PM GMT

I'm trying to make it so a surface gui makes one the screen guis frame in the starter gui to be visible or to open the shop for swords
Accedo
#140984678Sunday, July 20, 2014 9:36 PM GMT

You don't need a surface GUI for that tho >.> You just need a click button with a script that opens up the gui, and you can make the GUI timed or just make it with a close button. What evs.
MrStuffedTiger
#140985308Sunday, July 20, 2014 9:42 PM GMT

But I want the surface Gui to open it? :o Anyone know how?
MrStuffedTiger
#140986291Sunday, July 20, 2014 9:52 PM GMT

Anyone??
MrStuffedTiger
#140986551Sunday, July 20, 2014 9:55 PM GMT

bump
Kyuro
#140986937Sunday, July 20, 2014 9:59 PM GMT

True shouldn't be capped
Kyuro
#140987029Sunday, July 20, 2014 10:00 PM GMT

And if that's not the case, the script you're using needs to be in a localGui. If THAT's not the case, check your Workspace settings; One option prevents LocalScripts.
MrStuffedTiger
#140989488Sunday, July 20, 2014 10:26 PM GMT

Oh wow, thanks so much! True isn't supposed to be capped. Thanks a lot! :D

    of     1