for some reason it only happens whenever i move backwards in the range of degrees in front of me and in third person
video
External Mediawhen i remove the script that makes you look at your cursor it works completely fine without this happening
part of script here:
game:GetService("RunService").RenderStepped:connect(function()
torso = character:FindFirstChild("Torso")
if inputservice.KeyboardEnabled == false then
ismobile = true
else
ismobile = false
end
local isdashing = false
local tracks = player.Character.Humanoid.Animator:GetPlayingAnimationTracks()
if tracks then
for _, track in ipairs(tracks) do
if track.Priority == Enum.AnimationPriority.Action4 then
isdashing = true
end
end
end
if isdashing == false and torso and ismobile == false and player.Character.Humanoid.Health > 0 then
torsoPos = torso.Position
dir = (mouse.Hit.Position - torsoPos).unit
torso.CFrame = CFrame.new(torsoPos) * CFrame.Angles(0, atan2(dir.X, dir.Z) + pi, 0)
end
end)
im going to sleep now so i hope i see some potential fixes