Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --CHANGE "page_10" IN BANK TO DESIRED PAGE--
- local bank = game.Players.LocalPlayer.PlayerGui.GUI.inventory.globalItems.page_10 --BANK LOCATION
- local slot = "item (0, 0)" --BASE SLOT NAME
- --CONFIGURABLE--
- local rItem = "item7.62 Clip" --CHECK LIGHTING/ASSETS FOR LIST
- local rCount = 1 --CHANGE TO NUMBER OF ITEMS
- local mass = true --FILLS THE ENTIRE PAGE
- local singleItem = false --FILLS FIRST SLOT
- local singleLine = false --FILLS ENTIRE LINE VERTICAL
- local cItem = "item7.62mm Clip"
- local getMaxCount = true --GETS MAX COUNT OF ITEM
- local getList = false --GETS LIST OF ALL ITEMS
- --[[
- MAX NUMBER OF ITEMS FOR ALL EXCEPT WEAPONS
- AND AMMO IS 32, MAX FOR AMMO IS INTIAL AMMOUNT
- YOU'LL FIND IN A CLIP WHEN IT SPAWNS, YOU CAN FIND THAT
- VALUE IN LIGHTING/ASSETS. MAX COUNT FOR WEAPONS IS 1.
- IF YOU TRY TO CHANGE THE COUNT TO ABOVE MAX YOU'LL
- DIE SO DON'T DO IT.
- --]]
- --BASE CODE--
- if mass == false and singleItem == false and singleLine == false then
- print("ERROR: You need to set one of the spawn types to true.")
- end
- if singleItem == true then
- for i = 0, 0 do
- slot = "item (0, "..i..")"
- bank[slot].item.Value = rItem
- bank[slot].count.Value = rCount
- print("Added item type of: ("..rItem..") to slot: ("..slot..") of count ("..rCount.. ")")
- end
- end
- if singleLine == true then
- for i = 0, 5 do
- slot = "item (0, "..i..")"
- bank[slot].item.Value = rItem
- bank[slot].count.Value = rCount
- print("Added item type of: ("..rItem..") to slot: ("..slot..") of count ("..rCount.. ")")
- end
- end
- if mass == true then
- for i = 0, 5 do
- slot = "item (0, "..i..")"
- bank[slot].item.Value = rItem
- bank[slot].count.Value = rCount
- print("Added item type of: ("..rItem..") to slot: ("..slot..") of count ("..rCount.. ")")
- end
- for i = 0, 5 do
- slot = "item (1, "..i..")"
- bank[slot].item.Value = rItem
- bank[slot].count.Value = rCount
- print("Added item type of: ("..rItem..") to slot: ("..slot..") of count ("..rCount.. ")")
- end
- for i = 0, 5 do
- slot = "item (2, "..i..")"
- bank[slot].item.Value = rItem
- bank[slot].count.Value = rCount
- print("Added item type of: ("..rItem..") to slot: ("..slot..") of count ("..rCount.. ")")
- end
- for i = 0, 5 do
- slot = "item (3, "..i..")"
- bank[slot].item.Value = rItem
- bank[slot].count.Value = rCount
- print("Added item type of: ("..rItem..") to slot: ("..slot..") of count ("..rCount.. ")")
- end
- for i = 0, 5 do
- slot = "item (4, "..i..")"
- bank[slot].item.Value = rItem
- bank[slot].count.Value = rCount
- print("Added item type of: ("..rItem..") to slot: ("..slot..") of count ("..rCount.. ")")
- end
- for i = 0, 5 do
- slot = "item (5, "..i..")"
- bank[slot].item.Value = rItem
- bank[slot].count.Value = rCount
- print("Added item type of: ("..rItem..") to slot: ("..slot..") of count ("..rCount.. ")")
- end
- end
- --[[
- ps. Hey guys! I'm a begginer at lua so don't laugh at my code
- please, to do this I had to look most of it up... so lol
- if it's not optimized that's expected. Will be adding to this
- script in the future to come =)
- --]]
- --BETA FUNCTIONS
- local fullItems = game.Lighting.assets.items
- if
- print(fullItems[cItem].count.Value)
- --END--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement