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)*
local marketplaceService = game:GetService("MarketplaceService") game.Players.PlayerAdded:Connect(function(plr) wait(1) local owns = marketplaceService:UserOwnsGamePassAsync(plr.UserId,19300147) if owns == true then local clone = game.ReplicatedStorage.SpeedCoil:Clone() clone.Parent = game.Players[plr.Name].Backpack end end)
Try this instead,