How to make the humanoid root part follow the direction of the mouse?
t=Instance.new("BodyGyro",script.Parent.Parent.Character.HumanoidRootPart)
t.maxTorque = Vector3.new(0,math.huge,0)
while true do
Character=script.Parent.Parent.Character
Player=game.Players.LocalPlayer
mouse=Player:GetMouse()
Character.HumanoidRootPart.BodyGyro.CFrame = CFrame.new(Character.HumanoidRootPart.Position,mouse.Hit.p)
wait()
end
This is what I tried but it makes it rotate slow and it will go to the direction of the mouse but the it will go the fastest route instead of following the mouse exactly.