Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Whats wrong with my gamepass trails? AGAIN!!!!!

Asked by 7 years ago
Edited 7 years ago

Revert to this for more info; https://scriptinghelpers.org/questions/46597/gamepass-rainbow-trails-do-not-work

This is my new script, when someone comes in with a pass they're supposed to get a trail but it still isn't working.

01local passIDs = {
02    971425430;
03    000000000
04}
05 
06function playerHasPass(plr)
07    for _,id in pairs(passIDs) do
08        if game.MarketplaceService:PlayerOwnsAsset(plr, id) then
09            return true
10        end
11    end
12    return false
13end
14 
15game.Players.PlayerAdded:Connect(function(player)
View all 28 lines...

1 answer

Log in to vote
0
Answered by 7 years ago

taken from the roblox wiki

Badges and Game Passes are no longer qualified as assets, and they should not be used with this method.

To check if a Player owns a game pass, use the GamePassService's PlayerHasPass method.

http://wiki.roblox.com/index.php?title=API:Class/MarketplaceService/PlayerOwnsAsset

Ad

Answer this question