I'm new to coding with LUA, but can you help me or write the script for me? I want to make it this certain part play a sound when a player is 5 bricks away. Is it possible to do that?
COMMUNITY QUESTION
How do I trigger a sound when a player is standing near an object?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
There's the Magnitude operator from Vectors, you can do this: if (Player.Character.Head.Position - Part.Position).Magnitude < 5 then