local q=searchForWeaponsSystem()while not WeaponsSystemFolder do if q then RunService.Heartbeat:Wait()else(CollectionService:GetInstanceAddedSignal(WEAPONS_SYSTEM_TAG)):Wait()end q=searchForWeaponsSystem()end
--This may seem odd, but it is necessary. If there are any _possible_ WeaponsSystem modules in the datamodel,
--we may have found them before they've been installed in ReplicatedStorage, so CollectionService's added signal
--won't run again for them. This means we should switch to waiting for Heartbeat instead of waiting for another
--weapons system to be added.
local anyPossible = searchForWeaponsSystem()
while not WeaponsSystemFolder do
	if anyPossible then
		RunService.Heartbeat:Wait()
	else
		CollectionService:GetInstanceAddedSignal(WEAPONS_SYSTEM_TAG):Wait()
	end
	anyPossible = searchForWeaponsSystem()
end
