The_One123

anime fighting

Apr 20th, 2021 (edited)
2,765
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.21 KB | None | 0 0
  1. -- Script 1
  2. loadstring(game:HttpGet(('https://raw.githubusercontent.com/pspboy08/dollhouse/main/AFSGUI.lua')))()
  3.  
  4. -- Script 2 (below)
  5. local library = loadstring(game:HttpGet(('https://raw.githubusercontent.com/Maxgat5/UiLib/main/lua')))()
  6. local w = library:CreateWindow("Anime Fighters Simulator")
  7. local b = w:CreateFolder("AutoFarm")
  8. local e = w:CreateFolder("Mix")
  9. local u = w:CreateFolder("Credits")
  10. SelectedEnemy = "Frieza1"
  11. Enemies = {}
  12. for i,v in pairs(game:GetService("Workspace").Worlds:GetDescendants()) do
  13.     if v.Name == "Enemies" and v.ClassName == "Folder" then
  14.         for i,v1 in pairs(v:GetChildren()) do
  15.             if not table.find(Enemies,v1.Name) then
  16.                 table.insert(Enemies,v1.Name)
  17.             end
  18.         end
  19.     end
  20. end
  21.  
  22. function ClosestPart()
  23.     local dist = math.huge
  24.     local target = nil
  25.     for i,v in pairs(game:GetService("Workspace").Worlds:GetDescendants()) do
  26.         if v.ClassName == "Humanoid" then
  27.             if v.Parent.Name == SelectedEnemy then
  28.                 if v.Parent:FindFirstChild("HumanoidRootPart") then
  29.                     local magnitude = (v.Parent.HumanoidRootPart.Position - game:GetService("Players").LocalPlayer.Character.Head.Position).magnitude
  30.                     if magnitude < dist then
  31.                         dist = magnitude
  32.                         target = v.Parent.HumanoidRootPart
  33.                     end
  34.                 end
  35.             end
  36.         end
  37.     end
  38.     return target
  39. end
  40.  
  41. b:Toggle("AutoKillEnemies",function(bool)
  42.     shared.toggle = bool
  43.     AutoKillEnemies = bool
  44. end)
  45.  
  46. b:Dropdown("Select Mob",Enemies,true,function(mob)
  47.     SelectedEnemy = mob
  48. end)
  49.  
  50. b:Toggle("AutoClickDamage",function(bool)
  51.     shared.toggle = bool
  52.     AutoClickDamage = bool
  53. end)
  54.  
  55. b:Toggle("AutoCollectCoins",function(bool)
  56.     shared.toggle = bool
  57.     AutoCollectCoins = bool
  58. end)
  59.  
  60. e:Toggle("AntiAfk",function(bool)
  61.     shared.toggle = bool
  62.     AntiAfk = bool
  63. end)
  64.  
  65. --Credits
  66. u:Button("maxgat5#8395",function()
  67.     setclipboard("maxgat5#8395")
  68. end)
  69.  
  70. u:Button("Discrod Server",function()
  71.     setclipboard("https://discord.gg/K4txdRSVfq")
  72. end)
  73.  
  74. while wait() do
  75.     spawn(function()
  76.         if AutoCollectCoins == true then
  77.             for i,v in pairs(game:GetService("Workspace").Effects:GetDescendants()) do
  78.                 if v.Name == "Base" then
  79.                     v.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(0,0,0)
  80.                 end
  81.             end
  82.         end
  83.     end)
  84.    
  85.     spawn(function()
  86.         if AutoKillEnemies == true then
  87.             for i,v in pairs(workspace.Pets:GetDescendants()) do
  88.                 if v.Name == "Owner" then
  89.                     if v.Value == game.Players.LocalPlayer then
  90.                         if v.Parent.Attacking.Value == nil then
  91.                             game:GetService("Players").LocalPlayer.CameraMaxZoomDistance = 0
  92.                             local tweenInfo = TweenInfo.new(
  93.                             0
  94.                             )
  95.                             local t = game.TweenService:Create(game.Players.LocalPlayer.Character.PrimaryPart, tweenInfo, {CFrame = CFrame.new(
  96.                             ClosestPart().CFrame.Position + Vector3.new(0,0,0)
  97.                             )})
  98.                             game.Players.LocalPlayer.Character.PrimaryPart.Anchored = true
  99.                             t:Play()
  100.                             wait(0)
  101.                             mouse1press() wait() mouse1release()
  102.                         else
  103.                             game.Players.LocalPlayer.Character.PrimaryPart.Anchored = false
  104.                             game:GetService("Players").LocalPlayer.CameraMaxZoomDistance = 128
  105.                         end
  106.                     end
  107.                 end
  108.             end
  109.         end
  110.     end)
  111.    
  112.     spawn(function()
  113.         if AutoClickDamage == true then
  114.             game:GetService("ReplicatedStorage").Remote.ClickerDamage:FireServer()
  115.         end
  116.     end)
  117.    
  118.     spawn(function()
  119.         if AntiAfk == true then
  120.             local bb=game:service'VirtualUser'
  121.             bb:CaptureController()
  122.             bb:ClickButton2(Vector2.new())
  123.         end
  124.     end)
  125. end
Add Comment
Please, Sign In to add comment