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

GamePass ImageButton localscript not working?

Asked by
KenzaXI 166
9 years ago

I don't get why, In the output it says: "MarketplaceService:PlayerOwnsAsset() player should be of type Player, but is of type nil"

script.Parent.MouseButton1Click:connect(function(plr)
    if game:GetService("MarketplaceService"):PlayerOwnsAsset(plr,277976767) then
        local AS = game.Lighting["atlas sword"]:Clone().Parent == plr.Backpack
    end
end)

Thanks for the help.

Answer this question