So right now I have a local script in the PlayerScripts that says this:
local p = game.Players.LocalPlayer p.CharacterAdded:Connect(function(c) if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(p,2380022448) == true then --item.Parent = player backpack end end)
Is it correct? I'm new to the UserOwnsGamePassAsnyc bit.
You could also make this in a regular script, placed in the ServerScriptService.
game.Players.PlayerAdded:Connect(function(p) p.CharacterAdded:Connect(function() if game:GetService("MarketPlaceService"):OwnsGamePassAsync(p,2380022448) then item.Parent = p.Backpack end end) end)