local e={model}local J={model}local B=game.Workspace:children()for g=1,#B,1 do if B[g].Name=="\080\108\097\110\101"then table.insert(e,B[g]:clone())table.insert(J,B[g].Name)end end function regen()for B=1,#e,1 do(game.Workspace:findFirstChild(J[B])):remove()new_thing=e[B]:clone()new_thing.Parent=game.Workspace new_thing:makeJoints()end end function onTouched(e)local J=e.Parent:findFirstChild("\072\117\109\097\110\111\105\100")if J~=nil and debounce==false then debounce=true script.Parent.BrickColor=BrickColor.new(26)regen()wait(10)script.Parent.BrickColor=BrickColor.new(104)debounce=false end end script.Parent.Touched:connect(onTouched)


local everything = {model}
local names = {model}

local children = game.Workspace:children()
for i=1,#children do
	if (children[i].Name == "Plane") then -- Replace Model Wiht Your Models's name!
		table.insert(everything, children[i]:clone())
		table.insert(names, children[i].Name)
	end
end


function regen()
	for i=1,#everything do
		game.Workspace:findFirstChild(names[i]):remove() -- Dont mess with this!
		new_thing = everything[i]:clone()
		new_thing.Parent = game.Workspace
		new_thing:makeJoints()
	end
end

function onTouched(hit)
	local humanoid = hit.Parent:findFirstChild("Humanoid") -- OK were done!
	if humanoid~=nil and debounce == false then
		debounce = true
		
		script.Parent.BrickColor = BrickColor.new(26)

		regen()
		wait(10)-- This Is what u change to make how long it takes before it can be Reused. This Is in seconds.


		script.Parent.BrickColor = BrickColor.new(104)


		debounce = false
	end
end


script.Parent.Touched:connect(onTouched)
