Advertisement
NukeVsCity

Anime Fighters gui for farm

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