Advertisement
rubikz

Untitled

Aug 2nd, 2016
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.93 KB | None | 0 0
  1. player = game:GetService("Players").RubikzCube
  2.  
  3. local search = game.Workspace.Themes
  4.  
  5. function load(add)
  6. local starter = Instance.new("ScreenGui")
  7. starter.Parent = player.PlayerGui
  8.  
  9. script.Parent = starter
  10.  
  11. local Frame = Instance.new("Frame")
  12. Frame.Parent = starter
  13. Frame.Position = UDim2.new(0,0,0,325)
  14.  
  15. row = 0
  16. for i,a in pairs(search:GetChildren()) do
  17. row = row +1
  18. local pcont = Instance.new("TextLabel")
  19. pcont.Text = a.Name
  20. pcont.Size = UDim2.new(0,150,0,20)
  21. pcont.Parent = Frame
  22. pcont.FontSize = "Size12"
  23. pcont.BorderSizePixel = 3
  24. pcont.Transparency = 0.2
  25. pcont.Name = "OneOfPlayers"
  26. pcont.TextColor = BrickColor.new("Really black")
  27. pcont.BackgroundColor = BrickColor.new("Bright yellow")
  28. pcont.Position = UDim2.new(0,0,0,-200 + row*20)
  29.  
  30.  
  31. local Frame3 = Instance.new("Frame")
  32. Frame3.Parent = starter
  33. Frame3.Position = UDim2.new(0,170,0,325)
  34.  
  35. local pcont3 = Instance.new("TextButton")
  36. pcont3.Text = "X"
  37. pcont3.Size = UDim2.new(0,20,0,20)
  38. pcont3.Parent = Frame3
  39. pcont3.FontSize = "Size12"
  40. pcont3.BorderSizePixel = 3
  41. pcont3.Transparency = 0.2
  42. pcont3.Name = "clickmelol1"
  43. pcont3.TextColor = BrickColor.new("Really red")
  44. pcont3.BackgroundColor = BrickColor.new("Really black")
  45. pcont3.Position = UDim2.new(0,0,0,-200 + row*20)
  46. function click()
  47. search:findFirstChild(a.Name):Stop()
  48. end
  49. pcont3.MouseButton1Down:connect(click)
  50.  
  51.  
  52. local fnum = Instance.new("Frame")
  53. fnum.Parent = starter
  54. fnum.Position = UDim2.new(0,150,0,325)
  55.  
  56.  
  57. local num = Instance.new("TextButton")
  58. num.Text = "O"
  59. num.Size = UDim2.new(0,20,0,20)
  60. num.Parent = fnum
  61. num.FontSize = "Size12"
  62. num.BorderSizePixel = 3
  63. num.Transparency = 0.2
  64. num.Name = "OneOfPlayers"
  65. num.TextColor = BrickColor.new("Limegreen")
  66. num.BackgroundColor = BrickColor.new("White")
  67. num.Position = UDim2.new(0,0,0,-200 + row*20)
  68. function click()
  69. search:findFirstChild(a.Name).Name = a.Name .. row
  70. wait()
  71. starter:remove()
  72. wait()
  73. load()
  74. end
  75. num.MouseButton1Down:connect(click)
  76.  
  77.  
  78. local fref = Instance.new("Frame")
  79. fref.Parent = starter
  80. fref.Position = UDim2.new(0,50,0,305)
  81.  
  82. local ref = Instance.new("TextButton")
  83. ref.Text = "Refresh"
  84. ref.Size = UDim2.new(0,140,0,40)
  85. ref.Parent = fref
  86. ref.FontSize = "Size24"
  87. ref.BorderSizePixel = 3
  88. ref.Transparency = 0.2
  89. ref.Name = "clickmelol1"
  90. ref.TextColor = BrickColor.new("Really black")
  91. ref.BackgroundColor = BrickColor.new("Lime green")
  92. ref.Position = UDim2.new(0,0,0,-200)
  93. function click()
  94. for i,p in pairs(player.PlayerGui:GetChildren()) do
  95. if p.className == "ScreenGui" then
  96. p:Remove()
  97. end
  98. end
  99. wait()
  100. load()
  101. end
  102. ref.MouseButton1Down:connect(click)
  103.  
  104.  
  105. end
  106. end
  107.  
  108. load()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement