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

i have a bit of trouble with a gamepass more detail below :D?

Asked by 2 years ago

i know this is a ltlle random but does anyone know how to fix this, this script goves you a sword deatheater everytime if you have the gamepass and i want it to give it to me onely one because everytime you rejion it gives you another one. here is the script:

local MarketPlaceService = game:GetService("MarketplaceService") local GamepassID = 26594004 -- The Gamepass ID game.Players.PlayerAdded:Connect(function(player) if MarketPlaceService:UserOwnsGamePassAsync(player.UserId, GamepassID) then game.ServerStorage.DeathEater:Clone().Parent = player:WaitForChild("Backpack") game.ServerStorage.DeathEater:Clone().Parent = player:WaitForChild("StarterGear") end end)

Answer this question