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 » Scripting Helpers
Home Search
 

Re: Help With Repeat until

Previous Thread :: Next Thread 
reflicted is not online. reflicted
Joined: 07 Nov 2012
Total Posts: 265
19 Dec 2012 05:44 PM
print("Reflicteds Map Changing Script Loaded")

while true do
wait(3)
print("Starting")
local lobbymess = Instance.new("Message", game.Workspace)
local timelobby = 10
repeat until timelobby == 0
print("Debugging purpose...")
wait(1)
lobbymess.Text = "|F-S| Game Starting In "..timelobby - 1
end

No errors, but it wont do the reapeat I tried repeat wait() until, but it still did not work. Thanks!


Report Abuse
Raphael7 is not online. Raphael7
Joined: 03 Dec 2008
Total Posts: 2479
19 Dec 2012 05:46 PM
waitTime = .5
repeat wait(waitTime) until timelobby == 0
Report Abuse
Raphael7 is not online. Raphael7
Joined: 03 Dec 2008
Total Posts: 2479
19 Dec 2012 05:46 PM
Oops did not read the last part, hold on.
Report Abuse
SamuelKingx is not online. SamuelKingx
Joined: 27 Jan 2012
Total Posts: 3472
19 Dec 2012 05:47 PM
repeat wait() until timelobby == 0

~SamuelKingx
Report Abuse
SamuelKingx is not online. SamuelKingx
Joined: 27 Jan 2012
Total Posts: 3472
19 Dec 2012 05:48 PM
Oh.. me either. .-.

~SamuelKingx
Report Abuse
reflicted is not online. reflicted
Joined: 07 Nov 2012
Total Posts: 265
19 Dec 2012 05:48 PM
Did not work. Still no errors though. Instead of repeat (which is more efficent) I might just write it out. Anyways, any other help?
Report Abuse
Raphael7 is not online. Raphael7
Joined: 03 Dec 2008
Total Posts: 2479
19 Dec 2012 05:49 PM
It will just repeat but the thing is, nothing changes the value; so it's just stuck their repeating itself until the value changes.
Report Abuse
reflicted is not online. reflicted
Joined: 07 Nov 2012
Total Posts: 265
19 Dec 2012 05:49 PM
Lesson learn, I write stuff for reason -.- XD
Report Abuse
reflicted is not online. reflicted
Joined: 07 Nov 2012
Total Posts: 265
19 Dec 2012 05:50 PM
@Rapheal How would I fix it though, should I add a Value and change that instead of using it in the script?
Report Abuse
Raphael7 is not online. Raphael7
Joined: 03 Dec 2008
Total Posts: 2479
19 Dec 2012 05:53 PM
-- Put an Int value in workspace

lobbyTime = game.Workspace.LobbyTime
lobbyTime.Value = 10

while true do
wait(3)
print("Starting")
local lobbymess = Instance.new("Message", game.Workspace)
repeat until timelobby == 0
print("Debugging purpose...")
wait(1)
lobbymess.Text = "|F-S| Game Starting In "..timelobby - 1
end

wait(3)

for i = 10, 0, -1 do wait(1)
lobbyTime.Value = i
end
Report Abuse
SamuelKingx is not online. SamuelKingx
Joined: 27 Jan 2012
Total Posts: 3472
19 Dec 2012 06:42 PM
raphael,
wouldn't you have to re-name timelobby to lobbyTime?
Report Abuse
Raphael7 is not online. Raphael7
Joined: 03 Dec 2008
Total Posts: 2479
20 Dec 2012 06:59 PM
Ohyup, did not notice that.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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