The script is a localscript and is inside a Image button. the script is :
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)
I don't get why it won't work, Because the output says: "MarketplaceService:PlayerOwnsAsset() player should be of type Player, but is of type nil" Thanks for the help.

1 comment
Cheers