How do I re-bind the move backward and left actions

I used this script to remove the W key to move forward and the S key to go backward, and in part of my game I want to rebind it.

local ContextActionService = game:GetService("ContextActionService")
ContextActionService:UnbindAction("moveForwardAction")
ContextActionService:UnbindAction("moveBackwardAction")

How would I do that?

1 Like

Someone has already posted this :slight_smile:

I don’t think you understand. I want to re-bind the actions at a certain time.

You can do this using a RemoteEvent to tell this client script to change over to something else.

You also did not say that :eyes:

It’s okay, but you can just use a RemoteEvent to tell clients it’s time to change to a new binding.

Edit: Remove quote.

I’m confused on how to do that.

Making a game for a demo, give me a bit.

1 Like

Here you go! keyrebind - Roblox

2 Likes