Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Im trying to get character closest to my player using magnitude but it wont work?

Asked by 2 years ago
Edited 2 years ago

im trying to get the closest character to my player but it wont work

local mg = (v.HumanoidRootPart.Position - lplayer.CharacterAdded:wait().HumanoidRootPart.Position).magnitude

here is the script

Answer this question