I don't know how i can make a debounce only for the player that touches the part. If you find an answer can you please explain the script so i know how to do this in the future?
local sound = "rbxassetid://196059456"
debounce = false
if not debounce then
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
game.ReplicatedStorage.PlayMusic2:FireClient(player,sound)
debounce = true
wait(3)
debounce = false
end
end)
