Regen script pl0x
#2
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.
Reply


Messages In This Thread
Regen script pl0x - by McNoobster - 05-24-2011, 07:52 PM

Forum Jump:


Users browsing this thread: 4 Guest(s)