Hello, my name is Kyle! I’m making a GUI where you can change the tool order, nothing to simple. I know how to do everything but one simple thing. The easiest part, which is literally just to signify the tool order. Let me explain a little more. As you all know there are tools, and a way to change the orders of tools. But, when you reset it doesn’t save. So I just want to find like, the tool order. Kind of like a part in the workspace
game.Workspace.Part
So would it be the same concept of that, or how would I save it?
Sorry if this is a waste of time, but no one else said it, no YT videos about it, nothing.
You can use StarterGear to keep your tools after respawn. Tools that you put in StarterGear will always save in your inventory after respawn.
Code example:
local Tool = script.Parent
local player = game.Players.LocalPlayer
Tool.Parent = player.StarterGear
Do you wish to have it as a pre-set tool position by default?
e.g. a weapon would be in position one, a flashlight in position two.
If so, each time a player respawns, you can copy the tools in order and parent them to the players backpack. If not, you may have to create your own custom inventory system for that, or you could go based off of the backpack corescript.
Thank you, I will try that and get back to you if it works! But, will the tool order save with it?
1 Like
Im not sure though. I havent tried ordering the tools before. But maybe it will. Try and see.
The tool order saves alphabetically.
Edit: Nevermind, the tool order saves oldest to newest.
Edit 2: Nevermind#2, the tool order goes from top to bottom.
So it ddn’t work, and sorry I didn’t respawn to you. So what I am trying to make is it saves like the tool order. So when you get into the game, you can press ` and it opens a slot with all your tools. You can edit them to how you like, but they don’t save when you reset/get killed. And that makes it hard for new Developers making games, with stuff like ECS, Roblox’s guns, wolfechan, and all of that. I made a video showing what I mean. (Couldn’t upload for some reason)
What I meant with my reply is this:

The player would see this:

I’m still unsure how roblox’s inventory works though.
(I sorted the items before I reset)
I don’t think you know what I mean. Unless it’s like a local script changing like the order. But I want the player actually playing the game to be able to choose the order. Here is the video: Tool order on Vimeo As you can see in the video, the tools don’t save on death.
I did the same thing like you though.
When a tool enters the backpack, the tool assigns itself as the next tool after the tool right at last. There is no alphabetical order in the backpack.
If there is, let’s say, 2 tools in your backpack, if you picked up a tool which goes to your backpack, the tool that was picked up will assign itself as the 3rd (last) tool.
Hope this is understandable
In that video, I am explaining how the changes don’t save. I have never used this SaveFilter thing before so I decided not to mess around. I found it in the Object Browser, should I like use that event? 
Test it and see if it works. aaaa(charlimit)
Did StarterGear work, or did it just reset the order of the tools as usual?
Testing. Sorry, my mom was calling me.
1 Like
This post may look similar to this post: Arrange the order of the tools in a player’s backpack? - Scripting Helpers
What they meant is as if the player dies, remove the children (tools) and then instantly put them in a backpack (in order), so make a table within the custom backpack and sort it using for i, v in pairs() do to add it in an order
I saw you edit, I was trying to find a way to put the tools in there through script. You can’t do it through explorer. I know you have to add the players so child added. But that’s where I’m lost . I have the player, I think I might have to get the players username. I am not sure at all. I am a new scripter as I said, and I am still exploring all the functions/events on the Object browser.
Oh and uh, the link that you sent me. I kind of understood it, but barely. So I was honestly to embarrassed to talk, and act all smart, when I don’t know to much about it, ya know? Like correcting some one, but you’re the one who’s wrong.
And I just tested it. Sadly it didn’t work.
1 Like