Scripts for a game.
#5
(08-04-2011, 09:05 PM)Qwertygiy Wrote: Time regen:

[lua]
local object = script.Parent --PUT THE SCRIPT IN THE REGENERATING THING
local parental = object.Parent
local keepsafe = object:clone()
local waittime = 60 --Seconds between regens

--Beginning of code
sleep(waittime)
script.Parent = game.World
object:remove()
local safekeep = keepsafe:clone()
safekeep.Parent = game.World
script:remove()
--End of code.
[/lua]

Why is there no loop? Because it reclones the regeneration script each time it regens!

Thank you, QwertyGiy.
Shiggity Shiggity Shwa
[Image: Animated.gif?t=1314294800]
Reply


Messages In This Thread
Scripts for a game. - by Sazaho - 08-04-2011, 08:03 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)