So I have a script that will make the user follow the rotation of the mouse, but when i look directly down my character starts tweaking out and going really fast in a certain direction. How would i fix this? Script:
RunService.RenderStepped:Connect(function()
if UsingMove == true then
local MousePos = Mouse.Hit.Position
local RootPos = Root.Position
Root.CFrame = CFrame.lookAt(RootPos, MousePos)
end
end)
I’ve tried making it only move the upper torso but it doesn’t work. Making the torso the only thing that moves still moves the legs and moving only the arms and head puts me under the map.