Hi guys,
not going to lie, I took this script from a forum (It's literally the most basic script ever) because I refuse to code 12 lines if I can just copy paste it.
The script is ment to check if the player owns a gamepass, and then gives him a tool to his backpack and startertools. The script goes as follows:
local id = (Removed ID for privacy)
local item = game.ServerStorage.GoldenArmor
game.Players.PlayerAdded:connect(function(player)
if game:GetService("GamePassService"):PlayerHasPass(player, id) then
local a = item:Clone()
a.Parent = player.Backpack
print(player.Name .. " has the game pass!")
else
print(player.Name .. " doesn't have the game pass...")
end
end)
I made my own gamepass on the game's page and put it on sale, it says I own it, and yet whenever I join to check the dev console, it says I don't own the pass??

1 comment
why would you remove the id for privacy? lol, we can just view your roblox profile and see your gamepasses anyways.