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

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
