04-19-2011, 02:02 PM
[lua]
model = game.World.BLUE -- game.World again
messageText = "REGEN BLUE SPIRE"
message = create("Message")
message.Text = messageText
backup = model:clone() -- Put nothing in clone()
while true do
sleep(10) -- regenerate this model every 300 seconds
message.Parent = game.World -- game.World
model:remove() -- Dont put anything in remove()
sleep(4) -- display regen message for 4 seconds
model = backup:clone() -- Dont put anything in clone()
model.Parent = game.World -- game.World
model:makeJoints()
message.Parent = nil
end
[/lua]
model = game.World.BLUE -- game.World again
messageText = "REGEN BLUE SPIRE"
message = create("Message")
message.Text = messageText
backup = model:clone() -- Put nothing in clone()
while true do
sleep(10) -- regenerate this model every 300 seconds
message.Parent = game.World -- game.World
model:remove() -- Dont put anything in remove()
sleep(4) -- display regen message for 4 seconds
model = backup:clone() -- Dont put anything in clone()
model.Parent = game.World -- game.World
model:makeJoints()
message.Parent = nil
end
[/lua]