This script is supposed to get 1 random player out of the players service and teleport him when he/ she is chosen. ERROR :bad argument #2 to 'random' (interval is empty)
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
If an answer helped you, make sure to accept it.