local u=Vector2.new(math.huge,math.huge)local q=TextService:GetTextSize("\083\101\108\101\099\116\105\111\110 \109\111\100\101",12.0,Enum.Font.SourceSans,u)local h=TextService:GetTextSize("\083\072\073\070\084-\084",12.0,Enum.Font.SourceSans,u)local S=TextService:GetTextSize("\071\114\111\117\112\115 \097\110\100 \112\097\114\116\115",12.5,Enum.Font.SourceSans,u)local Y=TextService:GetTextSize("\080\097\114\116\115 \111\110\108\121",12.5,Enum.Font.SourceSans,u)local function p(u)return new("\073\109\097\103\101\076\097\098\101\108",{AnchorPoint=u.IsToolModeEnabled and Vector2.new(0,1)or Vector2.new(0,0);Position=u.IsToolModeEnabled and UDim2.new(0,0,0,-6.0)or UDim2.new(0,0,1,6.0),BackgroundTransparency=1;Image="\114\098\120\097\115\115\101\116\105\100\058\047\047\052\052\052\053\057\053\057\053\050\051";ScaleType=Enum.ScaleType.Slice;SliceCenter=Rect.new(4,4,12,12);ImageColor3=Color3.fromRGB(67,67,67),Size=UDim2.new(0,((q.X+7.5)+h.X)+11.0,0,47.0);Visible=u.Visible},{Arrow=new("\070\114\097\109\101",{BackgroundColor3=Color3.fromRGB(67,67,67),BorderSizePixel=0;AnchorPoint=Vector2.new(.5,.5);Position=u.IsToolModeEnabled and UDim2.new(0,9.0,1,0)or UDim2.new(0,9.0,0,0),Size=UDim2.new(0,5.0,0,5.0);Rotation=45}),Title=new("\084\101\120\116\076\097\098\101\108",{BackgroundTransparency=1,Font=Enum.Font.SourceSans,TextSize=12.0,TextColor3=Color3.new(1,1,1);TextTransparency=.4,Text="\083\101\108\101\099\116\105\111\110 \109\111\100\101",Size=UDim2.new(0,q.X,0,q.Y),Position=UDim2.new(0,4.0,0,4.5)}),Hotkey=new("\084\101\120\116\076\097\098\101\108",{BackgroundTransparency=1,Font=Enum.Font.SourceSansSemibold,TextSize=10.0;TextColor3=Color3.new(1,1,1),TextTransparency=0;Text="\083\072\073\070\084-\084",Size=UDim2.new(0,h.X,0,h.Y);Position=UDim2.new(0,(4.0+q.X)+7.5,0,4.5)}),ScopedIcon=new("\073\109\097\103\101\076\097\098\101\108",{BackgroundTransparency=1;Image="\114\098\120\097\115\115\101\116\105\100\058\047\047\052\052\054\051\048\050\048\056\053\051",ImageTransparency=.6,Position=UDim2.fromOffset(4.0,(2.5+q.Y)+2),Size=UDim2.new(0,14.0,0,14.0),ImageRectOffset=Vector2.new(0,0),ImageRectSize=Vector2.new(14,14)});ScopedLabel=new("\084\101\120\116\076\097\098\101\108",{BackgroundTransparency=1,Font=Enum.Font.SourceSans;TextSize=12.5,TextColor3=Color3.new(1,1,1);Text="\071\114\111\117\112\115 \097\110\100 \112\097\114\116\115";Size=UDim2.new(0,S.X,0,S.Y),Position=UDim2.fromOffset(21.0,(2.5+q.Y)+2);TextXAlignment=Enum.TextXAlignment.Left});DirectIcon=new("\073\109\097\103\101\076\097\098\101\108",{BackgroundTransparency=1,Image="\114\098\120\097\115\115\101\116\105\100\058\047\047\052\052\054\051\048\050\048\056\053\051";ImageTransparency=.6;Position=UDim2.fromOffset(4.0,(((2.5+q.Y)+2)+S.Y)+1),Size=UDim2.new(0,14.0,0,14.0);ImageRectOffset=Vector2.new(14,0);ImageRectSize=Vector2.new(14,14)});DirectLabel=new("\084\101\120\116\076\097\098\101\108",{BackgroundTransparency=1,Font=Enum.Font.SourceSans,TextSize=12.5;TextColor3=Color3.new(1,1,1),Text="\080\097\114\116\115 \111\110\108\121";Size=UDim2.new(0,Y.X,0,Y.Y);Position=UDim2.fromOffset(21.0,(((2.5+q.Y)+2)+S.Y)+1);TextXAlignment=Enum.TextXAlignment.Left})})end return p
-- Text sizes
local TextBoundaries = Vector2.new(math.huge, math.huge)
local TITLE_SIZE = TextService:GetTextSize("Selection mode", 24 / 2, Enum.Font.SourceSans, TextBoundaries)
local HOTKEY_SIZE = TextService:GetTextSize("SHIFT-T", 24 / 2, Enum.Font.SourceSans, TextBoundaries)
local SCOPED_LABEL_SIZE = TextService:GetTextSize("Groups and parts", 25 / 2, Enum.Font.SourceSans, TextBoundaries)
local DIRECT_LABEL_SIZE = TextService:GetTextSize("Parts only", 25 / 2, Enum.Font.SourceSans, TextBoundaries)

