Advertisement
1zxyuuki

Untitled

Feb 25th, 2024 (edited)
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.93 KB | None | 0 0
  1. local Fluent = loadstring(game:HttpGet("https://github.com/dawid-scripts/Fluent/releases/latest/download/main.lua"))()
  2. local SaveManager = loadstring(game:HttpGet("https://raw.githubusercontent.com/dawid-scripts/Fluent/master/Addons/SaveManager.lua"))()
  3. local InterfaceManager = loadstring(game:HttpGet("https://raw.githubusercontent.com/dawid-scripts/Fluent/master/Addons/InterfaceManager.lua"))()
  4.  
  5. local Window = Fluent:CreateWindow({
  6. Title = "Yuki Ware",
  7. SubTitle = "| discord server: discord.gg/94Sdk3yV",
  8. TabWidth = 160,
  9. Size = UDim2.fromOffset(580, 460),
  10. Acrylic = true,
  11. Theme = "Amethyst",
  12. MinimizeKey = Enum.KeyCode.LeftControl
  13. })
  14.  
  15.  
  16. local Tabs = {
  17. Autofarm = Window:AddTab({ Title = "Autofarm", Icon = "repeat" }),
  18. Settings = Window:AddTab({ Title = "Settings", Icon = "settings" })
  19. }
  20.  
  21.  
  22. local InventoryItems = game:GetService("Players").LocalPlayer.PlayerGui.Inventory.Frame.Inventory.Items
  23. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  24. local SellItemEvent = ReplicatedStorage.Systems.Shops.SellItem
  25.  
  26. -- Função para determinar a raridade com base na cor do brilho
  27. local function GetRarity(glowColor)
  28. local r, g, b = glowColor.R * 255, glowColor.G * 255, glowColor.B * 255
  29. if r == 200 and g == 200 and b == 200 then
  30. return "Common"
  31. -- Adicione mais lógica aqui para outras raridades, se necessário
  32. else
  33. return "Unknown" -- Se não for uma cor comum, você pode definir como "Unknown" ou adicionar mais verificações para outras raridades
  34. end
  35. end
  36.  
  37. local function AutoSellItems()
  38. for _, itemIcon in ipairs(InventoryItems:GetChildren()) do
  39. local glow = itemIcon:FindFirstChild("Glow")
  40. if glow then
  41. local rarity = GetRarity(glow.BackgroundColor3)
  42. if rarity == "Common" then
  43. local itemName = itemIcon.ItemReference.Name
  44. local args = {
  45. [1] = itemIcon.ItemReference
  46. }
  47. SellItemEvent:FireServer(unpack(args))
  48. end
  49. end
  50. end
  51. end
  52.  
  53. local autoSellCommonToggle = Tabs.Autofarm:AddToggle("AutoSellCommon", {
  54. Title = "Auto Sell Common Items",
  55. Description = "Automatically sell common items",
  56. Default = false
  57. })
  58.  
  59. autoSellCommonToggle:OnChanged(function()
  60. while autoSellCommonToggle.Value do
  61. AutoSellItems()
  62. wait(1) -- Aguarda um segundo antes de verificar novamente
  63. end
  64. end)
  65.  
  66.  
  67. SaveManager:SetLibrary(Fluent)
  68. InterfaceManager:SetLibrary(Fluent)
  69.  
  70.  
  71. SaveManager:IgnoreThemeSettings()
  72. SaveManager:SetIgnoreIndexes({})
  73. InterfaceManager:SetFolder("YWare")
  74. SaveManager:SetFolder("YWare/SB2")
  75.  
  76. InterfaceManager:BuildInterfaceSection(Tabs.Settings)
  77. SaveManager:BuildConfigSection(Tabs.Settings)
  78.  
  79.  
  80. Window:SelectTab(1)
  81.  
  82. Fluent:Notify({
  83. Title = "YukiWare",
  84. Content = "The script has been loaded.",
  85. Duration = 8
  86. })
  87. SaveManager:LoadAutoloadConfig()
  88.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement