05-24-2011, 07:56 PM
Easy enough.
[lua]
local thing = script.Parent
local nuthing = thing:clone()
local par = thing.Parent
while true do --Somewhat redundant :/
sleep(120) --Two minutes between regens. Change it to however long you want.
game:message("Regenerating " .. thing.Name) --Change message if you want.
sleep(1)
thing.Parent = game.Storage
nuthing.Parent = par
sleep(1)
game:message()
thing:remove()
script:remove() --Just in case.
end
[/lua]
I haven't tested it -- but it should work. Just copy it into a script and place the script inside the model you want to regen.
[lua]
local thing = script.Parent
local nuthing = thing:clone()
local par = thing.Parent
while true do --Somewhat redundant :/
sleep(120) --Two minutes between regens. Change it to however long you want.
game:message("Regenerating " .. thing.Name) --Change message if you want.
sleep(1)
thing.Parent = game.Storage
nuthing.Parent = par
sleep(1)
game:message()
thing:remove()
script:remove() --Just in case.
end
[/lua]
I haven't tested it -- but it should work. Just copy it into a script and place the script inside the model you want to regen.