local r=Cheer.CreateComponent("\066\084\084\111\111\108\116\105\112",View)local H={}function r.Start()View.Visible=false H.ShowOnEnter=Support.AddGuiInputListener(View.Parent,"\066\101\103\097\110","\077\111\117\115\101\077\111\118\101\109\101\110\116",true,r.Show)H.HideOnLeave=Support.AddGuiInputListener(View.Parent,"\069\110\100\101\100","\077\111\117\115\101\077\111\118\101\109\101\110\116",true,r.Hide)r.OnRemove:connect(ClearConnections)return r end function r.Show()View.Visible=true end function r.Hide()View.Visible=false end function ClearConnections()for r,o in pairs(H)do o:disconnect()H[r]=nil end end return r.Start()
-- Create component
local Component = Cheer.CreateComponent("BTTooltip", View)

local Connections = {}

function Component.Start()
	-- Hide the view
	View.Visible = false

	-- Show the tooltip on hover
	Connections.ShowOnEnter = Support.AddGuiInputListener(View.Parent, "Began", "MouseMovement", true, Component.Show)
	Connections.HideOnLeave = Support.AddGuiInputListener(View.Parent, "Ended", "MouseMovement", true, Component.Hide)

	-- Clear connections when the component is removed
	Component.OnRemove:connect(ClearConnections)

	-- Return component for chaining
	return Component
end

function Component.Show()
	View.Visible = true
end

function Component.Hide()
	View.Visible = false
end

function ClearConnections()
	-- Clears out temporary connections

	for ConnectionKey, Connection in pairs(Connections) do
		Connection:disconnect()
		Connections[ConnectionKey] = nil
	end
end

return Component.Start()
