#Best Practice for Structuring a Combat System

1 messages · Page 1 of 1 (latest)

candid flint
#

Hello, I’m currently working on a combat system and was wondering whether it’s better to split it into multiple ModuleScripts. For example, having a CombatServiceClient module placed in ReplicatedStorage, a CombatUtils module in ReplicatedStorage for shared utilities (such as handling cooldowns, helper functions, etc.), and a CombatServiceServer module in ServerStorage so it can’t be decompiled (I don't know any others was to prevent this).

At the moment, everything is implemented in a single module, and honestly, it’s already starting to look quite messy.

void zodiac
#

idk y ur putting server scripts in serverstorage tho

#

i never did that gbefore

slow onyx
frosty sun
#

just deal with it

#

and make a good system

slow onyx
last domeBOT
#

studio** You are now Level 5! **studio

frosty sun
#

and basically you can spy the remotes to know what the server is doing

#

you spy remotes, equip a pet for example and not you got the remote to equip a pet

#

they're going to know what is going on on the server too

#

no point

#

just do safety checks

#

from there you just can't do anything

slow onyx
#

did you even read the ops first message

#

he said he put his module in serverstorage so it cant be decompiled

#

why the fuck would you not just leave it in serverscriptservice like every normal person

#

if a hacker got access to serverscriptservice then you might aswell just delete ur game

slow onyx
#

I hope you rank up in rl tho @frosty sun

simple slate
#

they recreate them based on game and remote and localscript structure

candid flint
candid flint
slow onyx
#

idk why you would put it in serverstorage

deft sphinx
deft sphinx
#

scripts with legacy or server runcontext are not replicated so cannot be decompiled

deft sphinx
#

if you're starting out though it doesn't matter

#

coz you probably won't make a popular game anyway and roblox knows it Thumbs

#

if they didn't why else would they require id verify or purchase before allowing you to publish games

#

... and prevent kids and adults working on the same project at the same time

candid flint
#

@deft sphinx
to my knowledge any replicated code can be decompiled, that means localscripts, modulescripts, and scripts with client runcontext scripts with legacy or server runcontext are not replicated so cannot be decompiled

Alright, thank you so much! I appreciate it

simple slate
candid flint
slow onyx
slow onyx
#

jsut leave it in sss like a normal person