Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local InstallerWindowFrame1 = Instance.new("ScreenGui")
- local WindowFrame1 = Instance.new("Frame")
- local WindowScrollingFrame1 = Instance.new("ScrollingFrame")
- local InstallCalculator = Instance.new("TextButton")
- local UI1 = Instance.new("UICorner")
- local InstallAiChat = Instance.new("TextButton")
- local TopBarPanel = Instance.new("TextLabel")
- local TopBarPanelUICorner = Instance.new("UICorner")
- local CloseInstallerButton = Instance.new("ImageButton")
- local SearchBar = Instance.new("TextBox")
- InstallerWindowFrame1.Parent = game.CoreGui
- TopBarPanelUICorner.Parent = TopoBarPanel
- WindowFrame1.Parent = TopBarPanel
- WindowFrame1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- WindowFrame1.Position = UDim2.new(0, 0, 0.8, 0)
- WindowFrame1.Size = UDim2.new(0, 500, 0, 255)
- UI1.Parent = WindowFrame1
- TopBarPanel.Name = "TopBarPanel"
- TopBarPanel.Parent = InstallerWindowFrame1
- TopBarPanel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TopBarPanel.Size = UDim2.new(0, 500, 0, 25)
- TopBarPanel.Font = Enum.Font.GothamBold
- TopBarPanel.Text = "Installer"
- TopBarPanel.TextColor3 = Color3.fromRGB(0, 0, 0)
- TopBarPanel.TextScaled = true
- TopBarPanel.TextSize = 14.000
- TopBarPanel.TextWrapped = true
- TopBarPanel.BorderSizePixel = 5
- TopBarPanel.Position = UDim2.new(0, 0, 0, 0)
- TopBarPanel.TextXAlignment = Enum.TextXAlignment.Left
- TopBarPanelUICorner.Parent = TopBarPanel
- WindowScrollingFrame1.CanvasSize = UDim2.new(0, 0, 10, 0)
- WindowScrollingFrame1.ScrollBarImageColor3 = Color3.new(0.137255, 0.211765, 0.266667)
- WindowScrollingFrame1.ScrollBarThickness = 8
- WindowScrollingFrame1.Active = true
- WindowScrollingFrame1.BackgroundColor3 = Color3.new(0.101961, 0.101961, 0.101961)
- WindowScrollingFrame1.BackgroundTransparency = 1
- WindowScrollingFrame1.BorderSizePixel = 0
- WindowScrollingFrame1.Position = UDim2.new(0.2, 0, 0.00914634112, 0)
- WindowScrollingFrame1.Size = UDim2.new(0.8, 0, 0.9, 0)
- WindowScrollingFrame1.Name = "WindowScrollingFrame1"
- WindowScrollingFrame1.Parent = WindowFrame1
- CloseInstallerButton.Name = "CloseInstallerButton"
- CloseInstallerButton.Parent = TopBarPanel
- CloseInstallerButton.BorderSizePixel = 0
- CloseInstallerButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- CloseInstallerButton.Position = UDim2.new(0.94, 0, 0, 0)
- CloseInstallerButton.Size = UDim2.new(0, 23, 0, 23)
- CloseInstallerButton.Image = "rbxassetid://385868188"
- CloseInstallerButton.MouseButton1Down:connect(function()
- TopBarPanel:Remove()
- end)
- InstallCalculator.Name = "Calculator"
- InstallCalculator.Parent = WindowScrollingFrame1
- InstallCalculator.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- InstallCalculator.Position = UDim2.new(0.02, 0, 0.04, 0)
- InstallCalculator.Size = UDim2.new(0, 355, 0, 40)
- InstallCalculator.Font = Enum.Font.GothamBold
- InstallCalculator.Text = "Install Calculator"
- InstallCalculator.AnchorPoint = Vector2.new(0, 0)
- InstallCalculator.TextColor3 = Color3.fromRGB(0, 0, 0)
- InstallCalculator.TextScaled = false
- InstallCalculator.BorderSizePixel = 2
- InstallCalculator.TextSize = 15
- InstallCalculator.TextWrapped = true
- InstallCalculator.TextXAlignment = Enum.TextXAlignment.Left
- InstallAiChat.Name = "AiChat"
- InstallAiChat.Parent = WindowScrollingFrame1
- InstallAiChat.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- InstallAiChat.Position = UDim2.new(0.0714285746, 7, 0, 0)
- InstallAiChat.Size = UDim2.new(0, 79, 0, 31)
- InstallAiChat.Font = Enum.Font.GothamBold
- InstallAiChat.Text = "Install AiChat"
- InstallAiChat.AnchorPoint = Vector2.new(0, 0)
- InstallAiChat.TextColor3 = Color3.fromRGB(0, 0, 0)
- InstallAiChat.TextScaled = true
- InstallAiChat.BorderSizePixel = 2
- InstallAiChat.TextSize = 14.000
- InstallAiChat.TextWrapped = true
- SearchBar.Name = "SearchBar"
- SearchBar.Parent = WindowScrollingFrame1
- SearchBar.BackgroundColor3 = Color3.new(255, 255, 255)
- SearchBar.Position = UDim2.new(0.02, 0, 0.02, 0)
- SearchBar.Size = UDim2.new(0, 355, 0, 40)
- SearchBar.Font = Enum.Font.Code
- BorderSizePixel = 1
- SearchBar.FontSize = Enum.FontSize.Size18
- SearchBar.PlaceholderText = "Search 🔎"
- SearchBar.TextColor3 = Color3.new(0, 0, 0)
- SearchBar.TextSize = 15
- SearchBar.TextWrapped = true
- SearchBar:GetPropertyChangedSignal("Text"):Connect(function()
- end)
- local UserInputService = game:GetService("UserInputService")
- local gui = TopBarPanel
- local dragging
- local dragInput
- local dragStart
- local startPos
- local function update(input)
- local delta = input.Position - dragStart
- gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- end
- gui.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- dragging = true
- dragStart = input.Position
- startPos = gui.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- gui.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- dragInput = input
- end
- end)
- UserInputService.InputChanged:Connect(function(input)
- if input == dragInput and dragging then
- update(input)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement