The following is suppose get a random gear when a part is touched and clone it to the players inventory. The problem is picking the random gear.
local Gears = game.ServerStorage.Gears:GetChildren()
script.Parent.Touched:Connect(function(Hit)
if Hit.Parent:FindFirstChild("Humanoid") then
local Player = game.Players:GetPlayerFromCharacter(Hit.Parent)
local Inventory = Player.Backpack
local RandomGear = math.random(1, #Gears) -- PROBLEM HERE
RandomGear.Parent = Inventory
end
end)

2 comments
Np, I will try this.
This worked thx.