|
| 19 Jul 2015 03:14 AM |
The script works as expected, but it doesn't nullify the model that was already regenerated, resulting in adding the model instead.
local regenTime = 8 local messageTime = 2
local Model = script.Parent local Message = Instance.new("Message")
if Model ~= workspace then Message.Text = "Regenerating " ..Model.Name local Backup = Model:Clone() while true do wait(regenTime) Model:Destroy() Message.Parent = game.Workspace wait(messageTime) Message.Parent = nil Model = Backup:Clone() Model.Parent = game.Workspace Model:makeJoints() end else error("Script not put in a Model! Nothing to regenerate!") end |
|
|
| Report Abuse |
|
Locard
|
  |
| Joined: 13 Apr 2014 |
| Total Posts: 3516 |
|
|
| 19 Jul 2015 04:53 AM |
| So what you're trying to do is destroy a model (that destroys EVERYTHING inside of it as well) when the script is also inside the model? |
|
|
| Report Abuse |
|