I’m wanting to play this sound when the local script fires this event. It plays fine, however, it broadcasts it to the entire server and I’d like for it to only broadcast from the player’s character.
The sound is inside of the tool, which is why I have it selected as a descendant but still broadcasts it serverwide.
local events = game.ReplicatedStorage.Events
local ghost = events.GhostJuice
ghost.OnServerEvent:Connect(function(player)
print(player.Name.." is drinking Ghost Juice.")
for i,descendant in ipairs(player.Character:GetDescendants()) do
if descendant.ClassName == "Sound" then
descendant:Play()
end
end