How would I make a script that would regenerate parts which have a certain name in the workspace after a certain period of time?
Thank You and help is appreciated
local Clone = workspace.NAMEOFPARTORMODEL:Clone() wait(SECONDS) workspace.NAMEOFPARTORMODEL:Destroy() Clone.Parent = workspace
you can put this in a while loop :)
Hope i Helped
You can do something like this. If you can script it should be easy to make this clone the item u want.
local regentimer = 1 local replicatedstorage = game:WaitForChild("ReplicatedStorage") while wait(regentimer) do print("Cloning") local oldclone = game.Workspace:FindFirstChild("Part") if oldclone ~= nil then game.Workspace.Part:Destroy() end wait(1) local newclone = replicatedstorage.Part:Clone() newclone.Parent = workspace end
Try using this script:
local model = --the name of the object you want to clone local modelParent = --where you want to put the cloned object] local seconds = --time in between cloning in seconds while true do local modelClone = model:Clone() modelClone.Parent. modelParent wait(seconds) modelParent.model:Destroy() end
Hope this helped!