local f=Cheer.CreateComponent("\066\084\084\111\111\108\116\105\112",View)local R={}function f.Start()View.Visible=false R.ShowOnEnter=Support.AddGuiInputListener(View.Parent,"\066\101\103\097\110","\077\111\117\115\101\077\111\118\101\109\101\110\116",true,f.Show)R.HideOnLeave=Support.AddGuiInputListener(View.Parent,"\069\110\100\101\100","\077\111\117\115\101\077\111\118\101\109\101\110\116",true,f.Hide)f.OnRemove:Connect(ClearConnections)return f end function f.Show()View.Visible=true end function f.Hide()View.Visible=false end function ClearConnections()for f,s in pairs(R)do s:disconnect()R[f]=nil end end return f.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()
