"Out-of-Date" Roblox Wiki pages

[I’m new to devforum so this might be the wrong topic :/]

Anyway, it only happened to me twice, where the roblox wiki default script didn’t work, but the 2 examples are;

Gamepasses Documentation - Roblox Creator Hub

The script

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.

3 Likes

Also even though it might be off-topic i’d appreciate help on formatting text :tired_face:

When was the player collision script giving you issues? I updated that page a week or so ago: Documentation - Roblox Creator Hub

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?

You can also prefix the line with hashtags + a space e.g.

Heading 1

# Heading 1

Heading 2

## Heading 2

Heading 3

### Heading 3

Heading 4

#### Heading 4

Heading 5

##### Heading 5

Heading 6 (smallest heading)

###### Heading 6

Even smaller
<small>Even smaller</small>

I’ll fix it. Thanks for the note :slight_smile:

You can always ask me and @bakmamba74 with wiki changes as well.

2 Likes

Alright.

Thanks :slight_smile:

@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 :confused: like 1.0, 2.0 or 3.0)

It is intended that all players are grouped into one collision group since we are disabling collisions for them all collectively.

Also: you are currently limited to 32 collision groups.