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.