I'm making a dancing game where everyone gets a turn to go on stage and dance, then people vote for the best. I've figured out how to teleport one random player to the stage, I was wondering how to put their name on the status bar, and people won't go on stage twice. Here's the script so far...
wait(2)
target = CFrame.new(99, 3.5, 62) for i, player in ipairs(game.Players:GetChildren()) do if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then player.Character.HumanoidRootPart.CFrame = target + Vector3.new(0, i * 5, 0) -- teleports all players to the audiance seats
end
end
status.Value = "First up is..." -- need to add player name here.
wait(2)
players = game.Players:GetChildren()
players[math.random(1, #players)]:MoveTo(Vector3.new(126.423, 3.2, 107.585)) -- does not work
please help I am a scripting beginner :)