Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why won't my text button activate any code in play mode?

Asked by 6 years ago
Edited 6 years ago

I've tried many things to get this to work. it works in test mode in studio and opens the rest of the GUI but when I run a server, it does nothing. This is the code I've used in the button. What have I done wrong?

script.Parent.MouseButton1Click:connect(function(Clicked) 
    script.Parent.Visible = false
    script.Parent.Parent.Size.Visible = true
    script.Parent.Parent.Jump.Visible = true
    script.Parent.Parent.Back.Visible = true
    script.Parent.Parent.Speed.Visible = true
    script.Parent.Parent.Customsize.Visible = true

end)
0
Put it in a LocalScript. UgOsMiLy 1074 — 6y
0
Ok Thanks narrowricky -14 — 6y

Answer this question