I am trying to create a ball-bouncing-on-grass sound when a soccer ball hits the grass, but it plays the bouncing sound when it’s on the ground.
here’s the script
Cooldown = false
script.Parent.Touched:Connect(function(hit)
if hit.Name == "Grass" and not Cooldown then
script.Parent.Grass:Play()
Cooldown = true
wait(0.5)
Cooldown = false
end
end)
any help would be appreciated, thanks