AUTO Refill Player Hotbar From Backpack

hello! i have a problem:
i have no idea how to automatically refill the hotbar with the items from the players backpack, if there are empty slots.
i tried it with code, but none of the instances i called was even correct.
how would i do that?

thanks for every help!

1 Like

I’m not sure if this is what you’re looking for, but is there a reason you can’t just add them to the hotbar to begin with?

YES! the …s in the corner are not visible and u cant open the backpack, like u see

1 Like

The max tools in the hotbar you can see before pressing the ` key to open the rest of the backpack is 10, you can make a check if the tools are under or over 10 and remove/add them doing so.