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

Is ToWorldSpace basically a sugar syntax for incrementing cframe?

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


redblock.CFrame = bluecube.CFrame:ToWorldSpace(CFrame.new(0,50,0))

-- Is basically the same thing as 

redblock.CFrame = CFrame.new(bluecube.Position) + Vector3.new(0,50,0)

-- And that is basically the same thing as

redblock.Position  = Vector3.new(bluecube.Position) + Vector3.new(0,50,0)


So I was wondering is there anything different between the 3

I noticed that

redblock.CFrame = CFrame.new(bluecube.Position) + Vector3.new(0,50,0)

rotates the orientation of the part a lil bit

0
That's not syntax. programmerHere 371 — 4y

Answer this question