I wanted to make a script that run a sound when a player walk on a part so I have made this script :
script.Parent.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
script.Parent.Playing = true
end
end)
This script work but everyone can hear the sound, I wanted to play the sound Locally so i tried to put the exact same code into a LocalScript
but now, i can't hear anything !
The script is in the sound and the sound is in a part
Thank you in advance !

4 comments
Thank you for your answer @jdm4llfem8 It's working I just need a friend to test if he can hear or not the sound xD
If i want to add a debounce where do I add it?
im gonna edit the answer so you can see
Actually no i cant, but you have to put it on the script, not the local script