Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Egg Counter
- game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All,false)
- 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}
- 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}
- 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}
- 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}
- local eggs2015 = {220248116,228004659,228005171,220247973,228005586,228004057,228005092,228004033,220247385,229747532,228005653,228004210,220248343,228004747,228004629,228005139,228005217,220248259,228004277,228005538,220246797,228005053}
- 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}
- 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}
- 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}
- 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}
- local eggs2008 = {1532381,1532385,1532387,1532388,1532390,1532395,1532396,1532384,1532386,1532389}
- local banned = {380570824,380570993,380571199}
- function findintable(entry,table1)
- for _, egg in ipairs(table1) do
- if egg == entry then
- return true
- end
- end
- end
- MP = game:GetService("MarketplaceService")
- player = game.Players.LocalPlayer
- owns2019 = {}
- downs2019 = {}
- owns2018 = {}
- downs2018 = {}
- owns2017 = {}
- downs2017 = {}
- owns2016 = {}
- downs2016 = {}
- owns2015 = {}
- downs2015 = {}
- owns2014 = {}
- downs2014 = {}
- owns2013 = {}
- downs2013 = {}
- owns2012 = {}
- downs2012 = {}
- owns2010 = {}
- downs2010 = {}
- owns2008 = {}
- downs2008 = {}
- script.Parent.Frame.eh19.Frame.Frame.Play.MouseButton1Click:Connect(function()
- game:GetService("TeleportService"):Teleport(2546368429, player)
- end)
- script.Parent.Frame.eh18.Frame.Frame.Play.MouseButton1Click:Connect(function()
- game:GetService("TeleportService"):Teleport(1441335069, player)
- end)
- script.Parent.Frame.eh17.Frame.Frame.Play.MouseButton1Click:Connect(function()
- game:GetService("TeleportService"):Teleport(715646038, player)
- end)
- script.Parent.Frame.eh16.Frame.Frame.Play.MouseButton1Click:Connect(function()
- game:GetService("TeleportService"):Teleport(380200827, player)
- end)
- script.Parent.Frame.eh14.Frame.Frame.Play.MouseButton1Click:Connect(function()
- game:GetService("TeleportService"):Teleport(2585137440, player)
- end)
- script.Parent.Frame.eh13.Frame.Frame.Play.MouseButton1Click:Connect(function()
- game:GetService("TeleportService"):Teleport(226682729, player)
- end)
- script.Parent.Frame.eh12.Frame.Frame.Play.MouseButton1Click:Connect(function()
- game:GetService("TeleportService"):Teleport(1565645159, player)
- end)
- function counteggs(table1,owns,downs,bid)
- local lloc = loc
- local bcount = 0
- lloc.Parent.Frame.Frame.collect.Text = "Collected Eggs: ["..#owns.."/"..#table1-bcount.."]"
- if lloc:FindFirstChildOfClass("ImageLabel") then
- print("Already loaded")
- else
- for _, egg in ipairs(table1) do
- wait(.2)
- print(egg)
- local success,message = pcall(function()
- rinfo = MP:GetProductInfo(egg,Enum.InfoType.Asset)
- end)
- if success == false then
- warn("Due to roblox's API limitations, they threw back the following error message: "..message)
- warn("Retrying in 30 seconds")
- wait(30)
- warn("Retrying...")
- rinfo = MP:GetProductInfo(egg,Enum.InfoType.Asset)
- end
- local info = rinfo
- if MP:PlayerOwnsAsset(player,egg) then
- print("Player has: "..info.Name)
- table.insert(owns,#owns+1,egg)
- local image = Instance.new("ImageLabel")
- image.BackgroundTransparency = 0
- image.BorderSizePixel = 0
- image.BackgroundColor3 = Color3.fromRGB(66, 244, 92)
- local success1,message1 = pcall(function()
- image.Image = "https://www.roblox.com/asset-thumbnail/image?assetId="..egg.."&width=420&height=420&format=png"
- end)
- if success1 == false then
- warn("Due to roblox's API limitations, they threw back the following error message: "..message1)
- warn("Retrying...")
- image.Image = "https://www.roblox.com/asset-thumbnail/image?assetId="..egg.."&width=420&height=420&format=png"
- end
- local label = Instance.new("TextLabel")
- label.TextScaled = true
- label.TextColor3 = Color3.fromRGB(244, 244, 244)
- label.Font = Enum.Font.ArialBold
- label.AnchorPoint = Vector2.new(.5,.5)
- label.Position = UDim2.new(.5,0,.9,0)
- label.Size = UDim2.new(1,0,.1,0)
- label.Text = info.Name
- label.BackgroundTransparency = 1
- label.Parent = image
- image.Parent = lloc
- lloc.CanvasSize = UDim2.new(0,0,0,lloc.UIGridLayout.AbsoluteContentSize.Y+50)
- lloc.Parent.Frame.Frame.collect.Text = "Collected Eggs: ["..#owns.."/"..#table1-bcount.."]"
- else
- print("Player doesn't have: "..info.Name)
- if findintable(egg,banned) ~= true then
- print(info.Name.." isn't banned")
- table.insert(downs,#downs+1,egg)
- else
- bcount = bcount+1
- print("bcount="..bcount)
- end
- local image = Instance.new("ImageLabel")
- image.BackgroundTransparency = 0
- image.BorderSizePixel = 0
- image.BackgroundColor3 = Color3.fromRGB(214, 81, 81)
- image.Image = "https://www.roblox.com/asset-thumbnail/image?assetId="..egg.."&width=420&height=420&format=png"
- local label = Instance.new("TextLabel")
- label.Text = info.Name
- label.TextScaled = true
- label.TextColor3 = Color3.fromRGB(244, 244, 244)
- label.Font = Enum.Font.ArialBold
- label.AnchorPoint = Vector2.new(.5,.5)
- label.Position = UDim2.new(.5,0,.9,0)
- label.Size = UDim2.new(1,0,.1,0)
- label.BackgroundTransparency = 1
- label.Parent = image
- image.Parent = lloc
- lloc.CanvasSize = UDim2.new(0,0,0,lloc.UIGridLayout.AbsoluteContentSize.Y+50)
- lloc.Parent.Frame.Frame.collect.Text = "Collected Eggs: ["..#owns.."/"..#table1-bcount.."]"
- end
- end
- print(#downs)
- if #downs == 0 then
- print("table is empty")
- local has = game:GetService("BadgeService"):UserHasBadgeAsync(player.UserId, bid)
- if has ~= true then
- print("doesnt have")
- game:GetService("ReplicatedStorage").badge:FireServer(bid)
- else
- print("Player has badge")
- end
- end
- end
- end
- script.Parent.Frame.nav.eh2019.MouseButton1Click:Connect(function()
- loc = script.Parent.Frame.eh19.ScrollingFrame
- script.Parent.Frame.eh19.Visible = true
- script.Parent.Frame.eh18.Visible = false
- script.Parent.Frame.eh17.Visible = false
- script.Parent.Frame.eh16.Visible = false
- script.Parent.Frame.eh15.Visible = false
- script.Parent.Frame.eh14.Visible = false
- script.Parent.Frame.eh13.Visible = false
- script.Parent.Frame.eh12.Visible = false
- script.Parent.Frame.eh10.Visible = false
- script.Parent.Frame.eh08.Visible = false
- script.Parent.Frame.home.Visible = false
- counteggs(eggs2019,owns2019,downs2019,2124465429)
- end)
- script.Parent.Frame.nav.eh2018.MouseButton1Click:Connect(function()
- loc = script.Parent.Frame.eh18.ScrollingFrame
- script.Parent.Frame.eh19.Visible = false
- script.Parent.Frame.eh18.Visible = true
- script.Parent.Frame.eh17.Visible = false
- script.Parent.Frame.eh16.Visible = false
- script.Parent.Frame.eh15.Visible = false
- script.Parent.Frame.eh14.Visible = false
- script.Parent.Frame.eh13.Visible = false
- script.Parent.Frame.eh12.Visible = false
- script.Parent.Frame.eh10.Visible = false
- script.Parent.Frame.eh08.Visible = false
- script.Parent.Frame.home.Visible = false
- counteggs(eggs2018,owns2018,downs2018,2124465784)
- end)
- script.Parent.Frame.nav.eh2017.MouseButton1Click:Connect(function()
- loc = script.Parent.Frame.eh17.ScrollingFrame
- script.Parent.Frame.eh19.Visible = false
- script.Parent.Frame.eh18.Visible = false
- script.Parent.Frame.eh17.Visible = true
- script.Parent.Frame.eh16.Visible = false
- script.Parent.Frame.eh15.Visible = false
- script.Parent.Frame.eh14.Visible = false
- script.Parent.Frame.eh13.Visible = false
- script.Parent.Frame.eh12.Visible = false
- script.Parent.Frame.eh10.Visible = false
- script.Parent.Frame.eh08.Visible = false
- script.Parent.Frame.home.Visible = false
- counteggs(eggs2017,owns2017,downs2017,2124465854)
- end)
- script.Parent.Frame.nav.eh2016.MouseButton1Click:Connect(function()
- loc = script.Parent.Frame.eh16.ScrollingFrame
- script.Parent.Frame.eh19.Visible = false
- script.Parent.Frame.eh18.Visible = false
- script.Parent.Frame.eh17.Visible = false
- script.Parent.Frame.eh16.Visible = true
- script.Parent.Frame.eh15.Visible = false
- script.Parent.Frame.eh14.Visible = false
- script.Parent.Frame.eh13.Visible = false
- script.Parent.Frame.eh12.Visible = false
- script.Parent.Frame.eh10.Visible = false
- script.Parent.Frame.eh08.Visible = false
- script.Parent.Frame.home.Visible = false
- counteggs(eggs2016,owns2016,downs2016,2124465872)
- end)
- script.Parent.Frame.nav.eh2015.MouseButton1Click:Connect(function()
- loc = script.Parent.Frame.eh15.ScrollingFrame
- script.Parent.Frame.eh19.Visible = false
- script.Parent.Frame.eh18.Visible = false
- script.Parent.Frame.eh17.Visible = false
- script.Parent.Frame.eh16.Visible = false
- script.Parent.Frame.eh15.Visible = true
- script.Parent.Frame.eh14.Visible = false
- script.Parent.Frame.eh13.Visible = false
- script.Parent.Frame.eh12.Visible = false
- script.Parent.Frame.eh10.Visible = false
- script.Parent.Frame.eh08.Visible = false
- script.Parent.Frame.home.Visible = false
- counteggs(eggs2015,owns2015,downs2015,2124466025)
- end)
- script.Parent.Frame.nav.eh2014.MouseButton1Click:Connect(function()
- loc = script.Parent.Frame.eh14.ScrollingFrame
- script.Parent.Frame.eh19.Visible = false
- script.Parent.Frame.eh18.Visible = false
- script.Parent.Frame.eh17.Visible = false
- script.Parent.Frame.eh16.Visible = false
- script.Parent.Frame.eh15.Visible = false
- script.Parent.Frame.eh14.Visible = true
- script.Parent.Frame.eh13.Visible = false
- script.Parent.Frame.eh12.Visible = false
- script.Parent.Frame.eh10.Visible = false
- script.Parent.Frame.eh08.Visible = false
- script.Parent.Frame.home.Visible = false
- counteggs(eggs2014,owns2014,downs2014,2124466089)
- end)
- script.Parent.Frame.nav.eh2013.MouseButton1Click:Connect(function()
- loc = script.Parent.Frame.eh13.ScrollingFrame
- script.Parent.Frame.eh19.Visible = false
- script.Parent.Frame.eh18.Visible = false
- script.Parent.Frame.eh17.Visible = false
- script.Parent.Frame.eh16.Visible = false
- script.Parent.Frame.eh15.Visible = false
- script.Parent.Frame.eh14.Visible = false
- script.Parent.Frame.eh13.Visible = true
- script.Parent.Frame.eh12.Visible = false
- script.Parent.Frame.eh10.Visible = false
- script.Parent.Frame.eh08.Visible = false
- script.Parent.Frame.home.Visible = false
- counteggs(eggs2013,owns2013,downs2013,2124466103)
- end)
- script.Parent.Frame.nav.eh2012.MouseButton1Click:Connect(function()
- loc = script.Parent.Frame.eh12.ScrollingFrame
- script.Parent.Frame.eh19.Visible = false
- script.Parent.Frame.eh18.Visible = false
- script.Parent.Frame.eh17.Visible = false
- script.Parent.Frame.eh16.Visible = false
- script.Parent.Frame.eh15.Visible = false
- script.Parent.Frame.eh14.Visible = false
- script.Parent.Frame.eh13.Visible = false
- script.Parent.Frame.eh12.Visible = true
- script.Parent.Frame.eh10.Visible = false
- script.Parent.Frame.eh08.Visible = false
- script.Parent.Frame.home.Visible = false
- counteggs(eggs2012,owns2012,downs2012,2124466178)
- end)
- script.Parent.Frame.nav.eh2010.MouseButton1Click:Connect(function()
- loc = script.Parent.Frame.eh10.ScrollingFrame
- script.Parent.Frame.eh19.Visible = false
- script.Parent.Frame.eh18.Visible = false
- script.Parent.Frame.eh17.Visible = false
- script.Parent.Frame.eh16.Visible = false
- script.Parent.Frame.eh15.Visible = false
- script.Parent.Frame.eh14.Visible = false
- script.Parent.Frame.eh13.Visible = false
- script.Parent.Frame.eh12.Visible = false
- script.Parent.Frame.eh10.Visible = true
- script.Parent.Frame.eh08.Visible = false
- script.Parent.Frame.home.Visible = false
- counteggs(eggs2010,owns2010,downs2010,2124466194)
- end)
- script.Parent.Frame.nav.eh2008.MouseButton1Click:Connect(function()
- loc = script.Parent.Frame.eh08.ScrollingFrame
- script.Parent.Frame.eh19.Visible = false
- script.Parent.Frame.eh18.Visible = false
- script.Parent.Frame.eh17.Visible = false
- script.Parent.Frame.eh16.Visible = false
- script.Parent.Frame.eh15.Visible = false
- script.Parent.Frame.eh14.Visible = false
- script.Parent.Frame.eh13.Visible = false
- script.Parent.Frame.eh12.Visible = false
- script.Parent.Frame.eh10.Visible = false
- script.Parent.Frame.eh08.Visible = true
- script.Parent.Frame.home.Visible = false
- counteggs(eggs2008,owns2008,downs2008,2124467039)
- end)
- spawn(function()
- while true do
- math.randomseed(tick())
- local color = Color3.fromRGB(math.random(255),math.random(255),math.random(255))
- for i = .1,1 do
- wait()
- script.Parent.Frame.home.Frame.thumb.ImageColor3 = script.Parent.Frame.home.Frame.thumb.ImageColor3:lerp(color, i)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement