tuleyb

Untitled

Oct 22nd, 2017
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. local plyr = game.Players.yfc
  2. local pg = plyr.PlayerGui
  3.  
  4. pcall(function() pg.WorkspaceGui:remove() end)
  5. local sc = Instance.new("ScreenGui", pg)
  6. sc.Name = "WorkspaceGui"
  7. local y = 165
  8.  
  9. local wrkspace = game:GetService("Workspace")
  10. local select = nil
  11.  
  12. function load()
  13. for _,v in pairs(wrkspace:GetChildren()) do
  14. y = y + 15
  15. local tt = Instance.new("TextButton", sc)
  16. tt.Position = UDim2.new(0, 165, 0, y)
  17. tt.Size = UDim2.new(0, 200, 0, 15)
  18. tt.Text = "" ..v.Name.. ""
  19. tt.BackgroundTransparency = 0.75
  20. tt.BackgroundColor = BrickColor.new("White")
  21. tt.MouseButton1Down:connect(function()
  22. if wrkspace[v.Name] ~= nil then
  23. wrkspace[v.Name].Archible = true
  24. asd = wrkspace[v.Name]:clone()
  25. asd.Parent = wrkspace
  26. asd.Archible = false
  27. wrkspace[v.Name].Archible = false
  28. redo()
  29. end
  30. end)
  31. tt.MouseButton2Down:connect(function()
  32. if wrkspace[v.Name] ~= nil then
  33. wrkspace[v.Name]:remove()
  34. tt:remove()
  35. redo()
  36. end
  37. end)
  38. end
  39. end
  40.  
  41. load()
  42. while wait(15) do
  43. load()
  44. end
Add Comment
Please, Sign In to add comment