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: Repeat until

Previous Thread :: Next Thread 
seliso is not online. seliso
Joined: 30 Jan 2011
Total Posts: 6443
12 Jul 2014 11:07 PM
sp = script.Parent

local music = sp.music
local frame = sp.one
local dev = sp.dev
local firefly = sp.firefly
local studio = sp.studio


repeat
dev.TextTransparency=dev.TextTransparency-0.1
firefly.TextTransparency=firefly.TextTransparency-0.1
studio.TextTransparency=studio.TextTransparency-0.1
wait(.2)
until studio.TextTransparency==0

wait(4)
print("hello")

repeat
print("2nd stage onward")
dev.TextTransparency=dev.TextTransparency+0.1
firefly.TextTransparency=firefly.TextTransparency+0.1
studio.TextTransparency=studio.TextTransparency+0.1
wait(.2)
until studio.TextTransparency==1

The problem with is is once it finishes the first repeat until loop it never prints hello or doesn't go on to the 2nd stage.

There are no errors in the output I don't understand what is going on.
Report Abuse
seliso is not online. seliso
Joined: 30 Jan 2011
Total Posts: 6443
12 Jul 2014 11:15 PM
bump
Report Abuse
Jetta765214 is not online. Jetta765214
Joined: 22 Oct 2008
Total Posts: 1855
12 Jul 2014 11:22 PM
Sometimes lua makes weird rounding errors.

try:
until studio.TextTransparency<=0

Alt. of Jetta765214
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