I have a script that is supposed to put items into StarterGear when they own a certain gamepass. What's strange is that it only works on my test server, but not any of the actual game servers. I'm guessing it's a problem with loading the player or the map or even MarketplaceService.
Please help, this is kind of urgent.
This is the script.
local passId = 430308264 local potato = game.Lighting:WaitForChild("Jetpack") function isAuthenticated(player) return game:GetService("MarketplaceService"):PlayerOwnsAsset(player, passId) end game.Players.PlayerAdded:connect(function(player) -- player is already defined if isAuthenticated(player) then potato:Clone().Parent = player.StarterGear print(player.Name .. " HAS BOUGHT A JETPACK!") end end)