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

Can someone explain why this does not work? I am following a CFrame tutorial. [SOLVED]

Asked by 2 years ago
Edited by JesseSong 2 years ago
local newCFrame = CFrame.Angles(0,math.rad(45),0)

The Part that this script is under does not even move, nor turn 45 degrees.

1
All looks correct. Have you tried multiplying the CFrame with newCFrame? BiIinear 104 — 2y
1
@Bilinear, thanks bro, I just needed to do that lol. I hope it is okay with you if I post your answer as the official one. Ill give you credit. IsaacFriend808 6 — 2y

1 answer

Log in to vote
1
Answered by 2 years ago
-- Answer by Bilinear, be sure to thank him and upvote his comment. 
local part = script.Parent
local newCFrame = CFrame.Angles(0, math.rad(45), 0)
part.CFrame = part.CFrame * newCFrame

Answer by

Ad

Answer this question