It never prints MouseButton1 when I click the button I need to use InputBegan, as I need to pass the input. But it only prints MouseMovement (when mouse enters) but never clicking
for _, slot in HUD.Inventory.Content.Main.Hotbar:GetChildren() do
if not slot:IsA("ImageButton") then continue end
SlotController:Create(slot)
print(1)
--// Dragging
slot.InputBegan:Connect(function(input)
print(input.UserInputType)
if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
print(1)
DragController:Start(input, slot.Content)
end
end)
end
That’s definately the issue. I do this everywhere, the extra brackets are not necessary. It’s also printing the mousemovement inputbegan, so it’s definately firing