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

How can I make my script display this Magnitude?

Asked by 8 years ago

I'm trying to get the Torso's position - another parts position(Which is the magnitude) but I get this error: Workspace.Player1.LocalScript:4: bad argument #2 to '?' (Vector3 expected, got Object). I've tried changing some things but it doesent work, any answer is appreciated. Please and Thank you.

Torso = script.Parent.Torso Pos = workspace.Pos Magnitude = (Torso.Position - Pos).magnitude

for i = 0,100,1 do print(Magnitude) wait(1) end

Answer this question