ERROR_CODE

Gear Giver Gui

Dec 23rd, 2023 (edited)
7,487
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.28 KB | None | 0 0
  1. local GGG  = Instance.new("ScreenGui")
  2. local GGF = Instance.new("Frame")
  3. local GGFUI = Instance.new("UICorner")
  4. local GGT = Instance.new("TextBox")
  5. local GGTUI = Instance.new("UICorner")
  6. local GGGB = Instance.new("TextButton")
  7. local GGC = Instance.new("TextButton")
  8. local GGM = Instance.new("TextButton")
  9. local GGOM = Instance.new("ImageButton")
  10. local UIClick = Instance.new("Sound")
  11. local ECCSGEAR = Instance.new("TextLabel")
  12. local UserInputService = game:GetService("UserInputService")
  13.  
  14. GGG.Parent = game.CoreGui
  15.  
  16. UIClick.Parent = game.Workspace
  17. UIClick.SoundId = "rbxassetid://6972137633"
  18. UIClick.Playing = true
  19. UIClick.Looped = false
  20. UIClick.Volume = 1
  21. UIClick:Stop()
  22.  
  23. GGOM.Visible = false
  24.  
  25. GGF.Name = "GGF"
  26. GGF.Parent = GGG
  27. GGF.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  28. GGF.Position = UDim2.new(0.4, 0, 0.25, 0)
  29. GGF.Size = UDim2.new(0, 150, 0, 150)
  30. GGF.BorderSizePixel = 0
  31. GGFUI.Parent = GGF
  32.  
  33. GGOM.Name = "GGOM"
  34. GGOM.Parent = GGG
  35. GGOM.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  36. GGOM.Position = UDim2.new(0.95, 0, 0.4, 0)
  37. GGOM.Size = UDim2.new(0, 45, 0, 45)
  38. GGOM.Image = "rbxassetid://15728617725"
  39. GGOM.Transparency = 1
  40. GGOM.MouseButton1Click:Connect(function()
  41. UIClick:Play()
  42. GGF.Visible = true
  43. GGOM.Visible = false
  44. writefile("GGGG.ECCS", ""..GGT.Text)
  45. end)
  46.  
  47. ECCSGEAR.Name = "ECCSGEAR"
  48. ECCSGEAR.Parent = GGF
  49. ECCSGEAR.BackgroundTransparency = 1
  50. ECCSGEAR.Position = UDim2.new(0.35, 0, 0.1, 0)
  51. ECCSGEAR.Size = UDim2.new(0, 1, 0, 1)
  52. ECCSGEAR.Font = Enum.Font.SourceSansBold
  53. ECCSGEAR.Text = "ECCS•GearGiver"
  54. ECCSGEAR.TextColor3 = Color3.fromRGB(255, 255, 255)
  55. ECCSGEAR.TextTransparency = 0.5
  56. ECCSGEAR.TextSize = 17
  57.  
  58. GGC.Name = "GGC"
  59. GGC.Position = UDim2.new(0.85, 0, 0, 0)
  60. GGC.Parent = GGF
  61. GGC.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  62. GGC.BackgroundTransparency = 1
  63. GGC.LayoutOrder = 1
  64. GGC.Size = UDim2.new(0, 25, 0, 25)
  65. GGC.AutoButtonColor = false
  66. GGC.Font = Enum.Font.SourceSansBold
  67. GGC.Text = "X"
  68. GGC.TextColor3 = Color3.fromRGB(255, 255, 255)
  69. GGC.TextScaled = true
  70. GGC.TextSize = 14.000
  71. GGC.TextWrapped = true
  72. GGC.MouseButton1Click:Connect(function()
  73. UIClick:Play()
  74. GGF:Destroy()
  75. writefile("GGGG.ECCS", ""..GGT.Text)
  76. end)
  77.  
  78. GGM.Name = "GGM"
  79. GGM.Position = UDim2.new(0.7, 0, -0.02, 0)
  80. GGM.Parent = GGF
  81. GGM.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  82. GGM.BackgroundTransparency = 1
  83. GGM.LayoutOrder = 1
  84. GGM.Size = UDim2.new(0, 25, 0, 25)
  85. GGM.AutoButtonColor = false
  86. GGM.Font = Enum.Font.SourceSansBold
  87. GGM.Text = "-"
  88. GGM.TextColor3 = Color3.fromRGB(255, 255, 255)
  89. GGM.TextSize = 50
  90. GGM.MouseButton1Click:Connect(function()
  91. UIClick:Play()
  92. GGF.Visible = false
  93. GGOM.Visible = true
  94. writefile("GGGG.ECCS", ""..GGT.Text)
  95. end)
  96.  
  97. GGT.Name = "GGT"
  98. GGT.Parent = GGF
  99. GGT.BackgroundColor3 = Color3.new(255, 255, 255)
  100. GGT.Position = UDim2.new(0.10, 0, 0.25, 0)
  101. GGT.Size = UDim2.new(0, 120, 0, 50)
  102. GGT.Font = Enum.Font.SourceSansBold
  103. GGT.FontSize = Enum.FontSize.Size18
  104. GGT.PlaceholderText = "Gear ID Here"
  105. GGT.Text = ""
  106. GGT.ClearTextOnFocus = false
  107. GGT.TextColor3 = Color3.new(0, 0, 0)
  108. GGT.TextSize = 15
  109. GGT.TextXAlignment = Enum.TextXAlignment.Center
  110. GGT.TextYAlignment = Enum.TextYAlignment.Center
  111. GGT.TextWrapped = true
  112. GGTUI.Parent = GGT
  113.  
  114. GGGB.Name = "GGGB"
  115. GGGB.Position = UDim2.new(0.13, 0, 0.6, 0)
  116. GGGB.Parent = GGF
  117. GGGB.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  118. GGGB.LayoutOrder = 1
  119. GGGB.Size = UDim2.new(0, 110, 0, 40)
  120. GGGB.AutoButtonColor = false
  121. GGGB.Font = Enum.Font.SourceSansBold
  122. GGGB.Text = "Get Gear"
  123. GGGB.TextColor3 = Color3.fromRGB(255, 255, 255)
  124. GGGB.TextSize = 40
  125. GGGB.BorderSizePixel = 0
  126. GGGB.MouseButton1Click:Connect(function()
  127. UIClick:Play()
  128. _G.Gear = game:GetObjects('rbxassetid://'..GGT.Text)[1]
  129. _G.Gear.Parent = game.Players.LocalPlayer.Backpack
  130. writefile("GGGG.ECCS", ""..GGT.Text)
  131. end)
  132.  
  133. GGG.GGF.GGT.FocusLost:Connect(function(enterPressed)
  134.     if enterPressed then
  135.        UIClick:Play()
  136. _G.Gear = game:GetObjects('rbxassetid://'..GGT.Text)[1]
  137. _G.Gear.Parent = game.Players.LocalPlayer.Backpack
  138. writefile("GGGG.ECCS", ""..GGT.Text)
  139.     end
  140. end)
  141.  
  142. if not isfile("GGGG.ECCS") then
  143. writefile("GGGG.ECCS", ""..GGT.Text)
  144. end
  145.  
  146. local GGGGR = readfile("GGGG.ECCS")
  147. GGT.Text = ""..GGGGR
  148.  
  149. local gui = GGF
  150.  
  151. local dragging
  152. local dragInput
  153. local dragStart
  154. local startPos
  155.  
  156. local function update(input)
  157.     local delta = input.Position - dragStart
  158.     gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  159. end
  160.  
  161. gui.InputBegan:Connect(function(input)
  162.     if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  163.         dragging = true
  164.         dragStart = input.Position
  165.         startPos = gui.Position
  166.  
  167.         input.Changed:Connect(function()
  168.             if input.UserInputState == Enum.UserInputState.End then
  169.                 dragging = false
  170.             end
  171.         end)
  172.     end
  173. end)
  174.  
  175. gui.InputChanged:Connect(function(input)
  176.     if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  177.         dragInput = input
  178.     end
  179. end)
  180.  
  181. UserInputService.InputChanged:Connect(function(input)
  182.     if input == dragInput and dragging then
  183.         update(input)
  184.     end
  185. end)
  186.  
  187. local gui = GGOM
  188.  
  189. local dragging
  190. local dragInput
  191. local dragStart
  192. local startPos
  193.  
  194. local function update(input)
  195.     local delta = input.Position - dragStart
  196.     gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  197. end
  198.  
  199. gui.InputBegan:Connect(function(input)
  200.     if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  201.         dragging = true
  202.         dragStart = input.Position
  203.         startPos = gui.Position
  204.  
  205.         input.Changed:Connect(function()
  206.             if input.UserInputState == Enum.UserInputState.End then
  207.                 dragging = false
  208.             end
  209.         end)
  210.     end
  211. end)
  212.  
  213. gui.InputChanged:Connect(function(input)
  214.     if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  215.         dragInput = input
  216.     end
  217. end)
  218.  
  219. UserInputService.InputChanged:Connect(function(input)
  220.     if input == dragInput and dragging then
  221.         update(input)
  222.     end
  223. end)
Add Comment
Please, Sign In to add comment