diff --git a/content/en-us/characters/pathfinding.md b/content/en-us/characters/pathfinding.md index 250cf858d..f86558cef 100644 --- a/content/en-us/characters/pathfinding.md +++ b/content/en-us/characters/pathfinding.md @@ -145,7 +145,7 @@ local player = Players.LocalPlayer local character = player.Character local humanoid = character:WaitForChild("Humanoid") -local TEST_DESTINATION = Vector3.new(100, 0, 100) +local TEST_DESTINATION = vector.create(100, 0, 100) local waypoints local nextWaypointIndex @@ -213,7 +213,7 @@ local player = Players.LocalPlayer local character = player.Character local humanoid = character:WaitForChild("Humanoid") -local TEST_DESTINATION = Vector3.new(100, 0, 100) +local TEST_DESTINATION = vector.create(100, 0, 100) local waypoints local nextWaypointIndex @@ -245,7 +245,7 @@ local player = Players.LocalPlayer local character = player.Character local humanoid = character:WaitForChild("Humanoid") -local TEST_DESTINATION = Vector3.new(100, 0, 100) +local TEST_DESTINATION = vector.create(100, 0, 100) local waypoints local nextWaypointIndex @@ -286,7 +286,7 @@ local player = Players.LocalPlayer local character = player.Character local humanoid = character:WaitForChild("Humanoid") -local TEST_DESTINATION = Vector3.new(100, 0, 100) +local TEST_DESTINATION = vector.create(100, 0, 100) local waypoints local nextWaypointIndex @@ -358,7 +358,7 @@ local player = Players.LocalPlayer local character = player.Character local humanoid = character:WaitForChild("Humanoid") -local TEST_DESTINATION = Vector3.new(100, 0, 100) +local TEST_DESTINATION = vector.create(100, 0, 100) local waypoints local nextWaypointIndex @@ -525,7 +525,7 @@ To create a `Class.PathfindingLink` using this example: local character = player.Character local humanoid = character:WaitForChild("Humanoid") - local TEST_DESTINATION = Vector3.new(228.9, 17.8, 292.5) + local TEST_DESTINATION = vector.create(228.9, 17.8, 292.5) local waypoints local nextWaypointIndex diff --git a/content/en-us/chat/examples/proximity-chat.md b/content/en-us/chat/examples/proximity-chat.md index add4a1a6d..04a5418f3 100644 --- a/content/en-us/chat/examples/proximity-chat.md +++ b/content/en-us/chat/examples/proximity-chat.md @@ -28,7 +28,7 @@ local function getPositionFromUserId(userId: number) end -- Return a default position if the player or character cannot be found. - return Vector3.zero + return vector.zero end -- Set the ShouldDeliverCallback for the general channel to control message delivery. diff --git a/content/en-us/education/build-it-play-it-island-of-move/animating-parts.md b/content/en-us/education/build-it-play-it-island-of-move/animating-parts.md index 4d2156433..12362dc20 100644 --- a/content/en-us/education/build-it-play-it-island-of-move/animating-parts.md +++ b/content/en-us/education/build-it-play-it-island-of-move/animating-parts.md @@ -206,7 +206,7 @@ local inTween = false -- Customizable variables local TWEEN_TIME = 1 -local TWEEN_SCALE = Vector3.zero +local TWEEN_SCALE = vector.zero -- Tween variables local tweenInfo = TweenInfo.new( diff --git a/content/en-us/environment/global-wind.md b/content/en-us/environment/global-wind.md index b7badb327..edc28ff30 100644 --- a/content/en-us/environment/global-wind.md +++ b/content/en-us/environment/global-wind.md @@ -50,8 +50,8 @@ local gustCycleDelay = 5 -- Max duration between gust cycles in seconds local gustCycleDuration = 3.5 -- Duration of each gust cycle in seconds -- During each gust cycle, a portion of "gust" will be added to "baseWind" in a ramped fashion -local baseWind = Vector3.new(5, 0, 2) -- Base wind speed and direction -local gust = Vector3.new(25, 0, 10) -- Gust speed and direction +local baseWind = vector.create(5, 0, 2) -- Base wind speed and direction +local gust = vector.create(25, 0, 10) -- Gust speed and direction local gustIntervals = 100 -- Number of iterations used to calculate each gust interval local dg = gustCycleDuration / gustIntervals local dgf = dg / gustCycleDuration diff --git a/content/en-us/luau/native-code-gen.md b/content/en-us/luau/native-code-gen.md index a1a2b699e..f51bee960 100644 --- a/content/en-us/luau/native-code-gen.md +++ b/content/en-us/luau/native-code-gen.md @@ -74,8 +74,8 @@ local function sumComponentsSlow(v) return v.X + v.Y + v.Z end --- "v" is declared to be a Vector3; code specialized for vectors is generated -local function sumComponentsFast(v: Vector3) +-- "v" is declared to be a vector; code specialized for vectors is generated +local function sumComponentsFast(v: vector) return v.X + v.Y + v.Z end ``` diff --git a/content/en-us/luau/tuples.md b/content/en-us/luau/tuples.md index d09f99864..794760be0 100644 --- a/content/en-us/luau/tuples.md +++ b/content/en-us/luau/tuples.md @@ -10,7 +10,7 @@ A **tuple** is a list of values. Many [methods](./functions.md#methods) and [cal If a [method](./functions.md#methods) or [callback](./functions.md#callbacks) accepts a tuple as a parameter, then it accepts multiple values. For example, the API Reference shows that the `Class.BindableFunction:Invoke()` method accepts a "Tuple" as a parameter, so it accepts multiple arguments. ```lua -BindableFunction:Invoke(1, true, "string", Vector3.new(0, 0, 0)) +BindableFunction:Invoke(1, true, "string", vector.zero) ``` ## Returns diff --git a/content/en-us/parts/terrain.md b/content/en-us/parts/terrain.md index a558209e6..c438da480 100644 --- a/content/en-us/parts/terrain.md +++ b/content/en-us/parts/terrain.md @@ -471,7 +471,7 @@ To import a heightmap and optional colormap: You can script terrain generation using the `Class.Terrain` class. For example, to create terrain with grass material that fills a volume, you can use methods such as `Class.Terrain:FillBall()|FillBall()`, `Class.Terrain:FillBlock()|FillBlock()`, `Class.Terrain:FillCylinder()|FillCylinder()`, `Class.Terrain:FillRegion()|FillRegion()`, or `Class.Terrain:FillWedge()|FillWedge()`. ```lua title='Fill Block Volume' -workspace.Terrain:FillBlock(CFrame.new(0, 0, 0), Vector3.new(4, 4, 4), Enum.Material.Grass) +workspace.Terrain:FillBlock(CFrame.new(0, 0, 0), vector.create(4, 4, 4), Enum.Material.Grass) ``` ## Large-Scale Editing diff --git a/content/en-us/production/monetization/engagement-based-payouts.md b/content/en-us/production/monetization/engagement-based-payouts.md index c093b838c..fe96ec22a 100644 --- a/content/en-us/production/monetization/engagement-based-payouts.md +++ b/content/en-us/production/monetization/engagement-based-payouts.md @@ -75,7 +75,7 @@ local Players = game:GetService("Players") local teleporter = script.Parent local showModal = true -local TELEPORT_POSITION = Vector3.new(1200, 200, 60) +local TELEPORT_POSITION = vector.create(1200, 200, 60) -- Teleport character to exclusive area local function teleportPlayer(player) diff --git a/content/en-us/reference/engine/classes/AvatarCreationService.yaml b/content/en-us/reference/engine/classes/AvatarCreationService.yaml index f6601f0a0..4e44011b3 100644 --- a/content/en-us/reference/engine/classes/AvatarCreationService.yaml +++ b/content/en-us/reference/engine/classes/AvatarCreationService.yaml @@ -69,39 +69,39 @@ methods: [Enum.AssetType.DynamicHead] = { ["Bounds"] = { ["Classic"] = { - ["MinSize"]: Vector3, - ["MaxSize"]: Vector3, + ["MinSize"]: vector, + ["MaxSize"]: vector, }, ["ProportionsSlender"] = { - ["MinSize"]: Vector3, - ["MaxSize"]: Vector3, + ["MinSize"]: vector, + ["MaxSize"]: vector, }, ["ProportionsNormal"] = { - ["MinSize"]: Vector3, - ["MaxSize"]: Vector3, + ["MinSize"]: vector, + ["MaxSize"]: vector, }, }, ["SubParts"] = { ["Head"] = { ["NeckRigAttachment"] = { - ["LowerBound"]: Vector3, - ["UpperBound"]: Vector3, + ["LowerBound"]: vector, + ["UpperBound"]: vector, }, ["FaceFrontAttachment"] = { - ["LowerBound"]: Vector3, - ["UpperBound"]: Vector3, + ["LowerBound"]: vector, + ["UpperBound"]: vector, }, ["HatAttachment"] = { - ["LowerBound"]: Vector3, - ["UpperBound"]: Vector3, + ["LowerBound"]: vector, + ["UpperBound"]: vector, }, ["HairAttachment"] = { - ["LowerBound"]: Vector3, - ["UpperBound"]: Vector3, + ["LowerBound"]: vector, + ["UpperBound"]: vector, }, ["FaceCenterAttachment"] = { - ["LowerBound"]: Vector3, - ["UpperBound"]: Vector3, + ["LowerBound"]: vector, + ["UpperBound"]: vector, }, }, }, @@ -109,51 +109,51 @@ methods: [Enum.AssetType.LeftArm] = { ["Bounds"] = { ["Classic"] = { - ["MinSize"]: Vector3, - ["MaxSize"]: Vector3, + ["MinSize"]: vector, + ["MaxSize"]: vector, }, ["ProportionsSlender"] = { - ["MinSize"]: Vector3, - ["MaxSize"]: Vector3, + ["MinSize"]: vector, + ["MaxSize"]: vector, }, ["ProportionsNormal"] = { - ["MinSize"]: Vector3, - ["MaxSize"]: Vector3, + ["MinSize"]: vector, + ["MaxSize"]: vector, }, }, ["SubParts"] = { ["LeftHand"] = { ["LeftWristRigAttachment"] = { - ["LowerBound"]: Vector3, - ["UpperBound"]: Vector3, + ["LowerBound"]: vector, + ["UpperBound"]: vector, }, ["LeftGripAttachment"] = { - ["LowerBound"]: Vector3, - ["UpperBound"]: Vector3, + ["LowerBound"]: vector, + ["UpperBound"]: vector, }, }, ["LeftUpperArm"] = { ["LeftShoulderRigAttachment"] = { - ["LowerBound"]: Vector3, - ["UpperBound"]: Vector3, + ["LowerBound"]: vector, + ["UpperBound"]: vector, }, ["LeftShoulderAttachment"] = { - ["LowerBound"]: Vector3, - ["UpperBound"]: Vector3, + ["LowerBound"]: vector, + ["UpperBound"]: vector, }, ["LeftElbowRigAttachment"] = { - ["LowerBound"]: Vector3, - ["UpperBound"]: Vector3, + ["LowerBound"]: vector, + ["UpperBound"]: vector, }, }, ["LeftLowerArm"] = { ["LeftElbowRigAttachment"] = { - ["LowerBound"]: Vector3, - ["UpperBound"]: Vector3, + ["LowerBound"]: vector, + ["UpperBound"]: vector, }, ["LeftWristRigAttachment"] = { - ["LowerBound"]: Vector3, - ["UpperBound"]: Vector3, + ["LowerBound"]: vector, + ["UpperBound"]: vector, }, }, }, @@ -164,8 +164,8 @@ methods: [Enum.AssetType.HairAccessory] = { ["Attachments"] = { { - ["Size"]: Vector3, - ["Offset"]: Vector3, + ["Size"]: vector, + ["Offset"]: vector, ["Name"]: string, }, }, diff --git a/content/en-us/reference/engine/classes/BillboardGui.yaml b/content/en-us/reference/engine/classes/BillboardGui.yaml index c8ddadcca..3678a880e 100644 --- a/content/en-us/reference/engine/classes/BillboardGui.yaml +++ b/content/en-us/reference/engine/classes/BillboardGui.yaml @@ -583,4 +583,4 @@ properties: writeCapabilities: [] methods: [] events: [] -callbacks: [] +callbacks: [] \ No newline at end of file diff --git a/content/en-us/reference/engine/classes/BodyAngularVelocity.yaml b/content/en-us/reference/engine/classes/BodyAngularVelocity.yaml index 60bdf09b8..d9f6fc80d 100644 --- a/content/en-us/reference/engine/classes/BodyAngularVelocity.yaml +++ b/content/en-us/reference/engine/classes/BodyAngularVelocity.yaml @@ -37,7 +37,7 @@ properties: second) into the desired [angular velocity][3] (radians per second). For example: Setting `Class.BodyAngularVelocity.AngularVelocity|AngularVelocity` to - `Vector3.new(0, 1, 0) * math.rad(360)` ≈ `Vector3.new(0, 6.283, 0)` will + `vector.create(0, 1, 0) * math.rad(360)` ≈ `vector.create(0, 6.283, 0)` will cause a part to spin around the Y axis once per second. code_samples: type: Vector3 diff --git a/content/en-us/reference/engine/classes/Camera.yaml b/content/en-us/reference/engine/classes/Camera.yaml index e5404304b..858fe0043 100644 --- a/content/en-us/reference/engine/classes/Camera.yaml +++ b/content/en-us/reference/engine/classes/Camera.yaml @@ -65,8 +65,8 @@ properties: The most intuitive way to position and orient the `Class.Camera` is by using the `Datatype.CFrame.lookAt()` constructor. In the following example, the `Class.Camera` is positioned at - `Datatype.Vector3.new(0, 10, 0)` and is oriented to be looking towards - `Datatype.Vector3.new(10, 0, 0)`. + `Datatype.Vector3|vector.create(0, 10, 0)` and is oriented to be looking towards + `Datatype.Vector3|vector.create(10, 0, 0)`. ```lua local Workspace = game:GetService("Workspace") @@ -74,8 +74,8 @@ properties: local camera = Workspace.CurrentCamera camera.CameraType = Enum.CameraType.Scriptable - local pos = Vector3.new(0, 10, 0) - local lookAtPos = Vector3.new(10, 0, 0) + local pos = vector.create(0, 10, 0) + local lookAtPos = vector.create(10, 0, 0) Workspace.CurrentCamera.CFrame = CFrame.lookAt(pos, lookAtPos) ``` @@ -104,7 +104,7 @@ properties: character = player.CharacterAdded:Wait() end - local pos = camera.CFrame * Vector3.new(0, 20, 0) + local pos = camera.CFrame * vector.create(0, 20, 0) local lookAtPos = character.PrimaryPart.Position local targetCFrame = CFrame.lookAt(pos, lookAtPos) @@ -715,8 +715,8 @@ methods: local camera = Workspace.CurrentCamera local castPoints = { - Vector3.new(0, 10, 0), - Vector3.new(0, 15, 0) + vector.create(0, 10, 0), + vector.create(0, 15, 0) } local ignoreList = {} @@ -810,7 +810,7 @@ methods: local function getActualRoll() local camera = workspace.CurrentCamera - local trueUp = Vector3.new(0, 1, 0) + local trueUp = vector.create(0, 1, 0) local cameraUp = camera:GetRenderCFrame().upVector return math.acos(trueUp:Dot(cameraUp)) @@ -1291,7 +1291,7 @@ methods: local camera = Workspace.CurrentCamera - local worldPoint = Vector3.new(0, 10, 0) + local worldPoint = vector.create(0, 10, 0) local vector, onScreen = camera:WorldToScreenPoint(worldPoint) local screenPoint = Vector2.new(vector.X, vector.Y) @@ -1350,7 +1350,7 @@ methods: local camera = Workspace.CurrentCamera - local worldPoint = Vector3.new(0, 10, 0) + local worldPoint = vector.create(0, 10, 0) local vector, onScreen = camera:WorldToViewportPoint(worldPoint) local viewportPoint = Vector2.new(vector.X, vector.Y) diff --git a/content/en-us/reference/engine/classes/EditableMesh.yaml b/content/en-us/reference/engine/classes/EditableMesh.yaml index 602d01613..13653a8c7 100644 --- a/content/en-us/reference/engine/classes/EditableMesh.yaml +++ b/content/en-us/reference/engine/classes/EditableMesh.yaml @@ -115,14 +115,14 @@ description: | local function makeSharpCube() local eMesh = AssetService:CreateEditableMesh() - local v1 = eMesh:AddVertex(Vector3.new(0, 0, 0)) - local v2 = eMesh:AddVertex(Vector3.new(1, 0, 0)) - local v3 = eMesh:AddVertex(Vector3.new(0, 1, 0)) - local v4 = eMesh:AddVertex(Vector3.new(1, 1, 0)) - local v5 = eMesh:AddVertex(Vector3.new(0, 0, 1)) - local v6 = eMesh:AddVertex(Vector3.new(1, 0, 1)) - local v7 = eMesh:AddVertex(Vector3.new(0, 1, 1)) - local v8 = eMesh:AddVertex(Vector3.new(1, 1, 1)) + local v1 = eMesh:AddVertex(vector.create(0, 0, 0)) + local v2 = eMesh:AddVertex(vector.create(1, 0, 0)) + local v3 = eMesh:AddVertex(vector.create(0, 1, 0)) + local v4 = eMesh:AddVertex(vector.create(1, 1, 0)) + local v5 = eMesh:AddVertex(vector.create(0, 0, 1)) + local v6 = eMesh:AddVertex(vector.create(1, 0, 1)) + local v7 = eMesh:AddVertex(vector.create(0, 1, 1)) + local v8 = eMesh:AddVertex(vector.create(1, 1, 1)) addSharpQuad(eMesh, v5, v6, v8, v7) -- Front addSharpQuad(eMesh, v1, v3, v4, v2) -- Back diff --git a/content/en-us/reference/engine/classes/Humanoid.yaml b/content/en-us/reference/engine/classes/Humanoid.yaml index 09cec864d..5cbc72d1c 100644 --- a/content/en-us/reference/engine/classes/Humanoid.yaml +++ b/content/en-us/reference/engine/classes/Humanoid.yaml @@ -1862,7 +1862,7 @@ methods: `Class.Workspace.CurrentCamera|CurrentCamera`. ```lua - humanoid:Move(Vector3.new(0, 0, -1), true) + humanoid:Move(vector.create(0, 0, -1), true) ``` When this function is called, the `Class.Humanoid` will move until the diff --git a/content/en-us/reference/engine/classes/Instance.yaml b/content/en-us/reference/engine/classes/Instance.yaml index 3965885a2..655d91833 100644 --- a/content/en-us/reference/engine/classes/Instance.yaml +++ b/content/en-us/reference/engine/classes/Instance.yaml @@ -1271,11 +1271,11 @@ methods: returned by default. For example, the following code snippet sets the instance's - **InitialPosition** attribute to `Datatype.Vector3|Vector3.new(0, 10, 0)`: + **InitialPosition** attribute to `Datatype.Vector3|vector.create(0, 10, 0)`: ```lua local part = workspace.Part - part:SetAttribute("InitialPosition", Vector3.new(0, 10, 0)) + part:SetAttribute("InitialPosition", vector.create(0, 10, 0)) ``` #### Limitations diff --git a/content/en-us/reference/engine/classes/RayValue.yaml b/content/en-us/reference/engine/classes/RayValue.yaml index 70fb852f9..8ef5260ee 100644 --- a/content/en-us/reference/engine/classes/RayValue.yaml +++ b/content/en-us/reference/engine/classes/RayValue.yaml @@ -12,7 +12,7 @@ description: | to create a new RayValue named "Value" within the `Class.Workspace`. It creates a ray at (0, 50, 0) and it faces in the positive-X direction. - `Instance.new("RayValue").Value = Ray.new(Vector3.new(0, 50, 0), Vector3.new(10, 0, 0))` + `Instance.new("RayValue").Value = Ray.new(vector.create(0, 50, 0), vector.create(10, 0, 0))` Since there is no trivial way to edit rays within Studio, sometimes it is better to use a CFrameValue instead (which can be changed through a part or diff --git a/content/en-us/reference/engine/classes/UserInputService.yaml b/content/en-us/reference/engine/classes/UserInputService.yaml index efae58e00..cdd1d05d7 100644 --- a/content/en-us/reference/engine/classes/UserInputService.yaml +++ b/content/en-us/reference/engine/classes/UserInputService.yaml @@ -316,7 +316,7 @@ properties: When sensitivity is 0, events that track the mouse's movement will still fire but all parameters and properties indicating the change in mouse position will return `Datatype.Vector2|Vector2.new()`, or - `Datatype.Vector3|Vector3.new()` in the case of `Class.InputObject.Delta`. + `Datatype.Vector3|vector.create()` in the case of `Class.InputObject.Delta`. For example, `Class.UserInputService:GetMouseDelta()|GetMouseDelta` will always return (0, 0). code_samples: @@ -817,9 +817,9 @@ methods: The gravity vector is determined by the device's orientation relative to the real-world force of gravity. For instance, if a device is perfectly upright (portrait), the gravity vector is - `Datatype.Vector3|Vector3.new(0, 0, -9.18)`. If the left side of the - device is pointing down, the vector is Vector3.new(9.81, 0, 0). Finally, - if the back of the device is pointing down, the vector is Vector3.new(0, + `Datatype.Vector3|vector.create(0, 0, -9.18)`. If the left side of the + device is pointing down, the vector is vector.create(9.81, 0, 0). Finally, + if the back of the device is pointing down, the vector is vector.create(0, -9.81, 0). This function might be used to enable the user's device to impact or diff --git a/content/en-us/reference/engine/classes/ViewportFrame.yaml b/content/en-us/reference/engine/classes/ViewportFrame.yaml index 851a02cfd..e49814953 100644 --- a/content/en-us/reference/engine/classes/ViewportFrame.yaml +++ b/content/en-us/reference/engine/classes/ViewportFrame.yaml @@ -164,8 +164,8 @@ properties: A `Datatype.Vector3` representing the direction of the light source. description: | A `Datatype.Vector3` representing the direction of the light source from - position `Datatype.Vector3|Vector3.new(0, 0, 0)`. Defaults to - `Datatype.Vector3|Vector3.new(-1, -1, -1)`. + position `Datatype.Vector3|vector.zero`. Defaults to + `Datatype.Vector3|vector.create(-1, -1, -1)`. code_samples: type: Vector3 tags: [] diff --git a/content/en-us/reference/engine/classes/WeldConstraint.yaml b/content/en-us/reference/engine/classes/WeldConstraint.yaml index d41826ee7..875782e49 100644 --- a/content/en-us/reference/engine/classes/WeldConstraint.yaml +++ b/content/en-us/reference/engine/classes/WeldConstraint.yaml @@ -131,10 +131,10 @@ properties: local partA = Instance.new("Part") local partB = Instance.new("Part") - partA.Position = Vector3.new(0, 10, 0) + partA.Position = vector.create(0, 10, 0) partA.Parent = workspace - partB.Position = Vector3.new(0, 10, 10) + partB.Position = vector.create(0, 10, 10) partB.Parent = workspace local weld = Instance.new("WeldConstraint") @@ -174,10 +174,10 @@ properties: local partA = Instance.new("Part") local partB = Instance.new("Part") - partA.Position = Vector3.new(0, 10, 0) + partA.Position = vector.create(0, 10, 0) partA.Parent = workspace - partB.Position = Vector3.new(0, 10, 10) + partB.Position = vector.create(0, 10, 10) partB.Parent = workspace local weld = Instance.new("WeldConstraint") diff --git a/content/en-us/reference/engine/datatypes/Instance.yaml b/content/en-us/reference/engine/datatypes/Instance.yaml index 38a47d6bf..f8739ce16 100644 --- a/content/en-us/reference/engine/datatypes/Instance.yaml +++ b/content/en-us/reference/engine/datatypes/Instance.yaml @@ -24,12 +24,12 @@ constructors: ```lua -- Set new instance's parent last (recommended) local part = Instance.new("Part") - part.Position = Vector3.new(0, 10, 0) + part.Position = vector.create(0, 10, 0) part.Parent = workspace -- Set new instance's parent in constructor (discouraged) local part = Instance.new("Part", workspace) - part.Position = Vector3.new(0, 10, 0) + part.Position = vector.create(0, 10, 0) ```` parameters: - name: className diff --git a/content/en-us/reference/engine/datatypes/PathWaypoint.yaml b/content/en-us/reference/engine/datatypes/PathWaypoint.yaml index 3b883bc40..2e9749a6b 100644 --- a/content/en-us/reference/engine/datatypes/PathWaypoint.yaml +++ b/content/en-us/reference/engine/datatypes/PathWaypoint.yaml @@ -9,11 +9,11 @@ description: | create points along a generated path. The code block below constructs a `Datatype.PathWaypoint` variable with - `Vector3.new(10, 10, 10)` as its position, `Enum.PathWaypointAction.Walk` as + `vector.create(10, 10, 10)` as its position, `Enum.PathWaypointAction.Walk` as its action, and `Custom Label` as its label: ```lua - local pos = Vector3.new(10, 10, 10) + local pos = vector.create(10, 10, 10) local waypoint = PathWaypoint.new(pos, Enum.PathWaypointAction.Walk, "Custom Label") ``` @@ -21,7 +21,7 @@ description: | property will be set to default as empty string. ```lua - local pos = Vector3.new(10, 10, 10) + local pos = vector.create(10, 10, 10) local waypoint = PathWaypoint.new(pos, Enum.PathWaypointAction.Walk) ``` @@ -69,7 +69,7 @@ constructors: parameters: - name: position type: Vector3 - default: Vector3.new(0, 0, 0) + default: vector.zero summary: The 3D position of the waypoint. - name: action type: PathWaypointAction diff --git a/content/en-us/reference/engine/datatypes/Region3int16.yaml b/content/en-us/reference/engine/datatypes/Region3int16.yaml index 09ad6216a..1241a33ea 100644 --- a/content/en-us/reference/engine/datatypes/Region3int16.yaml +++ b/content/en-us/reference/engine/datatypes/Region3int16.yaml @@ -36,8 +36,8 @@ description: | ```lua local function Region3int16toRegion3(region16) return Region3.new( - Vector3.new(region16.Min.X, region16.Min.Y, region16.Min.Z), - Vector3.new(region16.Max.X, region16.Max.Y, region16.Max.Z) + vector.create(region16.Min.X, region16.Min.Y, region16.Min.Z), + vector.create(region16.Max.X, region16.Max.Y, region16.Max.Z) ) end ``` diff --git a/content/en-us/resources/battle-royale/building-system.md b/content/en-us/resources/battle-royale/building-system.md index 4b83d7ab9..9ecb0d80a 100644 --- a/content/en-us/resources/battle-royale/building-system.md +++ b/content/en-us/resources/battle-royale/building-system.md @@ -135,7 +135,7 @@ For example, the **Wall** tile type is expressed as follows: ```lua ObjectTypeConfigurations.Wall = { - ASSET_OFFSET_FROM_CENTER = Vector3.new(0, 0, -CELL_DIMENSIONS.Z / 2), + ASSET_OFFSET_FROM_CENTER = vector.create(0, 0, -CELL_DIMENSIONS.Z / 2), CONNECTIVITY = 0xFF8000, -- 0b 111 111 111 000 000 000 000 000 OCCUPANCY = 0x20, -- 0b 00 00 00 00 1 0 0 0 0 0 } diff --git a/content/en-us/resources/battle-royale/minimap-system.md b/content/en-us/resources/battle-royale/minimap-system.md index 6dd6fa7bf..448fbe59f 100644 --- a/content/en-us/resources/battle-royale/minimap-system.md +++ b/content/en-us/resources/battle-royale/minimap-system.md @@ -62,7 +62,7 @@ To customize the minimap or use the minimap system with your own map and minimap