I am confused as to what this line of code does:
Part.CFrame = HumanoidRootPart.CFrame * CFrame.new(0, -3.25, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(Angle), 0) * CFrame.new(0, 0, -18)
The point at which I am confused on is the CFrame.fromEulerAnglesXYZ part. I have no idea what this does and how this works in this situation.
Help is much appreciated.
1 Like
CFrame.fromEulerAnglesXYZ
is a method of orientating/rotating parts using their CFrames.
1 Like
Thanks for the reply. What is the difference from CFrame.fromEulerAnglesXYZ
and CFrame.Angles
?
paetemc2
(Dragon_bloxy)
April 30, 2023, 7:25am
#4
there is no difference, those do the exact same thing
2 Likes
Yep, and @AustnBlox to clarify my earlier response EulerAngles are just used to get the angles not to set them. You would still just use them as information in order to write to the CFrame in a CFrame =
statment.
1 Like
system
(system)
Closed
May 14, 2023, 7:29am
#6
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.