Hi! This might be a simple issue for u but I don’t get it.
So here is my problem, I get “Argument 3 missing or nil” error because of this part of code:
CFrame.Angles takes three arguments, not one. You’ve provided 1 Vector3 argument, and have provided nothing (aka nil) for both second and third arguments.
You could do:
local unit = (player.Character:FindFirstChild("HumanoidRootPart").CFrame.lookVector - mouse.Hit.p).Unit
local cframe = CFrame.Angles( unit.X, unit.Y, unit.Z )
though I struggle to see a use case for treating the unit vector as radian inputs to the Angles constructor. What is it you’re trying to achieve?
Thank u for ur reply, I am trying to rotate waist to the direction of the mouse, but its obviously broken, because I am new to this kind of stuff… p.s. dont send me a code or sth like this, bc I am trying to do it by myself
No problem. You’ll need some trigonometry to determine angles between vectors. Best of luck, and experimenting and working things out for yourself is my preferred method too.