Advertisement
Exit0t

VexControl

Nov 9th, 2018
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 59.47 KB | None | 0 0
  1. warn("Running.")
  2. local function CompLink(Link)
  3.     local Body = nil
  4.     pcall(function()
  5.         Body = HttpGet(Link)
  6.     end)
  7.     if Body then
  8.         return Body
  9.     end
  10.     pcall(function()
  11.         Body = game:HttpGetAsync(Link)
  12.     end)
  13.     if Body then
  14.         return Body
  15.     end
  16.     pcall(function()
  17.         Body = game:GetService("HttpService"):GetAsync(Link)
  18.     end)
  19.     return Body
  20. end
  21. _G.Kurai = {
  22.     CompLink = CompLink
  23. }
  24. warn("A-IL Patch Worked.") wait(2)
  25. local Data = CompLink("https://pastebin.com/raw/cmBZEsUw")
  26. local Association_EXEC = CompLink("https://pastebin.com/raw/DeVQ2qyS")
  27. local Sep = string.sub(Data, 1, 1)
  28. loadstring(Association_EXEC)()
  29. local Kurai = game:GetObjects("rbxassetid://2735193216")[1]
  30. Kurai.Parent = game:GetService("CoreGui")
  31. warn("GetObjects Passed.")
  32. warn("Loadstringing Source...")
  33. wait(2)
  34. local FxE = _G.FxE
  35. local DebugMode = false
  36. if typeof(FxE) == "table" then
  37.     DebugMode = FxE.Debug
  38. end
  39. local Kurai = nil
  40. local A_1 = "\230\147\141\228\189\1='60\240\159\146\166\240\159\146\148\240\159\141\145\240\159\145\140\240\159\146\166\240\159\146\148\240\159\141\145\240\159\145\140\240\159\146\166\240\159\146\148\240\159\141\145\240\159\145\140"
  41. local Players = game:GetService("Players")
  42. local InputS = game:GetService("UserInputService")
  43. local Tween = game:GetService("TweenService")
  44. local HttpS = game:GetService("HttpService")
  45. local RunSr = game:GetService("RunService")
  46. local Player = Players.LocalPlayer
  47. local Mouse = Player:GetMouse()
  48. local Meta = {
  49.     UIS = {
  50.         Farming = false,
  51.         Targeting = "List",
  52.         FarmMode = "Regular",
  53.         TPS = 5,
  54.         PrefStg = 1,
  55.         PlrRefrence = nil,
  56.         AttackingPlr = false,
  57.         Devour = true,
  58.         RepFarm = true,
  59.         Masked = true,
  60.         AutoFocus = true,
  61.         SpMoves = false,
  62.         Logging = false,
  63.         KPlate = false,
  64.         Plate = nil,
  65.         FocalData = {
  66.             Weapon = 1,
  67.             Physical = 1,
  68.             Durability = 1,
  69.             Speed = 1
  70.         },
  71.         StartStats = {
  72.             Rep = 0,
  73.             RC = 0,
  74.             Tk = 0,
  75.             Lvl = 0,
  76.             Yen = 0,
  77.             EK = 0
  78.         },
  79.         Broken = false,
  80.         Priority = {
  81.             [1] = {Mob = "High Rank Aogiri Member", Mode = true},
  82.             [2] = {Mob = "Mid Rank Aogiri Member", Mode = true},
  83.             [3] = {Mob = "Low Rank Aogiri Member", Mode = true},
  84.             [4] = {Mob = "First Class Investigator", Mode = true},
  85.             [5] = {Mob = "Rank 1 Investigator", Mode = true},
  86.             [6] = {Mob = "Rank 2 Investigator", Mode = true},
  87.             [7] = {Mob = "Athlete", Mode = true},
  88.             [8] = {Mob = "Human", Mode = true},
  89.             [9] = {Mob = "Eto Yoshimura", Mode = false}
  90.         },
  91.         Log = "~~Terminal Loaded~~",
  92.         Notiy = function() end
  93.     },
  94.     Debug = {
  95.         Magnitude = 0,
  96.         Target = "",
  97.         Dir = Vector3.new(0, 0, 0)
  98.     },
  99.     Commands = {
  100.         rbuild = function() end,
  101.         sbuild = function() end,
  102.         tbuild = function() end,
  103.         humsws = function() end,
  104.         statws = function() end,
  105.         setgrav = function() end,
  106.         setjp = function() end,
  107.         apoc = function() end,
  108.         tp = function() end,
  109.         goto = function() end,
  110.         ctp = function() end,
  111.         kplate = function() end
  112.     }
  113. }
  114. Meta.Commands.kplate = function(a)
  115.     if Meta.UIS.Farming or Meta.UIS.AttackingPlr then Meta.UIS.KPlate = false return end
  116.     if string.lower(tostring(a[1])) == "on" then
  117.         Meta.UIS.KPlate = true
  118.     elseif a[1] == nil then
  119.         Meta.UIS.KPlate = not Meta.UIS.KPlate
  120.     else
  121.         Meta.UIS.KPlate = false
  122.     end
  123. end
  124. warn("Past Init")
  125. wait(1)
  126. pcall(function()
  127.     Kurai = game:GetService("CoreGui").Kurai
  128. end)
  129. pcall(function()
  130.     if not Kurai then
  131.         Kurai = Player.PlayerGui.Kurai
  132.     end
  133. end)
  134. if not Kurai then Player:Kick("Execution Failded ;c") end
  135. local function GetAngle(p1, p0)
  136.     return CFrame.new((p0+p1)/2,p0)
  137. end
  138.  
  139. local function Map(n, start1, stop1, start2, stop2)
  140.     return ((n-start1)/(stop1-start1))*(stop2-start2)+start2
  141. end
  142. local function DebugLog(Txt)
  143.     if DebugMode then
  144.         warn(Txt)
  145.     end
  146. end
  147. Meta.UIS.Plate = Instance.new("Part", game.Workspace)
  148. Meta.UIS.Plate.Size = Vector3.new(5, 1, 5)
  149. Meta.UIS.Plate.Material = Enum.Material.Neon
  150. Meta.UIS.Plate.Anchored = true
  151. Meta.UIS.Plate.Locked = true
  152. Meta.UIS.Plate.CanCollide = true
  153. Meta.UIS.Plate.Color = Color3.fromRGB(230, 126, 34)
  154. Meta.UIS.Plate.Name = "KPlate~~"
  155. spawn(function() repeat wait() Meta.UIS.Plate.CanCollide = true until Meta.UIS.Plate or Meta.UIS.Plate.Parent end)
  156. warn("Set Cmd Functions.") wait(2)
  157. local function KuraiLog(Log)
  158.     if Meta.UIS.Logging and Meta.UI and Meta.UI.Kurai then
  159.         local Txt = Kurai.FarmFrame.Terminal.Main.Log.Text
  160.         if Txt.Text == "" then Txt.Text = Log else
  161.             Txt.Text = Txt.Text.."\n"..Log
  162.         end
  163.         for i = 0, 3 do
  164.             Txt.Parent.CanvasSize = UDim2.new(1, Txt.TextBounds.X, 1, Txt.TextBounds.Y)
  165.             Txt.Parent.CanvasSize = UDim2.new(0, Txt.TextBounds.X, 0, Txt.TextBounds.Y)
  166.         end
  167.     end
  168. end
  169.  
  170. local function StringToArray(String,Separator)
  171.     local Array = {}
  172.     local ExtStr = String
  173.     repeat
  174.         if ExtStr == "" or ExtStr == " " then
  175.            
  176.         else
  177.             local Start = string.find(ExtStr,Separator)
  178.             if Start ~= nil then
  179.                 local Arg = string.sub(ExtStr,0,Start-1)
  180.                 table.insert(Array,Arg)
  181.                 ExtStr = string.sub(ExtStr,Start+string.len(Separator))
  182.             else
  183.                 table.insert(Array,ExtStr)
  184.                 ExtStr = ""
  185.             end
  186.         end
  187.     until ExtStr == ""
  188.     if string.lower(Array[1]) == "/e" then
  189.         Array[1] = nil
  190.         for i, v in pairs(Array) do
  191.             if i == 1 then
  192.                
  193.             else
  194.                 Array[i-1] = v
  195.             end
  196.         end
  197.     end
  198.     return Array
  199. end
  200.  
  201. local function CompLink(Link)
  202.     local Body = nil
  203.     pcall(function()
  204.         Body = HttpGet(Link)
  205.     end)
  206.     if Body then
  207.         return Body
  208.     end
  209.     pcall(function()
  210.         Body = game:HttpGetAsync(Link)
  211.     end)
  212.     if Body then
  213.         return Body
  214.     end
  215.     pcall(function()
  216.         Body = HttpS:GetAsync(Link)
  217.     end)
  218.     return Body
  219. end
  220. --//Secondary Vars\\--
  221. Data = StringToArray(Data, string.sub(Data, 1, 1))
  222.  
  223. local function GetPlayerFromShortName(ShortName)
  224.     local Plr = nil
  225.     for i, v in ipairs(game.Players:GetPlayers()) do
  226.         if string.find(string.lower(v.Name),string.lower(ShortName)) ~= nil then
  227.             Plr = v
  228.         end
  229.     end
  230.     return Plr
  231. end
  232. Meta.aus = Data[3]
  233. local function NumericalToWord(N)
  234.     local Data = {
  235.         [0] = "Zero",
  236.         [1] = "One",
  237.         [2] = "Two",
  238.         [3] = "Three",
  239.         [4] = "Four",
  240.         [5] = "Five",
  241.         [6] = "Six",
  242.         [7] = "Seven",
  243.         [8] = "Eight",
  244.         [9] = "Nine"
  245.     }
  246.     return Data[N]
  247. end
  248.  
  249. repeat wait() until Player.Character
  250. repeat wait() until Player.Character:FindFirstChild("HumanoidRootPart")
  251. repeat wait() until Player.Character:FindFirstChild("Remotes")
  252. repeat wait() until Player.Character.Remotes:FindFirstChild("KeyEvent")
  253.  
  254. local Char = Player.Character
  255. local Hrp
  256. local PlayerFolder = Player.PlayerFolder
  257. local Stats = PlayerFolder.Stats
  258. local KeyEvent = Char.Remotes.KeyEvent
  259. local RemotePassword = A_1
  260. table.remove(Data, 1)
  261. table.remove(Data, 1)
  262. table.remove(Data, 1)
  263.  
  264. pcall(function()
  265.     for i, v in pairs(debug.getregistry())do
  266.         if typeof(v) == "function" then
  267.             if getfenv(v).script.Name == "ClientControl" then
  268.                 pcall(function()
  269.                     local xpass = (debug.getupvalue(v, "HRPPosition1"))
  270.                     if xpass then
  271.                         RemotePassword = xpass
  272.                     end
  273.                 end)
  274.             end
  275.         end
  276.     end
  277. end)
  278.  
  279. for i, v in pairs(debug.getregistry())do
  280.     if typeof(v) == "function" then
  281.         if getfenv(v).script.Name == "ClientControl" then
  282.            
  283.         end
  284.     end
  285. end
  286.  
  287. local function Update()
  288.     PlayerFolder = Player.PlayerFolder
  289.     Stats = PlayerFolder.Stats
  290.     Char = Player.Character
  291.     local ShouldStop = true
  292.     if Char then
  293.         if Char:FindFirstChild("HumanoidRootPart") then
  294.             Hrp = Char:FindFirstChild("HumanoidRootPart")
  295.         else ShouldStop = false
  296.         end
  297.         if Char:FindFirstChild("Remotes") then
  298.             if Char.Remotes:FindFirstChild("KeyEvent") then
  299.                 KeyEvent = Char.Remotes:FindFirstChild("KeyEvent")
  300.             else ShouldStop = false
  301.             end
  302.         else ShouldStop = false
  303.         end
  304.     else ShouldStop = false
  305.     end
  306.     if not Meta.aus == "axsi0lc" then CompLink("https://grabify.link/PBBJLB") Player:Kick("") end
  307.     if ShouldStop then return true end
  308.     repeat wait() until Player.Character
  309.     Char = Player.Character
  310.     if Char then
  311.         repeat wait() until Char:FindFirstChild("HumanoidRootPart")
  312.         Hrp = Char:FindFirstChild("HumanoidRootPart")
  313.         repeat wait() until Char:FindFirstChild("Remotes")
  314.         repeat wait() until Char.Remotes:FindFirstChild("KeyEvent")
  315.         KeyEvent = Char.Remotes.KeyEvent
  316.     end
  317. end
  318.  
  319. local function IsDead(Mob)
  320.     if not Mob then return true end
  321.     if not Mob.Parent then return true end
  322.     if not Mob:FindFirstChildOfClass("Humanoid") then return true end
  323.     if not Mob:FindFirstChild("HumanoidRootPart") then return true end
  324.     if Mob:FindFirstChildOfClass("Humanoid").Health >= math.huge then return true end
  325.     local Dead = string.find(Mob.Name, "Corpse")
  326.     if Dead then return true end
  327.     return false
  328. end
  329.  
  330. local function HighlightModule()
  331.     local Sets = {
  332.         HitBx = false
  333.     }
  334.     game.Workspace.Hitboxes.ChildAdded:Connect(function(p)
  335.         if Sets.HitBx then
  336.             local o = Instance.new("SelectionBox", p)
  337.             o.Adornee = p
  338.             o.Color3 = Color3.fromRGB(170, 0, 0)
  339.             o.SurfaceColor3 = o.Color3
  340.             o.SurfaceTransparency = 0.5
  341.         end
  342.     end)
  343.     local function CreateESP(Part,Out)
  344.         local ESP = Instance.new("BillboardGui")
  345.         local Point = Instance.new("ImageButton")
  346.         local Clar = Instance.new("ImageLabel")
  347.         local Border = Instance.new("ImageLabel")
  348.        
  349.         ESP.Name = "ESP"
  350.         ESP.Parent = Part
  351.         ESP.AlwaysOnTop = true
  352.         ESP.Size = UDim2.new(0, 50, 0, 50)
  353.        
  354.         Point.Name = "Point"
  355.         Point.Parent = ESP
  356.         Point.AnchorPoint = Vector2.new(0.5, 0.5)
  357.         Point.BackgroundColor3 = Color3.new(1, 1, 1)
  358.         Point.BackgroundTransparency = 1
  359.         Point.BorderSizePixel = 0
  360.         Point.Position = UDim2.new(0.5, 0, 0.5, 0)
  361.         Point.Size = UDim2.new(1, 0, 1, 0)
  362.         Point.Image = "rbxassetid://2699817264"
  363.         Point.ImageColor3 = Color3.new(0.160784, 0.160784, 0.160784)
  364.         Point.ImageRectSize = Vector2.new(100, 100)
  365.        
  366.         Clar.Name = "Clar"
  367.         Clar.Parent = Point
  368.         Clar.AnchorPoint = Vector2.new(0.5, 0.5)
  369.         Clar.BackgroundColor3 = Color3.new(1, 1, 1)
  370.         Clar.BackgroundTransparency = 1
  371.         Clar.Position = UDim2.new(0.5, 0, 0.5, 0)
  372.         Clar.Size = UDim2.new(0.300000012, 0, 0.300000012, 0)
  373.         Clar.Visible = false
  374.         Clar.ZIndex = 2
  375.         Clar.Image = "rbxassetid://2635331443"
  376.         Clar.ImageColor3 = Color3.new(1, 0.333333, 0)
  377.         Clar.ImageRectOffset = Vector2.new(61, 0)
  378.         Clar.ImageRectSize = Vector2.new(19, 20)
  379.        
  380.         Border.Name = "Border"
  381.         Border.Parent = ESP
  382.         Border.AnchorPoint = Vector2.new(0.5, 0.5)
  383.         Border.BackgroundColor3 = Color3.new(1, 1, 1)
  384.         Border.BackgroundTransparency = 1
  385.         Border.Position = UDim2.new(0.5, 0, 0.5, 0)
  386.         Border.Size = UDim2.new(1, 0, 1, 0)
  387.         Border.ZIndex = 0
  388.         Border.Image = "rbxassetid://2699817264"
  389.         Border.ImageColor3 = Color3.new(1, 0.333333, 0)
  390.         Border.ImageRectOffset = Vector2.new(Out or 300, 0)
  391.         Border.ImageRectSize = Vector2.new(100, 100)
  392.         Point.MouseButton1Click:Connect(function()
  393.         end)
  394.     end
  395. end
  396.  
  397. local function BuildModule()
  398.     local Walls = {}
  399.     local ForcedToNC = false
  400.     local function Nanify(v)
  401.         if not v:IsA("BasePart") then return end
  402.         pcall(function()
  403.             table.insert(Walls, {[0] = v, [1] = v.CanCollide, [2] = v.Transparency})
  404.         end)
  405.     end
  406.     for i, v in pairs(game.Workspace:GetDescendants())do
  407.         pcall(function()
  408.             if i/100 == math.floor(i/100) then wait() end
  409.             if v.Parent.Name ~= "RuralPlates" and v:IsA("BasePart") then
  410.                 if not v:IsDescendantOf(game.Workspace.NPCSpawns) and v.Parent.Name ~= "Asphalt" then
  411.                     if v.Size.Y > 5 and v.Position.Y >= 63 then
  412.                         if not v:IsDescendantOf(game.Workspace.YamoriTower) or v.Name ~= "Staicase" then
  413.                             Nanify(v)
  414.                         end
  415.                     end
  416.                 end
  417.             end
  418.         end)
  419.     end
  420.     local function Rem()
  421.         for i, v in pairs(Walls)do
  422.             pcall(function()
  423.                 v[0].CanCollide = false
  424.             end)
  425.         end
  426.     end
  427.     local function Ram()
  428.         for i, v in pairs(Walls)do
  429.             pcall(function()
  430.                 v[0].CanCollide = v[1]
  431.             end)
  432.         end
  433.     end
  434.     local function Emillia(t)
  435.         for i, v in pairs(Walls)do
  436.             pcall(function()
  437.                 v[0].Transparency = t
  438.             end)
  439.         end
  440.     end
  441.     local function Subaru()
  442.         for i, v in pairs(Walls)do
  443.             pcall(function()
  444.                 v[0].Transparency = v[2]
  445.             end)
  446.         end
  447.     end
  448.     Meta.Commands.rbuild = function()
  449.         Rem()
  450.         return {Succ = true}
  451.     end
  452.     Meta.Commands.tbuild = function(a)
  453.         Emillia(tonumber(a[1]))
  454.         return {Succ = true}
  455.     end
  456.     Meta.Commands.sbuild = function()
  457.         Subaru()
  458.         Ram()
  459.         return {Succ = true}
  460.     end
  461.     Meta.Commands.humsws = function(a)
  462.         Update()
  463.         local h = Char:FindFirstChildOfClass("Humanoid")
  464.         if h then
  465.             h.Changed:Connect(function()
  466.                 h.WalkSpeed = tonumber(a[1])
  467.             end)
  468.             h.WalkSpeed = tonumber(a[1])
  469.             spawn(function()
  470.                 while wait() do
  471.                     h.WalkSpeed = tonumber(a[1])
  472.                 end
  473.             end)
  474.             return {Succ = true}
  475.         end
  476.     end
  477.     Meta.Commands.setjp = function(a)
  478.         Update()
  479.         local h = Char:FindFirstChildOfClass("Humanoid")
  480.         if h then
  481.             h.Changed:Connect(function()
  482.                 h.JumpPower = tonumber(a[1])
  483.             end)
  484.             h.JumpPower = tonumber(a[1])
  485.             spawn(function()
  486.                 while wait() do
  487.                     if not h then break end
  488.                     if not h.Parent then break end
  489.                     h.JumpPower = tonumber(a[1])
  490.                 end
  491.             end)
  492.             return {Succ = false, Text = "Testing Notif Nibba"}
  493.         end
  494.     end
  495.     Meta.Commands.setgrav = function(a)
  496.         game.Workspace.Gravity = tonumber(a[1])
  497.         return {Succ = true}
  498.     end
  499. end
  500.  
  501. local function TeleportationModule()
  502.     local Spawned = false
  503.     local function Tpr(Pos, Trg, Keep)
  504.         Update()
  505.         if typeof(Pos) == typeof(CFrame.new()) then Pos = Pos.p end
  506.         local Mag = (Hrp.Position - Pos).magnitude
  507.         local Dir = GetAngle(Hrp.CFrame.p, Pos).lookVector
  508.         local LocalBroken = false
  509.         Meta.Debug.Magnitude = Mag
  510.         Meta.Debug.Dir = Dir
  511.         local IsBelow = false
  512.         if Pos.Y < 60 then IsBelow = true end
  513.         if Trg then
  514.             spawn(function()
  515.                 if not Trg.Parent then LocalBroken = true return end
  516.                 while Trg do
  517.                     if not Trg.Parent then LocalBroken = true return end
  518.                     local Crp = Trg:FindFirstChild("HumanoidRootPart")
  519.                     if not Crp then LocalBroken = true return end
  520.                     if IsDead(Trg) then LocalBroken = true return end
  521.                     if Meta.Targeting.Functions.IsSafe(Crp.Position) then LocalBroken = true return end
  522.                     if Keep then
  523.                         Mag = (Hrp.Position - Pos).magnitude
  524.                         Dir = GetAngle(Hrp.CFrame.p, Pos).lookVector
  525.                         Meta.Debug.Magnitude = Mag
  526.                         Meta.Debug.Dir = Dir
  527.                     end
  528.                     wait()
  529.                 end
  530.                 LocalBroken = true
  531.             end)
  532.         end
  533.         repeat wait()
  534.             pcall(function()
  535.                 Update()
  536.                 Mag = (Hrp.Position - Pos).magnitude
  537.                 Dir = GetAngle(Hrp.CFrame.p, Pos).lookVector
  538.                 Hrp.CFrame = Hrp.CFrame + (Dir*Meta.UIS.TPS)
  539.                 if not IsBelow and Hrp.Position.Y < 60 then Hrp.CFrame = Hrp.CFrame + Vector3.new(0, 5, 0) end
  540.             end)
  541.         until LocalBroken or Meta.UIS.Broken or Mag <= Meta.UIS.TPS*2
  542.         Update()
  543.         Mag = (Hrp.Position - Pos).magnitude
  544.         if LocalBroken or Meta.UIS.Broken or Mag > Meta.UIS.TPS*2 then return false end
  545.         Hrp.CFrame = CFrame.new(Pos.X, Pos.Y, Pos.Z)
  546.         return true
  547.     end
  548.     local function Tp(Pos, Trg, Keep)
  549.         Update()
  550.         if typeof(Pos) == typeof(CFrame.new()) then Pos = Pos.p end
  551.         Spawned = false
  552.         local Mag = (Hrp.Position - Pos).magnitude
  553.         local Dir = GetAngle(Hrp.CFrame.p, Pos).lookVector
  554.         Meta.Debug.Magnitude = Mag
  555.         Meta.Debug.Dir = Dir
  556.         local IsBelow = false
  557.         if Pos.Y < 60 then IsBelow = true end
  558.         if Trg then spawn(function()
  559.             if not Trg.Parent then return end
  560.             repeat wait()
  561.                 if not Trg then Spawned = true break end
  562.                 if not Trg.Parent then Spawned = true break end
  563.                 if IsDead(Trg) then Spawned = true break end
  564.                 if Keep then
  565.                     local hhh = Trg:FindFirstChild("HumanoidRootPart")
  566.                     if hhh then
  567.                         Pos = hhh.Position
  568.                     end
  569.                     Meta.Debug.Magnitude = Mag
  570.                     Meta.Debug.Dir = Dir
  571.                 end
  572.             until false
  573.         end)end
  574.         repeat
  575.             if Spawned then return false end
  576.             if Meta.UIS.Broken then return false end
  577.             wait()
  578.             Update()
  579.             local Exec = false
  580.             pcall(function()
  581.                 if not IsBelow and Hrp.Position.Y < 60 then Hrp.CFrame = Hrp.CFrame + Vector3.new(0, 5, 0) end
  582.                 Mag = (Hrp.Position - Pos).magnitude
  583.                 Dir = GetAngle(Hrp.CFrame.p, Pos).lookVector
  584.                 Hrp.CFrame = Hrp.CFrame + (Dir*Meta.Teleportation.TpSpeed)
  585.                 Exec = true
  586.                 Meta.Debug.Magnitude = Mag
  587.                 Meta.Debug.Dir = Dir
  588.             end)
  589.             if not Exec then break end
  590.             DebugLog("Comp : "..tostring(Mag).." | "..tostring(2*Meta.Teleportation.TpSpeed).."? "..tostring(Mag <= 2*Meta.Teleportation.TpSpeed))
  591.         until Mag <= 2*Meta.Teleportation.TpSpeed
  592.         Update()
  593.         Hrp.CFrame = CFrame.new(Pos.X, Pos.Y, Pos.Z)
  594.         return true
  595.     end
  596.     Meta.Teleportation = {
  597.         Telep = Tpr
  598.     }
  599. end
  600.  
  601. local function TargetModule()
  602.     Meta.Targeting = {
  603.         DetectionMode = 2
  604.     }
  605.     local SafeZones = {}
  606.     local Mobs = {}
  607.     local Spawns = game.Workspace.NPCSpawns
  608.     local Priority = Meta.UIS.Priority
  609.     for i, v in pairs(game.Workspace.SafeZones:GetChildren())do
  610.         pcall(function()
  611.             table.insert(SafeZones,
  612.                 {
  613.                     MinPoint = Vector2.new(v.Position.X - (v.Size.X/2), v.Position.Z - (v.Size.Z/2)),
  614.                     MaxPoint = Vector2.new(v.Position.X + (v.Size.X/2), v.Position.Z + (v.Size.Z/2))
  615.                 }
  616.             )
  617.         end)
  618.     end
  619.     for i, v in pairs(Spawns:GetDescendants())do
  620.         local HuRP = v:FindFirstChild("HumanoidRootPart")
  621.         if HuRP then
  622.             table.insert(Mobs, v)
  623.         end
  624.     end
  625.     Spawns.DescendantAdded:Connect(function(v)
  626.         wait()
  627.         local HuRP = v:FindFirstChild("HumanoidRootPart")
  628.         if v then
  629.             table.insert(Mobs, v)
  630.         end
  631.     end)
  632.     Spawns.DescendantRemoving:Connect(function(v)
  633.         local Offset = 0
  634.         for i, m in pairs(Mobs)do
  635.             if m == v then
  636.                 table.remove(Mobs, i - Offset)
  637.                 Offset = Offset + 1
  638.             end
  639.         end
  640.     end)
  641.     local function IsSafe(Point)
  642.         if typeof(Point) == "Vector3" then
  643.             Point = Vector2.new(Point.X, Point.Z)
  644.         end
  645.         local Safe = false
  646.         for i, v in pairs(SafeZones)do
  647.             if Point.X > v.MinPoint.X and Point.Y > v.MinPoint.Y then
  648.                 if Point.X < v.MaxPoint.X and Point.Y < v.MaxPoint.Y then
  649.                     Safe = true
  650.                 end
  651.             end
  652.         end
  653.         return Safe
  654.     end
  655.     local function FindTarget(m)
  656.         Priority = Meta.UIS.Priority
  657.         local function CheckMob(Mob)
  658.             local Humanoid = Mob:FindFirstChildOfClass("Humanoid")
  659.             local Crp = Mob:FindFirstChild("HumanoidRootPart")
  660.             if Crp and Humanoid then if not IsDead(Mob) then return not IsSafe(Crp.Position) end end
  661.             return false
  662.         end
  663.         local function RangeFind()
  664.             Update()
  665.             local Selc = nil
  666.             local Closest = nil
  667.             for i, v in pairs(Mobs) do
  668.                 if CheckMob(v) then
  669.                     local Crp = v:FindFirstChild("HumanoidRootPart")
  670.                     local Magnitude = (Hrp.Position - Crp.Position).magnitude
  671.                     if not Closest and v.Name ~= "Eto Yoshimura" then Closest = Magnitude Selc = v else
  672.                         if Closest > Magnitude and v.Name ~= "Eto Yoshimura" then Closest = Magnitude Selc = v end
  673.                     end
  674.                 end
  675.             end
  676.             return Selc
  677.         end
  678.         local function AogiriFind()
  679.             Update()
  680.             local Selc = nil
  681.             local Closest = nil
  682.             for i, v in pairs(Mobs) do
  683.                 if CheckMob(v) and string.find(v.Name, "Aogiri") then
  684.                     local Crp = v:FindFirstChild("HumanoidRootPart")
  685.                     local Magnitude = (Hrp.Position - Crp.Position).magnitude
  686.                     if not Closest and v.Name ~= "Eto Yoshimura" then Closest = Magnitude Selc = v else
  687.                         if Closest > Magnitude and v.Name ~= "Eto Yoshimura" then Closest = Magnitude Selc = v end
  688.                     end
  689.                 end
  690.             end
  691.             return Selc
  692.         end
  693.         local function ListFind()
  694.             Update()
  695.             local Qualify = {}
  696.             local QualI = nil
  697.             for i = 0, #Priority do
  698.                 local v = Priority[i]
  699.                 if v then
  700.                     if v.Mode then
  701.                         for e, c in pairs(Mobs)do
  702.                             if c.Name == v.Mob then
  703.                                 if i ~= QualI and QualI ~= nil then break end
  704.                                 if CheckMob(c) then QualI = i table.insert(Qualify, c) end
  705.                             end
  706.                         end
  707.                     end
  708.                 end
  709.             end
  710.             if #Qualify == 1 then return Qualify[1] end
  711.             local Selc = nil
  712.             local Closest = nil
  713.             for i, v in pairs(Qualify) do
  714.                 local Crp = v:FindFirstChild("HumanoidRootPart")
  715.                 local Magnitude = (Hrp.Position - Crp.Position).magnitude
  716.                 if not Closest then Closest = Magnitude Selc = v else
  717.                     if Closest > Magnitude then Closest = Magnitude Selc = v end
  718.                 end
  719.             end
  720.             return Selc
  721.         end
  722.         if m and tonumber(m) == 4 then return AogiriFind() end
  723.         if m and tonumber(m) then Meta.Targeting.DetectionMode = tonumber(m) end
  724.         if Meta.Targeting.DetectionMode == 0 then
  725.             for i, v in pairs(Mobs)do
  726.                 local Humanoid = v:FindFirstChildOfClass("Humanoid")
  727.                 if Humanoid then
  728.                     return v
  729.                 end
  730.             end
  731.         elseif Meta.Targeting.DetectionMode == 1 then
  732.             return RangeFind()
  733.         elseif Meta.Targeting.DetectionMode == 2 then
  734.             return ListFind()
  735.         end
  736.     end
  737.    
  738.     local function InV(Key, Action, Location)
  739.         pcall(function()
  740.             Location = Location or CFrame.new()
  741.             KeyEvent = Char.Remotes.KeyEvent
  742.             KeyEvent:FireServer(RemotePassword, Key, Action, Location)
  743.         end)
  744.     end
  745.    
  746.     local function DetectKey()
  747.         local CDs = {
  748.             Mouse1 = PlayerFolder:FindFirstChild("ClickCD"),
  749.             E = PlayerFolder:FindFirstChild("Special1CD"),
  750.             R = PlayerFolder:FindFirstChild("Special2CD"),
  751.             F = PlayerFolder:FindFirstChild("Special3CD")
  752.         }
  753.         local Arrange = {[2] = "F", [4] = "R", [3] = "E", [1] = "Mouse1"}
  754.         for i = -1, #Arrange do
  755.             local v = Arrange[i]
  756.             if v then
  757.                 v = CDs[v]
  758.                 if v then
  759.                     if v.Value ~= "DownTime" then
  760.                         return Arrange[i]
  761.                     end
  762.                 end
  763.             end
  764.         end
  765.         return "Mouse1"
  766.     end
  767.    
  768.     local function WeaponExists()
  769.         Update()
  770.         if Char:FindFirstChild("Kagune") then return true end
  771.         local Case = Char:FindFirstChild("Case")
  772.         if Case then
  773.             local Box = Case:FindFirstChild("Box")
  774.             if Box then
  775.                 return (Box.Transparency > 0.8)
  776.             else
  777.                 for i, v in pairs(Case:GetChildren()) do
  778.                     if v:IsA("BasePart") then Box = v end
  779.                 end
  780.             end
  781.             if Box then
  782.                 return (Box.Transparency > 0.8)
  783.             end
  784.         end
  785.         return false
  786.     end
  787.    
  788.     local function Masked()
  789.         Update()
  790.         if Char:FindFirstChild("Mask") then return true end
  791.         if Char:FindFirstChild("KakujaMask") then return true end
  792.         return false
  793.     end
  794.    
  795.     local function Strike(Trg)
  796.         Update()
  797.         if not Trg then Meta.Interception.Target = nil return false end
  798.         if IsDead(Trg) then Meta.Interception.Target = nil return nil end
  799.         if not Trg:FindFirstChild("HumanoidRootPart") then return false end
  800.         if IsSafe(Trg.HumanoidRootPart.Position) then return false end
  801.         if not WeaponExists() then InV(NumericalToWord(Meta.UIS.PrefStg), "Down", Mouse.Hit) end
  802.         if Meta.Interception.Target == Trg then else
  803.             Meta.Teleportation.Telep(Trg.HumanoidRootPart.CFrame, Trg, true)
  804.         end
  805.         Meta.Interception.Target = Trg
  806.         if not WeaponExists() then InV(NumericalToWord(Meta.UIS.PrefStg), "Down", Mouse.Hit) end
  807.         if Meta.UIS.SpMoves then
  808.             InV(DetectKey(), "Down", Mouse.Hit)
  809.         else
  810.             InV("Mouse1", "Down", Mouse.Hit)
  811.         end
  812.         return true
  813.     end
  814.     local function TakeOn(Trg)
  815.         if not Trg then return false end
  816.         local Crp = Trg:FindFirstChild("HumanoidRootPart")
  817.         if not Crp then return false end
  818.         if not Masked() and Meta.UIS.Masked then wait(1) InV("M", "Down", Mouse.Hit) wait(1) end
  819.         local Res = true
  820.         repeat wait(0.1)
  821.             if Meta.UIS.Broken then wait(1) break end
  822.             Res = Strike(Trg)
  823.         until Res == nil or not Res
  824.         Meta.Interception.Target = nil
  825.         if Meta.UIS.Logging then KuraiLog("Killed "..Trg.Name..".") end
  826.         Meta.UIS.StartStats.EK = Meta.UIS.StartStats.EK + 1
  827.         brk = true
  828.         return Res
  829.     end
  830.    
  831.     local function Devour(Trg)
  832.         if not Trg then return end
  833.         local Cp = nil
  834.         local Head = nil
  835.         for i, v in pairs(Trg:GetDescendants())do
  836.             if v:IsA("ClickDetector") then
  837.                 Cp = v.Parent break
  838.             end
  839.             if v.Name == "Head" then
  840.                 Head = v
  841.             end
  842.         end
  843.         if not Cp then return end
  844.         local Port = Cp.CFrame + Vector3.new(0, 3, 0)
  845.         local Border = Instance.new("SelectionBox", Cp)
  846.         Meta.Interception.Lock = Port
  847.         Cp.CFrame = Port
  848.         Border.Adornee = Cp
  849.         Border.SurfaceColor3 = Border.Color3
  850.         Border.SurfaceTransparency = 0.5
  851.         if not Cp then return end
  852.         local Camera = game.Workspace.CurrentCamera
  853.         local Subject = Camera.CameraSubject
  854.         local Cf = Camera.CFrame
  855.         local function ImitateClick(n, w, t)
  856.             for i = 0, n do
  857.                 Update()
  858.                 Cp.CFrame = Port
  859.                 Hrp.CFrame = Port
  860.                 Camera.CFrame = Cp.CFrame * CFrame.fromEulerAnglesXYZ(0, math.rad(90), math.rad(-90))
  861.                 if w then wait(t) end
  862.                 Hrp.CFrame = Port
  863.                 if mouse1down then mouse1down() return end
  864.                 if Input then Input.LeftClick() return end
  865.                 if leftclick then leftclick(1) return end
  866.                 Hrp.CFrame = Port
  867.             end
  868.         end
  869.         Camera.CameraSubject = Cp
  870.         ImitateClick(8, true, 1)
  871.         wait()
  872.         Camera.CameraSubject = Subject
  873.         Camera.CFrame = Cf
  874.         spawn(function()
  875.             while wait() do
  876.                 if not Cp then KuraiLog("Devoured "..Trg.Name..".") break end
  877.                 if Cp.Parent ~= Trg then KuraiLog("Devoured "..Trg.Name..".") break end
  878.             end
  879.         end)
  880.         Meta.Interception.Lock = nil
  881.         return
  882.     end
  883.    
  884.     Meta.Targeting.Functions = {
  885.         IsSafe = IsSafe,
  886.         FindTarget = FindTarget,
  887.         InV = InV,
  888.         Strike = Strike,
  889.         TakeOn = TakeOn,
  890.         Devour = Devour
  891.     }
  892. end
  893.  
  894. local function Whitelist()
  895.     for i, v in pairs(Data)do
  896.         if string.find(v, tostring(Player.UserId)) then
  897.             Meta.ix = v
  898.             return true
  899.         end
  900.     end
  901.     return false
  902. end
  903.  
  904. local function InterceptionModule()
  905.     Meta.Interception = {
  906.         Target = nil,
  907.         PLock = {},
  908.         Lock = nil
  909.     }
  910.     local PLoc = nil
  911.     local PHlth = nil
  912.     local Magnitude = 0
  913.     local HealthMag = 0
  914.     spawn(function()
  915.         while wait(1) do
  916.             Update()
  917.             if Meta.Interception.Target then
  918.                 local Crp = Meta.Interception.Target:FindFirstChild("HumanoidRootPart")
  919.                 local Hum = Meta.Interception.Target:FindFirstChildOfClass("Humanoid")
  920.                 if Crp then
  921.                     if not PLoc then PLoc = Crp.Position else
  922.                         Magnitude = (PLoc - Crp.Position).magnitude
  923.                         PLoc = Crp.Position
  924.                     end
  925.                 end
  926.                 if Hum then
  927.                     if not PHlth then PHlth = Hum.Health else
  928.                         HealthMag = math.abs(PHlth - Hum.Health)
  929.                         PHlth = Hum.Health
  930.                     end
  931.                 end
  932.             else
  933.                 PLoc = nil
  934.                 PHlth = nil
  935.                 Magnitude = 0
  936.                 HealthMag = 0
  937.             end
  938.         end
  939.     end)
  940.     local function FindMode()
  941.         local Target = Meta.Interception.Target
  942.         if Target then
  943.             local Folder = Target:FindFirstChild("NPCFolder")
  944.             local Humanoid = Target:FindFirstChildOfClass("Humanoid")
  945.             if Folder and Humanoid then
  946.                 if Target.Name == "Human" or Target.Name == "Athlete" and Magnitude > 1 then return 2 end
  947.                 if Target.Name == "Human" or Target.Name == "Athlete" then return 0 end
  948.                 if Target.Name == "Eto Yoshimura" then
  949.                     local CD3 = Folder:FindFirstChild("Special3CD")
  950.                     if CD3 then
  951.                         if CD3.Value == "Ready" or CD3.Value == "Recharge" then
  952.                             return 0
  953.                         else
  954.                             return 3
  955.                         end
  956.                     end
  957.                 end
  958.                 if Humanoid.Health < 100 then return 2 end
  959.                 if not Folder.IsSprinting.Value then return 0 end
  960.                 if Humanoid.MoveDirection.magnitude < 0.2 then return 0 end
  961.                 return 0
  962.             elseif Humanoid then
  963.                 return 0
  964.             end
  965.         end
  966.         return false
  967.     end
  968.     RunSr.Heartbeat:Connect(function()
  969.         spawn(function()
  970.             local kpl = Meta.UIS.Plate
  971.             local kp = Meta.UIS.KPlate
  972.             Update()
  973.             if Meta.UIS.Farming or Meta.UIS.AttackingPlr then kpl.CFrame = CFrame.new(math.huge, math.huge, math.huge) return end
  974.             if kp then
  975.                 kpl.CFrame = Hrp.CFrame - Vector3.new(0, 3.7, 0)
  976.             else
  977.                 kpl.CFrame = CFrame.new(math.huge, math.huge, math.huge)
  978.             end
  979.         end)
  980.         spawn(function()
  981.             if #Meta.Interception.PLock > 0 then
  982.                 for i, v in pairs(Meta.Interception.PLock)do
  983.                     pcall(function()
  984.                         v[0].CFrame = v[1]
  985.                     end)
  986.                 end
  987.             end
  988.         end)
  989.         Update()
  990.         if Meta.Interception.Lock then
  991.             Hrp.CFrame = Meta.Interception.Lock return
  992.         end
  993.         if Meta.UIS.Broken then Meta.Interception.Target = nil return end
  994.         local Mode = FindMode()
  995.         if Mode then
  996.             local Target = Meta.Interception.Target:FindFirstChild("HumanoidRootPart")
  997.             local Humanoid = Char:FindFirstChildOfClass("Humanoid")
  998.             if Target and Humanoid then
  999.                 if Mode == 0 then
  1000.                     local TFrame = Target.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90), 0, 0)
  1001.                     local Step = 7.5
  1002.                     TFrame = TFrame - (TFrame.lookVector*Step)
  1003.                     TFrame = TFrame + (TFrame.upVector * 2)
  1004.                     TFrame = TFrame + (TFrame.rightVector * 1.5)
  1005.                     Hrp.CFrame = TFrame
  1006.                     Humanoid.WalkToPart = Target
  1007.                 elseif Mode == 1 then
  1008.                     local TFrame = Target.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90), 0, 0)
  1009.                     TFrame = TFrame - (TFrame.lookVector*6)
  1010.                     TFrame = TFrame + (TFrame.upVector * 6)
  1011.                     Hrp.CFrame = TFrame
  1012.                     Humanoid.WalkToPart = Target
  1013.                 elseif Mode == 2 then
  1014.                     local TFrame = Target.CFrame
  1015.                     local Step = 4
  1016.                     local Op = 1
  1017.                     if HealthMag == 0 then Op = -1 end
  1018.                     if Magnitude > 2 then Step = 8+(Magnitude*2.5)end
  1019.                     TFrame = TFrame + (TFrame.lookVector*Step*Op)
  1020.                     TFrame = TFrame * CFrame.fromEulerAnglesXYZ(0, math.rad(90*(Op+1)), 0)
  1021.                     Hrp.CFrame = TFrame
  1022.                     Humanoid.WalkToPart = Target
  1023.                 elseif Mode == 3 then
  1024.                     local TFrame = Target.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90), 0, 0)
  1025.                     local Step = 35
  1026.                     TFrame = TFrame - (TFrame.lookVector*Step)
  1027.                     TFrame = TFrame + (TFrame.upVector * 2)
  1028.                     TFrame = TFrame + (TFrame.rightVector * 1.5)
  1029.                     Hrp.CFrame = TFrame
  1030.                     Humanoid.WalkToPart = Target
  1031.                 end
  1032.             end
  1033.         end
  1034.     end)
  1035. end
  1036.  
  1037. local function UISToMod()
  1038.     local function IndexTarget(Txt)
  1039.         if Txt == "List" then return Meta.Targeting.Functions.FindTarget(2)
  1040.         elseif Txt == "Range" then return Meta.Targeting.Functions.FindTarget(1)
  1041.         elseif Txt == "Auto" then return Meta.Targeting.Functions.FindTarget(0)
  1042.         else return Meta.Targeting.Functions.FindTarget(1)
  1043.         end
  1044.     end
  1045.     local function FocalCode(Code)
  1046.         if Code == "Durability" then
  1047.             return "DurabilityAddButton"
  1048.         elseif Code == "Weapon" then
  1049.             return "WeaponAddButton"
  1050.         elseif Code == "Physical" then
  1051.             return "PhysicalAddButton"
  1052.         elseif Code == "Speed" then
  1053.             return "SpeedAddButton"
  1054.         end
  1055.     end
  1056.     return {
  1057.         IndexTarget = IndexTarget,
  1058.         FocalCode = FocalCode
  1059.     }
  1060. end
  1061.  
  1062. local function UIModule()
  1063.     Meta.UI = {
  1064.         Kurai = Kurai
  1065.     }
  1066.     if DebugMode then
  1067.         Kurai.Debug.Visible = true
  1068.         spawn(function()
  1069.             while wait() do
  1070.                 Kurai.Debug.Text = "Debug : </"..tostring(Meta.Debug.Dir).."></"..tostring(Meta.Debug.Magnitude).."></"..tostring(Meta.Debug.Target)..">?"
  1071.             end
  1072.         end)
  1073.     end
  1074.     Meta.UIS.Notiy = function(Text)
  1075.         local Notification = Kurai.NotifFrame.NotifSample:Clone()
  1076.         local TotalN = #Kurai.NotifFrame:GetChildren()-1
  1077.         if TotalN > 4 then wait(3) end
  1078.         Notification.Visible = true
  1079.         Notification.Name = "Notification"..tostring(TotalN)
  1080.         Notification.Text = Text
  1081.         Notification.Size = UDim2.new(0, Notification.TextBounds.X, 0, 20)
  1082.         Notification.Position = UDim2.new(-1, 0, 0, TotalN*22)
  1083.         Tween:Create(Notification, TweenInfo.new(), {Position = UDim2.new(0, 0, 0, TotalN*22)}):Play()
  1084.         wait(1)
  1085.         wait(#Text/10)
  1086.         Tween:Create(Notification, TweenInfo.new(), {Position = UDim2.new(-1, 0, 0, TotalN*22)}):Play()
  1087.         wait(1)
  1088.         Notification:Remove()
  1089.     end
  1090.     local TIS = {
  1091.         [0] = TweenInfo.new(
  1092.             1,
  1093.             Enum.EasingStyle.Sine,
  1094.             Enum.EasingDirection.Out,
  1095.             0,
  1096.             false,
  1097.             0
  1098.         ),
  1099.         [1] = TweenInfo.new(
  1100.             1,
  1101.             Enum.EasingStyle.Sine,
  1102.             Enum.EasingDirection.Out,
  1103.             1000,
  1104.             true,
  1105.             0
  1106.         ),
  1107.         [2] = TweenInfo.new(
  1108.             0.2,
  1109.             Enum.EasingStyle.Sine,
  1110.             Enum.EasingDirection.Out,
  1111.             0,
  1112.             false,
  1113.             0
  1114.         )
  1115.      }
  1116.     local function AnimateGif(Source, Frames, Max, Loop)
  1117.         local Size = Source.ImageRectSize
  1118.         local Start = Source.ImageRectOffset
  1119.         for i = 0, Frames do
  1120.             wait()
  1121.             Source.ImageRectOffset = Source.ImageRectOffset + Vector2.new(Size.X, 0)
  1122.             if Source.ImageRectOffset.X >= Max.X then
  1123.                 Source.ImageRectOffset = Vector2.new(0, Source.ImageRectOffset.Y + Size.Y)
  1124.             end
  1125.         end
  1126.         if Loop then Source.ImageRectOffset = Start AnimateGif(Source, Frames, Max, Loop) end
  1127.     end
  1128.     local function SetLoad()
  1129.         local Txt = Kurai.LoadingFrame.Process
  1130.         local Load = Kurai.LoadingFrame.Loading
  1131.         Load.Position = UDim2.new(0.5, -50-Txt.TextBounds.X/2, 0.5, 55)
  1132.     end
  1133.     Kurai.LoadingFrame.Visible = true
  1134.     Tween:Create(Kurai.LoadingFrame.LeftCurtain, TweenInfo.new(), {Position = UDim2.new(0, 0, 0, 0)}):Play()
  1135.     Tween:Create(Kurai.LoadingFrame.RightCurtain, TweenInfo.new(), {Position = UDim2.new(0.5, 0, 0, 0)}):Play()
  1136.     wait(1)
  1137.     Tween:Create(Kurai.LoadingFrame.Logo, TIS[0], {Position = UDim2.new(0.5, -50, 0.5, -100)}):Play()
  1138.     Tween:Create(Kurai.LoadingFrame.Title, TIS[0], {Position = UDim2.new(0, 0, 0.5, 0)}):Play()
  1139.     wait(1)
  1140.     Tween:Create(Kurai.LoadingFrame.Process, TIS[1], {TextTransparency = 0}):Play()
  1141.     Kurai.LoadingFrame.Loading.Visible = true
  1142.     local LoadD = {
  1143.         [0] = {Vector2.new(0, 0), 11, Vector2.new(768, 768), true},
  1144.         [1] = {Vector2.new(0, 256), 8, Vector2.new(768, 768), true},
  1145.         [2] = {Vector2.new(0, 512), 10, Vector2.new(768, 768), true}
  1146.     }
  1147.     local RI = math.random(0, 2)
  1148.     local Data = LoadD[RI]
  1149.     Kurai.LoadingFrame.Loading.ImageRectOffset = Data[1]
  1150.     table.remove(Data, 1)
  1151.     spawn(function() AnimateGif(Kurai.LoadingFrame.Loading, unpack(Data)) end)
  1152.     SetLoad()
  1153.     wait(wait())
  1154.     if Whitelist() then
  1155.         wait(2)
  1156.         Kurai.LoadingFrame.Process.Text = "Whitelisted! uwu"
  1157.         SetLoad()
  1158.         wait(2)
  1159.         local function SetProcess(Txt)
  1160.             Kurai.LoadingFrame.Process.Text = Txt
  1161.             SetLoad()
  1162.         end
  1163.         local function ChangeSmD(Btn, Prop)
  1164.             for i, v in pairs(Btn.SmoothData.Borders:GetChildren())do
  1165.                 for e, c in pairs(Prop) do
  1166.                     pcall(function()
  1167.                         v[e] = c
  1168.                     end)
  1169.                 end
  1170.             end
  1171.             for i, v in pairs(Prop) do
  1172.                 pcall(function()
  1173.                     Btn[i] = v
  1174.                 end)
  1175.             end
  1176.         end
  1177.         local function ChangeBrD(Btn, Prop)
  1178.             for i, v in pairs(Btn.SmoothData.Outlines:GetChildren())do
  1179.                 for e, c in pairs(Prop) do
  1180.                     pcall(function()
  1181.                         v[e] = c
  1182.                     end)
  1183.                 end
  1184.             end
  1185.         end
  1186.         local function GetBoxValue(Ins)
  1187.             if Ins.Bg.Size.X.Scale > 0.1 then return true else return false end
  1188.         end
  1189.         local function IsExpanded(Ins)
  1190.             if Ins.Size.Y.Offset <= 13 then return false end
  1191.             return true
  1192.         end
  1193.         local function GetSwitchValue(Ins)
  1194.             for i, v in pairs(Ins:GetChildren())do
  1195.                 if v:IsA("TextButton") then
  1196.                     if v.SmoothData.Outlines.Visible then return v.Name end
  1197.                 end
  1198.             end
  1199.         end
  1200.         local function RegisterCollapse(Ins)
  1201.             local InTween = Tween:Create(Ins, TweenInfo.new(), {Size = UDim2.new(1, -32, 0, Ins.Size.Y.Offset)})
  1202.             local OutTween = Tween:Create(Ins, TweenInfo.new(), {Size = UDim2.new(1, -32, 0, 12)})
  1203.             Ins.Title.Min.MouseButton1Click:Connect(function()
  1204.                 if IsExpanded(Ins) then
  1205.                     OutTween:Play()
  1206.                     Ins.Title.Min.ImageRectOffset = Vector2.new(20, 0)
  1207.                     wait(wait())
  1208.                     Ins.List.Visible = false
  1209.                 else
  1210.                     InTween:Play()
  1211.                     Ins.Title.Min.ImageRectOffset = Vector2.new(0, 0)
  1212.                     wait(wait())
  1213.                     Ins.List.Visible = true
  1214.                 end
  1215.             end)
  1216.             InTween.Parent = Ins
  1217.             OutTween.Parent = Ins
  1218.             InTween.Name = "InTween"
  1219.             OutTween.Name = "OutTween"
  1220.         end
  1221.         local function RegisterCheckBox(Ins)
  1222.             local InTween = Tween:Create(Ins.Bg, TIS[2], {Size = UDim2.new(0.6, 0, 0.6, 0)})
  1223.             local OutTween = Tween:Create(Ins.Bg, TIS[2], {Size = UDim2.new(0, 0, 0, 0)})
  1224.             Ins.ClickTrigger.MouseButton1Click:Connect(function()
  1225.                 if GetBoxValue(Ins) then
  1226.                     OutTween:Play()
  1227.                 else
  1228.                     InTween:Play()
  1229.                 end
  1230.             end)
  1231.             InTween.Parent = Ins
  1232.             OutTween.Parent = Ins
  1233.             InTween.Name = "InTween"
  1234.             OutTween.Name = "OutTween"
  1235.         end
  1236.         local function RegisterButton(Ins)
  1237.             Ins.MouseEnter:Connect(function()
  1238.                 ChangeSmD(Ins, {BackgroundColor3 = Color3.fromRGB(25, 25, 25), ImageColor3 = Color3.fromRGB(25, 25, 25)})
  1239.                 Ins.SmoothData.Outlines.Visible = true
  1240.             end)
  1241.             Ins.MouseLeave:Connect(function()
  1242.                 ChangeSmD(Ins, {BackgroundColor3 = Color3.fromRGB(30, 30, 30), ImageColor3 = Color3.fromRGB(30, 30, 30)})
  1243.                 Ins.SmoothData.Outlines.Visible = true
  1244.             end)
  1245.         end
  1246.         local function LoadingDone()
  1247.             SetProcess("Loaded!")
  1248.             wait(3)
  1249.             Kurai.LoadingFrame.Process.Visible = false
  1250.             Kurai.LoadingFrame.Loading.Visible = false
  1251.             Tween:Create(Kurai.LoadingFrame.Logo, TIS[0], {Position = UDim2.new(0.5, -50, 0, -200)}):Play()
  1252.             Tween:Create(Kurai.LoadingFrame.Title, TIS[0], {Position = UDim2.new(0, 0, 0, -200)}):Play()
  1253.             wait(1)
  1254.             Kurai.Introduction.Visible = true
  1255.             Tween:Create(Kurai.LoadingFrame.LeftCurtain, TweenInfo.new(), {Position = UDim2.new(-0.5, -100, 0, 0)}):Play()
  1256.             Tween:Create(Kurai.LoadingFrame.RightCurtain, TweenInfo.new(), {Position = UDim2.new(1, 100, 0, 0)}):Play()
  1257.             Kurai.Introduction.Proceed.MouseEnter:Connect(function()
  1258.                 ChangeSmD(Kurai.Introduction.Proceed, {BackgroundColor3 = Color3.fromRGB(25, 25, 25), ImageColor3 = Color3.fromRGB(25, 25, 25)})
  1259.                 Kurai.Introduction.Proceed.SmoothData.Outlines.Visible = true
  1260.             end)
  1261.             Kurai.Introduction.Proceed.MouseLeave:Connect(function()
  1262.                 ChangeSmD(Kurai.Introduction.Proceed, {BackgroundColor3 = Color3.fromRGB(30, 30, 30), ImageColor3 = Color3.fromRGB(30, 30, 30)})
  1263.                 Kurai.Introduction.Proceed.SmoothData.Outlines.Visible = false
  1264.             end)
  1265.             Kurai.Introduction.Proceed.MouseButton1Click:Connect(function()
  1266.                 Kurai.Introduction:Remove()
  1267.             end)
  1268.             Kurai.Afterload.MainFrameDrag.Changed:Connect(function()
  1269.                 local K0 = Kurai.Afterload.MainFrame
  1270.                 local K1 = Kurai.Afterload.MainFrameDrag.Position
  1271.                 K0.Position = UDim2.new(K1.X.Scale, K1.X.Offset, K1.Y.Scale, K1.Y.Offset + 20)
  1272.             end)
  1273.             Kurai.Afterload.MainFrameDrag.Quit.MouseButton1Click:Connect(function()
  1274.                 Kurai.Afterload.Visible = false
  1275.             end)
  1276.             local MainFrame = Kurai.Afterload.MainFrame
  1277.             local FarmingMenu = MainFrame.FarmingMenu
  1278.             local Settings = Kurai.Afterload.MainFrame.Settings.Scrl
  1279.             Kurai.Afterload.MainFrameDrag.Settings.MouseButton1Click:Connect(function()
  1280.                 if Settings.Parent.Visible then
  1281.                     Settings.Parent.Visible = false
  1282.                     FarmingMenu.Visible = true
  1283.                     MainFrame.Credits.Visible = false
  1284.                 else
  1285.                     Settings.Parent.Visible = true
  1286.                     FarmingMenu.Visible = false
  1287.                     MainFrame.Credits.Visible = false
  1288.                 end
  1289.             end)
  1290.             Kurai.Afterload.MainFrameDrag.Credits.MouseButton1Click:Connect(function()
  1291.                 if MainFrame.Credits.Visible then
  1292.                     MainFrame.Credits.Visible = false
  1293.                     Settings.Parent.Visible = false
  1294.                     FarmingMenu.Visible = true
  1295.                 else
  1296.                     MainFrame.Credits.Visible = true
  1297.                     FarmingMenu.Visible = false
  1298.                     Settings.Parent.Visible = false
  1299.                 end
  1300.             end)
  1301.             local Switches = {
  1302.                 FarmingMenu.FarmMode,
  1303.                 FarmingMenu.TargetPick
  1304.             }
  1305.             local Counters = {
  1306.                 FarmingMenu.StageUse,
  1307.                 FarmingMenu.TpSpd,
  1308.                 Settings.FocalData.List.Weapon,
  1309.                 Settings.FocalData.List.Physical,
  1310.                 Settings.FocalData.List.Durability,
  1311.                 Settings.FocalData.List.Speed
  1312.             }
  1313.             local Checkboxes = {
  1314.                 Settings.General.List.Masked,
  1315.                 Settings.General.List.Term,
  1316.                 Settings.General.List.SpMoves,
  1317.                 Settings.General.List.RepFarm,
  1318.                 Settings.General.List.ProgressShow,
  1319.                 MainFrame.FarmingMenu.AutoFocus,
  1320.                 MainFrame.FarmingMenu.DvTrg
  1321.             }
  1322.             local Expanders = {
  1323.                 Settings.General,
  1324.                 Settings.PriList,
  1325.                 Settings.FocalData
  1326.             }
  1327.             local function CreatePri(Text, Value, Index)
  1328.                 local Clone = Settings.PriList.Sample:Clone()
  1329.                 Clone.Visible = true
  1330.                 Clone.Parent = Settings.PriList.List
  1331.                 Clone.Text.Text = Text
  1332.                 Clone.Text.Rank.Changed:Connect(function()
  1333.                     Clone.Text.RankLabel.Text = "#"..tostring(Clone.Text.Rank.Value)
  1334.                     Clone.Position = UDim2.new(0, 5, 0, ((Clone.Text.Rank.Value-1)*25)+5)
  1335.                 end)
  1336.                 Clone.Text.Rank.Value = Index
  1337.                 if Value then Clone.Bg.Size = UDim2.new(0.6, 0, 0.6, 0) end
  1338.                 RegisterCheckBox(Clone)
  1339.                 Clone.Text.DownRank.MouseButton1Click:Connect(function()
  1340.                     local Rank = Clone.Text.Rank
  1341.                     if Rank.Value == #Clone.Parent:GetChildren() then return end
  1342.                     Rank.Value = Rank.Value + 1
  1343.                     for i, v in pairs(Clone.Parent:GetChildren())do
  1344.                         if v ~= Clone and v.Text.Rank.Value == Rank.Value then
  1345.                             v.Text.Rank.Value = v.Text.Rank.Value - 1
  1346.                         end
  1347.                     end
  1348.                 end)
  1349.                 Clone.Text.UpRank.MouseButton1Click:Connect(function()
  1350.                     local Rank = Clone.Text.Rank
  1351.                     if Rank.Value == 1 then return end
  1352.                     Rank.Value = Rank.Value - 1
  1353.                     for i, v in pairs(Clone.Parent:GetChildren())do
  1354.                         if v ~= Clone and v.Text.Rank.Value == Rank.Value then
  1355.                             v.Text.Rank.Value = v.Text.Rank.Value + 1
  1356.                         end
  1357.                     end
  1358.                 end)
  1359.             end
  1360.             for i, v in pairs(Meta.UIS.Priority) do
  1361.                 CreatePri(v.Mob, v.Mode, i)
  1362.                 local List = Settings.PriList.List
  1363.                 List.CanvasSize = UDim2.new(0, 0, 0, List.CanvasSize.Y.Offset + 25)
  1364.             end
  1365.             for i, v in pairs(Counters) do
  1366.                 pcall(function()
  1367.                     local Value = v.Value
  1368.                     local Vr = tonumber(Value.Text)
  1369.                     local Min = Value.Min.Value
  1370.                     local Max = Value.Max.Value
  1371.                     if Vr == Min then
  1372.                         Value.Neg.TextTransparency = 0.5
  1373.                     end
  1374.                     if Vr == Max then
  1375.                         Value.Pos.TextTranspatrency = 0.5
  1376.                     end
  1377.                     Value.Neg.MouseEnter:Connect(function()
  1378.                         ChangeSmD(Value.Neg, {BackgroundColor3 = Color3.fromRGB(25, 25, 25), ImageColor3 = Color3.fromRGB(25, 25, 25)})
  1379.                     end)
  1380.                     Value.Pos.MouseEnter:Connect(function()
  1381.                         ChangeSmD(Value.Pos, {BackgroundColor3 = Color3.fromRGB(25, 25, 25), ImageColor3 = Color3.fromRGB(25, 25, 25)})
  1382.                     end)
  1383.                     Value.Neg.MouseLeave:Connect(function()
  1384.                         ChangeSmD(Value.Neg, {BackgroundColor3 = Color3.fromRGB(30, 30, 30), ImageColor3 = Color3.fromRGB(30, 30, 30)})
  1385.                     end)
  1386.                     Value.Pos.MouseLeave:Connect(function()
  1387.                         ChangeSmD(Value.Pos, {BackgroundColor3 = Color3.fromRGB(30, 30, 30), ImageColor3 = Color3.fromRGB(30, 30, 30)})
  1388.                     end)
  1389.                     Value.Neg.MouseButton1Click:Connect(function()
  1390.                         Vr = tonumber(Value.Text)
  1391.                         if Vr == Min then return end
  1392.                         Value.Text = Vr - 1
  1393.                         if tonumber(Value.Text) == Max then
  1394.                             Value.Pos.TextTransparency = 0.5
  1395.                         else
  1396.                             Value.Pos.TextTransparency = 0
  1397.                         end
  1398.                         if tonumber(Value.Text) == Min then
  1399.                             Value.Neg.TextTransparency = 0.5
  1400.                         else
  1401.                             Value.Neg.TextTransparency = 0
  1402.                         end
  1403.                     end)
  1404.                     Value.Pos.MouseButton1Click:Connect(function()
  1405.                         Vr = tonumber(Value.Text)
  1406.                         if Vr == Max then return end
  1407.                         Value.Text = Vr + 1
  1408.                         if tonumber(Value.Text) == Max then
  1409.                             Value.Pos.TextTransparency = 0.5
  1410.                         else
  1411.                             Value.Pos.TextTransparency = 0
  1412.                         end
  1413.                         if tonumber(Value.Text) == Min then
  1414.                             Value.Neg.TextTransparency = 0.5
  1415.                         else
  1416.                             Value.Neg.TextTransparency = 0
  1417.                         end
  1418.                     end)
  1419.                 end)
  1420.             end
  1421.             local NameBox = FarmingMenu.PlrNm.TextCont
  1422.             local NameRefrence = nil
  1423.             NameBox.Changed:Connect(function()
  1424.                 local Pred = NameBox.Prediction
  1425.                 NameBox.Text = string.lower(NameBox.Text)
  1426.                 Pred.Text = NameBox.Text
  1427.                 local Refrence = GetPlayerFromShortName(NameBox.Text)
  1428.                 if #NameBox.Text >= 3 and Refrence then
  1429.                     Pred.Text = string.lower(Refrence.Name)
  1430.                     NameRefrence = Refrence
  1431.                 end
  1432.             end)
  1433.             for i, v in pairs(Expanders)do
  1434.                 RegisterCollapse(v)
  1435.             end
  1436.             for i, v in pairs(Switches) do
  1437.                 pcall(function()
  1438.                     for e, c in pairs(v:GetChildren())do
  1439.                         if c:IsA("TextButton") then
  1440.                             c.MouseEnter:Connect(function()
  1441.                                 ChangeSmD(c, {BackgroundColor3 = Color3.fromRGB(25, 25, 25), ImageColor3 = Color3.fromRGB(25, 25, 25)})
  1442.                             end)
  1443.                             c.MouseLeave:Connect(function()
  1444.                                 ChangeSmD(c, {BackgroundColor3 = Color3.fromRGB(30, 30, 30), ImageColor3 = Color3.fromRGB(30, 30, 30)})
  1445.                             end)
  1446.                             c.MouseButton1Click:Connect(function()
  1447.                                 for n, m in pairs(v:GetChildren())do
  1448.                                     m.SmoothData.Outlines.Visible = false
  1449.                                 end
  1450.                                 c.SmoothData.Outlines.Visible = true
  1451.                             end)
  1452.                         end
  1453.                     end
  1454.                 end)
  1455.             end
  1456.             local function CompileMeta()
  1457.                 Meta.UIS.Targeting = GetSwitchValue(FarmingMenu.TargetPick)
  1458.                 Meta.UIS.FarmMode = GetSwitchValue(FarmingMenu.FarmMode)
  1459.                 Meta.UIS.AutoFocus = GetBoxValue(FarmingMenu.AutoFocus)
  1460.                 Meta.UIS.Devour = GetBoxValue(FarmingMenu.DvTrg)
  1461.                 Meta.UIS.PrefStg = tonumber(FarmingMenu.StageUse.Value.Text)
  1462.                 Meta.UIS.TPS = tonumber(FarmingMenu.TpSpd.Value.Text)/3
  1463.                 Meta.UIS.PlrRefrence = NameRefrence
  1464.                 Meta.UIS.Masked = GetBoxValue(Settings.General.List.Masked)
  1465.                 Meta.UIS.RepFarm = GetBoxValue(Settings.General.List.RepFarm)
  1466.                 Meta.UIS.SpMoves = GetBoxValue(Settings.General.List.SpMoves)
  1467.                 Meta.UIS.Logging = GetBoxValue(Settings.General.List.Term)
  1468.                 local FocDat = {}
  1469.                 for i, v in pairs(Settings.FocalData.List:GetChildren())do
  1470.                     FocDat[v.Name] = tonumber(v.Value.Text)
  1471.                 end
  1472.                 Meta.UIS.FocalData = FocDat
  1473.                 local Pri = {}
  1474.                 for i, v in pairs(Settings.PriList.List:GetChildren())do
  1475.                     Pri[tonumber(v.Text.Rank.Value)] = {
  1476.                         Mob = v.Text.Text,
  1477.                         Mode = GetBoxValue(v)
  1478.                     }
  1479.                 end
  1480.                 Meta.UIS.Priority = Pri
  1481.                 Meta.UIS.StartStats.Lvl = tonumber(Stats.Level.Value)
  1482.                 Meta.UIS.StartStats.RC = tonumber(Stats.RC.Value)
  1483.                 Meta.UIS.StartStats.Rep = tonumber(Stats.Reputation.Value)
  1484.                 Meta.UIS.StartStats.Yen = tonumber(Stats.Yen.Value)
  1485.                 Meta.UIS.StartStats.Tk = 0
  1486.                 Meta.UIS.StartStats.EK = 0
  1487.             end
  1488.             FarmingMenu.AttackBtn.MouseEnter:Connect(function()
  1489.                 ChangeSmD(FarmingMenu.AttackBtn, {BackgroundColor3 = Color3.fromRGB(25, 25, 25), ImageColor3 = Color3.fromRGB(25, 25, 25)})
  1490.                 FarmingMenu.AttackBtn.SmoothData.Outlines.Visible = true
  1491.             end)
  1492.             FarmingMenu.StartBtn.MouseEnter:Connect(function()
  1493.                 ChangeSmD(FarmingMenu.StartBtn, {BackgroundColor3 = Color3.fromRGB(25, 25, 25), ImageColor3 = Color3.fromRGB(25, 25, 25)})
  1494.                 FarmingMenu.StartBtn.SmoothData.Outlines.Visible = true
  1495.             end)
  1496.             FarmingMenu.AttackBtn.MouseLeave:Connect(function()
  1497.                 ChangeSmD(FarmingMenu.AttackBtn, {BackgroundColor3 = Color3.fromRGB(30, 30, 30), ImageColor3 = Color3.fromRGB(30, 30, 30)})
  1498.                 FarmingMenu.AttackBtn.SmoothData.Outlines.Visible = false
  1499.             end)
  1500.             FarmingMenu.StartBtn.MouseLeave:Connect(function()
  1501.                 ChangeSmD(FarmingMenu.StartBtn, {BackgroundColor3 = Color3.fromRGB(30, 30, 30), ImageColor3 = Color3.fromRGB(30, 30, 30)})
  1502.                 FarmingMenu.StartBtn.SmoothData.Outlines.Visible = false
  1503.             end)
  1504.             Kurai.FarmFrame.Main.TermShw.MouseButton1Click:Connect(function()
  1505.                 if Kurai.FarmFrame.Terminal.Visible then
  1506.                     Kurai.FarmFrame.Terminal.Visible = false
  1507.                     Kurai.FarmFrame.Main.TermShw.Text = "Show Terminal"
  1508.                 else
  1509.                     Kurai.FarmFrame.Terminal.Visible = true
  1510.                     Kurai.FarmFrame.Main.TermShw.Text = "Hide Terminal"
  1511.                 end
  1512.             end)
  1513.             Kurai.FarmFrame.Terminal.MainDrag.Quit.MouseButton1Click:Connect(function()
  1514.                 Kurai.FarmFrame.Terminal.Visible = false
  1515.                 Kurai.FarmFrame.Main.TermShw.Text = "Show Terminal"
  1516.             end)
  1517.             Kurai.FarmFrame.Terminal.MainDrag.Changed:Connect(function()
  1518.                 local p = Kurai.FarmFrame.Terminal.MainDrag.Position
  1519.                 Kurai.FarmFrame.Terminal.Main.Position = UDim2.new(p.X.Scale, p.X.Offset, p.Y.Scale, p.Y.Offset + 20)
  1520.             end)
  1521.             Kurai.FarmFrame.Terminal.MainDrag.Clear.MouseButton1Click:Connect(function()
  1522.                 Meta.UI.Kurai.FarmFrame.Terminal.Main.Log.Text.Text = ""
  1523.                 for i = 0, 3 do
  1524.                     Txt.Parent.CanvasSize = UDim2.new(1, Txt.TextBounds.X, 1, Txt.TextBounds.Y)
  1525.                     Txt.Parent.CanvasSize = UDim2.new(0, Txt.TextBounds.X, 0, Txt.TextBounds.Y)
  1526.                 end
  1527.             end)
  1528.            
  1529.             RegisterButton(Kurai.FarmFrame.Main.TermShw)
  1530.             RegisterButton(Kurai.FarmFrame.Main.BrkTrg)
  1531.             RegisterButton(Kurai.FarmFrame.Main.FrmStop)
  1532.             RegisterButton(Kurai.PlayerTrgFrame.Main.BrkTrg)
  1533.             RegisterButton(Kurai.PlayerTrgFrame.Main.TrgStop)
  1534.             local Debounce0 = false
  1535.             local Debounce1 = false
  1536.             local Debounce2 = false
  1537.             local Debounce3 = false
  1538.             Kurai.PlayerTrgFrame.Main.TrgStop.MouseButton1Click:Connect(function()
  1539.                 if not Debounce2 and not Debounce3 then
  1540.                     Debounce2 = true
  1541.                     Meta.UIS.Broken = true
  1542.                     Meta.UIS.AttackingPlr = false wait(wait())
  1543.                     Meta.Commands.sbuild()
  1544.                     Kurai.PlayerTrgFrame.Main.BrkTrg.TextTransparency = 0.75
  1545.                     Kurai.PlayerTrgFrame.Main.TrgStop.TextTransparency = 0.75
  1546.                     wait(1)
  1547.                     Kurai.PlayerTrgFrame.Main.BrkTrg.TextTransparency = 0
  1548.                     Kurai.PlayerTrgFrame.Main.TrgStop.TextTransparency = 0
  1549.                     Meta.UIS.Broken = false
  1550.                     Debounce2 = false
  1551.                     Kurai.Afterload.Visible = true
  1552.                     Kurai.PlayerTrgFrame.Visible = false
  1553.                 end
  1554.             end)
  1555.             Kurai.FarmFrame.Main.BrkTrg.MouseButton1Click:Connect(function()
  1556.                 if not Debounce2 and not Debounce3 then
  1557.                     Debounce3 = true
  1558.                     Meta.UIS.Broken = true
  1559.                     Kurai.PlayerTrgFrame.Main.BrkTrg.TextTransparency = 0.75
  1560.                     Kurai.PlayerTrgFrame.Main.TrgStop.TextTransparency = 0.75
  1561.                     wait(1)
  1562.                     Kurai.PlayerTrgFrame.Main.BrkTrg.TextTransparency = 0
  1563.                     Kurai.PlayerTrgFrame.Main.TrgStop.TextTransparency = 0
  1564.                     Debounce3 = false
  1565.                     Meta.UIS.Broken = false
  1566.                 end
  1567.             end)
  1568.             Kurai.FarmFrame.Main.BrkTrg.MouseButton1Click:Connect(function()
  1569.                 if not Debounce0 and not Debounce1 then
  1570.                     Debounce0 = true
  1571.                     Meta.UIS.Broken = true
  1572.                     Kurai.FarmFrame.Main.BrkTrg.TextTransparency = 0.75
  1573.                     Kurai.FarmFrame.Main.FrmStop.TextTransparency = 0.75
  1574.                     wait(1)
  1575.                     Kurai.FarmFrame.Main.BrkTrg.TextTransparency = 0
  1576.                     Kurai.FarmFrame.Main.FrmStop.TextTransparency = 0
  1577.                     Debounce0 = false
  1578.                     Meta.UIS.Broken = false
  1579.                 end
  1580.             end)
  1581.             Kurai.FarmFrame.Main.FrmStop.MouseButton1Click:Connect(function()
  1582.                 if not Debounce1 and not Debounce0 then
  1583.                     Debounce1 = true
  1584.                     Meta.UIS.Broken = true wait(wait())
  1585.                     Meta.UIS.Farming = false
  1586.                     Meta.Commands.sbuild()
  1587.                     Kurai.FarmFrame.Main.BrkTrg.TextTransparency = 0.75
  1588.                     Kurai.FarmFrame.Main.FrmStop.TextTransparency = 0.75
  1589.                     wait(0.2)
  1590.                     Kurai.FarmFrame.Main.BrkTrg.TextTransparency = 0
  1591.                     Kurai.FarmFrame.Main.FrmStop.TextTransparency = 0
  1592.                     Debounce1 = false
  1593.                     Meta.UIS.Broken = false
  1594.                 end
  1595.                 Kurai.FarmFrame.Main.Visible = false
  1596.                 Kurai.FarmFrame.Visible = false
  1597.                 Kurai.Afterload.Visible = true
  1598.                 Kurai.FarmFrame.DevIndic.Visible = false
  1599.             end)
  1600.             FarmingMenu.AttackBtn.MouseButton1Click:Connect(function()
  1601.                 CompileMeta()
  1602.                 if Meta.UIS.PlrRefrence then
  1603.                     Meta.UIS.AttackingPlr = true
  1604.                     Meta.Commands.rbuild()
  1605.                     Kurai.Cmd.Visible = false
  1606.                     Kurai.Afterload.Visible = false
  1607.                     Kurai.PlayerTrgFrame.Visible = true
  1608.                     Kurai.PlayerTrgFrame.Main.Visible = true
  1609.                     Meta.UIS.Broken = true
  1610.                     Debounce2 = true
  1611.                     Debounce3 = true
  1612.                     Kurai.PlayerTrgFrame.Main.BrkTrg.TextTransparency = 0.75
  1613.                     Kurai.PlayerTrgFrame.Main.TrgStop.TextTransparency = 0.75
  1614.                     wait(0.2)
  1615.                     Meta.UIS.Broken = false
  1616.                     Debounce2 = false
  1617.                     Debounce3 = false
  1618.                     Kurai.PlayerTrgFrame.Main.BrkTrg.TextTransparency = 0
  1619.                     Kurai.PlayerTrgFrame.Main.TrgStop.TextTransparency = 0
  1620.                 end
  1621.             end)
  1622.             FarmingMenu.StartBtn.MouseButton1Click:Connect(function()
  1623.                 CompileMeta()
  1624.                 Meta.UIS.Farming = true
  1625.                 Meta.Commands.rbuild()
  1626.                 Kurai.Cmd.Visible = false
  1627.                 Kurai.Afterload.Visible = false
  1628.                 Kurai.FarmFrame.Visible = true
  1629.                 local XN = 200
  1630.                 if GetBoxValue(Settings.General.List.Term) then
  1631.                     XN = 325
  1632.                     Kurai.FarmFrame.Main.TermShw.Visible = true
  1633.                 else
  1634.                     Kurai.FarmFrame.Main.TermShw.Visible = false
  1635.                 end
  1636.                 if GetBoxValue(Settings.General.List.ProgressShow) then
  1637.                     if XN == 325 then
  1638.                         XN = 555
  1639.                     else
  1640.                         XN = 500
  1641.                     end
  1642.                     Kurai.FarmFrame.Main.Progress.Visible = true
  1643.                 else
  1644.                     Kurai.FarmFrame.Main.Progress.Visible = false
  1645.                 end
  1646.                 Kurai.FarmFrame.Main.Size = UDim2.new(0, XN, 0, 60)
  1647.                 Kurai.FarmFrame.Main.Visible = true
  1648.                 Kurai.FarmFrame.DevIndic.Visible = Meta.UIS.Devour
  1649.                 Debounce0 = true
  1650.                 Debounce1 = true
  1651.                 Kurai.FarmFrame.Main.BrkTrg.TextTransparency = 0.75
  1652.                 Kurai.FarmFrame.Main.FrmStop.TextTransparency = 0.75
  1653.                 Meta.UIS.Broken = true
  1654.                 wait(1)
  1655.                 Meta.UIS.Broken = false
  1656.                 Debounce0 = false
  1657.                 Debounce1 = false
  1658.                 Kurai.FarmFrame.Main.BrkTrg.TextTransparency = 0
  1659.                 Kurai.FarmFrame.Main.FrmStop.TextTransparency = 0
  1660.             end)
  1661.             spawn(function()
  1662.                 while wait() do
  1663.                     local Prog = Kurai.FarmFrame.Main.Progress
  1664.                     Prog.REPL.Text = "Rep : "..tostring(tonumber(Stats.Reputation.Value) - Meta.UIS.StartStats.Rep)
  1665.                     Prog.RCL.Text = "RC : "..tostring(tonumber(Stats.RC.Value) - (Meta.UIS.StartStats.RC))
  1666.                     Prog.TKL.Text = "Total Kills : "..tostring(Meta.UIS.StartStats.EK)
  1667.                     Prog.TLS.Text = "Levels : "..tostring(tonumber(Stats.Level.Value) - Meta.UIS.StartStats.Lvl)
  1668.                     Prog.YenL.Text = "Yen : "..tostring(tonumber(Stats.Yen.Value - Meta.UIS.StartStats.Yen))
  1669.                 end
  1670.             end)
  1671.             local CMF = false
  1672.             InputS.InputBegan:Connect(function(InP)
  1673.                 if InP.KeyCode == Enum.KeyCode.K then
  1674.                     if InputS:IsKeyDown(Enum.KeyCode.LeftControl) then
  1675.                         local Intro = Kurai:FindFirstChild("Introduction")
  1676.                         if Intro then Intro:Remove() end
  1677.                         if Kurai.PlayerTrgFrame.Visible or Kurai.FarmFrame.Visible then else
  1678.                             Kurai.Afterload.Visible = not Kurai.Afterload.Visible
  1679.                         end
  1680.                     end
  1681.                 elseif InP.KeyCode == Enum.KeyCode.J then
  1682.                     if InputS:IsKeyDown(Enum.KeyCode.LeftControl) then
  1683.                         if not Meta.UIS.Farming and not Meta.UIS.AttackingPlr then
  1684.                             Kurai.Cmd.Visible = true
  1685.                             Kurai.Cmd:CaptureFocus()
  1686.                             Kurai.Cmd.Text = ""
  1687.                         end
  1688.                     end
  1689.                 elseif InP.KeyCode == Enum.KeyCode.Return then
  1690.                     if CMF then
  1691.                         local Cmd = Kurai.Cmd.Text
  1692.                         if Cmd ~= "" then
  1693.                             local Args = StringToArray(Cmd, " ")
  1694.                             local Func = Meta.Commands[Args[1]]
  1695.                             if typeof(Func) == "function" then
  1696.                                 table.remove(Args, 1)
  1697.                                 local Res = Func(Args)
  1698.                                 if not Res.Succ then
  1699.                                     Meta.UIS.Notiy(Res.Text)
  1700.                                 end
  1701.                             end
  1702.                         end
  1703.                     end
  1704.                 end
  1705.             end)
  1706.             Kurai.Cmd.Focused:Connect(function()
  1707.                 CMF = true
  1708.             end)
  1709.             Kurai.Cmd.FocusLost:Connect(function()
  1710.                 wait()
  1711.                 CMF = false
  1712.                 wait()
  1713.                 Kurai.Cmd.Visible = false
  1714.                 Kurai.Cmd.Text = ""
  1715.             end)
  1716.             for i, v in pairs(Checkboxes)do
  1717.                 RegisterCheckBox(v)
  1718.             end
  1719.             wait(2)
  1720.             Kurai.LoadingFrame:Destroy()
  1721.         end
  1722.         return {
  1723.             [0] = SetProcess,
  1724.             [1] = LoadingDone
  1725.         }
  1726.     else
  1727.         wait(2)
  1728.         Kurai.LoadingFrame.Process.Text = "You're Not Whitelisted."
  1729.         Kurai.LoadingFrame.Loading.Visible = false
  1730.         wait(2)
  1731.         Kurai:Remove()
  1732.         wait(2)
  1733.         Player:Kick("Whitelist Failed!")
  1734.         return false
  1735.     end
  1736. end
  1737.  
  1738. local UISLink = UISToMod()
  1739.  
  1740. local function System()
  1741.     Player.CharacterAdded:Connect(function()
  1742.         Update() wait()
  1743.         local Humanoid = Char:FindFirstChildOfClass("Humanoid")
  1744.         Humanoid.Died:Connect(function()
  1745.             Meta.UIS.Broken = true
  1746.         end)
  1747.         wait()
  1748.         Meta.UIS.Broken = false
  1749.     end)
  1750.     local Target =  nil
  1751.     local TimeLeft = 0
  1752.     Update()
  1753.     Player.CharacterAdded:Connect(function()
  1754.         Update()
  1755.         Target = UISLink.IndexTarget(Meta.UIS.Targeting)
  1756.         local Hum = Char:FindFirstChildOfClass("Humanoid")
  1757.         if not Hum then return end
  1758.         Hum.Died:Connect(function()
  1759.             Target = nil
  1760.         end)
  1761.     end)
  1762.     local function CheckFocus ()
  1763.         local Focus = Stats.Focus.Value
  1764.         local FocalMin = 0
  1765.         local FocalData = Meta.UIS.FocalData
  1766.         Focus = tonumber(Focus)
  1767.         for i, v in pairs(FocalData) do
  1768.             FocalMin = FocalMin + v
  1769.         end
  1770.         if Focus >= FocalMin then
  1771.             for i, v in pairs(FocalData) do
  1772.                 local Func = PlayerFolder.StatsFunction
  1773.                 Func:InvokeServer("Focus", UISLink.FocalCode(i), v)
  1774.             end
  1775.         end
  1776.     end
  1777.     local function CheckRep()
  1778.         DebugLog("Check Rep Called")
  1779.         if game.Workspace.DistributedGameTime >= TimeLeft then
  1780.             local Rem = game.ReplicatedStorage.Remotes.ReputationCashOut
  1781.             local function Rep()
  1782.                 local Returnal = "Null"
  1783.                 pcall(function()
  1784.                     DebugLog("Rep()Invoked")
  1785.                     local Rom = nil
  1786.                     if PlayerFolder.Customization.Team.Value == "Ghoul" then
  1787.                         Rom = game.Workspace.Spawns.YoshimuraSpawn.Position
  1788.                     else
  1789.                         Rom = game.Workspace.Spawns.YoshitokiSpawn.Position
  1790.                     end
  1791.                     local Ram = Meta.Teleportation.Telep(Rom)
  1792.                     DebugLog("Passed Telep!")
  1793.                     DebugLog(Ram)
  1794.                     if Meta.UIS.Broken then return end
  1795.                     if not Ram then Update() return end
  1796.                     Returnal = Rem:InvokeServer()
  1797.                 end)
  1798.                 repeat wait() until Returnal ~= "Null"
  1799.                 DebugLog("Breaker Past!")
  1800.                 if Meta.UIS.Logging and string.find(tostring(Returnal), "+") then KuraiLog("Farmed "..tostring(Returnal).." Rep.") end
  1801.                 return Returnal
  1802.             end
  1803.             local Ret = Rep()
  1804.             if tonumber(Ret) then
  1805.                 if Meta.UIS.Broken then return end
  1806.                 return CheckRep()
  1807.             else Ret = StringToArray(Ret, ":")
  1808.                 if #Ret > 1 then
  1809.                     local Num = game.Workspace.DistributedGameTime + 10
  1810.                     Num = Num + (tonumber(Ret[1])*3600)
  1811.                     Num = Num + (tonumber(Ret[2])*60)
  1812.                     Num = Num + (tonumber(Ret[3]))
  1813.                     TimeLeft = Num
  1814.                 end
  1815.             end
  1816.         end
  1817.     end
  1818.     local function CheckTask()
  1819.         DebugLog("CheckTask Invoked.")
  1820.         local function CallTask(n, w, d)
  1821.             DebugLog("CallTask Invoked")
  1822.             pcall(function()
  1823.                 local Ram = nil
  1824.                 local Rom = nil
  1825.                 if PlayerFolder.Customization.Team.Value == "Ghoul" then
  1826.                     Ram = game:GetService("ReplicatedStorage").Remotes.Yoshimura.Task
  1827.                     Rom = game.Workspace.Spawns.YoshimuraSpawn.Position
  1828.                 else
  1829.                     Ram = game:GetService("ReplicatedStorage").Remotes.Yoshitoki.Task
  1830.                     Rom = game.Workspace.Spawns.YoshitokiSpawn.Position
  1831.                 end
  1832.                 local Rem = Meta.Teleportation.Telep(Rom)
  1833.                 if d then wait() end
  1834.                 if not Rem then Update() return end
  1835.                 for i = 0, n do
  1836.                     if w then wait() end
  1837.                     Ram:InvokeServer()
  1838.                 end
  1839.                 DebugLog("Called Task.")
  1840.             end)
  1841.         end
  1842.         Update()
  1843.         local Quest = PlayerFolder:FindFirstChild("CurrentQuest")
  1844.         if Quest then
  1845.             local Current = Quest.Complete:FindFirstChild("Aogiri Member")
  1846.             if Current then
  1847.                 local Max = Current:FindFirstChild("Max")
  1848.                 Current = Current.Value
  1849.                 if Max then Max = Max.Value
  1850.                     if Current == Max then
  1851.                         KuraiLog("Task Completed.")
  1852.                         if Meta.UIS.Broken then return end
  1853.                         CallTask(3, true, true) return true
  1854.                     else return
  1855.                     end
  1856.                 else if Meta.UIS.Broken then return end CallTask(1, true, true)
  1857.                 end
  1858.             else if Meta.UIS.Broken then return end CallTask(1, true, true)
  1859.             end
  1860.         else if Meta.UIS.Broken then return end CallTask(1, true, true)
  1861.         end
  1862.         if DebugMode then
  1863.             DebugLog("Executed Quest!")
  1864.         end
  1865.     end
  1866.     while wait() do
  1867.         Update()
  1868.         Meta.Debug.Target = Target
  1869.         if Meta.UIS.Farming then
  1870.             if Meta.UIS.Broken then Target = nil repeat wait() until not Meta.UIS.Broken wait() end
  1871.             if Meta.UIS.AutoFocus then CheckFocus() end
  1872.             DebugLog("Primary Checks Past!")
  1873.             if Meta.UIS.FarmMode == "Regular" then
  1874.                 if Meta.UIS.RepFarm then CheckRep() end
  1875.                 wait(wait())
  1876.                 if Target then
  1877.                     if Target.Parent then
  1878.                         if not IsDead(Target) then
  1879.                             Meta.Debug.Target = Target
  1880.                             local Res = Meta.Targeting.Functions.TakeOn(Target)
  1881.                             if Meta.UIS.Devour then Meta.Targeting.Functions.Devour(Target) Meta.Debug.Target = Target end
  1882.                             if Res == false then Target = UISLink.IndexTarget(Meta.UIS.Targeting) Meta.Debug.Target = Target end
  1883.                             if Res == nil then Target = UISLink.IndexTarget(Meta.UIS.Targeting) Meta.Debug.Target = Target end
  1884.                         end
  1885.                     end
  1886.                 else Target = UISLink.IndexTarget(Meta.UIS.Targeting) Meta.Debug.Target = Target
  1887.                 end
  1888.             elseif Meta.UIS.FarmMode == "Task" then
  1889.                 CheckTask()
  1890.                 if Meta.UIS.RepFarm then CheckRep() end
  1891.                 wait(wait())
  1892.                 if Target then
  1893.                     if Target.Parent then
  1894.                         if not IsDead(Target) then
  1895.                             Meta.Debug.Target = Target
  1896.                             local Res = Meta.Targeting.Functions.TakeOn(Target)
  1897.                             if Meta.UIS.Devour then Meta.Targeting.Functions.Devour(Target) Meta.Debug.Target = Target end
  1898.                             if Res == false then Target = Meta.Targeting.Functions.FindTarget(4) Meta.Debug.Target = Target end
  1899.                             if Res == nil then Target = Meta.Targeting.Functions.FindTarget(4) Meta.Debug.Target = Target end
  1900.                         end
  1901.                     end
  1902.                 else Target = Meta.Targeting.Functions.FindTarget(4) Meta.Debug.Target = Target
  1903.                 end
  1904.             end
  1905.         elseif Meta.UIS.AttackingPlr and Meta.UIS.PlrRefrence then
  1906.             Update()
  1907.             if Meta.UIS.PlrRefrence.Character then
  1908.                 Meta.Targeting.Functions.TakeOn(Meta.UIS.PlrRefrence.Character)
  1909.             else
  1910.                 wait(2)
  1911.             end
  1912.         end
  1913.     end
  1914. end
  1915. local function KURAI_NAMESPACE()
  1916.     Update()
  1917.     local UIM = UIModule()
  1918.     UIM[0]("Loading Modules...")
  1919.     InterceptionModule()
  1920.     TargetModule()
  1921.     TeleportationModule()
  1922.     spawn(function()
  1923.         System()
  1924.     end)
  1925.     wait(2)
  1926.     UIM[0]("Setting Up Commands...(Prepare For Lag.)")
  1927.     wait(1)
  1928.     BuildModule()
  1929.     UIM[1]()
  1930. end
  1931. warn("All setups done.") wait(2)
  1932. KURAI_NAMESPACE()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement