Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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.

2 comments

0

If anyone has ever played adventure story, i want it to be similar to that.

0

you would want a OOP system for this

1 answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.