Suteishia

Roblox Anime Fighting Simulator CHIKARA AUTO FARM [OPEN SOURCE]

Apr 10th, 2021 (edited)
1,199
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --Brought to you by Sute#6666
  2.  
  3. --https://www.synaptic.icu/
  4. --https://discord.gg/Mkpq3gr4S4
  5.  
  6. --//Settings//--
  7. _G.Enabled = true
  8. local TPTime = 5 -- Put whatever number you want there
  9. local ScriptLoadWaitTime = 6 -- DO NOT PUT IT LOWER THAN 5 OR IMA SLAP U
  10. --//Script//--
  11. local WaitForTheDamGui= game:WaitForChild("StarterGui")
  12. wait(ScriptLoadWaitTime)
  13.  
  14. local startergui = game:GetService("StarterGui")
  15. startergui:SetCore("SendNotification",{
  16.     Title = "Auto Farm Started!";
  17.     Text = "Just sit back and watch. Make Sure to give the script a few seconds to work!";
  18.     Duration = 5;
  19. })
  20.  
  21.  
  22. function CheckIfLoaded()
  23.     workspace.CurrentCamera.CameraType = Enum.CameraType.Follow
  24.     game.Lighting:WaitForChild("Blur").Enabled = false
  25.     game.Players.LocalPlayer.PlayerGui:WaitForChild("Main").Enabled = true
  26.     game.Players.LocalPlayer.PlayerGui:WaitForChild("Intro").Enabled = false
  27. end
  28.  
  29.  
  30. function Noclip()
  31.     Clip = false
  32.     wait(0.1)
  33.     local function Noclip()
  34.         if Clip == false and game.Players.LocalPlayer.Character ~= nil then
  35.             for _, child in pairs(game.Players.LocalPlayer.Character:GetDescendants()) do
  36.                 if child:IsA("BasePart") and child.CanCollide == true  then
  37.                     child.CanCollide = false
  38.                 end
  39.             end
  40.         end
  41.     end
  42.     game:GetService('RunService').Stepped:Connect(Noclip)
  43. end
  44.  
  45. function TPStuffIdfk()
  46.         for k,v in pairs(game:GetService("Workspace").MouseIgnore:GetDescendants()) do
  47.         if v:IsA("ClickDetector")  and v.Parent.Name == 'ClickBox'  then
  48.                 game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame = CFrame.new(v.Parent.CFrame.X,v.Parent.CFrame.Y + -5,v.Parent.CFrame.Z)
  49.                 FirClickDetectorStuff()
  50.             end
  51.         end
  52.     end
  53.  
  54. function FirClickDetectorStuff()
  55.     for _,v in pairs(game:GetService("Workspace").MouseIgnore:GetDescendants()) do
  56.         if v:IsA("ClickDetector")  and v.Parent.Name == 'ClickBox'  then
  57.             fireclickdetector(v)
  58.         end
  59.     end
  60. end
  61.  
  62. function AntiAfkIg()
  63.     local vu = game:GetService("VirtualUser")
  64.     game:GetService("Players").LocalPlayer.Idled:connect(function()
  65.         vu:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  66.         wait(1)
  67.         vu:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  68.     end)
  69. end
  70.  
  71.  
  72. local PlaceID = game.PlaceId
  73. local AllIDs = {}
  74. local foundAnything = ""
  75. local actualHour = os.date("!*t").hour
  76. local Deleted = false
  77. local File = pcall(function()
  78.     AllIDs = game:GetService('HttpService'):JSONDecode(readfile("ServersAlreadyJoined.json"))
  79. end)
  80. if not File then
  81.     table.insert(AllIDs, actualHour)
  82.     writefile("ServersAlreadyJoined.json", game:GetService('HttpService'):JSONEncode(AllIDs))
  83. end
  84. function TPStuffLol()
  85.     local Site;
  86.     if foundAnything == "" then
  87.         Site = game.HttpService:JSONDecode(game:HttpGet('https://games.roblox.com/v1/games/' .. PlaceID .. '/servers/Public?sortOrder=Asc&limit=100'))
  88.     else
  89.         Site = game.HttpService:JSONDecode(game:HttpGet('https://games.roblox.com/v1/games/' .. PlaceID .. '/servers/Public?sortOrder=Asc&limit=100&cursor=' .. foundAnything))
  90.     end
  91.     local ID = ""
  92.     if Site.nextPageCursor and Site.nextPageCursor ~= "null" and Site.nextPageCursor ~= nil then
  93.         foundAnything = Site.nextPageCursor
  94.     end
  95.     local num = 0;
  96.     for i,v in pairs(Site.data) do
  97.         local Possible = true
  98.         ID = tostring(v.id)
  99.         if tonumber(v.maxPlayers) > tonumber(v.playing) then
  100.             for _,Existing in pairs(AllIDs) do
  101.                 if num ~= 0 then
  102.                     if ID == tostring(Existing) then
  103.                         Possible = false
  104.                     end
  105.                 else
  106.                     if tonumber(actualHour) ~= tonumber(Existing) then
  107.                         local delFile = pcall(function()
  108.                             delfile("ServersAlreadyJoined.json")
  109.                             AllIDs = {}
  110.                             table.insert(AllIDs, actualHour)
  111.                         end)
  112.                     end
  113.                 end
  114.                 num = num + 1
  115.             end
  116.             if Possible == true then
  117.                 table.insert(AllIDs, ID)
  118.                 wait()
  119.                 pcall(function()
  120.                     writefile("ServersAlreadyJoined.json", game:GetService('HttpService'):JSONEncode(AllIDs))
  121.                     wait()
  122.                     game:GetService("TeleportService"):TeleportToPlaceInstance(PlaceID, ID, game.Players.LocalPlayer)
  123.                 end)
  124.                 wait(4)
  125.             end
  126.         end
  127.     end
  128. end
  129.  
  130. function Teleport()
  131.     while wait() do
  132.         pcall(function()
  133.             TPStuffLol()
  134.             if foundAnything ~= "" then
  135.                 TPStuffLol()
  136.             end
  137.         end)
  138.     end
  139. end
  140.  
  141. function CheckIfCrateIsThere()
  142.     if not game:GetService("Workspace").MouseIgnore:FindFirstChild("ChikaraCrate") then
  143.         Teleport()
  144.     end
  145. end
  146.  
  147. function TPAuto()
  148.     wait(TPTime)
  149.     Teleport()
  150. end
  151.  
  152. if _G.Enabled == true then
  153.     Noclip()
  154.     AntiAfkIg()
  155.     while wait() do
  156.         TPAuto()
  157.         CheckIfLoaded()
  158.         CheckIfCrateIsThere()
  159.         TPStuffIdfk()
  160.     end
  161. end
  162.  
  163.  
  164. -- I gave up lol
RAW Paste Data