#Class Select Help

1 messages · Page 1 of 1 (latest)

whole fulcrum
#

I need help on the optimal way to make a class select, as I need it to fit certain context, for example if you pick "Class 1", you can now use certain keybinds and such. The way I thought about doing this was setting a bool value to true if you pick the class and then it lets you use the keybinds, but I was wondering if there was a better way of doing it.

shy orbit
#

uhh

#

mh.

#

this is horribly complex

#

but listen

#

Create a input manager

#

and add all the inputs u need

#

then make a ClassManager

#

and there you make a type for classes

#

export type Class = {
whatever you need
}

#

or something

#

and then make another set of modules for each individual class

#

THEN insert an ObjValue in player

#

thru localscripts

#

then

#

ObjValue.Value: Class (forces it to be a class) = {
assign functions for all the values u inserted
}

#

and then go back to the inputmanager and then refernce the ObjValue and its funcs

#

so that they can be called

#

this should work just about fine

#

if not, ask a s2

whole fulcrum
#

oh nvm 💀I just reread it

#

thanks for the help

#

i'll come back If I get stuck

noble whale
#

Ability 1 = {config for ability, make sure to add the input(s) here}