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 » Game Design
Home Search
 

Re: Script "while" loop repeats before it has finished.

Previous Thread :: Next Thread 
ImagineerJack is not online. ImagineerJack
Joined: 11 Jul 2014
Total Posts: 61
30 Nov 2015 09:59 AM
Basically, I am making a game. But when I put this into a script in ServerScriptService, it repeats when it gets half way down.


Code:
local Map1 = game.ServerStorage.Maps.Map1
local Map2 = game.ServerStorage.Maps.Map2

while true do
local msg = Instance.new("Message")
msg.Parent = game.Workspace
msg.Text = ("Loading Map...")
print("Loading Map...")
wait(3)
msg:destroy()
wait(.5)
Map1:clone().Parent = game.Workspace.MapHolder
wait(2) -- It goes back to the start when it gets to here.
local msg = Instance.new("Message")
msg.Text = ("Game Over!")
Map1:destroy()
end

Please help me. I am really confused. The output says there is nothing wrong with it :(
Report Abuse
ImagineerJack is not online. ImagineerJack
Joined: 11 Jul 2014
Total Posts: 61
30 Nov 2015 10:02 AM
:(
Report Abuse
PieceOfPurple is not online. PieceOfPurple
Joined: 07 Nov 2011
Total Posts: 806
30 Nov 2015 10:37 AM
Try Scripters
Report Abuse
ImagineerJack is not online. ImagineerJack
Joined: 11 Jul 2014
Total Posts: 61
30 Nov 2015 11:07 AM
Solved.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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