where the error is
key1:Clone().parent = player.StarterGear
heres the entire code
local ServerStorage = game:GetService("ServerStorage") local key = ServerStorage["keycardL2"] local marketplacescervice = game:GetService("MarketplaceService") local Players = game:GetService("Players") local gamepassID = 429957 local function onPlayerAdded(player) local haspass = marketplacescervice:UserOwnsGamePassAsync(player.UserId, gamepassID) if haspass then print(player, "owns the gamepass with ID", gamepassID) local key1 = key:Clone() key1.Parent = player:WaitForChild("Backpack") key1:Clone().parent = player.StarterGear end end Players.PlayerAdded:Connect (onPlayerAdded)
you forgot to capitalize part it should be key1:Clone().Parent