Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Credits to; JasonJJK
- Official thread; https://v3rmillion.net/showthread.php?tid=942848
- -------------------------------------------------------------------------------
- Script was provided from the official Demon Slayers Community Server; https://discord.gg/ADEVZ5R
- Official thread; https://v3rmillion.net/showthread.php?tid=936292 |<-- More info
- ]]--
- RARITYTOSELL = "common" -- common, uncommon, rare, epic, legendary
- local weapons = {}
- local abilities = {}
- local chests = {}
- local helmets = {}
- for i,v in pairs (game:GetService("Players").LocalPlayer.PlayerGui.inventory.mainBackground.innerBackground.rightSideFrame.ScrollingFrame:GetChildren()) do
- if v:IsA("ImageLabel") then
- local itemtype = tostring(v.itemType.Value)
- local id = v.itemType.uniqueItemNum.Value
- if RARITYTOSELL == "common" then
- if v.ImageColor3 == Color3.fromRGB(152,152,152) then
- if itemtype == "weapon" then
- table.insert(weapons, id)
- end
- if itemtype == "ability" then
- table.insert(abilities, id)
- end
- if itemtype == "chest" then
- table.insert(chests, id)
- end
- if itemtype == "helmet" then
- table.insert(helmets, id)
- end
- end
- end
- if RARITYTOSELL == "uncommon" then
- if v.ImageColor3 == Color3.fromRGB(91,194,80) then
- if itemtype == "weapon" then
- table.insert(weapons, id)
- end
- if itemtype == "ability" then
- table.insert(abilities, id)
- end
- if itemtype == "chest" then
- table.insert(chests, id)
- end
- if itemtype == "helmet" then
- table.insert(helmets, id)
- end
- end
- end
- if RARITYTOSELL == "rare" then
- if v.ImageColor3 == Color3.fromRGB(75,77,195) then
- if itemtype == "weapon" then
- table.insert(weapons, id)
- end
- if itemtype == "ability" then
- table.insert(abilities, id)
- end
- if itemtype == "chest" then
- table.insert(chests, id)
- end
- if itemtype == "helmet" then
- table.insert(helmets, id)
- end
- end
- end
- if RARITYTOSELL == "epic" then
- if v.ImageColor3 == Color3.fromRGB(146,70,159) then
- if itemtype == "weapon" then
- table.insert(weapons, id)
- end
- if itemtype == "ability" then
- table.insert(abilities, id)
- end
- if itemtype == "chest" then
- table.insert(chests, id)
- end
- if itemtype == "helmet" then
- table.insert(helmets, id)
- end
- end
- end
- if RARITYTOSELL == "legendary" then
- if v.ImageColor3 == Color3.fromRGB(244,154,9) then
- if itemtype == "weapon" then
- table.insert(weapons, id)
- end
- if itemtype == "ability" then
- table.insert(abilities, id)
- end
- if itemtype == "chest" then
- table.insert(chests, id)
- end
- if itemtype == "helmet" then
- table.insert(helmets, id)
- end
- end
- end
- end
- end
- local stuff = {
- ability = abilities,
- helmet = helmets,
- chest = chests,
- weapon = weapons,
- }
- game.ReplicatedStorage.remotes.sellItemEvent:FireServer(stuff)
Advertisement
Add Comment
Please, Sign In to add comment