✓ Accepted answer
I'll start off by saying CFrame is wack at first. When moving parts using CFrame, the parts move based on their own XYZ axis, not the global one. (The global axis is the default axis, the part's axis accounts for the rotation of the part).
In addition, to move a part, you need to multiply the CFrames.
wheel.CFrame = wheel.CFrame * CFrame.new(0,.01,0)
you can mess around with the CFrame numbers to refine how the wheel moves. If you need to rotate the wheel using CFrame, try this:
wheel.CFrame = wheel.CFrame * CFrame.Angles(math.rad(deg),math.rad(deg),math.rad(deg))
you replace "deg" with the number of degrees you want rotated for that axis. "math.rad" is required because CFrame.Angles() defaults to radians.
For more info see this:https://developer.roblox.com/en-us/api-reference/datatype/CFrame
If you need more assistance, reach out to me @BlobMaster#8156 or message me on roblox. Pls only do this for questions related to this topic.
I hope you found this helpful. Till next time.
2 comments
Thank you!
Short answer: Math.rad stands for math.radians, converts cframe.angle to radians.