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 7 years ago
Edited 7 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?

1script.Parent.MouseButton1Click:connect(function(Clicked)
2    script.Parent.Visible = false
3    script.Parent.Parent.Size.Visible = true
4    script.Parent.Parent.Jump.Visible = true
5    script.Parent.Parent.Back.Visible = true
6    script.Parent.Parent.Speed.Visible = true
7    script.Parent.Parent.Customsize.Visible = true
8 
9end)
0
Put it in a LocalScript. UgOsMiLy 1074 — 7y
0
Ok Thanks narrowricky -14 — 7y

Answer this question