How do you make it so that a brick or model can tell when a part is near them (say, 50 studs away). I'm really stumped by this problem, although I suspect it has something to do with using the Magnitude between bricks.
I'm creating a script so that when a part is x far away, a stuff happens.

10 comments
But if I don't know what Part1 is (such as any player on the server), how do I make it print that when any player gets >= 40 studs away.
This would be a local script and the part1 path (Could change the variable) could lead to the player's torso (game.Players.LocalPlayer.Character.Torso).
Yes, but what if I don't know the Player is what I'm saying. I want it to be any of the 20 players on the server so I can't just make a path to a defined part.
For the Player's torso, you can. I'll update the script with an example.
Ohhhhh. Using LocalPlayer! I get it now! thanks!
Actually, it turns out it doesn't work.
Do you get any errors? I used this same way earlier with another script and it worked like a charm.
Try putting it in StarterGui.
Putting it in the StarterGui causes Studio to crash...
Did you Publish it and test it by pressing 'Play'?