I am trying to get it to teleport a player, lock their torso, and lock their camera in first person all at the same time once they click a gui button. I can't find why it's not working, but it's not. Help?
function Click()
game.Players.LocalPlayer.Character.Torso.CFrame = CFrame.new(-0,0,0)
game.Players.LocalPlayer.Character.Torso.Anchored=true
end
wait()
game.Players.LocalPlayer.CameraMode="LockFirstPerson"
game.StarterGui.FNMain.Frame.Visible = false
script.Parent.MouseButton1Down:connect(Click)

4 comments
You're still using the PlayerAdded event . Use LocalPlayer instead not in addition . .
Still nothing. I tried game.Players.LocalPlayer:connect
No ... There is absolutely no need to do any connections.
function Click() game.Players.LocalPlayer.Character.Torso.CFrame = CFrame.new(-0,0,0) game.Players.LocalPlayer.Character.Torso.Anchored=true end wait() game.Players.LocalPlayer.CameraMode="LockFirstPerson" game.StarterGui.FNMain.Frame.Visible = false script.Parent.MouseButton1Down:connect(Click) -- I need the very last connection, it's a GUI button. Still won't work though.