Advertisement
Smpin4u

mortem metallum acript

Jan 4th, 2021
6,712
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.93 KB | None | 0 0
  1. mortem metallum
  2.  
  3. local Material = loadstring(game:HttpGet("https://raw.githubusercontent.com/QuakADoodles/Mortem-Metallum-Hub-V2.0/master/UI-Library-Source.lua"))()
  4. local runService = game:GetService("RunService")
  5. local plr = game.Players.LocalPlayer
  6. local char = plr.Character
  7.  
  8. local animIds = {
  9. "rbxassetid://5428613396";
  10. "rbxassetid://5428578390";
  11. "rbxassetid://5435382827";
  12. "rbxassetid://5435969402";
  13. "rbxassetid://5431979188";
  14. "rbxassetid://5416575259";
  15. "rbxassetid://5428613396";
  16. "rbxassetid://5428578390";
  17. "rbxassetid://5435382827";
  18. "rbxassetid://5416575259";
  19. "rbxassetid://5424166879";
  20. "rbxassetid://5416575259";
  21. "rbxassetid://5436059670";
  22. "rbxassetid://5436083192";
  23. "rbxassetid://5428613396";
  24. "rbxassetid://5428578390";
  25. "rbxassetid://5416575259";
  26. "rbxassetid://3016814540";
  27. "rbxassetid://3016734456";
  28. "rbxassetid://5428613396";
  29. "rbxassetid://5428578390";
  30. "rbxassetid://5416575259";
  31. "rbxassetid://5431979188";
  32. "rbxassetid://5416575259";
  33. "rbxassetid://4061495031";
  34. "rbxassetid://5431979188";
  35. "rbxassetid://5435928313";
  36. "rbxassetid://5428613396";
  37. "rbxassetid://5428578390";
  38. "rbxassetid://5428613396";
  39. "rbxassetid://5428578390";
  40. "rbxassetid://5428613396";
  41. "rbxassetid://5428578390";
  42. "rbxassetid://5416575259";
  43. "rbxassetid://5435382827";
  44. "rbxassetid://5416575259";
  45. "rbxassetid://5642769282";
  46. "rbxassetid://5642777160";
  47. "rbxassetid://5431979188";
  48. "rbxassetid://5416575259";
  49. "rbxassetid://5416575259";
  50. "rbxassetid://5428613396";
  51. "rbxassetid://5428578390";
  52. "rbxassetid://5705126205";
  53. "rbxassetid://5705174594";
  54. "rbxassetid://5705254261";
  55. }
  56.  
  57. -- Settings Vars
  58. local SetWalk = 25
  59. local parryDist = 15
  60. local td_tele = 15
  61. local t_dist = 10
  62.  
  63. function WalkspeedSet (enabled)
  64. pcall(function()
  65. if enabled then
  66. --print("enabled")
  67. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = tonumber(SetWalk)
  68. end
  69. end)
  70. end
  71.  
  72. local UI = Material.Load({
  73. Title = "Mortem Metallum Hub DEMO",
  74. Style = 3,
  75. SizeX = 300,
  76. SizeY = 400,
  77. Theme = "Dark"
  78. })
  79.  
  80. local Home = UI.New({
  81. Title = "Home"
  82. })
  83.  
  84. local TogglesPage = UI.New({
  85. Title = "Toggles"
  86. })
  87.  
  88. local OptionPage = UI.New({
  89. Title = "Options"
  90. })
  91.  
  92. -- Home page
  93. Home.Button({
  94. Text = "Made by QuackADoodles#0001",
  95. Callback = function()
  96. --print("Clicked!")
  97. end
  98. })
  99.  
  100. Home.Button({
  101. Text = "Consinder buying the full version to \nsupport me and get more features :D",
  102. Callback = function()
  103. -- lol
  104. end
  105. })
  106.  
  107. --[[--------------------------------------------------------------------------------------------]]
  108.  
  109. local Toggle1 = TogglesPage.Toggle({
  110. Text = "Auto Parry",
  111. Callback = function(value)
  112. -- ye
  113. end,
  114. Enabled = false
  115. })
  116.  
  117. local Toggle2 = TogglesPage.Toggle({
  118. Text = "Anti Hit",
  119. Callback = function(value)
  120. -- ye
  121. end,
  122. Enabled = false
  123. })
  124.  
  125. local Toggle4 = TogglesPage.Toggle({
  126. Text = "Walkspeed",
  127. Callback = function(value)
  128. print(value)
  129. end,
  130. Enabled = false
  131. })
  132.  
  133. --[[--------------------------------------------------------------------------------------------]]
  134.  
  135.  
  136. -- Options Page
  137. local AP_t_D = OptionPage.Slider({
  138. Text = "AutoParry Trigger Distance",
  139. Callback = function(value)
  140. parryDist = value
  141. end,
  142. Min = 0,
  143. Max = 50,
  144. Def = parryDist
  145. })
  146. local AH_Dist = OptionPage.Slider({
  147. Text = "AntiHit Teleport Distance",
  148. Callback = function(value)
  149. t_dist = value
  150. end,
  151. Min = 0,
  152. Max = 50,
  153. Def = t_dist
  154. })
  155.  
  156. local AH_Dist = OptionPage.Slider({
  157. Text = "AntiHit Trigger Distance",
  158. Callback = function(value)
  159. td_tele = value
  160. end,
  161. Min = 0,
  162. Max = 50,
  163. Def = td_tele
  164. })
  165.  
  166. local WL_t_D = OptionPage.Slider({
  167. Text = "Walkspeed",
  168. Callback = function(value)
  169. SetWalk = value
  170. --print(SetWalk)
  171. end,
  172. Min = 0,
  173. Max = 100,
  174. Def = SetWalk
  175. })
  176.  
  177. -- Main Script
  178. spawn(function()
  179. while true do
  180. WalkspeedSet(Toggle4:GetState())
  181. wait(0.1)
  182. end
  183. end)
  184.  
  185. function MoveBack(x)
  186. --local vector = char.HumanoidRootPart.Orientation
  187. --[[for i = 1, 10 do --A loop to make your character face the aggressor, as parrying doesn't protect your rear
  188. char.HumanoidRootPart.CFrame = char:SetPrimaryPartCFrame(CFrame.new(char.HumanoidRootPart.Position, plrChar.HumanoidRootPart.Position))
  189. wait()
  190. end]]
  191. char:SetPrimaryPartCFrame(CFrame.new(char.HumanoidRootPart.Position - char.HumanoidRootPart.CFrame.LookVector.Unit * x))
  192. end
  193.  
  194. function getParryEvent()
  195. for i, v in next, char:GetDescendants() do
  196. if v:IsA("RemoteEvent") and v.Name == "ability" then
  197. return v
  198. end
  199. end
  200. return nil
  201. end
  202.  
  203. function parry()
  204.  
  205.  
  206.  
  207. local myParryEvent = getParryEvent()
  208. if myParryEvent then
  209. myParryEvent:FireServer()
  210. end
  211. end
  212. -- Main loop
  213. spawn(function()
  214. while true do
  215. pcall(function()
  216. char = plr.Character
  217. runService.RenderStepped:Wait()
  218. for i, plrChar in next, workspace.PlayersCharacters:GetChildren() do
  219. if plrChar ~= char then
  220. local anims = plrChar.Humanoid:GetPlayingAnimationTracks()
  221. for _, anim in next, anims do
  222. if table.find(animIds, anim.Animation.AnimationId) then
  223. if Toggle1:GetState() then
  224. if (plrChar.HumanoidRootPart.Position - char.HumanoidRootPart.Position).Magnitude <= parryDist and plrChar.Humanoid.Health > 0 and not plrChar.Humanoid.PlatformStand then
  225. parry()
  226. end
  227. end
  228.  
  229. if Toggle2:GetState() then
  230. if (plrChar.HumanoidRootPart.Position - char.HumanoidRootPart.Position).Magnitude <= td_tele and plrChar.Humanoid.Health > 0 and not plrChar.Humanoid.PlatformStand then
  231. MoveBack(t_dist)
  232. end
  233. end
  234.  
  235. wait(0.3) --Prevents mass event firing
  236. end
  237. end
  238. end
  239. end
  240. end)
  241. end
  242. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement