Advertisement
Guest User

Untitled

a guest
Dec 27th, 2024
365
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.99 KB | None | 0 0
  1. --[[
  2.  
  3. Jujutsu Infinite Script
  4. by: @not.node
  5.  
  6. ]]--
  7.  
  8. if getgenv().JUJUTSU_INFINITE then return end
  9.  
  10. getgenv().JUJUTSU_INFINITE = {}
  11.  
  12. getgenv().JUJUTSU_INFINITE.AUTO_FARM = {}
  13. getgenv().JUJUTSU_INFINITE.AUTO_FARM.ENABLED = false
  14. getgenv().JUJUTSU_INFINITE.AUTO_FARM.AUTO_M1 = false
  15.  
  16. local UILibrary = loadstring(game:GetObjects('rbxassetid://7657867786')[1].Source)()
  17.  
  18. local Window = UILibrary:CreateWindow({ Name = 'Jujutsu Infinite' })
  19.  
  20. local MainTab = Window:CreateTab({ Name = 'Main' })
  21. local AutoFarmSection = MainTab:CreateSection({ Name = 'Auto Farm' })
  22.  
  23. AutoFarmSection:AddToggle({
  24.     Name = 'Enable',
  25.     Flag = 'JUJUTSU_INFINITE.AUTO_FARM.ENABLED',
  26.     Callback = function(Value: boolean)
  27.         JUJUTSU_INFINITE.AUTO_FARM.ENABLED = Value
  28.     end,
  29.     Value = false
  30. })
  31.  
  32. AutoFarmSection:AddToggle({
  33.     Name = 'Auto M1',
  34.     Flag = 'JUJUTSU_INFINITE.AUTO_FARM.AUTO_M1',
  35.     Callback = function(Value: boolean)
  36.         JUJUTSU_INFINITE.AUTO_FARM.AUTO_M1 = Value
  37.     end,
  38.     Value = false
  39. })
  40.  
  41. local RunService = game:GetService('RunService')
  42. local ReplicatedStorage = game:GetService('ReplicatedStorage')
  43.  
  44. local Player = game:GetService('Players').LocalPlayer
  45. local PlayerGui = Player:WaitForChild('PlayerGui')
  46.  
  47. local Remotes = ReplicatedStorage:WaitForChild('Remotes')
  48. local ServerRemotes = Remotes.Server
  49. local AcceptQuestRemote = ServerRemotes.Data.AcceptQuest
  50. local M1Remote = ServerRemotes.Combat.M1
  51.  
  52. local function M1(Mob: Instance): nil
  53.     if not Mob:IsDescendantOf(workspace) then return end
  54.    
  55.     local Humanoid = Mob:FindFirstChildOfClass('Humanoid')
  56.    
  57.     if not Humanoid then return end
  58.  
  59.     M1Remote:FireServer(2, {Humanoid})
  60. end
  61.  
  62. local function AcceptQuest(): nil
  63.     local Config = {
  64.             ['type'] = 'Kill',
  65.             ['set'] = 'Shijo Town Set',
  66.             ['rewards'] = {
  67.                 ['essence'] = 2,
  68.                 ['cash'] = 3178,
  69.                 ['exp'] = 54621,
  70.                 ['chestMeter'] = 55
  71.             },
  72.             ['rewardsText'] = '$3178 | 54621 EXP | 2 Mission Essence',
  73.             ['difficulty'] = 2,
  74.             ['title'] = 'Defeat',
  75.             ['level'] = 51,
  76.             ['subtitle'] = 'a Curse User',
  77.             ['grade'] = 'Non Sorcerer'
  78.     }
  79.  
  80.     AcceptQuestRemote:InvokeServer(Config)
  81. end
  82.  
  83. local function GetQuestMob(): Model | nil
  84.     local QuestMarker = PlayerGui:WaitForChild('QuestMarker', 1)
  85.    
  86.     if not QuestMarker then return end
  87.    
  88.     local Adornee = QuestMarker.Adornee
  89.    
  90.     if not Adornee then return end
  91.    
  92.     local Mob = Adornee.Parent
  93.    
  94.     if not Mob:FindFirstChildOfClass('Humanoid') then return end
  95.    
  96.     return Mob
  97. end
  98.  
  99. local function GotoMob(): nil
  100.     local Character = Player.Character
  101.    
  102.     if not Character then return end
  103.    
  104.     local Mob = GetQuestMob()
  105.    
  106.     if not Mob then return end
  107.    
  108.     local HumanoidRootPart = Mob:FindFirstChild('HumanoidRootPart')
  109.    
  110.     if not HumanoidRootPart then return end
  111.    
  112.     Character:PivotTo(HumanoidRootPart.CFrame)
  113. end
  114.  
  115. local function Update(): nil
  116.     if not JUJUTSU_INFINITE.AUTO_FARM.ENABLED then return end
  117.    
  118.     AcceptQuest()
  119.     GotoMob()
  120.    
  121.     if JUJUTSU_INFINITE.AUTO_FARM.AUTO_M1 then M1(GetQuestMob()) end
  122. end
  123.  
  124. RunService.RenderStepped:Connect(Update)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement