Advertisement
jjsnappy

Anime Fighters Simulator

Feb 2nd, 2022
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.89 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:Label("Youtube Subs: "..getgenv().Subscribers,{
  63. TextSize = 25;
  64. TextColor = Color3.fromRGB(255,255,255);
  65. BgColor = Color3.fromRGB(69,69,69)
  66. })
  67.  
  68. u:Label("Discord Members: "..getgenv().TotalMembers,{
  69. TextSize = 25;
  70. TextColor = Color3.fromRGB(255,255,255);
  71. BgColor = Color3.fromRGB(69,69,69)
  72. })
  73.  
  74. u:Label("Pastebin Views: "..getgenv().TotalPastebinViews,{
  75. TextSize = 25;
  76. TextColor = Color3.fromRGB(255,255,255);
  77. BgColor = Color3.fromRGB(69,69,69)
  78. })
  79.  
  80. u:Button("Discord Server",function()
  81. setclipboard(getgenv().Discord)
  82. end)
  83.  
  84. u:Button("Youtube Channel",function()
  85. setclipboard(getgenv().Youtube)
  86. end)
  87.  
  88. u:Button("Pastebin Page",function()
  89. setclipboard(getgenv().Pastebin)
  90. end)
  91.  
  92. u:Button(getgenv().Username,function()
  93. setclipboard(getgenv().Username)
  94. end)
  95.  
  96. game:GetService('RunService').Stepped:connect(function()
  97. spawn(function()
  98. if AutoClickDamage == true then
  99. game:GetService("ReplicatedStorage").Remote.ClickerDamage:FireServer()
  100. end
  101. end)
  102. end)
  103.  
  104. while wait() do
  105. spawn(function()
  106. if AutoCollectCoins == true then
  107. for i,v in pairs(game:GetService("Workspace").Effects:GetDescendants()) do
  108. if v.Name == "Base" then
  109. v.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(0,0,0)
  110. end
  111. end
  112. end
  113. end)
  114.  
  115. spawn(function()
  116. if AutoKillEnemies == true then
  117. for i,v in pairs(workspace.Pets:GetDescendants()) do
  118. if v.Name == "Owner" then
  119. if v.Value == game.Players.LocalPlayer then
  120. if v.Parent.Attacking.Value == nil then
  121. game:GetService("Players").LocalPlayer.CameraMaxZoomDistance = 0
  122. local tweenInfo = TweenInfo.new(
  123. 0
  124. )
  125. local t = game.TweenService:Create(game.Players.LocalPlayer.Character.PrimaryPart, tweenInfo, {CFrame = CFrame.new(
  126. ClosestPart().CFrame.Position + Vector3.new(0,0,0)
  127. )})
  128. game.Players.LocalPlayer.Character.PrimaryPart.Anchored = true
  129. t:Play()
  130. wait(0)
  131. mouse1press() wait() mouse1release()
  132. else
  133. game.Players.LocalPlayer.Character.PrimaryPart.Anchored = false
  134. game:GetService("Players").LocalPlayer.CameraMaxZoomDistance = 128
  135. end
  136. end
  137. end
  138. end
  139. else
  140. game:GetService("Players").LocalPlayer.CameraMaxZoomDistance = 128
  141. end
  142. end)
  143.  
  144. spawn(function()
  145. if AntiAfk == true then
  146. local bb=game:service'VirtualUser'
  147. bb:CaptureController()
  148. bb:ClickButton2(Vector2.new())
  149. end
  150. end)
  151. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement