SCRIPT:
local sound = script.Parent.Sound
local canPlaySound = true
local function onTouched()
if canPlaySound then
sound:Play()
canPlaySound = false
end
end
sound.Ended:Connect(function()
canPlaySound = true
end)
script.Parent.Touched:Connect(onTouched)