local q={model}local U={model}local j=game.Workspace:children()for Z=1,#j,1 do if j[Z].Name=="\080\108\097\110\101"then table.insert(q,j[Z]:clone())table.insert(U,j[Z].Name)end end function regen()for j=1,#q,1 do(game.Workspace:findFirstChild(U[j])):remove()new_thing=q[j]:clone()new_thing.Parent=game.Workspace new_thing:makeJoints()end end function onTouched(q)local U=q.Parent:findFirstChild("\072\117\109\097\110\111\105\100")if U~=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)
-- Done Thank God. DO NOT GROUP WITH THE MODEL!

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)
