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

Function not functioning properly?

Asked by 9 years ago

LOL SEE WHAT I DID THERE ^^^^^^^^^

Anyways, I'm having a problem. My function isn't functioning properly.. LOL^^

Basically, the purpose was to teleport a player, lock their torso, and force FPS view when the player clicks the gui button.

function Click()
script.Parent.Parent.Parent.Parent.Character.Torso.CFrame = CFrame.new(-0,0,0)
game.Players.PlayerAdded:connect(function(plr)
repeat wait() until plr.Character
plr.Character.Torso.Anchored=true
end)
end
wait()
script.Parent.Parent.CameraMode="LockFirstPerson"
game.StarterGui.FNMain.Frame.Visible = false
script.Parent.MouseButton1Down:connect(Click)




0
Help :( SprocketSoldier 0 — 9y

Answer this question