local function G() end local function M(G,M,t)for G,m in pairs(G:GetChildren())do if m:IsA(t)and m.Name==M then return m end end return nil end local function t(G,t,m)local D=M(G,t,m)if not D then D=Instance.new(m)D.Name=t D.Parent=G end useEvents[t]=D return D end
--// No-opt connect Server>Client RemoteEvents to ensure they cannot be called
--// to fill the remote event queue.
local function emptyFunction()
	--intentially empty
end

local function GetObjectWithNameAndType(parentObject, objectName, objectType)
	for i, child in pairs(parentObject:GetChildren()) do
		if child:IsA(objectType) and child.Name == objectName then
			return child
		end
	end

	return nil
end

local function CreateIfDoesntExist(parentObject, objectName, objectType)
	local obj = GetObjectWithNameAndType(parentObject, objectName, objectType)
	if not obj then
		obj = Instance.new(objectType)
		obj.Name = objectName
		obj.Parent = parentObject
	end
	useEvents[objectName] = obj

	return obj
end
