Heres the code
*local Players = game:GetChildren("Players")
local MarketplaceService = game:GetService("MarketplaceService") local id = 19300147
game.Players.PlayerAdded:Connect(function(player) local OwnsPass = MarketplaceService:UserOwnsGamePassAsync(player.UserId, id) if OwnsPass then local SpeedC = game.ReplicatedStorage["Speed Coil"]:Clone() SpeedC.Parent = player.Backpack end end)
local function onPromptGamePassPurchaseFinished(player, purchasedPassID, purchaseSucces) if purchaseSucces == true and purchasedPassID == id then print(player.Name .. "Purchasted Speed Coil BABBY")
local SpeedC = game.ReplicatedStorage["Speed Coil"]:Clone()
SpeedC.Parent = player.Backpack
end
end
MarketplaceService.PromptGamePassPurchaseFinished:Connect(onPromptGamePassPurchaseFinished)*

2 comments
Place It In A Code Block please
can you update it with all of the code? i think you did the gamepass wrong