Hotbar Position Saving?

Is there a way to make it so the position of tools in a player’s hotbar saves? I’ve already figured out a way to make it so that the tools will remain in a player’s inventory so long as they’ve had it at some point in time.

However, for convenience for the player, I would like it to be the case where once a tool is in a slot from 1-0 on the keyboard, it remains in that slot permanently unless manually moved around by the player. I am using the default ROBLOX toolbar/hotbar for reference.

1 Like

you could remove all the tools from the players inventory and add each of them with a small delay in the set order

1 Like

Depending on the size of the hotbar, it should be as simple as:

[1] = this;
[2] = that;
[3] = thisOtherThing
-- and so on

But thats dependent on how it’s ordered, so unless you’re naming them something like Slot1 or Slot2, you should have a value for what order it should go in.

1 Like