|
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) |
|
|
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 |
|
|
So what would the script be like?
Would I put it and do
SurfaceGuiName.Parent = --Something in the player gui? |
|
|
How do I do it? Does anyone know? |
|
|
bibo5oJoin Date: 2009-01-17 Post Count: 414 |
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. |
|
|
How do I set an adornee value? |
|
TynexxJoin Date: 2012-07-11 Post Count: 1559 |
gui.Adornee = game.Workspace.Part |
|
|
Ahh ok thank you very much guys :) |
|
AccedoJoin Date: 2011-03-11 Post Count: 1793 |
I haz something to say, I mean it doesn't matter but dun use fake functions leik onClick ;3 |
|
|
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 |
|
AccedoJoin Date: 2011-03-11 Post Count: 1793 |
Uhh what are you trying to make it do >.> |
|
|
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 |
|
AccedoJoin Date: 2011-03-11 Post Count: 1793 |
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. |
|
|
But I want the surface Gui to open it? :o
Anyone know how? |
|
|
|
|
|
|
Oh wow, thanks so much! True isn't supposed to be capped. Thanks a lot! :D |
|