Advertisement
Meizch

Roblox Mortem Metallum GUİ *Auto Parry*

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