Advertisement
NMM

MyHeroManiaScript

NMM
Mar 1st, 2021
3,096
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.38 KB | None | 0 0
  1. local library = loadstring(game:HttpGet("https://pastebin.com/raw/zH17BK2a", true))();
  2. for i, v in next, getconnections(game.Players.LocalPlayer.Idled) do
  3. v:Disable();
  4. end;
  5.  
  6.  
  7. --//Credits To {} I Kinda stole his autoquest idea lmaoo\\--
  8.  
  9. local example = library:CreateWindow({
  10. text = "Main"
  11. })
  12.  
  13. local Set = library:CreateWindow({
  14. text = "Settings"
  15. })
  16.  
  17. local extra = library:CreateWindow({
  18. text = "Credits"
  19. })
  20.  
  21. --//Quest Table\\--
  22. local QuestTbl = {};
  23.  
  24. for i,v in pairs(game:GetService("ReplicatedStorage").Package.Quests:GetChildren()) do
  25. table.insert(QuestTbl,v.Name)
  26. end;
  27.  
  28. --//Npc Table\\--
  29. local NPC = {};
  30.  
  31. for i,v in pairs(game:GetService("Workspace").Others.NPCSpawns:GetChildren()) do
  32. table.insert(NPC,v.Name)
  33. end;
  34.  
  35. --//Vars\\--
  36. local CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  37. local Player = game:GetService("Players").LocalPlayer;
  38. local Human = game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Humanoid");
  39. local MobP = "";
  40. local QuestP = "";
  41. local USERID = game.Players.LocalPlayer.UserId
  42. local DIS = -3
  43.  
  44. --//Main Section\\--
  45.  
  46. example:AddToggle("Autofarm", function(value)
  47. _G.Autofarm = value
  48.  
  49. while _G.Autofarm and wait() do
  50. for i,v in pairs(game.Workspace.Living:GetChildren()) do
  51. if game.Players.LocalPlayer.Character and v:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("Humanoid") then
  52. if _G.AutoQuest and game:GetService("ReplicatedStorage").Datas[USERID].QuestProgress.Value == 0 then
  53. game:GetService("ReplicatedStorage").Package.Events.GetQuest:InvokeServer(QuestP) end;
  54. if string.match(v.Name, MobP) and v.Humanoid.Health > 0 then
  55. repeat wait()
  56. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.HumanoidRootPart.CFrame + (v.HumanoidRootPart.CFrame.lookVector * DIS)
  57. game:GetService("ReplicatedStorage").Package.Events.Combat:FireServer(1) game:GetService("ReplicatedStorage").Package.Events.Combat:FireServer(2) game:GetService("ReplicatedStorage").Package.Events.Combat:FireServer(3) game:GetService("ReplicatedStorage").Package.Events.Combat:FireServer(4) game:GetService("ReplicatedStorage").Package.Events.Combat:FireServer(5)
  58. until v.Humanoid.Health <= 0 or not _G.Autofarm
  59. end;
  60. end;
  61. end;
  62. end;
  63. end);
  64.  
  65. example:AddToggle("Auto Quest", function(value)
  66. _G.AutoQuest = value
  67. end);
  68.  
  69. example:AddLabel("Mob");
  70.  
  71. local dropdown;
  72. dropdown = example:AddDropdown(NPC, function(value)
  73. MobP = value
  74. end);
  75.  
  76. example:AddLabel("Quest");
  77.  
  78. local dropdown;
  79. dropdown = example:AddDropdown(QuestTbl, function(value)
  80. QuestP = value
  81. end);
  82.  
  83. --//Settings\\--
  84.  
  85. Set:AddLabel("Skills");
  86.  
  87. Set:AddToggle("Use Skills", function(value)
  88. _G.UseSkills = value
  89. end);
  90.  
  91. Set:AddToggle("First Skill", function(value)
  92. _G.Skill1 = value
  93.  
  94. while _G.UseSkills and _G.Skill1 and wait() do
  95. local a={[1]="1",[2]="Down",[3]={["Mobile"]=false}}game:GetService("ReplicatedStorage").Package.Events.Skill:InvokeServer(unpack(a))
  96. end;
  97. end);
  98.  
  99. Set:AddToggle("Second Skill", function(value)
  100. _G.Skill2 = value
  101.  
  102. while _G.UseSkills and _G.Skill2 and wait() do
  103. local a={[1]="2",[2]="Down",[3]={["Mobile"]=false}}game:GetService("ReplicatedStorage").Package.Events.Skill:InvokeServer(unpack(a))
  104. end;
  105. end);
  106.  
  107. Set:AddLabel("Autofarm");
  108.  
  109. Set:AddBox("Distance", function(Goul, Reg)
  110. DIS = tonumber(Goul.Text) or -3
  111. end);
  112.  
  113. Set:AddToggle("Auto Equip", function(value)
  114. _G.Equip = value
  115. while _G.Equip and wait() do
  116. if game:GetService("Players").LocalPlayer.Status.Weapon.Value == "None" then
  117. game:GetService("ReplicatedStorage").Package.Events.EquipUnequip:InvokeServer()
  118. end;
  119. end;
  120. end);
  121.  
  122. --//Credits & Options Section\\--
  123.  
  124. extra:AddToggle("Hide Name", function(value)
  125. _G.HideN = value
  126.  
  127. while _G.HideN and wait() do
  128. for i,v in pairs(game.Players.LocalPlayer.Character:GetDescendants()) do
  129. if v.Name == 'Pants' or v.ClassName == "Accessory" or v.Name == 'Shirt' or v.Name == 'Title' then
  130. v:Destroy()
  131. end;
  132. end;
  133. end;
  134. end);
  135.  
  136. extra:AddButton("Copy Discord", function()
  137. setclipboard('https://discord.gg/Tcdx6RwjGR')
  138. end);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement