while true and wait() do
for o,p in pairs(game.Players:getChildren()) do
if (p.Character:findFirstChild("Torso").Position-script.Parent.Position).magnitude<10 then
script.Parent.Sound:Play()
else script.Parent.Sound:Stop()
end end
end
What is the most efficient way on making it so it plays once, and if you're over the magnitude of "10" then it stops? Also, how would I make it so the sound only plays to the certain character? Cloning the Sound into the Character, then playing it?
Help would be appreciated.

2 comments
Sorry, I cannot help with the magnitude part. Although, for just one player to hear the sound, you must clone it to that players PlayerGui.
Using a LocalScript, play/stop the sound.