function handleTappedInput(input)
local keyPressed = input.KeyCode
if keyPressed == Client.Controls.MobileReload and not Client.Status.Reloading and Client.Status.Equipped then
if Client.Status.Patrolling then
Client.AnimationTracks['Hold']:Play()
Client.AnimationTracks['Patrol']:Stop()
Client.Status.Patrolling = false
if Client.Humanoid.MoveDirection ~= Vector3.new(0,0,0) and not Client.Status.Patrolling then
Client.AnimationTracks['Walk']:Play(.2)
Client.Status.isWalking = true
end
reloadWeapon()
else
reloadWeapon()
end
elseif keyPressed == Client.Controls.MobilePatrol and not Client.Status.Reloading and Client.Status.Equipped then
lowerWeapon()
elseif keyPressed == Client.Controls.MobileElse and Client.Status.Equipped then
if Client.Firingmode == 'AUTOMATIC' then Client.Firingmode = 'SEMI-AUTOMATIC' elseif Client.Status.canFullauto then Client.Firingmode = 'AUTOMATIC' end
--
if Client.GUI and Client.GUI:FindFirstChild('Mode') and Client.Firingmode == 'AUTOMATIC' then
Client.GUI.Mode.Text = 'AUTO'
elseif Client.GUI and Client.GUI.Mode then
Client.GUI.Mode.Text = 'SEMI'
end
elseif keyPressed == Client.Controls.MobileElse then
-- change reticle
end
end ```
I added this to the Avacore FirearmClient script, why isn't it working?
FirearmStats mobile controls:
```lua
Controls = {
Reload = Enum.KeyCode.R;
Patrol = Enum.KeyCode.E;
ChangeReticle = Enum.KeyCode.Z;
ChangeFiremode = Enum.KeyCode.B;
Crouch = Enum.KeyCode.C;
Stand = Enum.KeyCode.X;
MobileReload = gui.MobileGUI.EButton.TouchTap;
MobilePatrol = gui.MobileGUI.RButton.TouchTap;
MobileElse = nil;
};
```