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

What should I use when I want to increment a position of a part CFrame or Vector3?

Asked by 4 years ago
local redblock = game.Workspace.RedBlock
local bluecube = game.Workspace.BlueCube

redblock.Position = Vector3.new(redblock.Position.X,redblock.Position.Y + 50, redblock.Position.Z)
redblock.CFrame = CFrame.new(redblock.Position.X,redblock.Position.Y + 50, redblock.Position.Z)

is there anything different about them if so what should I use and what is more efficient?

0
I would've taken the original value and incremented it with a new value instead. like such: redblock.Position = redblock.Position + Vector3.new(0,50,0)) ScuffedAI 435 — 4y

Answer this question