#Clone error with the old regen button script
10 messages · Page 1 of 1 (latest)
Did u even use a debounce
A debounce?
** You are now Level 1! **
No it s under the function
local Debounce = false
function regen()
if Debounce == false then
Debounce = true
task.wait(4)
Model = backup:Clone()
Model.Parent = workspace
Module:makeJoints()
message.Parent = nil
enable = false
task.wait(10)
enabled = false
task.wait(1)
Debounce = false
end
end```like that
and u can do lua local work = workspace local PartToTouch = work.PartToTouch function onHit(hit) if hit.Parent:FindFirstChild(Humanoid) then regen() end end PartToTouch.Touched:Connect(onHit)