Keyboard Arrow Movement issue

How do i make Right and Left Arrow Walking instead change Camera direction?

1 Like

Could you word your question better I didnt really understand it

1 Like

This

But you mentioned something about camera direction, so you dont want it to change the camera direction I presume?

Yes i dont want it change the camera direction And Replace it to normal walk

When you work by using Right and Left Arrow on Keyborad it change direction That why

Yeah I get exactly what you mean now, I think maybe if you use contextactionservice you might be able to unbind those keys from moving the camera, im not 100% sure though

1 Like

i see But that seem hard for me would you able to get me a Code please?

Hold on let me try something really quickly

Alright so yes you do need to use contextactionservice, but the one problem is that you need to figure out how to make the player move left and right since I unbinded the actions, this can be found inside of the player in the players service in the keyboard module under control module

image

local context = game:GetService("ContextActionService")

function moveLeft()
	
end

function moveRight()
	
end

context:BindAction("moveLeftAction",moveLeft,false,Enum.KeyCode.Left)
context:BindAction("moveRightAction",moveRight,false,Enum.KeyCode.Right)
1 Like

tysm for suggestion and now it work

1 Like

Hello, how were you able to get it to work? Did you override the Keyboard module in the Player?