Advertisement
basbas1234

Gear Inserter

Dec 28th, 2018
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.28 KB | None | 0 0
  1. local Player = game.Players.LocalPlayer
  2. local PlayerGui = Player.PlayerGui
  3. local Backpack = Player.Backpack
  4.  
  5. local Remotes = game.ReplicatedStorage:WaitForChild("Remotes")
  6.  
  7. local ScreenGui = Instance.new("ScreenGui",PlayerGui)
  8. ScreenGui.Name = "GearCH"
  9. ScreenGui.ResetOnSpawn = true
  10.  
  11. local FrameBG = Instance.new("Frame",ScreenGui)
  12. FrameBG.Name = "BG"
  13. FrameBG.BackgroundColor3 = Color3.fromRGB(255,255,255)
  14. FrameBG.BorderSizePixel = 0
  15. FrameBG.Size = UDim2.new(0.185,0,0.442,0)
  16. FrameBG.Position = UDim2.new(0.252,0,0.263,0)
  17.  
  18. local Title = Instance.new("TextLabel",FrameBG)
  19. Title.BackgroundColor3 = Color3.fromRGB(9,162,208)
  20. Title.BorderSizePixel = 0
  21. Title.Size = UDim2.new(1,0,0.196,0)
  22. Title.Position = UDim2.new(0,0,0,0)
  23. Title.Text = "Gear Insertor"
  24. Title.TextColor3 = Color3.fromRGB(255,255,255)
  25. Title.TextScaled = true
  26. Title.Font = Enum.Font.Code
  27.  
  28. local Input = Instance.new("TextBox",FrameBG)
  29. Input.BackgroundColor3 = Color3.fromRGB(50,50,50)
  30. Input.BorderSizePixel = 10
  31. Input.Size = UDim2.new(0.729,0,0.1,0)
  32. Input.Position = UDim2.new(0.135,0,0.393,0)
  33. Input.TextColor3 = Color3.fromRGB(255,255,255)
  34. Input.PlaceholderText = "GearID"
  35. Input.PlaceholderColor3 = Color3.fromRGB(200,200,200)
  36. Input.TextScaled = true
  37. Input.Font = Enum.Font.Code
  38.  
  39. local GiveButton = Instance.new("TextButton",FrameBG)
  40. GiveButton.BackgroundColor3 = Color3.fromRGB(150,150,150)
  41. GiveButton.BorderSizePixel = 0
  42. GiveButton.Size = UDim2.new(0.613,0,0.18,0)
  43. GiveButton.Position = UDim2.new(0.191,0,0.611,0)
  44. GiveButton.Text = "Give!"
  45. GiveButton.TextColor3 = Color3.fromRGB(255,255,255)
  46. GiveButton.TextScaled = true
  47. GiveButton.Font = Enum.Font.Code
  48.  
  49. local Close = Instance.new("TextButton",FrameBG)
  50. Close.BackgroundColor3 = Color3.fromRGB(255,0,0)
  51. Close.BorderSizePixel = 0
  52. Close.Size = UDim2.new(0.194,0, 0.128,0)
  53. Close.Position = UDim2.new(0,0, 0.871,0)
  54. Close.Text = "Close"
  55. Close.TextColor3 = Color3.fromRGB(255,255,255)
  56. Close.TextScaled = true
  57. Close.Font = Enum.Font.Code
  58. Close.ZIndex = 2
  59.  
  60. Close.MouseButton1Click:Connect(function()
  61.     for i, v in pairs(Player.PlayerGui:GetChildren()) do
  62.         if v.Name == "GearCH" then
  63.             v:Destroy()
  64.         end
  65.     end
  66.     ScreenGui:Destroy()
  67. end)
  68.  
  69. GiveButton.MouseButton1Click:Connect(function()
  70.     spawn(function()
  71.         Remotes.Gear:FireServer(tonumber(Input.Text))
  72.     end)
  73. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement