Trying to get into Back-End development

I want to get into it but have no idea where to start. I want to set up an anime-game framework so the first thing that came to mind was “How am I going to make it so you can equip a single ability to different keys”, because if I used UserInputService it’d only detect that one key and if I used ContextActionService and binded it to that action, how would I change that binding later on, and now I’m stuck , any help?

1 Like

I’ve not done anything similar to this before, but maybe create a string value in the player called Skill1, that changes when you equip a skill, and then when you press E, for example, it looks at the value of that StringValue?

1 Like

I believe you can un-bind things from ContextActionService, so you allow for moving the abilities and such, and simply fire them off on the server using RemoteEvents or RemoteFunctions if you need a callback. You can have a script handling all of the skills on the server.

1 Like

but how would thye be handled on the server if for them to be unbinded I’d need to use ContextActionService in a local script?

You only use ContextActionService in a LocalScript because it runs client-sided. Have anything you want to show on the client (client-side effects, text, etc.) run, and then run a RemoteEvent or RemoteFunction from the client to the server, where the actual attack/move will run (causing damage), as well as any server-sided effects that you want all players to see.

Along with this, to unbind things you can use UnbindAction() and/or UnbindActivate() to unbind the events (ON THE CLIENT) from ContextActionService