So I'm making a class fighting game, and in order to give the player moves, I am gonna need to check what class they'd be in.
Without providing code, could you please explain how you would go about making this system?
So I'm making a class fighting game, and in order to give the player moves, I am gonna need to check what class they'd be in.
Without providing code, could you please explain how you would go about making this system?
Personally what i would do for this is insert a string value into the player when they join the server and set this string value to the class the player has chosen then in the script you could check this string value and it would return the class they are.
Now it depends on what type of "Class Value" it is.The easiest way to make this is to simply add a String Value inside the Player,maybe inside it StarterPack,and edit it there.But if you wanna add stuff like when a player has triggered it class to change to maybe make explosions,particles etc. it best to use a RemoteEvent.
TL;DR Make a String Value inside the Player (StarterPack best) Add a script that checks the Class Value and returns with what code you want.
Why on earth would you put a StringValue into StarterPack?
Doesn't matter where it is, i prefer putting it into StarterPack.It can work in StarterGui,PlayerScripts,StarterPack.
StarterPack is not a good place to put it by any means. A StringValue should not be in the Backpack.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
oooo, i like this method.