I found where my problem is happening, but I don’t know why it’s happening.
Here is a module called Round and it is requiring another module called WeaponModule.
local teamsModule = require(gameFolder.Teams)
local weaponModule = require(gameFolder.Parent.Player.PlayerWeapon) -- At this point the module stops working.
local playerStatsModule = require(gameFolder.Parent.Player.PlayerStats)
Here is the WeaponModule. It also stops working after I require the Round module:
-- Modules --
local playerStatsModule = require(script.Parent.PlayerStats)
local roundModule = require(script.Parent.Parent.Game.Round) -- At this point the module stops working.
Maybe the problem is that they both are requiring each other and for some reason they hang? What’s weird is that I did not change anything in the Round module and only changed a little bit in the WeaponModule before the problem started happening.