I am wondering how I would get this to work. The script will delete a BUY NOW button if the user already owns the Gamepass connected to it.
local passid = 162695807 -- The ID of the gamepass goes here
local tools = {"Duck Bike"} -- Here you just put the name(s) of the tool(s) you want given. (Tools must be put in the lighting)
local GamePassService = Game:GetService('GamePassService')
game.Players.PlayerAdded:connect(function(player)
if GamePassService:PlayerHasPass(player, passid) then
script.Parent:remove()
end
end)
This is what I have so far, but the chances of it working are very, very slim!

7 comments
is this in a Localscript?
Yes
Playeradded doesn't work with a localscript, do use the childadded function or localplayer.
And if I made this a normal script?
try it.
Didn't work! D:
Is that a free model?... :p