local g=Vector2.new(math.huge,math.huge)local o=TextService:GetTextSize("\083\101\108\101\099\116\105\111\110 \109\111\100\101",12.0,Enum.Font.SourceSans,g)local B=TextService:GetTextSize("\083\072\073\070\084-\084",12.0,Enum.Font.SourceSans,g)local u=TextService:GetTextSize("\071\114\111\117\112\115 \097\110\100 \112\097\114\116\115",12.5,Enum.Font.SourceSans,g)local W=TextService:GetTextSize("\080\097\114\116\115 \111\110\108\121",12.5,Enum.Font.SourceSans,g)local function I(g)return new("\073\109\097\103\101\076\097\098\101\108",{AnchorPoint=g.IsToolModeEnabled and Vector2.new(0,1)or Vector2.new(0,0),Position=g.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,((o.X+7.5)+B.X)+11.0,0,47.0),Visible=g.Visible},{Arrow=new("\070\114\097\109\101",{BackgroundColor3=Color3.fromRGB(67,67,67),BorderSizePixel=0,AnchorPoint=Vector2.new(.5,.5);Position=g.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,o.X,0,o.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,B.X,0,B.Y);Position=UDim2.new(0,(4.0+o.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+o.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,u.X,0,u.Y);Position=UDim2.fromOffset(21.0,(2.5+o.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+o.Y)+2)+u.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,W.X,0,W.Y);Position=UDim2.fromOffset(21.0,(((2.5+o.Y)+2)+u.Y)+1),TextXAlignment=Enum.TextXAlignment.Left})})end return I

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
