I don't understand how to use denounce but I think this would be useful for this script. Can someone explain how to use denounce?
local WaterPouringAudio = script.Parent:WaitForChild("Water Pouring")
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("IsADrink") then
local name = hit.Parent.Name
WaterPouringAudio.Playing = true
wait()
hit.Parent.Name = "Dropping Ice.."
wait(2.4)
hit.Parent.Name = "Iced " .. name
hit.Parent.Ice.Transparency = 0.4
end
end)

1 comment
It keeps auto-correcting debounce to denounce. Sorry about that.