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
You should be using "UserOwnsGamepassAsync" and "PromptGamepassPurchase". Wiki pages: UserOwnsGamepassAsyncand PromptGamepassPurchase
Some exampls:
Line 2 -
if game:GetService("MarketplaceService"):UserOwnsGamepassAsync(Player.UserId, 4770250) then
Line 14 -
game:GetService("MarketplaceService"):PromptGamepassPurchase(Player.UserId, 4770250)0)
Your not using the correct methods for game passes. You have to use these: