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: Looping

Previous Thread :: Next Thread 
sugarloaf123456789 is not online. sugarloaf123456789
Joined: 11 Nov 2013
Total Posts: 114
07 Dec 2015 01:09 PM
I can't find anything to help me understand looping....I'm trying to loop this; script.Parent.Transparency = 0
wait(.3)
script.Parent.Transparency = 1
wait(.3)
script.Parent.Transparency = 0
If you know of any places or can help me, thanks!


King William lll
Report Abuse
Zonkman31 is not online. Zonkman31
Joined: 22 Feb 2013
Total Posts: 6471
07 Dec 2015 01:55 PM
while wait() do

-- Insert Code Here--

end
Report Abuse
NetworkReplicated is not online. NetworkReplicated
Joined: 22 Dec 2010
Total Posts: 330
07 Dec 2015 02:04 PM

while wait(.3) do
script.Parent.Transparency = 1
wait(.3)
script.Parent.Transparency = 0
end

Basically, this is a while loop. The loop runs every .3 seconds after its previous end.

E.g. if I put print("hello world") between while wait(.3) do & end, it would print 'hello world' every .3 seconds.
Report Abuse
TrainingToTroll is not online. TrainingToTroll
Joined: 27 Oct 2012
Total Posts: 1757
07 Dec 2015 02:07 PM
repeat wait(.3)
script.Parent.Transparency = 1
wait(.3)
script.Parent.Transparency = 0
until never==forever
Report Abuse
sugarloaf123456789 is not online. sugarloaf123456789
Joined: 11 Nov 2013
Total Posts: 114
07 Dec 2015 02:28 PM
Thanks guys!


King William lll
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