Create a 3D coordinate instance||doc136032

September 20, 2022

Format

 Vector3.new(x, y, z) 
  • The class to which the function belongs:Lib

Description

Returns a 3D coordinate instance.


Parameters

Variable name type Description
x float x-axis position
y float y-axis position
z float z-axis position


Value Returned

type Description
Vector3 3D Coordinate Example


Code Samples

Constructs a 3D coordinate instance with coordinates 0, 0, 0

local vector3 = Vector3.new(0, 0, 0)