function onClicked(player) local item = game.ServerStorage.Items.Logs:Clone() local gui = player.PlayerGui.ScreenGui.MainGui.Guis.Backpack if gui.B1.Used.Value == nil then item.Parent = gui.B1 item.Parent.Image = game.ServerStorage.Items.Logs.ItemPic.Value item.Parent.Used.Value = "Logs" end if gui.B1.Used.Value ~= nil and gui.B2.Used.Value == nil then item.Parent = gui.B2 item.Parent.Image = game.ServerStorage.Items.Logs.ItemPic.Value item.Parent.Used.Value = "Logs" end if gui.B1.Used.Value ~= nil and gui.B2.Used.Value ~= nil then end print("Nil") end script.Parent.Model.Root.ClickDetector.MouseClick:connect(onClicked)
So, basically the used value is nil and it's still just going all the way through and printing "nil" anyway to make this work?