✓ Accepted answer
So a debounce is basically a variable that you set to true or false depending on when you want something to happen. So in your situation, we need to allow the function to work once, and then after it's done wait 1 second, then allow it again.
To do this, we can use any variable, but we'll just call it 'Debounce' for simplicity.
local Debounce = false
script.Parent.Touched:connect(function(part)
if part.Parent:FindFirstChild('Torso') then
if not Debounce then
Debounce = true
part.Parent.Torso.Anchored = true
wait(15)
part.Parent.Torso.Anchored = false
wait(1)
Debounce = false
end
end
end)
So now your script should work. If you have any further problems/questions, please leave a comment below, and I'll see what I can do. Hope I helped :P
####-Dyler3