I’ve got a local script inside of StarterPlayerScripts, and a popup notification. However, the buttons don’t seem to do anything. Anyone got any ideas?
StarterGui:SetCore("SendNotification", {
Title = randomPass.Name,
Text = randomPass.Description,
Icon = randomPass.Icon,
Duration = duration,
Button1 = "Buy",
Button2 = "Later",
Callback = BindableFunction
})
local function onInvoke(text: string)
if text:lower() == "Buy" then
MarketplaceService:PromptGamePassPurchase(Player.UserId, LAST_ID)
end
end
local BindableFunction = Instance.new("BindableFunction")