debounce=false script.Parent.Touched:connect(function(d)if not debounce then debounce=true if d.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")~=nil then local R=game.Players:GetPlayerFromCharacter(d.Parent)local v=script.Parent.Sound:Clone()v.Parent=R.PlayerGui v:Play()wait(.1)end debounce=false end end)
--Change sound id to the id you want to play

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(0.1) --change to how long before the sound plays again after retouching it
		end
		debounce = false
	end
end)
