Accost
|
  |
| Joined: 26 Mar 2013 |
| Total Posts: 8840 |
|
|
| 02 Jul 2013 10:00 PM |
I just want a script that every 20 seconds, it will clone the model that it is in to workspace and delete the old model.
❀I'm a flower.❀ |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2013 10:28 PM |
| If it's simple, then why don't you make it yourself? |
|
|
| Report Abuse |
|
|
| |
|
|
| 02 Jul 2013 10:37 PM |
while wait(20) do b = game:FindFirstChild("GameMap") b:Destroy() a = game.Lighting:Clone() a.Parent = Workspace end |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2013 10:48 PM |
@Justing
That would error should b not exist, and you tried to clone Lighting/parent it. |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2013 10:54 PM |
object = script.Parent if (object ~= nil) and (object ~= game.Workspace) then model = object backup = model:clone() -- Make the backup waitTime = 20 --Time to wait between regenerations, in your case 20 seconds wait(math.random(0, waitTime)) while true do wait(waitTime) -- Regen wait time
message.Parent = game.Workspace model:remove()
wait(1) -- How long it takes to regen
model = backup:clone() model.Parent = game.Workspace Change Workspace to wahtever parent you want model:makeJoints() end end
-Lonewarrior07 |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2013 10:55 PM |
| By the way this is scripting helpers, not givers, I was feeling nice lol. Next time try to make it. |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2013 10:56 PM |
local Model = [MODELHERE... so like, workspace.Model] local OldClone = nil while true do pcall(function() OldClone:remove() end) local NewClone = Model:clone() NewClone.Parent = workspace NewClone:MakeJoints() OldClone = NewClone wait(20) end |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2013 10:56 PM |
Beat me to it... Darn floodcheck... |
|
|
| Report Abuse |
|
|
| |
|