It doesn't give the item when they user came in but the user have the gamepass help?
local gamePassService = game:GetService("GamePassService") game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function() if gamePassService:PlayerHasPass(player,529449047) then local sp = game.Lighting:FindFirstChild("Supplier") sp:Clone().Parent = player.Backpack sp:Clone().Parent = player.StarterGear end end) end)
Try using PlayerOwnsAsset it might work , Returns whether the given player has the given asset.
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function() if game:GetService("MarketplaceService"):PlayerOwnsAsset(player,529449047) then local sp = game.Lighting:FindFirstChild("Supplier") sp:Clone().Parent = player.Backpack sp:Clone().Parent = player.StartGear end end) end)
In ROBLOX Studio GamePasses
can only be inquired by a ServerScript
in a ROBLOX server. Do test not by Studio but by the ROBLOX Player.