RbxUtil "Net" does not create more than 7 RemoteEvents, etc

Hey, I have a quick and pretty simple issue that might just be down to my overall usage of the utility, but after some searching and trying things out differently in my code, it appears nothing switched this behaviour…

For some reason when using RbxUtil’s Net by sleitnick, no more than 7 Remotes are properly created, despite more being specified.

I wrote a module that starts when the Experience Server does, and it’s supposed to tell Net to construct these Remotes at Start Up, just so they’re ready for the Client if required.

-- [ Services ] --

local ReplicatedStorage: ReplicatedStorage = game:GetService("ReplicatedStorage")

-- [ Variables ] --

-- // Packages

local Packages: Folder = ReplicatedStorage:WaitForChild("Packages")
local Net = require(Packages:WaitForChild("Net"))
local Signal = require(Packages:WaitForChild("Signal"))

-- // Service

local Remote_Constructor = {
	
	["RemoteEvent"] = {
		
		"Emote_Handler",
		"Sync_Audio",
		"Local_Money_Event",
		"Update_Changelog",
		"VR_Check",
		
	};
	
	["UnreliableRemoteEvent"] = {

		"Unreliable_Notification",
		"Unreliable_Footsteps",

	};
	
	["RemoteFunction"] = {
	
		"Get_Audio_Info",
		"Emote_Purchase_Event",
		"Vending_Purchase_Event",
		"ToggleTag_Event",
		"Update_Tag",
		
	};
	
}

-- [ Functions ] --

function Remote_Constructor.Start()
	
	for _, RemoteEvent in Remote_Constructor.RemoteEvent do
		
		Net:RemoteEvent(RemoteEvent)
		
	end
	
	for _, UnreliableRemoteEvent in Remote_Constructor.UnreliableRemoteEvent do

		Net:UnreliableRemoteEvent(UnreliableRemoteEvent)

	end
	
	for _, RemoteFunction in Remote_Constructor.RemoteFunction do

		Net:RemoteFunction(RemoteFunction)

	end
	
end

-- [ Return the Module ] --

return Remote_Constructor

Any ideas what could be causing the issue? Even if I stop using this script I have pasted, it appears the issue still persists when using Net’s API directly. By directly, I mean using the Command Bar, or just writing a regular script that isn’t this one, or letting the individual modules that need these Remotes from Net to construct them, themselves.

image

It’s very important that I find a solution to this, as a Client script is requesting the VR_Check event. However, because it’s never being created, the module fails with an error after 10 seconds as stated by the RbxUtil documentation for Net.

Thank you in advance!

1 Like

I took a further look at the code for Net, and I also cannot seem to figure out what is wrong here.

All it does is check for something that already exists, and if it doesn’t, it creates it which it then returns. Does exactly as the documentation says, except it doesn’t work. Really odd.

Here is that btw: Net | RbxUtil

function Net:RemoteEvent(name: string): RemoteEvent
	name = "RE/" .. name
	if RunService:IsServer() then
		local r = script:FindFirstChild(name)
		if not r then
			r = Instance.new("RemoteEvent")
			r.Name = name
			r.Parent = script
		end
		return r
	else
		local r = script:WaitForChild(name, 10)
		if not r then
			error("Failed to find RemoteEvent: " .. name, 2)
		end
		return r
	end
end

Definitely still need help on this, so I’m bumping the post again.