Advertisement
Demogorgon_Scripter

Mortem Metallum Nuke commands [old]

Dec 19th, 2024
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.47 KB | Gaming | 0 0
  1. --[this is one of the very first nuke scripts for Mortem Metalllum alpha. Now it works very poorly and requires a fix. I decided to post this so that maybe someone would fix it because I'm too lazy lol.]
  2. --[also here are the commands: !c4 (It doesn't work anymore), !g or !grenade, !firebomb or !fire or !f, !waterflask or !water or !w]
  3. --[how it works: 1. equip grenade or fire bomb or water flask, 2. enter a command to the chat, 3. throw the grenade, 4. done!]
  4. print("Loaded!") -- checks if it works
  5. local Players = game:GetService("Players")
  6. local LocalPlayer = Players.LocalPlayer
  7. local Character = LocalPlayer.Character
  8. local Humanoid = Character:FindFirstChildOfClass("Humanoid")
  9.  
  10. local C4Throw, GrenadeThrow, FireBombThrow, WaterFlaskThrow
  11. local C4, Grenade, FireBomb, WaterFlask
  12.  
  13. spawn(function()
  14.     while wait(0.5) do
  15.         C4 = Character:FindFirstChild("C4")
  16.         Grenade = Character:FindFirstChild("Grenade")
  17.         FireBomb = Character:FindFirstChild("Fire bomb")
  18.         WaterFlask = Character:FindFirstChild("Water flask")
  19.  
  20.         if C4 then
  21.             C4Throw = C4:FindFirstChild("throw")
  22.         end
  23.  
  24.         if Grenade then
  25.             GrenadeThrow = Grenade:FindFirstChild("throw")
  26.         end
  27.  
  28.         if FireBomb then
  29.             FireBombThrow = FireBomb:FindFirstChild("throw")
  30.         end
  31.  
  32.         if WaterFlask then
  33.             WaterFlaskThrow = WaterFlask:FindFirstChild("throw")
  34.         end
  35.     end
  36. end)
  37.  
  38. game.Players.LocalPlayer.Chatted:Connect(function(msg)
  39.     if msg == "!c4" and C4Throw then
  40.         local Mouse = LocalPlayer:GetMouse()
  41.         local Distance = 5
  42.         Mouse.Button1Down:Wait()
  43.         wait(1.9)
  44.         for i = 1, 5000 do
  45.             C4Throw:FireServer(Character.Head.CFrame * CFrame.new(0, 0, -Distance))
  46.             Distance = Distance + 5
  47.         end
  48.     elseif msg == "!g" or msg == "!grenade" and GrenadeThrow then
  49.         local Mouse = LocalPlayer:GetMouse()
  50.         local RandomPosition = Vector3.new(math.random(-1500, 1500), math.random(-1500, 1500), math.random(-1500, 1500))
  51.         local Force = 20
  52.         local Velocity = Vector3.new(math.random(-1500, 1500), math.random(-1500, 1500), math.random(-1500, 1500))
  53.         Mouse.Button1Down:Wait()
  54.         wait(2.55)
  55.         for i = 1, 5000 do
  56.             GrenadeThrow:FireServer(RandomPosition, Force, Velocity)
  57.         end
  58.     elseif msg == "!firebomb" or msg == "!fire" or msg == "!f" and FireBombThrow then
  59.         local Mouse = LocalPlayer:GetMouse()
  60.         local RandomPosition = Vector3.new(math.random(-1500, 1500), math.random(-1500, 1500), math.random(-1500, 1500))
  61.         local Force = 20
  62.         local Velocity = Vector3.new(math.random(-1500, 1500), math.random(-1500, 1500), math.random(-1500, 1500))
  63.         Mouse.Button1Down:Wait()
  64.         wait(2.55)
  65.         for i = 1, 5000 do
  66.             FireBombThrow:FireServer(RandomPosition, Force, Velocity)
  67.         end
  68.     elseif msg == "!waterflask" or msg == "!water" or msg == "!w" and WaterFlaskThrow then
  69.         local Mouse = LocalPlayer:GetMouse()
  70.         local RandomPosition = Vector3.new(math.random(-1500, 1500), math.random(-1500, 1500), math.random(-1500, 1500))
  71.         local Force = 20
  72.         local Velocity = Vector3.new(math.random(-1500, 1500), math.random(-1500, 1500), math.random(-1500, 1500))
  73.         Mouse.Button1Down:Wait()
  74.         wait(0.55)
  75.         for i = 1, 5000 do
  76.             WaterFlaskThrow:FireServer(RandomPosition, Force, Velocity)
  77.         end
  78.     end
  79. end)
  80.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement