-
I want to make an object rotate using mouse movement, but I have some problems.
-
Here’s how it currently works.
So, when I move the mouse along the X-axis, the object moves in one direction, and when I move it along the Y-axis, it moves in another. However, when I rotate the object, its rotation seems to follow completely different axes.
example:
my code:
local mousedelta = uis:GetMouseDelta()
drx+=mousedelta.X
dry+=mousedelta.Y
grabForce.CFrame = (cf-cf.Position)*CFrame.Angles(math.rad((drx)),math.rad((dry)),0)