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

CFrame Rotation Problem, help?

Asked by 7 years ago

I am trying to make an UnionOperation instance point at the torso's direction, while keeping it's original rotation.

It's Rotations are: X: 110.063 Y: -6.758 Z: -26.422

I've tried

local ROT = nil -- Rotation
local tot = nil -- Final Result

ROT=Vector3.new(X, Y, Z)

tot = CFrame.new(CFr1, ROT) -- CFr1 is position, wich works
--tot (total) doesn't make it keep it's correct rotation.

How do I fix this?

0
The second parameter of CFrame.new is where the part is facing. I don't believe you can put in a random rotation value. I'll see what I can figure out. TheDeadlyPanther 2460 — 7y

Answer this question