Advertisement
Kaemi

Giver Gui

Dec 14th, 2016
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. name = "kaemi"
  2. plr = game.Players:FindFirstChild(name)
  3. char = plr.Character
  4. sg = Instance.new("ScreenGui", plr.PlayerGui)
  5. tt = Instance.new("TextBox", sg)
  6. tt.Size = UDim2.new(0, 175, 0, 50)
  7. tt.BackgroundColor3 = Color3.new(0, 0, 0)
  8. tt.BorderColor3 = Color3.new(1, 1, 1)
  9. tt.BackgroundTransparency = 0.4
  10. tt.TextColor3 = Color3.new(1, 1, 1)
  11. tt.FontSize = Enum.FontSize.Size12
  12. tt.Position = UDim2.new(0, 0, 0, 200)
  13. tt.Text = "Enter Gear ID Here!"
  14. tt.FocusLost:connect(function(enterPressed)
  15. if enterPressed == true then
  16. id = tonumber(tt.Text)
  17. tt.Text = "Enter Gear ID Here!"
  18. local obj = game:service("InsertService"):LoadAsset(id)
  19. for a,g in pairs(obj:children()) do
  20. if g:IsA("Tool") or g:IsA("HopperBin") then
  21. g.Parent = plr.Backpack
  22. end
  23. end
  24. end
  25. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement