local passId = 0000 --change this to your GamePass Id
local marketplaceService = game:GetService("MarketplaceService")
marketplaceService.PromptPurchaseFinished:connect(function(player,assetId,isPurchased)
if isPurchased then --if the player did pay
if assetId == passId then --if what they bought is the pass
print(player.Name .. " bought the pass (" .. passId .. ")")
end
end
end)
Gives the error "18:05:41.219 - AssetId '837859114' is of type Game Pass. Please use GamePassService:PlayerHasPass instead."
And the other one is the player collision script, it’s really glitchy, it sometimes works, but mostly doesn’t.
I’ve fixed your formatting. Putting ----- underneath a post title makes it a header. (Google Markdown).
For the script you have, it needs to be updated to be
function isAuthenticated(player) -- checks to see if the player owns your pass
return game:GetService("GamePassService"):PlayerHasPass(player, passId)
end
Note that I would edit it, but I got pruned from the wiki for inactivity (would be happy to see this change!). Calling @Maximum_ADHD or @UristMcSparks to fix this!
Oh, I used the script from the wiki around a month ago or so, i’ll see if the new one fixes it.
And about the gamepass one, would it even be possible for me to give effect right after the player bought it?
@cowbear16
Just tried it with the updated version, still same thing.
Also, one thing I noticed, is that the only collision that’s disabled, seems to be Blocky against Blocky <— (Even forgot the other name for blockys like 1.0, 2.0 or 3.0)