Sound no play pls help
script.Parent.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local player = game.Players:FindFirstChild(hit.Parent.Name)
player.PlayerGui.Sound:Play()
end
end)
Sound no play pls help
script.Parent.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local player = game.Players:FindFirstChild(hit.Parent.Name)
player.PlayerGui.Sound:Play()
end
end)
You're trying to activate a sound that is only found locally on the player's client because you put it in PlayerGui. You need to activate it with a local script. Or you have to put that sound somewhere else, like SoundService, or copy it and put it in the workspace for the moment that you need to play it.
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
The point is I want it to play locally
"You need to activate it with a local script." You're not using a local script.