Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why wont sound play 10/10 specific title?

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)

1 answer

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.

2 comments

0

The point is I want it to play locally

0

"You need to activate it with a local script." You're not using a local script.

This discussion is preserved as it was. New answers, comments, and votes are closed.