Greetings, I’m trying to make a Tetris styled inventory like Tarkov or Resident Evil, but the problem is that I don’t know how to detect if an item is outside of the inventory like this:
Probably the important part of the code:
ItemBox.DragStopped:Connect(function()
Dragging = false
if BoxDraggedOn then
ItemBox.Position = UDim2.new(0, BoxDraggedOn.AbsolutePosition.X, 0, BoxDraggedOn.AbsolutePosition.Y + 36)
else
ItemBox.Position = StartBox
end
end)