So I’m working on a game related to magic, where players will have a type of magic and they’ll earn more spells by training.
I’m currently making the spells, but I have no idea how to organize this. I want the spells to be run mostly client-side to reduce lag (except for the damaging part, which will be handled on the server), but I don’t want to make a RemoteEvent for every spell, or a local script for every spell. I thought of having a unique Remote Event and a unique LocalScript, which would work by having a Script for each spell firing the RemoteEvent to all clients with a function that runs the spell as an argument, but then I found out functions can’t be passed as arguments.
Any ideas on how I could work this out?