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)

2 comments
oh when i type script.parent it wont make me so im in the habbit of doing it..
yup it worked thanks so much