So whats happening is basically that this gamepass owning thing is not working and i don't understand how to use the new system may anyone help me heres my code:
elseif Team == "Vampire" then
if game:GetService("MarketplaceService"):PlayerOwnsAsset(Player, 4770250) then
-- Spawn
if State == "Spawning" then
Player.Character:WaitForChild("HumanoidRootPart").CFrame = CFrame.new(4.08, 7.45, -185.67)
end
-- Spawn
Player.TeamColor = BrickColor.new("Really red")
DressUp()
else
game:GetService("MarketplaceService"):PromptPurchase(Player, 4770250)
end

3 comments
You should be using "UserOwnsGamepassAsync" and "PromptGamepassPurchase". Wiki pages: http://robloxdev.com/api-reference/function/MarketplaceService/UserOwnsGamePassAsync and http://robloxdev.com/api-reference/function/MarketplaceService/PromptGamePassPurchase
Well could you show me an example with my code please since i said i knew i was meant to use this but after reading the wiki still confused on how to
if game:GetService("MarketplaceService"):UserOwnsGamepassAsync(Player.UserId, 4770250) then