How can I dynamically change my custom backpack GUI?

keyword GUI

i’ve made the horrible decision to start coding the backpack GUI i’ve made, but uh
i honestly have no idea what to do

other than

game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)

my code has no other line, i just don’t know what to do


the current UI looks like this:

how can i assign tools to empty slots whenever i equip them, and how can i enable equipping them in the first place?


uh hierarchy if needed:
image