Backpack Order Saving

After reviewing this post:

It would appear that no one gave a valuable reply.
Based on the scripting he/she/it used. Is there a way to save a tools place in the inventory after death/respawn?
NOTE: I am not after a leave saving script

Remove the tools and then add them in by order

local player = game:GetService("Players").LocalPlayer
local x = player.Backpack:GetChildren()
for _,v in ipairs(player.Character:GetChildren()) do
    if v.ClassName=="Tool" then
        x[#x+1]=v
    end
end;
table.sort(x,function(a,b) 
    return a.Name<b.Name
    end)
for _,t in ipairs(x) do t.Parent=nil 
    end
wait()
for _,t in ipairs(x) do t.Parent=player.Backpack 
    end
1 Like

I believe you misunderstood what I talked or kind of looked for. The script is meant to save the tools positions in the backpack. It currently doesn’t work? It is in the wrong place? ServerScriptStorage currently. It is a module script