If you see more errors please fix them but if not dont go out of your way to do so
local gamepassid_ = 8172261
game.Players.PlayerAdded:Connect(function(player)
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.userId, gamepassid) then
if player.Backpack:FindFirstChild("GravityCoil") == nil and player.Character:FindFirstChild("GravityCoil") == nil then
game.ServerStorage:FindFirstChild("GravityCoil"):Clone()
b.Parent = player.Backpack
end
end
end)
error is on:
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.userId, gamepassid) then

2 comments
I believe it's player.UserId not player.userId
I believe it's player.UserId not player.userId