local Torso = game.Players.LocalPlayer.Character.Torso
local Origin = script.Parent
local Mag = (Torso.Position - Origin.Position).Magnitude
game.Players.PlayerAdded:connect(function(P)
wait(4) --loading time
print(Mag)
end)
I'm trying to write a rendering script but I'm having problems with actually "finding" the distance between the Object and player. And the output will not print anything.
Do local scripts not work client side?
Assistance would be great, Thanks.

2 comments
Assuming 'Origin' is a Part, I will just tell you LocalScripts do not run inside parts.
Oh. Woops.