local function n() end local function t(n,t,H)for n,B in pairs(n:GetChildren())do if B:IsA(H)and B.Name==t then return B end end return nil end local function H(n,H,B)local S=t(n,H,B)if not S then S=Instance.new(B)S.Name=H S.Parent=n end useEvents[H]=S return S end

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
