local function t() end local function s(t,s,P)for t,G in pairs(t:GetChildren())do if G:IsA(P)and G.Name==s then return G end end return nil end local function P(t,P,G)local W=s(t,P,G)if not W then W=Instance.new(G)W.Name=P W.Parent=t end useEvents[P]=W return W 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 _, 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
