Advertisement
ski1lzhub

animadv

Jul 8th, 2022
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.56 KB | None | 0 0
  1. local Material = loadstring(game:HttpGet("https://raw.githubusercontent.com/Kinlei/MaterialLua/master/Module.lua"))()
  2.  
  3. local X = Material.Load({
  4. Title = "Keybrew Hub | Anime Adventures",
  5. Style = 3,
  6. SizeX = 300,
  7. SizeY = 350,
  8. Theme = "Light",
  9. ColorOverrides = {
  10. MainFrame = Color3.fromRGB(0,0,0),
  11. Toggle = Color3.fromRGB(124,37,255),
  12. ToggleAccent = Color3.fromRGB(255,255,255),
  13. Dropdown = Color3.fromRGB(124,37,255),
  14. DropdownAccent = Color3.fromRGB(255,255,255),
  15. Slider = Color3.fromRGB(124,37,255),
  16. SliderAccent = Color3.fromRGB(255,255,255),
  17. NavBarAccent = Color3.fromRGB(0,0,0),
  18. Content = Color3.fromRGB(0,0,0),
  19. }
  20. })
  21.  
  22. local Y = X.New({
  23. Title = "Main"
  24. })
  25.  
  26. local Z = X.New({
  27. Title = "Misc"
  28. })
  29.  
  30. local Cred = X.New({
  31. Title = "Credits"
  32. })
  33. Cred.Button({
  34. Text = "Copy Discord UyuSF4fPC9",
  35. Callback = function()
  36. setclipboard("https://discord.gg/UyuSF4fPC9")
  37. toclipboard("https://discord.gg/UyuSF4fPC9")
  38. end,
  39. })
  40.  
  41. Y.Toggle({
  42. Text = "Auto Abilities",
  43. Callback = function(Value)
  44. a = Value
  45. while a do task.wait()
  46. pcall(function()
  47. for i, v in next, game:GetService("Workspace")["_UNITS"]:GetChildren() do
  48. if v:IsA("Model") and v._stats.player.Value == game.Players.LocalPlayer then
  49. local args = {
  50. [1] = v
  51. }
  52.  
  53. game:GetService("ReplicatedStorage").endpoints.client_to_server.use_active_attack:InvokeServer(unpack(args))
  54. end
  55. end
  56. end)
  57. end
  58. end,
  59. Enabled = false
  60. })
  61.  
  62.  
  63. local Unit = {}
  64.  
  65. for i, v in next, game:GetService("Workspace")["_UNITS"]:GetChildren() do
  66. if v:IsA("Model") and v._stats.player.Value == game.Players.LocalPlayer then
  67. if not table.find(Unit, tostring(v)) then
  68. table.insert(Unit, tostring(v))
  69. end
  70. end
  71. end
  72.  
  73.  
  74.  
  75. local drop = Y.Dropdown({
  76. Text = "Select Unit",
  77. Callback = function(Value)
  78. getgenv().unit = Value
  79. end,
  80. Options = Unit
  81. })
  82.  
  83. local function getClosest()
  84. local dist, thing = math.huge
  85. for i, v in next, game:GetService("Workspace")["_UNITS"]:GetChildren() do
  86. if v:IsA("Model") and v.Name == unit then
  87. local mag =
  88. (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - v.HumanoidRootPart.Position).magnitude
  89. if mag < dist then
  90. dist = mag
  91. thing = v
  92. end
  93. end
  94. end
  95. return thing
  96. end
  97.  
  98. Y.Toggle({
  99. Text = "Auto Upgrade Nearest",
  100. Callback = function(Value)
  101. bb = Value
  102. while bb do task.wait()
  103. local args = {
  104. [1] = getClosest()
  105. }
  106.  
  107. game:GetService("ReplicatedStorage").endpoints.client_to_server.upgrade_unit_ingame:InvokeServer(unpack(args))
  108. end
  109. end,
  110. Enabled = false
  111. })
  112.  
  113. Y.Button(
  114. {
  115. Text = "Refresh Units",
  116. Callback = function()
  117. table.clear(Unit)
  118. for i, v in next, game:GetService("Workspace")["_UNITS"]:GetChildren() do
  119. if v:IsA("Model") and v._stats.player.Value == game.Players.LocalPlayer then
  120. if not table.find(Unit, tostring(v)) then
  121. table.insert(Unit, tostring(v))
  122. drop:SetOptions(Unit)
  123. end
  124. end
  125. end
  126. end
  127. }
  128. )
  129.  
  130. game.Players.LocalPlayer.PlayerGui.MessageGui:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement