I’m making a 2D platformer, and I’m trying to unbind both moveFowardAction
and moveBackwardAction
. It’s not working, no errors, but how would I do this? I got the code from another topic but it’s not working. Any ideas/solutions?
2 Likes
Have you read further in? Also, user input is only client sided and so only works in local scripts from the documentation on context action services:
Since ContextActionService deals with user input, you can only use it in
LocalScripts
which run on the client
Also places where local scripts will work:
A LocalScript will only run Lua code if it is a descendant of one of the following objects:
- A Player’s
Backpack
, such as a child of aTool
- A Player’s
character
model- A Player’s
PlayerGui
- A Player’s
PlayerScripts
.- The
ReplicatedFirst
service
1 Like