#Utility Module Recommendation

1 messages · Page 1 of 1 (latest)

grand pilot
#

Fairly new to roblox deving, but i notice there are some community module scripts everyone tends to recommend like signals, made/trove, etc. What are some other ones that devs usually use?

lusty shale
#

use GoodSignal instead of BindableEvent if you want it more atomic.

grand pilot
#

anything to erase waitchains off of my scripts?

lusty shale
#

waitchaines?

#

oh okay like wait(time )....

grand pilot
#

like WaitForChild("XYZ"):WaitForChild("YZX")

#

its getting out of hand

lusty shale
#

lol, okay, well you could i guess make like a function(Path:sting) -> instance

ancient nymph
#

where are you using waitforchild?

#

you may want to know how the replication works

grand pilot
#

usually in module scripts, mostly waiting on remoteEvents/instances

#

ServerScriptService for now, havent touched much client side code

#

trying to switch to a module loader, not sure if that would help or hurt that issue

lusty shale
#

Well one tthing which could help alot is, game stucture, and declearing smart. cause when requiring(path) you dont to wait it

lusty shale
#

its a scam even

#

the youtube vids are scamming your time

grand pilot
#

ive been wanting to try to make one because i do like the "Your modules shouldnt be to dependent on other for reusability" philosophy, mostly because i havent made too many scripts so far

lusty shale
#

just do _G["Module"] and place your frekvent used stuff close to the root of the service

grand pilot
#

so it seemed like a good architecture to start with, not to sure of many other though, to be fair

lusty shale
#

Trust me its not needed

#

when you have a moudle loader it is a moudle easier required, like require(ReplicatedStorgae.ModuleLoader) and then call the functions inside of it

#

that is as much step or even lesser step then doing require(ReplicatedStorage.YourService)

#

or like require(ReplicatedStoage.Services.YourServices)

#

But yea idk, chose what you think works, just giving another perspective. and for networking i just use Zap which is pretty easy to require

grand pilot
#

like client-server networking? or script-script

lusty shale
#

client-server

#

every event is in one modulescript, and it only need two events. to work. I think it has helped me a lot

#

mad easy

ancient nymph
#

modules scripts are way easier and faster than using _G

umbral path
#

Forget everything about module script

ancient nymph
#

oh hell nah

#

module scripts is the base of like all games

umbral path
#

but he can try to understand basic things

ancient nymph
#

yeah

umbral path
#

that’s good point

#

if you have a map loader and on your module script client you are locating a part that is not ingame yet you will have infinite yield issue that will broke the script

#

if you have a module loader system you will be able to make it when it’s initialized

#

before returning the value

#

and without avoiding the require of the module script

grand pilot
#

just starting on a big project and wanted a good foundation

#

module scripts seem cut and dry, but i dont think ive ever worked with more than 10 scripts, and now i have around 30 so i want to make sure my bases are covered

gentle forge
#

perfect usecase for ai

grand pilot
#

wym

gentle forge
#

ask ai for architectures