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