I am creating a turn based combat system which is quite a different setup from normal hack'n/slash combat and i am confused on where to put the script. One of the main things i am confused about is how players interact with different types of scripts. If i create a script under replicatedstorage with a large amount of remote functions/events and debounces, do each player get their own script or will multiple people access the script at the same time and will cause chaos with the debounces if more than 1 battle is going on.
Maybe just put it in the playerscripts? Will module scripts be a better choice along with using playerscripts? I have never used player scripts before and never coded this type of thing so my mind is having trouble wrapping around this problem. Also having problem coming up with a way to sync the enemy npc and player for the battle.
Any help will be appreciated.
Try placing in serverscriptservices if that doesn't work let me know and I will update my answer. Hope this helps!!