|
| 03 Sep 2015 12:00 PM |
This script is very fine when theres only one person or in studio mode, but when theres 2 player or more the script would no longer do the countdown and only teleports one person.
while true do wait (0) Hint = Instance.new("Hint",game.Workspace) Hint.Text = "The next round is starting soon" script.MusicLobby:Play() wait (20) Hint.Text = "Picking map..." Map = game.Lighting.map1:Clone() Map.mapbrick.Anchored = true Map.Parent = game.Workspace wait (3) Hint.Text = "Picking alien..." wait (3) Hint.Text = "Done!" wait (1) -- teleport target = CFrame.new(9, 2.7, -12.2) for i, player in ipairs(game.Players:GetChildren()) do if player.Character and player.Character:FindFirstChild("Torso") then player.Character.Torso.CFrame = target + Vector3.new(0, i * 5, 0) Hint.Text = "The alien is UFO! Try and survive!" wait (3) Hint.Text = "3" wait (1) Hint.Text = "2" wait (1) Hint.Text = "1" wait (1) Hint.Text = "Begin!" script.Parent.Game.Value = 1 Map.mapbrick.Anchored = false UFO = game.Lighting.UFO:Clone() UFO.Parent = game.Workspace wait (1) Hint.Text = "The current round is running..." script.MusicLobby:Stop() script.MusicRound:Play() wait (120) Hint.Text = "The round has ended!" wait (2) target = CFrame.new(-8.8, 415.3, -35.6) for i, player in ipairs(game.Players:GetChildren()) do if player.Character and player.Character:FindFirstChild("Torso") then player.Character.Torso.CFrame = target + Vector3.new(0, i * 5, 0) Hint:Destroy() UFO:Destroy() Map:Destroy() end end end end end
|
|
|
| Report Abuse |
|
|
Emperoar
|
  |
| Joined: 06 Aug 2010 |
| Total Posts: 382 |
|
| |
|
| |
|
|
| 03 Sep 2015 12:18 PM |
Post the error form the output.
I am special because I have a siggy (👌 ͡° ͜ʖ ͡°👏) |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2015 12:23 PM |
| Theres no errors, it just won't teleport everyone and countdown fails. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
Vortilis
|
  |
| Joined: 06 Jul 2014 |
| Total Posts: 14163 |
|
|
| 03 Sep 2015 12:59 PM |
perhaps the script is executing again while its in session when another player joins?
when the output stays clear http://www.roblox.com/-item?id=145934228&?autoplay=true |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2015 01:13 PM |
| Try removing the while true do loop at the beginning and it should work fine. Worked perfectly when I removed it. |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2015 01:13 PM |
| I really don't know much about why it isn't working for you so I might not be right. |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2015 01:23 PM |
| It's a normal script and it's on Workspace. |
|
|
| Report Abuse |
|
|