local REMOTE = Instance.new("RemoteEvent")
REMOTE.Name = "Box_event"
REMOTE.Parent = game.ReplicatedStorage
game.ReplicatedStorage.Box_event.OnServerEvent:Connect(function(Player,Item)
local ItemsList = game.ServerStorage.Items:GetChildren()
if (Player.Character.HumanoidRootPart.Position - Item.Position).magnitude < 10 then
local ChosenItem = math.random(1, #ItemsList)
local Clone = game.ServerStorage.Items[ChosenItem]:Clone() -- problem
Clone.Parent = Player.Backpack
end
end)
On the math.random, I want it to choose a number and on the next line, copy that tool that is that number in the folder. But it only returns a number instead.

2 comments
Is Itemlist[1] the same as just doing game.ServerStorage.Items.Sword? (In this case, object 1 in table is a sword.)
Yeah it would be