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

What does Position.Unit do???? Sorry if I'm a brainlet lol

Asked by 4 years ago
Edited 4 years ago

Okay, so i heard about .Unit and i am confused, would anyone mind to explain a short, brief, and easy explanation?

-- Sorry if I'm stupid by the way lol

1
.Unit is related to Vector3, a unit vector is a vector that has a direction and a length of 1 unit. I don't know that much about .Unit but i hope that info helps you :) LetalNightmare 99 — 4y

3 answers

Log in to vote
2
Answered by 4 years ago

.Unit is related to Vector3, a unit vector is a vector that has a direction and a length of 1 unit. I don't know that much about .Unit but i hope that info helps you :)

Ad
Log in to vote
0
Answered by 4 years ago

Vector3.Unit returns a normalized version of that Vector, basically it's the same Vector with a magnitude of 1. So let's say you multiply the normalized Vector by the Magnitude of your original Vector, you would end up getting back the original Vector.

Log in to vote
-4
Answered by 4 years ago
Edited 4 years ago

I have never heard of this I think you are meant to use .Value instead

.Value 

Example

script.Parent.Baseplate.Position.Value = Vector3.new(0,0,0)
1
BRUH CaIcuIati0n 246 — 4y

Answer this question