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?

1 comment

0

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