Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why is this only teleporting 1 player? It should teleport all of them

Asked by 8 years ago

music = game.Workspace.SurvivalMusic gui= game.StarterGui.ChatGui frame = gui.Frame text = frame.TextLabel while true do wait(1) ----- for i,v in pairs(game.Players:GetChildren()) do if v and v.Character then v.TeamColor = BrickColor.new("Bright blue") v.Character.Torso.CFrame = CFrame.new(-6.166, 3, 15.674) wait() ------ for i,v in pairs(game.Players:GetChildren()) do for i = 1,30 do wait() v.PlayerGui.ChatGui.Frame.Position = v.PlayerGui.ChatGui.Frame.Position + UDim2.new(0,0,0,5) end music:play() music.Volume = 1 for i,v in pairs(game.Players:GetChildren()) do v.PlayerGui.ChatGui.Frame.TextLabel.Text = "Well hello! Welcome to the game The End Of Roblox Developed By JesseWeiiens" wait(2) v.PlayerGui.ChatGui.Frame.TextLabel.Text = "Here are some instructions on how to play the game!" wait(2) v.PlayerGui.ChatGui.Frame.TextLabel.Text = "You have already been spawned into the city" wait(2) v.PlayerGui.ChatGui.Frame.TextLabel.Text = "The city is ending by various disasters!" wait(2) v.PlayerGui.ChatGui.Frame.TextLabel.Text = "We need you to survive to report the evidence!" wait(2) v.PlayerGui.ChatGui.Frame.TextLabel.Text = "If you die you will be teleported back to the lobby to watch the last survivors!" wait(2) v.PlayerGui.ChatGui.Frame.TextLabel.Text = "If you win we have a cash prize for you and your fellow survivers!" wait(2) v.PlayerGui.ChatGui.Frame.TextLabel.Text = "Well I need to go! I will talk to you soon when there is a disaster! BYE!" wait(2) for i,v in pairs(game.Players:GetChildren()) do for i = 1,30 do wait() v.PlayerGui.ChatGui.Frame.Position = v.PlayerGui.ChatGui.Frame.Position + UDim2.new(0,0,0,-5) end wait(40) end end end

end
end
end

Answer this question