Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Where to place a script for a turn based combat system?

Asked by 2 years ago

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.

0
If anyone has ever played adventure story, i want it to be similar to that. Silvanatri 24 — 2y
0
you would want a OOP system for this Puppynniko 1059 — 2y

1 answer

Log in to vote
0
Answered by 2 years ago

Try placing in serverscriptservices if that doesn't work let me know and I will update my answer. Hope this helps!!

Ad

Answer this question