generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Need help with serious script error

Previous Thread :: Next Thread 
FinTheBuild is not online. FinTheBuild
Joined: 18 Aug 2015
Total Posts: 513
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 is not online. Emperoar
Joined: 06 Aug 2010
Total Posts: 382
03 Sep 2015 12:05 PM
tl;dr


~Emperoar~
Report Abuse
FinTheBuild is not online. FinTheBuild
Joined: 18 Aug 2015
Total Posts: 513
03 Sep 2015 12:16 PM
Really?
Report Abuse
johnjohncar is not online. johnjohncar
Joined: 22 Aug 2012
Total Posts: 3557
03 Sep 2015 12:18 PM
Post the error form the output.



I am special because I have a siggy (👌 ͡° ͜ʖ ͡°👏)
Report Abuse
FinTheBuild is not online. FinTheBuild
Joined: 18 Aug 2015
Total Posts: 513
03 Sep 2015 12:23 PM
Theres no errors, it just won't teleport everyone and countdown fails.
Report Abuse
FinTheBuild is not online. FinTheBuild
Joined: 18 Aug 2015
Total Posts: 513
03 Sep 2015 12:38 PM
bump
Report Abuse
FinTheBuild is not online. FinTheBuild
Joined: 18 Aug 2015
Total Posts: 513
03 Sep 2015 12:52 PM
bump
Report Abuse
Vortilis is not online. 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
TheMaster12379 is not online. TheMaster12379
Joined: 04 Sep 2011
Total Posts: 45
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
TheMaster12379 is not online. TheMaster12379
Joined: 04 Sep 2011
Total Posts: 45
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
FinTheBuild is not online. FinTheBuild
Joined: 18 Aug 2015
Total Posts: 513
03 Sep 2015 01:23 PM
It's a normal script and it's on Workspace.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image