How would I go about making a tool arranger setting?

Lets say theres 5 tools,
1 shoot
2 pass
3 long
4 tackle
5 dribble

If a player goes into his settings gui, enters that shoot is put number 4 and tackle is put number 1,
how would i make a code that makes it when you reset, shoot goes to slot 4 and tackle goes slot 1

( by default, shoot is 1 and tackle is 4 )

You would need to make your own toolbar to make it dynamic, but for a simple fix, store the position of every tool in a dictionary, delete the tools from their inventory and insert each one in order from first to last.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.