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: Simple loop erroring ._.

Previous Thread :: Next Thread 
Tokimonu is not online. Tokimonu
Joined: 18 Sep 2009
Total Posts: 643
05 Jun 2015 09:46 PM
Well, I feel pretty stupid. I'll get to the point, the error says it expected an = and got a -.

I can't seem to figure out what's wrong, so hopefully someone out there will be able to give me a hand.

Code:
repeat wait(.1) script.Parent.status.TextTransparency - .1 until script.Parent.status.TextTransparency == 0
Report Abuse
Tokimonu is not online. Tokimonu
Joined: 18 Sep 2009
Total Posts: 643
05 Jun 2015 09:47 PM
oh mah god, i just realized
happy 500 posts, me
Report Abuse
Tokimonu is not online. Tokimonu
Joined: 18 Sep 2009
Total Posts: 643
05 Jun 2015 09:50 PM
bump, bumpity bump bump
Report Abuse
neverhammer is not online. neverhammer
Joined: 13 Sep 2009
Total Posts: 963
05 Jun 2015 09:51 PM
repeat
wait(.1)
script.Parent.status.TextTransparency = script.Parent.status.TextTransparency - .1
until script.Parent.status.TextTransparency == 0
Report Abuse
lilblitz56 is not online. lilblitz56
Joined: 06 Nov 2010
Total Posts: 461
05 Jun 2015 09:53 PM
repeat wait(0.1) script.Parent.status.TextTransparency = script.Parent.status.TextTransparency - 0.1 until script.Parent.status.TextTransparency == 0
Report Abuse
amanda is not online. amanda
Joined: 21 Nov 2006
Total Posts: 5925
05 Jun 2015 09:53 PM
you can't just do random math

this is what u r doing

repeat
wait(1)
2 + 2
until rainbows

--

here is fix

local status = script.Parent.status

repeat
wait(.1)
status.TextTransparency = status.TextTransparency - .1
until status.TextTransparency == 0
Report Abuse
lilblitz56 is not online. lilblitz56
Joined: 06 Nov 2010
Total Posts: 461
05 Jun 2015 09:54 PM
Lol he beat me to it :P

Also if it's going from 1 to 0, you can use:

for i = 1,10 do
script.Parent.status.TextTransparency = script.Parent.status.TextTransparency - 0.1
wait(0.1)
end
Report Abuse
neverhammer is not online. neverhammer
Joined: 13 Sep 2009
Total Posts: 963
05 Jun 2015 09:55 PM
^ Better way
Report Abuse
Tokimonu is not online. Tokimonu
Joined: 18 Sep 2009
Total Posts: 643
05 Jun 2015 09:58 PM
yep
i officially now feel stupid
thanks for helping though e.e
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