anonmods

AnimeDestroyers - Sims

Sep 29th, 2021 (edited)
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.58 KB | None | 0 0
  1. local library = loadstring(game:HttpGet(('https://raw.githubusercontent.com/Maxgat5/UiLib/main/lua')))()
  2. local w = library:CreateWindow("Anime Destroyers")
  3. local b = w:CreateFolder("AutoFarm")
  4. local f = w:CreateFolder("AutoBuy")
  5. local e = w:CreateFolder("Mix")
  6. local u = w:CreateFolder("Credits")
  7. SelectedPowerCrate = ""
  8. PowerCrates = {}
  9. for i,v in pairs(game:GetService("Workspace").PowerCrates:GetChildren()) do
  10. if not table.find(PowerCrates,v.Name) then
  11. table.insert(PowerCrates,v.Name)
  12. end
  13. end
  14. SelectedEnemy = ""
  15. Enemies = {}
  16. for i,v in pairs(game:GetService("Workspace").Enemies:GetChildren()) do
  17. if not table.find(Enemies,v.Name) then
  18. table.insert(Enemies,v.Name)
  19. end
  20. end
  21.  
  22. b:Dropdown("Select Enemy",Enemies,true,function(a)
  23. SelectedEnemy = a
  24. end)
  25.  
  26. b:Toggle("AutoKill",function(bool)
  27. shared.toggle = bool
  28. AutoKill = bool
  29. end)
  30.  
  31. b:Toggle("AutoCollectCoins",function(bool)
  32. shared.toggle = bool
  33. AutoCollectCoins = bool
  34. end)
  35.  
  36. f:Dropdown("Select PowerCrate",PowerCrates,true,function(a)
  37. SelectedPowerCrate = a
  38. end)
  39.  
  40. f:Toggle("PowerCrate",function(bool)
  41. shared.toggle = bool
  42. PowerCrate = bool
  43. end)
  44.  
  45. e:Toggle("AntiAfk",function(bool)
  46. shared.toggle = bool
  47. AntiAfk = bool
  48. end)
  49.  
  50. e:Toggle("AutoHeal",function(bool)
  51. shared.toggle = bool
  52. AutoHeal = bool
  53. end)
  54. --Credits
  55. u:Button("Alan.#9235",function()
  56. setclipboard("Alan.#9235")
  57. end)
  58.  
  59. u:Button(game:service("HttpService"):JSONDecode(game:HttpGet("https://raw.githubusercontent.com/Maxgat5/Decode/main/JSON")).username,function()
  60. setclipboard(game:service("HttpService"):JSONDecode(game:HttpGet("https://raw.githubusercontent.com/Maxgat5/Decode/main/JSON")).username)
  61. end)
  62.  
  63. u:Button("Discord Server",function()
  64. setclipboard(game:service("HttpService"):JSONDecode(game:HttpGet("https://raw.githubusercontent.com/Maxgat5/Decode/main/JSON")).discord)
  65. end)
  66.  
  67. function ClosestPart()
  68. local dist = math.huge
  69. local target = nil
  70. for i,v in pairs(game:GetService("Workspace").Enemies:GetChildren()) do
  71. if v.ClassName == "Model" and v.Name == SelectedEnemy then
  72. local magnitude = (v.HumanoidRootPart.Position - game:GetService("Players").LocalPlayer.Character.Head.Position).magnitude
  73. if magnitude < dist then
  74. dist = magnitude
  75. target = v
  76. end
  77. end
  78. end
  79. return target
  80. end
  81.  
  82. game:GetService('RunService').Stepped:connect(function()
  83. spawn(function()
  84. if AntiAfk == true then
  85. local bb=game:service'VirtualUser'
  86. bb:CaptureController()
  87. bb:ClickButton2(Vector2.new())
  88. end
  89. end)
  90. spawn(function()
  91. if AutoKill == true then
  92. pcall(function()
  93. local tool = game.Players.LocalPlayer.Backpack:FindFirstChildOfClass("Tool") or game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool")
  94. game.Players.LocalPlayer.Character.Humanoid:EquipTool(tool)
  95. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(ClosestPart().HumanoidRootPart.CFrame.Position + Vector3.new(0,-5,0))
  96. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  97. end)
  98. end
  99. end)
  100. spawn(function()
  101. if AutoCollectCoins == true then
  102. for i,v in pairs(game:GetService("Workspace").Coins:GetChildren()) do
  103. pcall(function()
  104. v.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(0,0,0)
  105. end)
  106. end
  107. end
  108. end)
  109. spawn(function()
  110. if AutoHeal == true then
  111. pcall(function()
  112. game:GetService("Workspace").HealingWells.Well.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(0,0,0)
  113. end)
  114. end
  115. end)
  116. end)
  117.  
  118. spawn(function()
  119. while wait() do
  120. if AutoKill == true then
  121. pcall(function()
  122. spawn(function()
  123. local tool = game.Players.LocalPlayer.Backpack:FindFirstChildOfClass("Tool") or game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool")
  124. game:GetService("ReplicatedStorage").Remotes.UseSword:InvokeServer(tool,{{ClosestPart()}})
  125. end)
  126. end)
  127. end
  128. end
  129. end)
  130.  
  131. spawn(function()
  132. while wait() do
  133. if PowerCrate == true then
  134. game:GetService("ReplicatedStorage").Remotes.OpenPowerCrate:InvokeServer(tonumber(SelectedPowerCrate),false)
  135. end
  136. end
  137. end)
Add Comment
Please, Sign In to add comment