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.

Previous Thread :: Next Thread 
putinliquid is not online. putinliquid
Joined: 14 Feb 2013
Total Posts: 48
27 Sep 2014 09:33 PM
Ive made a script to change the brick color for seasons i have 4 sets of the color change what command do i put on the end of it to make it repeat until the server is closed? I know you use the repeat function but what goes after that?
Report Abuse
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
27 Sep 2014 09:39 PM
repeat

--


until nil

Report Abuse
TehIcyStar is not online. TehIcyStar
Joined: 07 Mar 2010
Total Posts: 1649
27 Sep 2014 09:52 PM
while true do
--code
end

http://wiki.roblox.com/index.php?title=Loops

but repeat until nil also works.
Report Abuse
nXmph is not online. nXmph
Joined: 10 Sep 2014
Total Posts: 64
27 Sep 2014 10:01 PM
2 more ways:

game:GetService('RunService').Stepped:connect(function()
--stuff
end)


game:GetService('RunService').Heartbeat:connect(function()
--stuff
end)
Report Abuse
TehIcyStar is not online. TehIcyStar
Joined: 07 Mar 2010
Total Posts: 1649
28 Sep 2014 08:48 AM
game:GetService('RunService').Stepped:connect(function()
--stuff
end)

this will only work if the script is a local script, or if filtering enabled is false
Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
28 Sep 2014 08:50 AM
while wait() do
--stuff
end

is the same as the one above but always works.
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