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)

6 comments

0

Anything in the output? Everything seems fine. Perhaps you're using a server script instead of a local script.

0

No, there's nothing in the output.

0

Yeah it's a server script..is that the problem..?!

0

Yes, because you can not use 'LocalPlayer' within a 'Server-Sided' script, 'LocalPlayer' is 'ClientSided' only.

0

........Thank you. I've been trying to solve this problem for a few days now.

0

Actually no...it's still not working. I've put it into a local script