I'm creating a combat RPG. I plan for the combat system to all be run from one main script in the workspace so that if I have to make a change, I can just edit one script instead of repeat the same changes over dozens of sub-scripts. The way the combat system will work is there will be one function for every attack in the game. On average, each function ends up being 200 lines long and I plan to have at least 100 attack moves in the game. If I continue with this approach of having one main script, there will be 100 functions in it, bringing the total number of lines above 20,000. Is this a bad idea? Will it lag my game? Is there a better way that I could handle all my attacks while still keeping it easy to make changes? If so, what could I do?
no it isnt, unless if the first line is a
game:GetService("RunService").RenderStepped:Connect(function()
but apart from that should be fine