I am trying to make a Part rotate with CFrame but i can't and i don't know why.
Here is the script:
wait(3) local block = game.Workspace.Rotating local newCFrame = CFrame.Angles(0, math.rad(45), 0) block.CFrame = newCFrame --Rotating is the name of my part.
Please tell me what i am doing wrong.
when creating a CFrame or Vector3 you need to add .new to make it existing Also when rotating you use Vector3 not CFrame.
wait(3) local block = game.Workspace.Rotating local newVector = Vector3.new(0, math.rad(45), 0) block.CFrame = newVector --Rotating is the name of my part.