This script that is in a TextBox in a GUI is not working. Its really simple. Yet not working. Here it is:
local pass = 187194807
script.Parent.MouseButton1Click:connect(function()
game:GetService("MarketplaceService"):PromptPurchase(player, pass)
end)
Output(Red):
20:21:19.001 - MarketplaceService:PromptPurchase() player should be of type Player, but is of type nil |