#Inventory error
12 messages · Page 1 of 1 (latest)
provide the script
basically error says your are providing nil value instead of something to clone
The problem may with the script you are firing event to the server from
since it passes a nil value
instead of itemName
inventoryEvent.OnServerEvent:Connect(function(player, ItemName, Value, button)
if Value == false then
local SelectedItem = player.Inventory:FindFirstChild(ItemName)
local backpack = player.Backpack:GetChildren()
local stuff = player.Character:GetChildren()
if #backpack == 0 and not player.Character:FindFirstChildWhichIsA("Tool") then
button.Text = "Unequip"
button.BackgroundColor3 = Color3.new(255,0,0)
SelectedItem:Clone().Parent = player.Backpack
''ServerScriptService.InventoryScript:23: attempt to index nil with 'Clone''
Thats what your error says
are you passing any value in ItemName?
Did you check that
** You are now Level 1! **