Ok so I have a game where you destroy things like the eiffel tower and stuff but I was wondering how to make it so that the things get fixed like every 5 minutes?
You could make a regeneration script:
local obj = Workspace['Tower']; --change tower to the name of your model local clone = obj:Clone() while true do wait(5*60) -- wait 5 minutes if Workspace:findFirstChild("Tower") then --change Tower to the name of your model Workspace['Tower']:Destroy() end local cclone = clone:Clone() cclone.Parent = Workspace cclone:MakeJoints() end
Put the model that gets destroyed in Lighting.
Copy and paste this into a Script, in Workspace:
local model = game.Lighting["MODEL NAME"] function Reload() local newm = model:Clone() newm.Parent = game.Workspace newm.Name = "Destroy" end Reload() while wait(300) do --Wait 5 minutes if game.Workspace["Destroy"] then game.Workspace["Destroy"]:Destroy() end Reload() end
Don't know if will work, watching Red Dawn, so my focus isn't 100% there, haha. If it doesn't, then just comment and tell me, and I will re-edit.