Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Cant find player?

Asked by 8 years ago
function Tix(Player)
    game:GetService("MarketplaceService"):PromptPurchase(Player, 286613096,"Tix")
end

I keep trying to get this to send a prompt purchase but the console says that it cant find the player. By the way, I do have the other bits but this is a long script and pasting it all would be a nuisance.

03:35:53.037 - MarketplaceService:PromptPurchase() player should be of type Player, but is of type nil

03:35:53.037 - Script 'Players.Player.PlayerGui.ScreenGui.Shop.Script', Line 177

03:35:53.038 - Stack End

This appears in the output window when I click the button itself. If anyone can help me, I would much appreciate it. Thanks

1
Where did you call the function? Did you pass it a player argument? NotsoPenguin 705 — 8y
0
The problem is with where you called the function, presumably Line 177 Validark 1580 — 8y
0
script.Parent.MreIn.Tix.MouseButton1Click:connect(Tix) This is the argument start. User#9955 0 — 8y

Answer this question