For some reason module is being loaded in one module script, but not the other

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    Hello, i followed a tutorial on how to make a combat system and expanded on it, basically i have a folder with 4 module scripts and each one corresponding to an ability, and i created a module basically to stretch parts for some of my abilities
    Screenshot_615
    basically, in the second ability and in the first i do this
function module.Init()
	AttackHitboxes = module.Modules.AttackHitboxes
	RubberModule = module.Modules.RubberModule
end

and the server loads the modules

for _, Module in LoadedModules do
	if type(Module.Init) == "function" then
		Module.Init()
	end
end

and it is identical for both scripts, but for some reason, it dosen’t call the initialize function in the first module, only in the first.

And it actually worked previously, i was just making a system so you can switch characters and it would handle multiple characters, when i tested it it broke and only is broken in the first module

uhmm im not actually that experienced, but i really want to keep developing my game!

i searched and didnt found anything regarding this, if someone wants to help i would really appreciate it!

Are you sure you didn’t just forget to use require() on the modules?

No, if i copy the script, it still for some reason doesn’t load the modules.

can you elaborate? send more of the code. There is not enough information here

sorry for the late answer , was busy, if you still want to help, what would i need to send

Any code where you require other modules like where you define LoadedModules.
Can you also send the link of the tutorial you followed?

hi, so i fixed it myself, it turns out my friend moved some scripts and that broke something. thanks for giving your time