Notification buttons not working

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")

you are lowering the string

use this

RemoteFunction.OnClientInvoke = function(String)
	if string.lower(String) == "buy" then
		MarketplaceService:PromptGamePassPurchase(Player.UserId, LAST_ID)
	end
end
2 Likes

No difference, still doesn’t prompt the purchase. No errors, nothing.