Why isn't my for loop teleport script working? For loop teleport not working..
So I wrote a Server Script
to teleport ALL
players to a position when the intermission is up.
I thought I could use a for loop
to teleport them all but it doesn't seem to be working.
I'll explain with comments in the code block below..
01 | local players = game.Players:GetChildren() |
02 | local roundRunning = false |
03 | local Intermission = true |
05 | if Intermission = = true then |
06 | local intermissionHint = Instance.new( "Hint" , workspace) |
08 | intermissionHint.Text = "Intermission: " ..i |
12 | intermissionHint:Destroy() |
19 | if roundRunning = = true then |
20 | for i,v in pairs (players) do |
22 | v.Character.HumanoidRootPart.CFrame = CFrame.new( 23.09 , 11.473 , 8.84 ) |
Anyone got any idea why this isn't working??