local Button = script.Parent
Frame = script.Parent.Parent.gggg
function onClick()
game.Players.LocalPlayer.Character.Torso.CFrame = CFrame.new(-0,1,43)
wait()
game.Players.LocalPlayer.Character.Torso.Anchored=true
wait()
Frame.Visible = false
end
Button.MouseButton1Click:connect(onClick)
COMMUNITY QUESTION
Why wont the GUI button script won't work?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

6 comments
Anything in the output? Everything seems fine. Perhaps you're using a server script instead of a local script.
No, there's nothing in the output.
Yeah it's a server script..is that the problem..?!
Yes, because you can not use 'LocalPlayer' within a 'Server-Sided' script, 'LocalPlayer' is 'ClientSided' only.
........Thank you. I've been trying to solve this problem for a few days now.
Actually no...it's still not working. I've put it into a local script