Can I get player's inventory to play with and not affect that player's inventory ? I am not interested in getContents(), I'd rather create fake player. Is it possible ? Thanks.
so, only cloning the inventory is good for the think you want, I recommend that you create an new inventory using Server.CrreateInventory, then iterating over the items from the target player and placing them inside the new inventory (dont forgot to copy them else its may mess up between) then displaying the new inventory to the player
I need to modify player's inventory multiple times, and I want to see the result of modification before it actually happens. And function that modifies it requires an instance of player and accesses his inventory.