The title says it all. How do I stop a sound from restarting when the player who touched the brick that plays the sound dies? I need it to keep playing even if the player dies.
local sound = "rbxassetid://(insert id here)"
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
game.ReplicatedStorage.PlayMusic:FireClient(player,sound)
end
end)
