![]() |
Regen script - Printable Version +- 2DWorlds Forums (http://2dworlds.buildism.net/forum) +-- Forum: Your Stuff (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=6) +--- Forum: Free Resources (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=32) +--- Thread: Regen script (/showthread.php?tid=7945) |
Regen script - Duck - 08-11-2011 I don't know if there are already some around, but here you go. Put everything you want to regen in a model called Regenables and put the model in game.World. [lua]function waitFor(time) local waittime = os.time() while os.time() - waittime < time do sleep(0.001) end end I = game.World.Regenables:clone() I.Parent = game.Storage while true do waitFor(25) game.World.Regenables:remove() local F = I:clone() F.Parent = game.World end[/lua] |