Need help understanding how to organize certain scripts

There something I’ve been struggling to grasp, and I haven’t really found the solution, or maybe I just don’t know how to refer to this. But I’ve been struggling to know how to organize my scripts in this certain way or how to approach this situation. It involves scripting related to the player’s character.

The games I’m referring to are mostly like those from Minigames, Fighting Games and so on where the player often have what they can or cannot do changed often, if that make sense?

Like how your character goes from being able to do nothing within the lobby to, once the minigame starts, can pick up and throw snowballs. Or let’s say a fighting game, where you’re unable to do anything within the lobby, but then when you select a character, you’re given the ability that the characters have.

I hope I’m not rambling and some of you understand what I mean.

The solution I had for the minigame one, was to have a folder within ReplicatedStorage, where it copies a script onto the player, allowing them to throw the snowballs and so on, but wouldn’t that be too messy or unorganized if you have too many minigames?

1 Like

I am not an expert in this field, but I cannot grasp why that would be messy or unorganized in any capacity.

1 Like

Just a guess from your description, but it’s likely each player has a module that contains the settings, and another module that contains the abilities. A script compares the settings and abilities on request to use them. However, this structure is exploitable so I’m not sure what other security may be put on it or other methods used.

1 Like

I’m more than likely overthinking and over-planning this. I figured it would get too cluttered if there were too many minigames.

1 Like

I’ll try this out, even if it is exploitable, still points me to the direction of how I wanna learn these kind of stuff other than the simple scripts that I’ve been making so far. I’ll look or figure out how to make it less exploitable or use some other methods as I get better at this. Thank you very much!

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.