I want to make character look at a mouse cursor, but i need some examples on how to make it.
Here is the example of this:
I have tried doing it like this, but it doesnt really work.
local mousePos = mouse.Hit.Position
local mouseTarget = mouse.Target
local RootPart = Char:WaitForChild("HumanoidRootPart")
RootPart.Rotation = Vector3.new(0,mouse.Y,0)