Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Model regeneration:
- local regenTime = 180 -- Put the time (In seconds)
- local messageTime = 2.5
- local model = script.Parent
- local message = Instance.new("Message")
- --Put the script into the model
- if model ~= workspace then
- message.Text = "Regenerating " .. model.Name
- local backup = model:clone() -- Put the model name
- while true do
- wait(regenTime)
- --Put again the model name
- model:Destroy()
- --Show the message
- message.Parent = game.Workspace
- wait(messageTime)
- message.Parent = nil
- --Put AGAIN the model name
- model = backup:clone()
- model.Parent = game.Workspace
- model:makeJoints()
- end
- else
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement