So I want it to make it where if a player clicks on this gui button I have, I want it to teleport the player who clicked it, so how can I edit this?
for i, v in pairs(game.Players:GetChildren()) do
endv.Character.Torso.CFrame = CFrame.new(Vector3.new(50, 50, 50))
game.Players.PlayerAdded:connect(function(plr)
repeat wait() until plr.Character
plr.Character.Torso.Anchored=true
end)
I was thinking something like
q = game.Players:GetChildren()) do
if q then
endv.Character.Torso.CFrame = CFrame.new(Vector3.new(50, 50, 50))
wait()
game.Players.PlayerAdded:connect(function(plr)
repeat wait() until plr.Character
plr.Character.Torso.Anchored=true
end)
I also want it to anchor them as soon as they teleport.. help?

1 comment
You can update your question. It'd help