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!
passid = 162695807 tools = {"Duck Bike"} local GamePassService = game:GetService("GamePassService") function respawned(char) local player = game.Players:FindFirstChild(char.Name) if char:FindFirstChild("Head") ~= nil then wait (0.01) if GamePassService:PlayerHasPass(player, passid) then script.Parent:remove() else end end end game.Workspace.ChildAdded:connect(respawned)