Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

What Does Vector3.new means?

For Example: script.Parent.RotVelocity = Vertor3.new(-10,0,0)

3 answers

Vector3.new is a function which creates a new Vector3.

In math, a Vector is something with length and direction. It's usually represented as a coordinate, e.g., (4 left, 3 up, 7 backward).

A vector in the elementary sense is an ordered list of numbers; a "Vector3" then is an ordered list of 3 numbers. We call these numbers, in order, x y and z. These three numbers are the parameters to Vector3.new(x, y, z)

Since Vectors define a point in 3D space, we use it for Position of parts.

As well, as some components of CFrame which augments a Vector3 with several other values to define the orientation (rotation) of an object.

1 comment

0

Thank For Helping :D

Vector3.new sets the new Vector3 value, which is for positioning and CFrame.

1 comment

0

Thank You!

Vector3.new is the way to position a GUI (CFrame.new is for parts) using the basic math figures, x, y, and z.

This discussion is preserved as it was. New answers, comments, and votes are closed.