local function Tooltip(props)
	return new("ImageLabel", {
		AnchorPoint = props.IsToolModeEnabled and Vector2.new(0, 1) or Vector2.new(0, 0),
		Position = props.IsToolModeEnabled and UDim2.new(0, 0, 0, -12 / 2) or UDim2.new(0, 0, 1, 12 / 2),
		BackgroundTransparency = 1,
		Image = "rbxassetid://4445959523",
		ScaleType = Enum.ScaleType.Slice,
		SliceCenter = Rect.new(4, 4, 12, 12),
		ImageColor3 = Color3.fromRGB(67, 67, 67),
		Size = UDim2.new(0, TITLE_SIZE.X + 15 / 2 + HOTKEY_SIZE.X + 22 / 2, 0, 94 / 2),
		Visible = props.Visible,
	}, {
		Arrow = new("Frame", {
			BackgroundColor3 = Color3.fromRGB(67, 67, 67),
			BorderSizePixel = 0,
			AnchorPoint = Vector2.new(0.5, 0.5),
			Position = props.IsToolModeEnabled and UDim2.new(0, 18 / 2, 1, 0) or UDim2.new(0, 18 / 2, 0, 0),
			Size = UDim2.new(0, 10 / 2, 0, 10 / 2),
			Rotation = 45,
		}),
		Title = new("TextLabel", {
			BackgroundTransparency = 1,
			Font = Enum.Font.SourceSans,
			TextSize = 24 / 2,
			TextColor3 = Color3.new(1, 1, 1),
			TextTransparency = 1 - 0.6,
			Text = "Selection mode",
			Size = UDim2.new(0, TITLE_SIZE.X, 0, TITLE_SIZE.Y),
			Position = UDim2.new(0, 8 / 2, 0, 5 / 2 + 2),
		}),
		Hotkey = new("TextLabel", {
			BackgroundTransparency = 1,
			Font = Enum.Font.SourceSansSemibold,
			TextSize = 20 / 2,
			TextColor3 = Color3.new(1, 1, 1),
			TextTransparency = 0,
			Text = "SHIFT-T",
			Size = UDim2.new(0, HOTKEY_SIZE.X, 0, HOTKEY_SIZE.Y),
			Position = UDim2.new(0, 8 / 2 + TITLE_SIZE.X + 15 / 2, 0, 5 / 2 + 2),
		}),
		ScopedIcon = new("ImageLabel", {
			BackgroundTransparency = 1,
			Image = "rbxassetid://4463020853",
			ImageTransparency = 1 - 0.4,
			Position = UDim2.fromOffset(8 / 2, 5 / 2 + TITLE_SIZE.Y + 2),
			Size = UDim2.new(0, 28 / 2, 0, 28 / 2),
			ImageRectOffset = Vector2.new(0, 0),
			ImageRectSize = Vector2.new(14, 14),
		}),
		ScopedLabel = new("TextLabel", {
			BackgroundTransparency = 1,
			Font = Enum.Font.SourceSans,
			TextSize = 25 / 2,
			TextColor3 = Color3.new(1, 1, 1),
			Text = "Groups and parts",
			Size = UDim2.new(0, SCOPED_LABEL_SIZE.X, 0, SCOPED_LABEL_SIZE.Y),
			Position = UDim2.fromOffset((8 + 26 + 8) / 2, 5 / 2 + TITLE_SIZE.Y + 2),
			TextXAlignment = Enum.TextXAlignment.Left,
		}),
		DirectIcon = new("ImageLabel", {
			BackgroundTransparency = 1,
			Image = "rbxassetid://4463020853",
			ImageTransparency = 1 - 0.4,
			Position = UDim2.fromOffset(8 / 2, 5 / 2 + TITLE_SIZE.Y + 2 + SCOPED_LABEL_SIZE.Y + 1),
			Size = UDim2.new(0, 28 / 2, 0, 28 / 2),
			ImageRectOffset = Vector2.new(14, 0),
			ImageRectSize = Vector2.new(14, 14),
		}),
		DirectLabel = new("TextLabel", {
			BackgroundTransparency = 1,
			Font = Enum.Font.SourceSans,
			TextSize = 25 / 2,
			TextColor3 = Color3.new(1, 1, 1),
			Text = "Parts only",
			Size = UDim2.new(0, DIRECT_LABEL_SIZE.X, 0, DIRECT_LABEL_SIZE.Y),
			Position = UDim2.fromOffset((8 + 26 + 8) / 2, 5 / 2 + TITLE_SIZE.Y + 2 + SCOPED_LABEL_SIZE.Y + 1),
			TextXAlignment = Enum.TextXAlignment.Left,
		}),
	})
end

return Tooltip
