Advertisement
ERROR_CODE

Installer

Sep 27th, 2023 (edited)
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.35 KB | None | 0 0
  1. local InstallerWindowFrame1 = Instance.new("ScreenGui")
  2. local WindowFrame1 = Instance.new("Frame")
  3. local WindowScrollingFrame1 = Instance.new("ScrollingFrame")
  4. local InstallCalculator = Instance.new("TextButton")
  5. local UI1 = Instance.new("UICorner")
  6. local InstallAiChat = Instance.new("TextButton")
  7. local TopBarPanel = Instance.new("TextLabel")
  8. local TopBarPanelUICorner = Instance.new("UICorner")
  9. local CloseInstallerButton = Instance.new("ImageButton")
  10. local SearchBar = Instance.new("TextBox")
  11. InstallerWindowFrame1.Parent = game.CoreGui
  12.  
  13.  
  14. TopBarPanelUICorner.Parent = TopoBarPanel
  15.  
  16.  
  17. WindowFrame1.Parent = TopBarPanel
  18. WindowFrame1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  19. WindowFrame1.Position = UDim2.new(0, 0, 0.8, 0)
  20. WindowFrame1.Size = UDim2.new(0, 500, 0, 255)
  21.  
  22. UI1.Parent = WindowFrame1
  23.  
  24.  
  25.  
  26. TopBarPanel.Name = "TopBarPanel"
  27. TopBarPanel.Parent = InstallerWindowFrame1
  28. TopBarPanel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  29. TopBarPanel.Size = UDim2.new(0, 500, 0, 25)
  30. TopBarPanel.Font = Enum.Font.GothamBold
  31. TopBarPanel.Text = "Installer"
  32. TopBarPanel.TextColor3 = Color3.fromRGB(0, 0, 0)
  33. TopBarPanel.TextScaled = true
  34. TopBarPanel.TextSize = 14.000
  35. TopBarPanel.TextWrapped = true
  36. TopBarPanel.BorderSizePixel = 5
  37. TopBarPanel.Position = UDim2.new(0, 0, 0, 0)
  38. TopBarPanel.TextXAlignment = Enum.TextXAlignment.Left
  39. TopBarPanelUICorner.Parent = TopBarPanel
  40.  
  41.  
  42.  
  43. WindowScrollingFrame1.CanvasSize = UDim2.new(0, 0, 10, 0)
  44. WindowScrollingFrame1.ScrollBarImageColor3 = Color3.new(0.137255, 0.211765, 0.266667)
  45. WindowScrollingFrame1.ScrollBarThickness = 8
  46. WindowScrollingFrame1.Active = true
  47. WindowScrollingFrame1.BackgroundColor3 = Color3.new(0.101961, 0.101961, 0.101961)
  48. WindowScrollingFrame1.BackgroundTransparency = 1
  49. WindowScrollingFrame1.BorderSizePixel = 0
  50. WindowScrollingFrame1.Position = UDim2.new(0.2, 0, 0.00914634112, 0)
  51. WindowScrollingFrame1.Size = UDim2.new(0.8, 0, 0.9, 0)
  52. WindowScrollingFrame1.Name = "WindowScrollingFrame1"
  53. WindowScrollingFrame1.Parent = WindowFrame1
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60. CloseInstallerButton.Name = "CloseInstallerButton"
  61. CloseInstallerButton.Parent = TopBarPanel
  62. CloseInstallerButton.BorderSizePixel = 0
  63. CloseInstallerButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  64. CloseInstallerButton.Position = UDim2.new(0.94, 0, 0, 0)
  65. CloseInstallerButton.Size = UDim2.new(0, 23, 0, 23)
  66. CloseInstallerButton.Image = "rbxassetid://385868188"
  67. CloseInstallerButton.MouseButton1Down:connect(function()
  68. TopBarPanel:Remove()
  69. end)
  70.  
  71. InstallCalculator.Name = "Calculator"
  72. InstallCalculator.Parent = WindowScrollingFrame1
  73. InstallCalculator.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  74. InstallCalculator.Position = UDim2.new(0.02, 0, 0.04, 0)
  75. InstallCalculator.Size = UDim2.new(0, 355, 0, 40)
  76. InstallCalculator.Font = Enum.Font.GothamBold
  77. InstallCalculator.Text = "Install Calculator"
  78. InstallCalculator.AnchorPoint = Vector2.new(0, 0)
  79. InstallCalculator.TextColor3 = Color3.fromRGB(0, 0, 0)
  80. InstallCalculator.TextScaled = false
  81. InstallCalculator.BorderSizePixel = 2
  82. InstallCalculator.TextSize = 15
  83. InstallCalculator.TextWrapped = true
  84. InstallCalculator.TextXAlignment = Enum.TextXAlignment.Left
  85.  
  86.  
  87.  
  88. InstallAiChat.Name = "AiChat"
  89. InstallAiChat.Parent = WindowScrollingFrame1
  90. InstallAiChat.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  91. InstallAiChat.Position = UDim2.new(0.0714285746, 7, 0, 0)
  92. InstallAiChat.Size = UDim2.new(0, 79, 0, 31)
  93. InstallAiChat.Font = Enum.Font.GothamBold
  94. InstallAiChat.Text = "Install AiChat"
  95. InstallAiChat.AnchorPoint = Vector2.new(0, 0)
  96. InstallAiChat.TextColor3 = Color3.fromRGB(0, 0, 0)
  97. InstallAiChat.TextScaled = true
  98. InstallAiChat.BorderSizePixel = 2
  99. InstallAiChat.TextSize = 14.000
  100. InstallAiChat.TextWrapped = true
  101.  
  102.  
  103.  
  104.  
  105. SearchBar.Name = "SearchBar"
  106. SearchBar.Parent = WindowScrollingFrame1
  107. SearchBar.BackgroundColor3 = Color3.new(255, 255, 255)
  108. SearchBar.Position = UDim2.new(0.02, 0, 0.02, 0)
  109. SearchBar.Size = UDim2.new(0, 355, 0, 40)
  110. SearchBar.Font = Enum.Font.Code
  111. BorderSizePixel = 1
  112. SearchBar.FontSize = Enum.FontSize.Size18
  113. SearchBar.PlaceholderText = "Search 🔎"
  114. SearchBar.TextColor3 = Color3.new(0, 0, 0)
  115. SearchBar.TextSize = 15
  116. SearchBar.TextWrapped = true
  117. SearchBar:GetPropertyChangedSignal("Text"):Connect(function()
  118.  
  119. end)
  120.  
  121.  
  122.  
  123.  
  124. local UserInputService = game:GetService("UserInputService")
  125. local gui = TopBarPanel
  126.  
  127. local dragging
  128. local dragInput
  129. local dragStart
  130. local startPos
  131.  
  132. local function update(input)
  133.     local delta = input.Position - dragStart
  134.     gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  135. end
  136.  
  137. gui.InputBegan:Connect(function(input)
  138.     if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  139.         dragging = true
  140.         dragStart = input.Position
  141.         startPos = gui.Position
  142.  
  143.         input.Changed:Connect(function()
  144.             if input.UserInputState == Enum.UserInputState.End then
  145.                 dragging = false
  146.             end
  147.         end)
  148.     end
  149. end)
  150.  
  151. gui.InputChanged:Connect(function(input)
  152.     if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  153.         dragInput = input
  154.     end
  155. end)
  156.  
  157. UserInputService.InputChanged:Connect(function(input)
  158.     if input == dragInput and dragging then
  159.         update(input)
  160.     end
  161. end)
  162.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement