This script is supposed to get 1 random player out of the players service and teleport him when he/ she is chosen.
players = game.Players:GetChildren()
while true do wait() playerchose = math.random(1,#players) playerchosen = players[playerchose] playerchosen.Character.Torso.CFrame = CFrame.new(Vector3.new(10,10,10)) wait(2) end end

1 comment
Put your code in a code block. Provide details as to WHAT the error is. If no output is given by studio, tell us.