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

Previous Thread :: Next Thread 
smeaddesktop is not online. smeaddesktop
Joined: 25 Mar 2011
Total Posts: 796
16 Aug 2013 11:37 PM
I know of the loops While or for, but I don't actually know how to work either of them.
I mean, I know what they do, they repeat the function over and over again until the wait time is over or false, but I don't know how to place them in the script.

Say example, I wanted to constantly kill a person. Where would I place the loops?
Report Abuse
baheeg is not online. baheeg
Joined: 19 Jul 2010
Total Posts: 72846
16 Aug 2013 11:45 PM
[ Content Deleted ]
Report Abuse
baheeg is not online. baheeg
Joined: 19 Jul 2010
Total Posts: 72846
16 Aug 2013 11:45 PM
[ Content Deleted ]
Report Abuse
canada1232111 is not online. canada1232111
Joined: 16 Jan 2013
Total Posts: 863
17 Aug 2013 12:22 AM
You just write them out like this
yelo = sweg okai

while true do
blah blah blah
yelo yelo yelo
end

(remember to alwayiz end while true do's or stuf go bad okai?)

repeat until nal
sweg sweg yelo

okai okai okai
if sweg
den yelo

end

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