Hello, I'm Having issues with my player character movement. I'm trying to make resident evil tank control, and my player can rotate; however, he can't move forward or backward, and I'm not sure what I'm doing wrong. Here is the player script
`extends CharacterBody3D
@export var Move_Speed = 1000
@export var Rotation_Speed = 180
const Gravity = 98
const Max_fall = 30
var Y_Velocity = 0
var Z_Velocity = 0
var Turn_direction = 0
func _physics_process(delta):
var Turn_Direction = 0
var Movement_Direction = 0
if Input.is_action_pressed("Up"):
Movement_Direction += 1
if Input.is_action_pressed("Down"):
Movement_Direction -= 1
if Input.is_action_pressed("Right"):
Turn_Direction -= 1
if Input.is_action_pressed("Left"):
Turn_Direction = 1
rotation_degrees.y += Turn_Direction * Rotation_Speed * delta
var Move_velocity = global_transform.basis.z * Move_Speed * Movement_Direction
Move_velocity.y = Y_Velocity
move_and_slide()
`