From 257fa9132bfd052961de78b20b769ecead080a03 Mon Sep 17 00:00:00 2001 From: pluviolithic Date: Mon, 4 Dec 2023 12:14:03 -0500 Subject: [PATCH] Closes #106 --- src/client/UI/BillboardShops/EggShop.lua | 9 +++++++-- src/client/UI/init.lua | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/client/UI/BillboardShops/EggShop.lua b/src/client/UI/BillboardShops/EggShop.lua index d0f416f..ac69042 100644 --- a/src/client/UI/BillboardShops/EggShop.lua +++ b/src/client/UI/BillboardShops/EggShop.lua @@ -22,6 +22,7 @@ local autoHatchGamepassID = ReplicatedStorage.Config.GamepassData.IDs["AutoHatch local tripleHatchGamepassID = ReplicatedStorage.Config.GamepassData.IDs["3xHatch"].Value local doubleLuckGamepassID = ReplicatedStorage.Config.GamepassData.IDs["2xLuck"].Value local tripleLuckGamepassID = ReplicatedStorage.Config.GamepassData.IDs["3xLuck"].Value +local fasterHatchGamepassID = ReplicatedStorage.Config.GamepassData.IDs["FasterHatch"].Value local hatchingUI = player.PlayerGui:WaitForChild "Hatching" @@ -407,14 +408,18 @@ local function handleShop(shop): () buyEgg(1, true) end) - shop.Background["2xLuck"].Activated:Connect(function() + shop.Background.Passes["2xLuck"].Activated:Connect(function() MarketplaceService:PromptGamePassPurchase(player, doubleLuckGamepassID) end) - shop.Background["3xLuck"].Activated:Connect(function() + shop.Background.Passes["3xLuck"].Activated:Connect(function() MarketplaceService:PromptGamePassPurchase(player, tripleLuckGamepassID) end) + shop.Background.Passes.FasterHatch.Activated:Connect(function() + MarketplaceService:PromptGamePassPurchase(player, fasterHatchGamepassID) + end) + listeners[shop] = function(keyCode: Enum.KeyCode): () if keyCode == Enum.KeyCode.E then buyEgg(1, false) diff --git a/src/client/UI/init.lua b/src/client/UI/init.lua index 6623468..4b5481c 100644 --- a/src/client/UI/init.lua +++ b/src/client/UI/init.lua @@ -8,5 +8,5 @@ require(script.SettingsUI) require(script.FixRichText) require(script.Inventories) require(script.ChestTimerUI) ---require(script.BillboardShops) +require(script.BillboardShops) return 0