My steering system for mobile is acting up

  1. What do you want to achieve? Keep it simple and clear!
    Hello i want to try and create a smooth steering system for mobile players
  2. What is the issue? Include screenshots / videos if possible!
    whenever i use the car on mobile the steering would bug out a lot when driving for example it would be inverted or wouldn’t steer the right way.
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    i couldn’t find any answers to my problem
    here’s what my steering system does whenever i’m not moving this is what i want to happen whenever i’m driving around
local inputservice = game:GetService("UserInputService")
local player = game:GetService('Players').LocalPlayer
local character = player.Character
inputservice.TouchMoved:Connect(function(touch, gp)
	if character.Humanoid.MoveDirection ~= then
		local Pos = (character.Humanoid.MoveDirection.Z)
		Wheel.Rotation = math.deg(Pos)
		RotationValue.Value = Pos
		LeftWheelTurn.TargetAngle = Pos * 45
		RightWheelTurn.TargetAngle = Pos * 45