#How to Item stacking?

1 messages · Page 1 of 1 (latest)

tepid forge
#

How do I make item with the same name stack with the amount shown too? Is there a specific script or service I need to learn or any tutorial?

vagrant hound
#

Inventory = {itemName = Count}

#

Basic example of it

hexed zealot
# vagrant hound Inventory = {itemName = Count}

or you can just make tool that has value "Amount" and when grabbing new tool instead of giving another tool it adds +1 Amount and you can make custombackpack to make textlabel that shows amount of "Amount" or just make like that guy said.

#

@tepid forge

vagrant hound
#

Most obvious s1

hexed zealot
#

They both works same so i just take simplier

viscid crestBOT
#

studio** You are now Level 14! **studio

vagrant hound
hexed zealot
vagrant hound
hexed zealot
#

remove it

#

i mean

#

check

#
local rock = backpack:FindFirstChild("rock") or char:FindFirstChild("rock")
If rock then
  rock.Amount.Value += 1
end
#

@vagrant hound

vagrant hound
#

IntValue 😭

#

Bro this ain't 2019

hexed zealot
vagrant hound
#

Or just store the data within a table

hexed zealot
#

yeah

vagrant hound
#

Just make like a Inventory Manager

#

And store what the player has in there

#

And create a util function that checks if the item they want is a duplicate of what they already have

#

ez

hexed zealot
tepid forge
#

So I need to learn data service as well as how to make a custom hotbar?