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.
To do this I would use CFrame rather than BodyGyro.
local plr = game.Players.LocalPlayer local char = plr.Character or plr.CharacterAdded:wait() local root = char:WaitForChild('HumanoidRootPart') local mouse = plr:GetMouse() game:GetService('RunService').RenderStepped:Connect(function() root.CFrame = CFrame.new(root.CFrame.p,root.CFrame.p + Vector3.new(mouse.hit.lookVector.x,0,mouse.hit.lookVector.z)) end)