#How to Item stacking?
1 messages · Page 1 of 1 (latest)
You would want to learn tables and how to store stuff within them
Inventory = {itemName = Count}
Basic example of it
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
Most obvious s1
They both works same so i just take simplier
** You are now Level 14! **
It is more work to create attributes instead of using a dictionary or array 😭
I just DONT want to have like 3,4,5+ same tools in backpack
Check if the player already has the tool before giving them one 😭
That what i mean by "Amount" to tool
remove it
i mean
check
local rock = backpack:FindFirstChild("rock") or char:FindFirstChild("rock")
If rock then
rock.Amount.Value += 1
end
@vagrant hound
or attribute
Or just store the data within a table
yeah
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
hmm yeah, better than adding to all giving scripts this
So I need to learn data service as well as how to make a custom hotbar?