How do i make a sound play 3x but has a cooldown on a script

this is the script

debounce = false

script.Parent.Touched:connect(function(hit)

if not debounce then

debounce = true

if(hit.Parent:FindFirstChild(“Humanoid”)~=nil)then

local player = game.Players:GetPlayerFromCharacter(hit.Parent)

local sound = script.Parent.Sound:Clone()

sound.Parent = player.PlayerGui

sound:Play()

wait(10)–change to how long before the sound plays again after retouching it

end

debounce = false

end

end)