debounce=false regen={}last={}for W,h in ipairs(script.Parent.Parent:GetChildren())do if h~=script.Parent then table.insert(regen,h:clone())table.insert(last,h)end end script.Parent.Touched:connect(function(W)if W.Parent~=nil then if game.Players:playerFromCharacter(W.Parent)~=nil and debounce==false then debounce=true for W,h in ipairs(last)do if h.Parent==script.Parent.Parent then end end last={}for W,h in ipairs(regen)do local U=h:clone()table.insert(last,U)U.Parent=script.Parent.Parent pcall(function()U:MakeJoints()end)end script.Parent.BrickColor=BrickColor.new(26)wait(2)script.Parent.BrickColor=BrickColor.new(104)debounce=false end end end)

debounce = false
regen = {}
last = {}
for a,b in ipairs(script.Parent.Parent:GetChildren()) do
if b ~= script.Parent then
table.insert(regen,b:clone())
table.insert(last,b)
end end
script.Parent.Touched:connect(function(hit)
if hit.Parent ~= nil then
if game.Players:playerFromCharacter(hit.Parent) ~= nil and debounce == false then 
debounce = true
for a,b in ipairs(last) do
if b.Parent == script.Parent.Parent then
end end
last = {}
for a,b in ipairs(regen) do
local c = b:clone()
table.insert(last,c)
c.Parent = script.Parent.Parent
pcall(function() c:MakeJoints() end)
end
script.Parent.BrickColor = BrickColor.new(26)
wait(2)
script.Parent.BrickColor = BrickColor.new(104)
debounce = false
end end end)
