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

How do I orient the face of an object to face the face of another object?

Asked by 2 years ago
Edited 2 years ago

New at CFrame here!

I looked at the Roblox wiki for CFrame and more specifically 'Facing Toward a Point'

and I really do not get how this works at all :)

local GP = game.Workspace.Greenpart
local RB = game.Workspace.RedBlock

local RB_Position = RB.Position
offsetCframe = CFrame.new(0,0,-3)


GP.CFrame = RB.CFrame:ToWorldSpace(offsetCframe, RB_Position) -- Error 



print("Redpart Cframe =", RB.CFrame)

print("Greenpart Cframe = ", GP.CFrame)
0
So you want the front face of an object to face another object's front face? MarkedTomato 810 — 2y
0
Yes ANDREW50060 1 — 2y

Answer this question