Youtube_AppealsCat

Auto Get Trait Script

Oct 4th, 2024
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.70 KB | None | 0 0
  1. -- // Remove Traits you dont want.
  2. getgenv().WantedThoseTraits = {"Prime","Overconfident Prime","Solar","Icarus Solar","Cursed","Undying Cursed","Vampiric","Ancient Vampiric","Gluttonous","Festering Gluttonous","Voided","Abyssal Voided","Gambler","Idle Death Gambler","Overflowing","Torrential Overflowing","Deferred","Fractured Deferred","True","Vitriolic True","Cultivation","Soul Reaping Cultivation","Economic","Greedy Economic","Angelic","Fallen Angelic","Godly","Egotistic Godly","Temporal","FTL Temporal","Spiritual","Psychotic Spiritual","Ryoiki","Heavenly Restricted Ryoiki","RCT","Automatic RCT"};
  3. getgenv().AutoPickingTraits = true; -- // type "false" to stop.
  4.  
  5. task.spawn(function()
  6.     while getgenv().AutoPickingTraits == true do
  7.         if game:GetService("Players").LocalPlayer.PlayerGui.UI.Gameplay.TraitHandPrompt.Visible == true then
  8.             local OpenTraitMenu = game:GetService("Players").LocalPlayer.PlayerGui.UI.Gameplay.MoveHandPrompt.TextLabel;
  9.             game:GetService("VirtualInputManager"):SendMouseButtonEvent(OpenTraitMenu.AbsolutePosition.X+OpenTraitMenu.AbsoluteSize.X/1.5,OpenTraitMenu.AbsolutePosition.Y+37,0,true,OpenTraitMenu,4.5);
  10.             game:GetService("VirtualInputManager"):SendMouseButtonEvent(OpenTraitMenu.AbsolutePosition.X+OpenTraitMenu.AbsoluteSize.X/1.5,OpenTraitMenu.AbsolutePosition.Y+37,0,false,OpenTraitMenu,4.5);
  11.         end
  12.         task.wait(1.35);
  13.         if game:GetService("Players").LocalPlayer.PlayerGui.UI.Gameplay.TraitHands.Visible == true and game:GetService("Players").LocalPlayer.PlayerGui.UI.Gameplay.TraitHands.ShowAll.Visible == true then
  14.             local RevealEverything = game:GetService("Players").LocalPlayer.PlayerGui.UI.Gameplay.TraitHands.ShowAll.TextLabel;
  15.             game:GetService("VirtualInputManager"):SendMouseButtonEvent(RevealEverything.AbsolutePosition.X+RevealEverything.AbsoluteSize.X/1.5,RevealEverything.AbsolutePosition.Y+37,0,true,RevealEverything,4,5);
  16.             game:GetService("VirtualInputManager"):SendMouseButtonEvent(RevealEverything.AbsolutePosition.X+RevealEverything.AbsoluteSize.X/1.5,RevealEverything.AbsolutePosition.Y+37,0,false,RevealEverything,4.5);
  17.         end
  18.     end
  19.     task.wait(0.45);
  20. end)
  21.  
  22. task.spawn(function()
  23.     while getgenv().AutoPickingTraits == true do
  24.         pcall(function()
  25.             local TraitHolder = game:GetService("Players").LocalPlayer.PlayerGui.UI.Gameplay.TraitHands.Holder;            
  26.             local TraitHolders = {TraitHolder["1"].Content.Title.Label,TraitHolder["2"].Content.Title.Label,TraitHolder["3"].Content.Title.Label};
  27.             local DiscardTrait = game:GetService("Players").LocalPlayer.PlayerGui.UI.Gameplay.TraitHands.Discard.TextLabel;
  28.  
  29.             if game:GetService("Players").LocalPlayer.PlayerGui.UI.Gameplay.TraitHands.Visible == true then local FoundTrait = false;
  30.                 for _,v in ipairs(TraitHolders) do
  31.                     for _,x in ipairs(getgenv().WantedThoseTraits) do
  32.                         if v.Text:match(x) then FoundTrait = true;
  33.                             game:GetService("VirtualInputManager"):SendMouseButtonEvent(v.AbsolutePosition.X + v.AbsoluteSize.X/1.5,v.AbsolutePosition.Y + 37,0,true,v,4.5);
  34.                             game:GetService("VirtualInputManager"):SendMouseButtonEvent(v.AbsolutePosition.X + v.AbsoluteSize.X/1.5,v.AbsolutePosition.Y + 37,0,false,v,4.5);
  35.                             task.wait(0.51);for _,x in ipairs(game:GetService("Players").LocalPlayer.PlayerGui.UI.Prompt.Frame.Buttons:GetChildren()) do
  36.                                 if x:IsA("TextButton") then
  37.                                     if x:FindFirstChildOfClass("TextLabel").Text == "Yes" then
  38.                                         game:GetService("VirtualInputManager"):SendMouseButtonEvent(x.AbsolutePosition.X + x.AbsoluteSize.X/1.5,x.AbsolutePosition.Y + 37,0,true,x,4.5);
  39.                                         task.wait(0.1);
  40.                                         game:GetService("VirtualInputManager"):SendMouseButtonEvent(x.AbsolutePosition.X + x.AbsoluteSize.X/1.5,x.AbsolutePosition.Y + 37,0,false,x,4.5);
  41.                                     end
  42.                                 end
  43.                             end
  44.                             task.spawn(function()task.wait(5.15);
  45.                                 getgenv().AutoPickingTraits = false;
  46.                             end)
  47.                         end
  48.                     end
  49.                 end
  50.                 if not FoundTrait then
  51.                     game:GetService("VirtualInputManager"):SendMouseButtonEvent(DiscardTrait.AbsolutePosition.X+DiscardTrait.AbsoluteSize.X/1.5,DiscardTrait.AbsolutePosition.Y+37,0,true,DiscardTrait,4.5);
  52.                     game:GetService("VirtualInputManager"):SendMouseButtonEvent(DiscardTrait.AbsolutePosition.X+DiscardTrait.AbsoluteSize.X/1.5,DiscardTrait.AbsolutePosition.Y+37,0,false,DiscardTrait,4.5);
  53.                     task.wait(0.51);for _,x in ipairs(game:GetService("Players").LocalPlayer.PlayerGui.UI.Prompt.Frame.Buttons:GetChildren()) do
  54.                         if x:IsA("TextButton") then
  55.                             if x:FindFirstChildOfClass("TextLabel").Text == "Yes" then
  56.                                 game:GetService("VirtualInputManager"):SendMouseButtonEvent(x.AbsolutePosition.X + x.AbsoluteSize.X/1.5,x.AbsolutePosition.Y + 37,0,true,x,4.5);
  57.                                 task.wait(0.1);
  58.                                 game:GetService("VirtualInputManager"):SendMouseButtonEvent(x.AbsolutePosition.X + x.AbsoluteSize.X/1.5,x.AbsolutePosition.Y + 37,0,false,x,4.5);
  59.                             end
  60.                         end
  61.                     end
  62.                 end
  63.             end
  64.         end)
  65.         task.wait(1.25);
  66.     end
  67. end)
Add Comment
Please, Sign In to add comment