Advertisement
SlyHades66

EggHunt Gui

Mar 23rd, 2016
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 9.47 KB | None | 0 0
  1. --DevScapter <3
  2. --Egg Teleporter
  3. game.Workspace.Eggs.ChildAdded:connect(function(egg)
  4. if string.match(egg.Name, "Fab") or string.match(egg.Name, "Admin") or string.match(egg.Name, "Dragon") then
  5. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = egg.CFrame
  6. end
  7. end)
  8. wait(0.03)
  9.  
  10. --Eggs
  11. local s = Instance.new("ScreenGui", game.CoreGui)
  12. local f = Instance.new("Frame", s)
  13. f.BackgroundTransparency = 1
  14. f.Position = UDim2.new(0.2,0,0.1,0)
  15. button = Instance.new("TextButton", f)
  16. button.Name = "1"
  17. button.Text = "Teleport Eggs To Player"
  18. button.BackgroundTransparency = 1
  19. button.TextColor3 = Color3.new(255,255,255)
  20. button.Font = "SourceSansBold"
  21. button.FontSize = "Size24"
  22. button.Size = UDim2.new(0,200,0,20)
  23. button.Position = button.Position-UDim2.new(0,55,0,0)
  24.  
  25. local shardsb = Instance.new("TextButton", s)
  26. shardsb.Name = "Shardsb"
  27. shardsb.Text = "Teleport Shards To Player"
  28. shardsb.BackgroundTransparency = 1
  29. shardsb.TextColor3 = Color3.new(255,255,255)
  30. shardsb.Font = "SourceSansBold"
  31. shardsb.FontSize = "Size24"
  32. shardsb.Size = UDim2.new(0,200,0,20)
  33. shardsb.Position = shardsb.Position-UDim2.new(0,-15,-0.28,0)
  34.  
  35. shardsb.MouseButton1Down:connect(function()
  36. function g(o)
  37. for i,v in pairs(o:children())do
  38. if v.ClassName == "WedgePart" then
  39. v.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  40. end
  41. g(v)
  42. end
  43. end
  44. pcall(g,game.Workspace.Shards)
  45. end)
  46.  
  47. shards = Instance.new("TextButton", s)
  48. shards.Name = "Shards"
  49. shards.Text = "Shards: "..game.ReplicatedStorage.Shards.Value
  50. shards.BackgroundTransparency = 1
  51. shards.TextColor3 = Color3.new(255,255,255)
  52. shards.Font = "SourceSansBold"
  53. shards.FontSize = "Size24"
  54. shards.Size = UDim2.new(0,200,0,20)
  55. shards.Position = shards.Position-UDim2.new(0,0,-0.3,0)
  56.  
  57. game.ReplicatedStorage.Shards.Changed:connect(function()
  58. shards.Text = "Shards: "..game.ReplicatedStorage.Shards.Value
  59. end)
  60.  
  61. button.MouseButton1Down:connect(function()
  62. function g(o)
  63. for i,v in pairs(o:children())do
  64. if v.ClassName == "Part" then
  65. v.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  66. end
  67. g(v)
  68. end
  69. end
  70. pcall(g,game.Workspace.Eggs)
  71. end)
  72.  
  73. local e = 2
  74. local previousvalue = 1
  75. for i,v in pairs(game.Workspace.Eggs:GetChildren()) do
  76. if f:FindFirstChild('1') then
  77. local q = Instance.new("TextButton", f)
  78. q.Size = UDim2.new(0,200,0,20)
  79. q.BackgroundTransparency = 1
  80. if string.match(q.Text, "Fab") or string.match(q.Text, "Admin") or string.match(q.Text,"Dragon") then
  81. q.TextColor3 = Color3.new(255,0,0)
  82. else
  83. q.TextColor3 = Color3.new(255,255,255)
  84. end
  85. q.Name = e
  86. q.Text = v.Name
  87. q.Font = "SourceSansBold"
  88. q.FontSize = "Size24"
  89. q.Position = f[previousvalue].Position+UDim2.new(0,0,0,28)
  90. previousvalue = e
  91. e = e+1
  92. end
  93. end
  94.  
  95. game.Workspace.Eggs.ChildAdded:connect(function(player)
  96. for i,v in pairs(f:GetChildren()) do
  97. if v.Name ~= "1" then
  98. v:Destroy()
  99. end
  100. end
  101. local e = 2
  102. local previousvalue = 1
  103. for i,v in pairs(game.Workspace.Eggs:GetChildren()) do
  104. if f:FindFirstChild('1') then
  105. local q = Instance.new("TextButton", f)
  106. q.Size = UDim2.new(0,200,0,20)
  107. q.BackgroundTransparency = 1
  108. if string.match(q.Text, "Fab") or string.match(q.Text, "Admin") or string.match(q.Text, "Dragon") then
  109. q.TextColor3 = Color3.new(255,0,0)
  110. else
  111. q.TextColor3 = Color3.new(255,255,255)
  112. end
  113. q.Name = e
  114. q.Text = v.Name
  115. q.Font = "SourceSansBold"
  116. q.FontSize = "Size24"
  117. q.Position = f[previousvalue].Position+UDim2.new(0,0,0,28)
  118. previousvalue = e
  119. e = e+1
  120. end
  121. end
  122. for i,v in pairs(f:GetChildren()) do
  123. if v.Name ~= "1" then
  124. v.MouseButton1Down:connect(function()
  125. function g(o)
  126. for i,c in pairs(o:children())do
  127. 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
  128. if c.ClassName == "Part" then
  129. wait(0.3)
  130. 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
  131. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = c.CFrame
  132. end
  133. end
  134. end
  135. g(c)
  136. end
  137. end
  138. pcall(g,game.Workspace.Eggs)
  139. end)
  140. end
  141. end
  142. end)
  143. wait(0.03)
  144. for i,v in pairs(f:GetChildren()) do
  145. if v.Name ~= "1" then
  146. v.MouseButton1Down:connect(function()
  147. function g(o)
  148. for i,c in pairs(o:children())do
  149. 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
  150. if c.ClassName == "Part" then
  151. wait(0.3)
  152. 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
  153. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = c.CFrame
  154. end
  155. end
  156. end
  157. g(c)
  158. end
  159. end
  160. pcall(g,game.Workspace.Eggs)
  161. end)
  162. end
  163. end
  164.  
  165. game.Workspace.Eggs.ChildRemoved:connect(function(removed)
  166. for i,v in pairs(f:GetChildren()) do
  167. if v.Name ~= "1" then
  168. v:Destroy()
  169. end
  170. end
  171. local e = 2
  172. local previousvalue = 1
  173. for i,v in pairs(game.Workspace.Eggs:GetChildren()) do
  174. if f:FindFirstChild('1') then
  175. local q = Instance.new("TextButton", f)
  176. q.Size = UDim2.new(0,200,0,20)
  177. q.BackgroundTransparency = 1
  178. if string.match(q.Text, "Fab") or string.match(q.Text, "Admin") or string.match(q.Text, "Dragon") then
  179. q.TextColor3 = Color3.new(255,0,0)
  180. else
  181. q.TextColor3 = Color3.new(255,255,255)
  182. end
  183. q.Name = e
  184. q.Text = v.Name
  185. q.Font = "SourceSansBold"
  186. q.FontSize = "Size24"
  187. q.Position = f[previousvalue].Position+UDim2.new(0,0,0,28)
  188. previousvalue = e
  189. e = e+1
  190. end
  191. end
  192. for i,v in pairs(f:GetChildren()) do
  193. if v.Name ~= "1" then
  194. v.MouseButton1Down:connect(function()
  195. function g(o)
  196. for i,c in pairs(o:children())do
  197. 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
  198. if c.ClassName == "Part" then
  199. wait(0.3)
  200. 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
  201. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = c.CFrame
  202. end
  203. end
  204. end
  205. g(c)
  206. end
  207. end
  208. pcall(g,game.Workspace.Eggs)
  209. end)
  210. end
  211. end
  212. end)
  213. wait(0.03)
  214. for i,v in pairs(f:GetChildren()) do
  215. if v.Name ~= "1" then
  216. v.MouseButton1Down:connect(function()
  217. function g(o)
  218. for i,c in pairs(o:children())do
  219. 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
  220. if c.ClassName == "Part" then
  221. wait(0.3)
  222. 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
  223. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = c.CFrame
  224. end
  225. end
  226. end
  227. g(c)
  228. end
  229. end
  230. pcall(g,game.Workspace.Eggs)
  231. end)
  232. end
  233. end
  234. --Collectibles
  235. wait(3)
  236.  
  237. local s = Instance.new("ScreenGui", game.CoreGui)
  238. local f = Instance.new("Frame", s)
  239. f.BackgroundTransparency = 1
  240. f.Position = UDim2.new(0.8,0,0.1,0)
  241. button = Instance.new("TextButton", f)
  242. button.Name = "1"
  243. button.Text = "Teleport Collectibles To Player"
  244. button.BackgroundTransparency = 1
  245. button.TextColor3 = Color3.new(255,255,255)
  246. button.Font = "SourceSansBold"
  247. button.FontSize = "Size24"
  248. button.Size = UDim2.new(0,200,0,20)
  249. button.Position = button.Position-UDim2.new(0,55,0,0)
  250.  
  251. button.MouseButton1Down:connect(function()
  252. function g(o)
  253. for i,v in pairs(o:children())do
  254. if v.ClassName == "Part" or c.ClassName == "UnionOperation" and c.Transparency == 0 then
  255. v.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  256. end
  257. g(v)
  258. end
  259. end
  260. pcall(g,game.Workspace.CollectibleItems)
  261. end)
  262.  
  263. local e = 2
  264. local previousvalue = 1
  265. for i,v in pairs(game.Workspace.CollectibleItems:GetChildren()) do
  266. if f:FindFirstChild('1') then
  267. local q = Instance.new("TextButton", f)
  268. q.Size = UDim2.new(0,200,0,20)
  269. q.BackgroundTransparency = 1
  270. q.TextColor3 = Color3.new(255,255,255)
  271. q.Name = e
  272. q.Text = v.Name
  273. q.Font = "SourceSansBold"
  274. q.FontSize = "Size24"
  275. q.Position = f[previousvalue].Position+UDim2.new(0,0,0,28)
  276. previousvalue = e
  277. e = e+1
  278. end
  279. end
  280.  
  281. game.Workspace.CollectibleItems.ChildAdded:connect(function(player)
  282. local q = Instance.new("TextButton", f)
  283. q.Size = UDim2.new(0,200,0,20)
  284. q.BackgroundTransparency = 1
  285. q.TextColor3 = Color3.new(255,255,255)
  286. q.Name = e
  287. q.Text = player.Name
  288. q.Font = "SourceSansBold"
  289. q.FontSize = "Size24"
  290. q.Position = f[previousvalue].Position+UDim2.new(0,0,0,28)
  291. previousvalue = e
  292. e = e+1
  293. end)
  294.  
  295. game.Workspace.CollectibleItems.ChildRemoved:connect(function(removed)
  296. for i,v in pairs(f:GetChildren()) do
  297. if v.Name ~= "1" then
  298. v:Destroy()
  299. end
  300. end
  301. wait(0.03)
  302.  
  303. local e = 2
  304. local previousvalue = 1
  305. for i,v in pairs(game.Workspace.CollectibleItems:GetChildren()) do
  306. if f:FindFirstChild('1') then
  307. local q = Instance.new("TextButton", f)
  308. q.Size = UDim2.new(0,200,0,20)
  309. q.BackgroundTransparency = 1
  310. q.TextColor3 = Color3.new(255,255,255)
  311. q.Name = e
  312. q.Text = v.Name
  313. q.Font = "SourceSansBold"
  314. q.FontSize = "Size24"
  315. q.Position = f[previousvalue].Position+UDim2.new(0,0,0,28)
  316. previousvalue = e
  317. e = e+1
  318. end
  319. end
  320. end)
  321.  
  322. for i,v in pairs(f:GetChildren()) do
  323. if v.Name ~= "1" then
  324. v.MouseButton1Down:connect(function()
  325. function g(o)
  326. for i,c in pairs(o:children())do
  327. 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
  328. if c.ClassName == "Part" or c.ClassName == "UnionOperation" and c.Transparency == 0 then
  329. wait(0.3)
  330. 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
  331. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = c.CFrame
  332. end
  333. end
  334. end
  335. g(c)
  336. end
  337. end
  338. pcall(g,game.Workspace.CollectibleItems)
  339. end)
  340. end
  341. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement