ContextActionService:BindAction("PlayerInput", playerInput, false, Enum.KeyCode.W,Enum.UserInputType.Touch)

This will run the "BindAction" function every time the W key is pressed or the screen is touched on a touch screen.

When this happens the W key will no longer move the character forward and touching the screen will not move the camera. How do I reset it back to the game defaults for when I need to?

3 comments

0

Does unbinding the function not work?

0

Why don't you just use the UserInputService instead?

0

unbinding works! I did something else wrong that caused it to not work and thought unbinding wasn't the way. thank you