Roblox Inventory Bug

Some of my players have recently been experiencing a really strange bug, and I’m not sure if it’s a Roblox issue or something on my end. I’d really appreciate it if it could be looked into.

It seems to happen randomly. When a player enters or exits a VehicleSeat or Seat, the tools in their backpack get rearranged into different hotbar slots (1–10).

I haven’t been able to reproduce it myself, but multiple players have reported it. It doesn’t happen to everyone, so I’m not sure what’s causing it.

A private message is associated with this bug report

2 Likes

This is an issue on your end, Roblox’s current backpack system doesn’t ‘order’ your items, its just sorted as it is found, so if your removing your backpack items and putting them back after it messes up the order because from my understanding they use :GetChildren() to process your items, so whatever loads/processes first comes first.

Therefore you can either:

  • Create your own Inventory System, or using existing ones and create an ordering feature.
  • Instead of removing the items just disable the backpack using game:GetService("StarterGu"):SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false or true) and obviously re-enabling.

So this issue should intentionally be by design..

I don’t remove anything from their inventory (I disable the backpack via startergui)

This only started happening last week, game has been up for almost 2 years and i havent touched anything

Uh no. The tool order is determined by the order the tools are parented to your backpack.

If I parent my tools in order of Sword, Apple, Book, then they’ll be in positions 1-3 respectively. The issue OP is talking about is a new bug where disabling your backpack using StarterGui’s SetCoreGuiEnabled and then enabling your backpack again is causing tools to appear in a different random order (IE, Apple, Book, Sword).

I’m also experiencing this issue as of recent for some players, I think its partially related to auto translate.

Dupe of this report: Auto translation causes inventory sorting errors.

Hi Marioman73, can you elaborate a bit on why the issue may be related to autotranslate? I have tried reproducing it myself on Molitor’s head but have been unable to, and don’t really know of any feature changes that would directly be linked to the hotbar’s behavior.

As of present, the only people who have reported this bug have had that enabled and primarily speak/play in a language other than English.

1 Like

Aha, are you referring to the user facing setting, described in the documentation here? Localization | Documentation - Roblox Creator Hub

I believe so, as my experience settings dont have translations enabled:

So it must be the user one.

All I know is that it’s something with SetCoreGuiEnabled, not sure about the Translation part since my friend who has the issue experiences it as well and he doesn’t have any translation stuff, he’s English.

I’m not able to reproduce it myself so it’s a bit annoying.

@cleverfool97 another update:

The issue doesn’t happen for my friend in Translation Bug Test | Play on Roblox, but when he joins my game it does happen.

Not sure if it’s something with the game settings for every game? but it’s a weird bug

Added a private message note aswell for u to look at

Hm, I’m not seeing the PM note. Could you send me a PM again?