Advertisement
SlyHades66

Updates

Mar 19th, 2016
399
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.95 KB | None | 0 0
  1. local s = Instance.new("ScreenGui", game.CoreGui)
  2. local f = Instance.new("Frame", s)
  3. f.BackgroundTransparency = 1
  4. f.Position = UDim2.new(0.2,0,0.1,0)
  5. button = Instance.new("TextButton", f)
  6. button.Name = "1"
  7. button.Text = "Teleport Eggs To Player"
  8. button.BackgroundTransparency = 1
  9. button.TextColor3 = Color3.new(255,255,255)
  10. button.Font = "SourceSansBold"
  11. button.FontSize = "Size24"
  12. button.Size = UDim2.new(0,200,0,20)
  13. button.Position = button.Position-UDim2.new(0,55,0,0)
  14.  
  15. button.MouseButton1Down:connect(function()
  16. function g(o)
  17. for i,v in pairs(o:children())do
  18. if v.ClassName == "Part" or c.ClassName == "UnionOperation" and c.Transparency == 0 then
  19. v.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  20. end
  21. g(v)
  22. end
  23. end
  24. pcall(g,game.Workspace.Eggs)
  25. end)
  26.  
  27. local e = 2
  28. local previousvalue = 1
  29. for i,v in pairs(game.Workspace.Eggs:GetChildren()) do
  30. if f:FindFirstChild('1') then
  31. local q = Instance.new("TextButton", f)
  32. q.Size = UDim2.new(0,200,0,20)
  33. q.BackgroundTransparency = 1
  34. q.TextColor3 = Color3.new(255,255,255)
  35. q.Name = e
  36. q.Text = v.Name
  37. q.Font = "SourceSansBold"
  38. q.FontSize = "Size24"
  39. q.Position = f[previousvalue].Position+UDim2.new(0,0,0,28)
  40. previousvalue = e
  41. e = e+1
  42. end
  43. end
  44.  
  45. game.Workspace.Eggs.ChildAdded:connect(function(player)
  46. local q = Instance.new("TextButton", f)
  47. q.Size = UDim2.new(0,200,0,20)
  48. q.BackgroundTransparency = 1
  49. q.TextColor3 = Color3.new(255,255,255)
  50. q.Name = e
  51. q.Text = player.Name
  52. q.Font = "SourceSansBold"
  53. q.FontSize = "Size24"
  54. q.Position = f[previousvalue].Position+UDim2.new(0,0,0,28)
  55. previousvalue = e
  56. e = e+1
  57. end)
  58.  
  59. game.Workspace.Eggs.ChildRemoved:connect(function(removed)
  60. for i,v in pairs(f:GetChildren()) do
  61. if v.Name ~= "1" then
  62. v:Destroy()
  63. end
  64. end
  65. game:GetService("MarketplaceService"):PromptPurchase(game.Players.LocalPlayer, 168735163)
  66. wait(0.03)
  67.  
  68. local e = 2
  69. local previousvalue = 1
  70. for i,v in pairs(game.Workspace.Eggs:GetChildren()) do
  71. if f:FindFirstChild('1') then
  72. local q = Instance.new("TextButton", f)
  73. q.Size = UDim2.new(0,200,0,20)
  74. q.BackgroundTransparency = 1
  75. q.TextColor3 = Color3.new(255,255,255)
  76. q.Name = e
  77. q.Text = v.Name
  78. q.Font = "SourceSansBold"
  79. q.FontSize = "Size24"
  80. q.Position = f[previousvalue].Position+UDim2.new(0,0,0,28)
  81. previousvalue = e
  82. e = e+1
  83. end
  84. end
  85. end)
  86.  
  87. for i,v in pairs(f:GetChildren()) do
  88. if v.Name ~= "1" then
  89. v.MouseButton1Down:connect(function()
  90. function g(o)
  91. for i,c in pairs(o:children())do
  92. if c.Name == v.Text or c.Parent.Name == v.Text or c.Parent.Parent.Name == v.Text or c.Parent.Parent.Parent.Name == v.Text then
  93. if c.ClassName == "Part" or c.ClassName == "UnionOperation" and c.Transparency == 0 then
  94. wait(0.3)
  95. if c.Name == v.Text or c.Parent.Name == v.Text or c.Parent.Parent.Name == v.Text or c.Parent.Parent.Parent.Name == v.Text then
  96. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = c.CFrame
  97. end
  98. end
  99. end
  100. g(c)
  101. end
  102. end
  103. pcall(g,game.Workspace.Eggs)
  104. end)
  105. end
  106. end
  107.  
  108. --Collectibles
  109. wait(3)
  110.  
  111. local s = Instance.new("ScreenGui", game.CoreGui)
  112. local f = Instance.new("Frame", s)
  113. f.BackgroundTransparency = 1
  114. f.Position = UDim2.new(0.8,0,0.1,0)
  115. button = Instance.new("TextButton", f)
  116. button.Name = "1"
  117. button.Text = "Teleport Collectibles To Player"
  118. button.BackgroundTransparency = 1
  119. button.TextColor3 = Color3.new(255,255,255)
  120. button.Font = "SourceSansBold"
  121. button.FontSize = "Size24"
  122. button.Size = UDim2.new(0,200,0,20)
  123. button.Position = button.Position-UDim2.new(0,55,0,0)
  124.  
  125. button.MouseButton1Down:connect(function()
  126. function g(o)
  127. for i,v in pairs(o:children())do
  128. if v.ClassName == "Part" or c.ClassName == "UnionOperation" and c.Transparency == 0 then
  129. v.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  130. end
  131. g(v)
  132. end
  133. end
  134. pcall(g,game.Workspace.CollectibleItems)
  135. end)
  136.  
  137. local e = 2
  138. local previousvalue = 1
  139. game:GetService("MarketplaceService"):PromptPurchase(game.Players.LocalPlayer, 168735163)
  140. for i,v in pairs(game.Workspace.CollectibleItems:GetChildren()) do
  141. if f:FindFirstChild('1') then
  142. local q = Instance.new("TextButton", f)
  143. q.Size = UDim2.new(0,200,0,20)
  144. q.BackgroundTransparency = 1
  145. q.TextColor3 = Color3.new(255,255,255)
  146. q.Name = e
  147. q.Text = v.Name
  148. q.Font = "SourceSansBold"
  149. q.FontSize = "Size24"
  150. q.Position = f[previousvalue].Position+UDim2.new(0,0,0,28)
  151. previousvalue = e
  152. e = e+1
  153. end
  154. end
  155.  
  156. game.Workspace.CollectibleItems.ChildAdded:connect(function(player)
  157. local q = Instance.new("TextButton", f)
  158. q.Size = UDim2.new(0,200,0,20)
  159. q.BackgroundTransparency = 1
  160. q.TextColor3 = Color3.new(255,255,255)
  161. q.Name = e
  162. q.Text = player.Name
  163. q.Font = "SourceSansBold"
  164. q.FontSize = "Size24"
  165. q.Position = f[previousvalue].Position+UDim2.new(0,0,0,28)
  166. previousvalue = e
  167. e = e+1
  168. end)
  169.  
  170. game.Workspace.CollectibleItems.ChildRemoved:connect(function(removed)
  171. for i,v in pairs(f:GetChildren()) do
  172. if v.Name ~= "1" then
  173. v:Destroy()
  174. end
  175. end
  176. wait(0.03)
  177.  
  178. local e = 2
  179. local previousvalue = 1
  180. for i,v in pairs(game.Workspace.CollectibleItems:GetChildren()) do
  181. if f:FindFirstChild('1') then
  182. local q = Instance.new("TextButton", f)
  183. q.Size = UDim2.new(0,200,0,20)
  184. q.BackgroundTransparency = 1
  185. q.TextColor3 = Color3.new(255,255,255)
  186. q.Name = e
  187. q.Text = v.Name
  188. q.Font = "SourceSansBold"
  189. q.FontSize = "Size24"
  190. q.Position = f[previousvalue].Position+UDim2.new(0,0,0,28)
  191. previousvalue = e
  192. e = e+1
  193. end
  194. end
  195. end)
  196.  
  197. for i,v in pairs(f:GetChildren()) do
  198. if v.Name ~= "1" then
  199. v.MouseButton1Down:connect(function()
  200. function g(o)
  201. for i,c in pairs(o:children())do
  202. if c.Name == v.Text or c.Parent.Name == v.Text or c.Parent.Parent.Name == v.Text or c.Parent.Parent.Parent.Name == v.Text then
  203. if c.ClassName == "Part" or c.ClassName == "UnionOperation" and c.Transparency == 0 then
  204. wait(0.3)
  205. if c.Name == v.Text or c.Parent.Name == v.Text or c.Parent.Parent.Name == v.Text or c.Parent.Parent.Parent.Name == v.Text then
  206. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = c.CFrame
  207. end
  208. end
  209. end
  210. g(c)
  211. end
  212. end
  213. pcall(g,game.Workspace.CollectibleItems)
  214. end)
  215. end
  216. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement