A simple version of my script (provided by ShawnyG in my last question).
Why does this not work:
torso = game.Players.LocalPlayer.Character.Torso
part2 = game.Workspace.Part2
if (torso.Position - part2.Position).magnitude >= 40) then
print('It is 40 studs away!!!')
end
The script is enabled. There is a LocalScript in the StarterGui. There is a part named "Part2" in the Workspace. There is no output. I'm stumped.
**UPDATE: **I added print("The script is responding") at line 3, but nothing even prints. I'm even more confused now. This is in a LocalScript in the Workspace.

1 comment
Ah, my problem was instead of removing that parenthesis, I had added a second one behind it (in an attempt to close the other one pointing to the right). Thank you very much, big problems like these always seem to be caused by such a small problem.