Advertisement
Guest User

Untitled

a guest
Jan 20th, 2020
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 14.72 KB | None | 0 0
  1. -- Egg Counter
  2. game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All,false)
  3. local eggs2019 = {3039534409,3016231909,3016626422,3016578498,3016581088,3016592868,3016722897,3016530574,3039536347,3039540516,3016208680,3016225200,3016593786,3016531774,3016231784,3016722037,3016719580,3016232071,3016762907,3016223229,3026984464,3016780372,3016212624,3016707655,3016720601,3039532623,3016231958,3016210752,3039527399,3026982586,3016218898,3026985319,3016231839,3016529767,3016717912,3016710712,3016590511,3016221675,3016231653,3016746814,3016580193,3016231378,3051730469,3016591988,3016231729,3016782615,3016232019,3016708348,3039525528,3016215167,3026983213,3026983954,3016198515,3039538715,3016202838,3016771502,3016206805,3026984875}
  4. local eggs2018 = {1556197352,1556205693,1556224610,1556234499,1556229020,1556228235,1556206672,1530093479,1556232697,1556184600,1556209611,1556230995,1556233671,1556194544,1556193808,1556203177,1530095323,1556203821,1556202184,1556227628,1556179171,1556191928,1556196122,1556188267,1556179834,1556199927,1556183176,1556229866,1556201456,1556195261,1556236060,1556236892,1536250571,1530094357,1556235379,1556204905,1556200544,1492220954,1556189155,1556199248,1536251620,1556177176,1556225664,1556231782,1556185904,1556206277}
  5. local eggs2017 = {99855258,293315788,295457500,277863836,264575738,227912945,241670831,262461318,243854347,238903198,227913020,286525158,304075526,277883358,282219432,253155286,116073524,99850489,100426145,162066113,100426109,99851504,100425915,221175398,99855445,293316530,100425715,100933227,124746019,100426526,193788584,227912852,217901892,215723891,100389667,82332540,99854134,187846997,100425596,97852080,99851530,114549548,100928860}
  6. local eggs2016 = {380569757,380569898,380571635,380568058,380566768,380569475,380569233,380567134,380572365,380567431,380571758,380568704,380567887,380567610,380570229,380566976,380568975,380571402,380571866,380570526,380571974,383222049,380566339,380570824,380570993,380571199}
  7. local eggs2015 = {220248116,228004659,228005171,220247973,228005586,228004057,228005092,228004033,220247385,229747532,228005653,228004210,220248343,228004747,228004629,228005139,228005217,220248259,228004277,228005538,220246797,228005053}
  8. local eggs2014 = {152980324,152980442,152980450,152980428,152980413,152980628,152980589,152980734,152980606,152980639,152980763,152980783,152980796,152980772,152980777,153563497,153563557,153563520,153563580,153563617,153563710,153563680,153581784,153584045,153581866,152980818,152980504,152980562,153563851,153563878,152980754,153059501,153059434,153059639}
  9. local eggs2013 = {108150260,106713287,102611668,102618732,102611450,110706992,110704033,110706148,102607079,102631707,110704846,110706539,102617886,105332455,110703943,110705572,100933389,110702207,106690067,102611965,105342700,111776247,110705006,102618069,102614621,110789084,110789152,110790905,110718551,110719580,110720049,110790103,110790044,110790072}
  10. local eggs2012 = {76692866,76692831,76692269,76692790,76692739,76692077,76692637,76692532,76692196,76692515,76692437,76692214,76692381,76692350,76692331,76692249,76692291,76692407,76692143,76692172,76692611,76692101,76692318,76692582,76692709}
  11. local eggs2010 = {24826787,24826640,24826693,24826737,24826811,24826840,24826656,24826683,24826800,24826853,24826725,24826755,24826704,24832618,24832637,24830979,27345567,31156903,31151864,31157811,27398610,31149956,31149244,24826625,24826823,24826614,24826771}
  12. local eggs2008 = {1532381,1532385,1532387,1532388,1532390,1532395,1532396,1532384,1532386,1532389}
  13. local banned = {380570824,380570993,380571199}
  14.  
  15. function findintable(entry,table1)
  16. for _, egg in ipairs(table1) do
  17. if egg == entry then
  18. return true
  19. end
  20. end
  21. end
  22.  
  23. MP = game:GetService("MarketplaceService")
  24. player = game.Players.LocalPlayer
  25.  
  26. owns2019 = {}
  27. downs2019 = {}
  28.  
  29. owns2018 = {}
  30. downs2018 = {}
  31.  
  32. owns2017 = {}
  33. downs2017 = {}
  34.  
  35. owns2016 = {}
  36. downs2016 = {}
  37.  
  38. owns2015 = {}
  39. downs2015 = {}
  40.  
  41. owns2014 = {}
  42. downs2014 = {}
  43.  
  44. owns2013 = {}
  45. downs2013 = {}
  46.  
  47. owns2012 = {}
  48. downs2012 = {}
  49.  
  50. owns2010 = {}
  51. downs2010 = {}
  52.  
  53. owns2008 = {}
  54. downs2008 = {}
  55.  
  56.  
  57. script.Parent.Frame.eh19.Frame.Frame.Play.MouseButton1Click:Connect(function()
  58. game:GetService("TeleportService"):Teleport(2546368429, player)
  59. end)
  60. script.Parent.Frame.eh18.Frame.Frame.Play.MouseButton1Click:Connect(function()
  61. game:GetService("TeleportService"):Teleport(1441335069, player)
  62. end)
  63. script.Parent.Frame.eh17.Frame.Frame.Play.MouseButton1Click:Connect(function()
  64. game:GetService("TeleportService"):Teleport(715646038, player)
  65. end)
  66. script.Parent.Frame.eh16.Frame.Frame.Play.MouseButton1Click:Connect(function()
  67. game:GetService("TeleportService"):Teleport(380200827, player)
  68. end)
  69. script.Parent.Frame.eh14.Frame.Frame.Play.MouseButton1Click:Connect(function()
  70. game:GetService("TeleportService"):Teleport(2585137440, player)
  71. end)
  72. script.Parent.Frame.eh13.Frame.Frame.Play.MouseButton1Click:Connect(function()
  73. game:GetService("TeleportService"):Teleport(226682729, player)
  74. end)
  75. script.Parent.Frame.eh12.Frame.Frame.Play.MouseButton1Click:Connect(function()
  76. game:GetService("TeleportService"):Teleport(1565645159, player)
  77. end)
  78.  
  79. function counteggs(table1,owns,downs,bid)
  80. local lloc = loc
  81. local bcount = 0
  82. lloc.Parent.Frame.Frame.collect.Text = "Collected Eggs: ["..#owns.."/"..#table1-bcount.."]"
  83. if lloc:FindFirstChildOfClass("ImageLabel") then
  84. print("Already loaded")
  85. else
  86. for _, egg in ipairs(table1) do
  87. wait(.2)
  88. print(egg)
  89. local success,message = pcall(function()
  90. rinfo = MP:GetProductInfo(egg,Enum.InfoType.Asset)
  91. end)
  92. if success == false then
  93. warn("Due to roblox's API limitations, they threw back the following error message: "..message)
  94. warn("Retrying in 30 seconds")
  95. wait(30)
  96. warn("Retrying...")
  97. rinfo = MP:GetProductInfo(egg,Enum.InfoType.Asset)
  98. end
  99. local info = rinfo
  100. if MP:PlayerOwnsAsset(player,egg) then
  101. print("Player has: "..info.Name)
  102. table.insert(owns,#owns+1,egg)
  103. local image = Instance.new("ImageLabel")
  104. image.BackgroundTransparency = 0
  105. image.BorderSizePixel = 0
  106. image.BackgroundColor3 = Color3.fromRGB(66, 244, 92)
  107. local success1,message1 = pcall(function()
  108. image.Image = "https://www.roblox.com/asset-thumbnail/image?assetId="..egg.."&width=420&height=420&format=png"
  109. end)
  110. if success1 == false then
  111. warn("Due to roblox's API limitations, they threw back the following error message: "..message1)
  112. warn("Retrying...")
  113. image.Image = "https://www.roblox.com/asset-thumbnail/image?assetId="..egg.."&width=420&height=420&format=png"
  114. end
  115. local label = Instance.new("TextLabel")
  116. label.TextScaled = true
  117. label.TextColor3 = Color3.fromRGB(244, 244, 244)
  118. label.Font = Enum.Font.ArialBold
  119. label.AnchorPoint = Vector2.new(.5,.5)
  120. label.Position = UDim2.new(.5,0,.9,0)
  121. label.Size = UDim2.new(1,0,.1,0)
  122. label.Text = info.Name
  123. label.BackgroundTransparency = 1
  124. label.Parent = image
  125. image.Parent = lloc
  126. lloc.CanvasSize = UDim2.new(0,0,0,lloc.UIGridLayout.AbsoluteContentSize.Y+50)
  127. lloc.Parent.Frame.Frame.collect.Text = "Collected Eggs: ["..#owns.."/"..#table1-bcount.."]"
  128. else
  129. print("Player doesn't have: "..info.Name)
  130. if findintable(egg,banned) ~= true then
  131. print(info.Name.." isn't banned")
  132. table.insert(downs,#downs+1,egg)
  133. else
  134. bcount = bcount+1
  135. print("bcount="..bcount)
  136. end
  137. local image = Instance.new("ImageLabel")
  138. image.BackgroundTransparency = 0
  139. image.BorderSizePixel = 0
  140. image.BackgroundColor3 = Color3.fromRGB(214, 81, 81)
  141. image.Image = "https://www.roblox.com/asset-thumbnail/image?assetId="..egg.."&width=420&height=420&format=png"
  142. local label = Instance.new("TextLabel")
  143. label.Text = info.Name
  144. label.TextScaled = true
  145. label.TextColor3 = Color3.fromRGB(244, 244, 244)
  146. label.Font = Enum.Font.ArialBold
  147. label.AnchorPoint = Vector2.new(.5,.5)
  148. label.Position = UDim2.new(.5,0,.9,0)
  149. label.Size = UDim2.new(1,0,.1,0)
  150. label.BackgroundTransparency = 1
  151. label.Parent = image
  152. image.Parent = lloc
  153. lloc.CanvasSize = UDim2.new(0,0,0,lloc.UIGridLayout.AbsoluteContentSize.Y+50)
  154. lloc.Parent.Frame.Frame.collect.Text = "Collected Eggs: ["..#owns.."/"..#table1-bcount.."]"
  155. end
  156. end
  157. print(#downs)
  158. if #downs == 0 then
  159. print("table is empty")
  160. local has = game:GetService("BadgeService"):UserHasBadgeAsync(player.UserId, bid)
  161. if has ~= true then
  162. print("doesnt have")
  163. game:GetService("ReplicatedStorage").badge:FireServer(bid)
  164. else
  165. print("Player has badge")
  166. end
  167. end
  168. end
  169. end
  170.  
  171. script.Parent.Frame.nav.eh2019.MouseButton1Click:Connect(function()
  172. loc = script.Parent.Frame.eh19.ScrollingFrame
  173. script.Parent.Frame.eh19.Visible = true
  174. script.Parent.Frame.eh18.Visible = false
  175. script.Parent.Frame.eh17.Visible = false
  176. script.Parent.Frame.eh16.Visible = false
  177. script.Parent.Frame.eh15.Visible = false
  178. script.Parent.Frame.eh14.Visible = false
  179. script.Parent.Frame.eh13.Visible = false
  180. script.Parent.Frame.eh12.Visible = false
  181. script.Parent.Frame.eh10.Visible = false
  182. script.Parent.Frame.eh08.Visible = false
  183. script.Parent.Frame.home.Visible = false
  184. counteggs(eggs2019,owns2019,downs2019,2124465429)
  185. end)
  186.  
  187. script.Parent.Frame.nav.eh2018.MouseButton1Click:Connect(function()
  188. loc = script.Parent.Frame.eh18.ScrollingFrame
  189. script.Parent.Frame.eh19.Visible = false
  190. script.Parent.Frame.eh18.Visible = true
  191. script.Parent.Frame.eh17.Visible = false
  192. script.Parent.Frame.eh16.Visible = false
  193. script.Parent.Frame.eh15.Visible = false
  194. script.Parent.Frame.eh14.Visible = false
  195. script.Parent.Frame.eh13.Visible = false
  196. script.Parent.Frame.eh12.Visible = false
  197. script.Parent.Frame.eh10.Visible = false
  198. script.Parent.Frame.eh08.Visible = false
  199. script.Parent.Frame.home.Visible = false
  200. counteggs(eggs2018,owns2018,downs2018,2124465784)
  201. end)
  202.  
  203. script.Parent.Frame.nav.eh2017.MouseButton1Click:Connect(function()
  204. loc = script.Parent.Frame.eh17.ScrollingFrame
  205. script.Parent.Frame.eh19.Visible = false
  206. script.Parent.Frame.eh18.Visible = false
  207. script.Parent.Frame.eh17.Visible = true
  208. script.Parent.Frame.eh16.Visible = false
  209. script.Parent.Frame.eh15.Visible = false
  210. script.Parent.Frame.eh14.Visible = false
  211. script.Parent.Frame.eh13.Visible = false
  212. script.Parent.Frame.eh12.Visible = false
  213. script.Parent.Frame.eh10.Visible = false
  214. script.Parent.Frame.eh08.Visible = false
  215. script.Parent.Frame.home.Visible = false
  216. counteggs(eggs2017,owns2017,downs2017,2124465854)
  217. end)
  218.  
  219. script.Parent.Frame.nav.eh2016.MouseButton1Click:Connect(function()
  220. loc = script.Parent.Frame.eh16.ScrollingFrame
  221. script.Parent.Frame.eh19.Visible = false
  222. script.Parent.Frame.eh18.Visible = false
  223. script.Parent.Frame.eh17.Visible = false
  224. script.Parent.Frame.eh16.Visible = true
  225. script.Parent.Frame.eh15.Visible = false
  226. script.Parent.Frame.eh14.Visible = false
  227. script.Parent.Frame.eh13.Visible = false
  228. script.Parent.Frame.eh12.Visible = false
  229. script.Parent.Frame.eh10.Visible = false
  230. script.Parent.Frame.eh08.Visible = false
  231. script.Parent.Frame.home.Visible = false
  232. counteggs(eggs2016,owns2016,downs2016,2124465872)
  233. end)
  234.  
  235. script.Parent.Frame.nav.eh2015.MouseButton1Click:Connect(function()
  236. loc = script.Parent.Frame.eh15.ScrollingFrame
  237. script.Parent.Frame.eh19.Visible = false
  238. script.Parent.Frame.eh18.Visible = false
  239. script.Parent.Frame.eh17.Visible = false
  240. script.Parent.Frame.eh16.Visible = false
  241. script.Parent.Frame.eh15.Visible = true
  242. script.Parent.Frame.eh14.Visible = false
  243. script.Parent.Frame.eh13.Visible = false
  244. script.Parent.Frame.eh12.Visible = false
  245. script.Parent.Frame.eh10.Visible = false
  246. script.Parent.Frame.eh08.Visible = false
  247. script.Parent.Frame.home.Visible = false
  248. counteggs(eggs2015,owns2015,downs2015,2124466025)
  249. end)
  250. script.Parent.Frame.nav.eh2014.MouseButton1Click:Connect(function()
  251. loc = script.Parent.Frame.eh14.ScrollingFrame
  252. script.Parent.Frame.eh19.Visible = false
  253. script.Parent.Frame.eh18.Visible = false
  254. script.Parent.Frame.eh17.Visible = false
  255. script.Parent.Frame.eh16.Visible = false
  256. script.Parent.Frame.eh15.Visible = false
  257. script.Parent.Frame.eh14.Visible = true
  258. script.Parent.Frame.eh13.Visible = false
  259. script.Parent.Frame.eh12.Visible = false
  260. script.Parent.Frame.eh10.Visible = false
  261. script.Parent.Frame.eh08.Visible = false
  262. script.Parent.Frame.home.Visible = false
  263. counteggs(eggs2014,owns2014,downs2014,2124466089)
  264. end)
  265. script.Parent.Frame.nav.eh2013.MouseButton1Click:Connect(function()
  266. loc = script.Parent.Frame.eh13.ScrollingFrame
  267. script.Parent.Frame.eh19.Visible = false
  268. script.Parent.Frame.eh18.Visible = false
  269. script.Parent.Frame.eh17.Visible = false
  270. script.Parent.Frame.eh16.Visible = false
  271. script.Parent.Frame.eh15.Visible = false
  272. script.Parent.Frame.eh14.Visible = false
  273. script.Parent.Frame.eh13.Visible = true
  274. script.Parent.Frame.eh12.Visible = false
  275. script.Parent.Frame.eh10.Visible = false
  276. script.Parent.Frame.eh08.Visible = false
  277. script.Parent.Frame.home.Visible = false
  278. counteggs(eggs2013,owns2013,downs2013,2124466103)
  279. end)
  280. script.Parent.Frame.nav.eh2012.MouseButton1Click:Connect(function()
  281. loc = script.Parent.Frame.eh12.ScrollingFrame
  282. script.Parent.Frame.eh19.Visible = false
  283. script.Parent.Frame.eh18.Visible = false
  284. script.Parent.Frame.eh17.Visible = false
  285. script.Parent.Frame.eh16.Visible = false
  286. script.Parent.Frame.eh15.Visible = false
  287. script.Parent.Frame.eh14.Visible = false
  288. script.Parent.Frame.eh13.Visible = false
  289. script.Parent.Frame.eh12.Visible = true
  290. script.Parent.Frame.eh10.Visible = false
  291. script.Parent.Frame.eh08.Visible = false
  292. script.Parent.Frame.home.Visible = false
  293. counteggs(eggs2012,owns2012,downs2012,2124466178)
  294. end)
  295.  
  296. script.Parent.Frame.nav.eh2010.MouseButton1Click:Connect(function()
  297. loc = script.Parent.Frame.eh10.ScrollingFrame
  298. script.Parent.Frame.eh19.Visible = false
  299. script.Parent.Frame.eh18.Visible = false
  300. script.Parent.Frame.eh17.Visible = false
  301. script.Parent.Frame.eh16.Visible = false
  302. script.Parent.Frame.eh15.Visible = false
  303. script.Parent.Frame.eh14.Visible = false
  304. script.Parent.Frame.eh13.Visible = false
  305. script.Parent.Frame.eh12.Visible = false
  306. script.Parent.Frame.eh10.Visible = true
  307. script.Parent.Frame.eh08.Visible = false
  308. script.Parent.Frame.home.Visible = false
  309. counteggs(eggs2010,owns2010,downs2010,2124466194)
  310. end)
  311.  
  312. script.Parent.Frame.nav.eh2008.MouseButton1Click:Connect(function()
  313. loc = script.Parent.Frame.eh08.ScrollingFrame
  314. script.Parent.Frame.eh19.Visible = false
  315. script.Parent.Frame.eh18.Visible = false
  316. script.Parent.Frame.eh17.Visible = false
  317. script.Parent.Frame.eh16.Visible = false
  318. script.Parent.Frame.eh15.Visible = false
  319. script.Parent.Frame.eh14.Visible = false
  320. script.Parent.Frame.eh13.Visible = false
  321. script.Parent.Frame.eh12.Visible = false
  322. script.Parent.Frame.eh10.Visible = false
  323. script.Parent.Frame.eh08.Visible = true
  324. script.Parent.Frame.home.Visible = false
  325. counteggs(eggs2008,owns2008,downs2008,2124467039)
  326. end)
  327.  
  328. spawn(function()
  329. while true do
  330. math.randomseed(tick())
  331. local color = Color3.fromRGB(math.random(255),math.random(255),math.random(255))
  332. for i = .1,1 do
  333. wait()
  334. script.Parent.Frame.home.Frame.thumb.ImageColor3 = script.Parent.Frame.home.Frame.thumb.ImageColor3:lerp(color, i)
  335. end
  336. end
  337. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement