passId = 6632153 --gravity
passId2 = 6632270 --speed
market = game:GetService("MarketplaceService")
game.Players.PlayerAdded:Connect(function(player)
function hasGravityPass(player)
return market:UserOwnsGamePassAsync(player,passId)
end
function hasSpeedPass(player)
return market:UserOwnsGamePassAsync(player,passId2)
end
player.CharacterAdded:Connect(function(char)
if hasGravityPass() == true then
grav = game.ServerStorage.GravityCoil:Clone()
grav.Parent = player.Backpack
end
if hasSpeedPass() == true then
speed = game.ServerStorage["Acceleration Coil"]:Clone()
speed.Parent = player.Backpack
end
end)
end)
It is returning with an error of "Argument 1 missing or nil"

1 comment
okay thanks