Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[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.]
- --[also here are the commands: !c4 (It doesn't work anymore), !g or !grenade, !firebomb or !fire or !f, !waterflask or !water or !w]
- --[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!]
- print("Loaded!") -- checks if it works
- local Players = game:GetService("Players")
- local LocalPlayer = Players.LocalPlayer
- local Character = LocalPlayer.Character
- local Humanoid = Character:FindFirstChildOfClass("Humanoid")
- local C4Throw, GrenadeThrow, FireBombThrow, WaterFlaskThrow
- local C4, Grenade, FireBomb, WaterFlask
- spawn(function()
- while wait(0.5) do
- C4 = Character:FindFirstChild("C4")
- Grenade = Character:FindFirstChild("Grenade")
- FireBomb = Character:FindFirstChild("Fire bomb")
- WaterFlask = Character:FindFirstChild("Water flask")
- if C4 then
- C4Throw = C4:FindFirstChild("throw")
- end
- if Grenade then
- GrenadeThrow = Grenade:FindFirstChild("throw")
- end
- if FireBomb then
- FireBombThrow = FireBomb:FindFirstChild("throw")
- end
- if WaterFlask then
- WaterFlaskThrow = WaterFlask:FindFirstChild("throw")
- end
- end
- end)
- game.Players.LocalPlayer.Chatted:Connect(function(msg)
- if msg == "!c4" and C4Throw then
- local Mouse = LocalPlayer:GetMouse()
- local Distance = 5
- Mouse.Button1Down:Wait()
- wait(1.9)
- for i = 1, 5000 do
- C4Throw:FireServer(Character.Head.CFrame * CFrame.new(0, 0, -Distance))
- Distance = Distance + 5
- end
- elseif msg == "!g" or msg == "!grenade" and GrenadeThrow then
- local Mouse = LocalPlayer:GetMouse()
- local RandomPosition = Vector3.new(math.random(-1500, 1500), math.random(-1500, 1500), math.random(-1500, 1500))
- local Force = 20
- local Velocity = Vector3.new(math.random(-1500, 1500), math.random(-1500, 1500), math.random(-1500, 1500))
- Mouse.Button1Down:Wait()
- wait(2.55)
- for i = 1, 5000 do
- GrenadeThrow:FireServer(RandomPosition, Force, Velocity)
- end
- elseif msg == "!firebomb" or msg == "!fire" or msg == "!f" and FireBombThrow then
- local Mouse = LocalPlayer:GetMouse()
- local RandomPosition = Vector3.new(math.random(-1500, 1500), math.random(-1500, 1500), math.random(-1500, 1500))
- local Force = 20
- local Velocity = Vector3.new(math.random(-1500, 1500), math.random(-1500, 1500), math.random(-1500, 1500))
- Mouse.Button1Down:Wait()
- wait(2.55)
- for i = 1, 5000 do
- FireBombThrow:FireServer(RandomPosition, Force, Velocity)
- end
- elseif msg == "!waterflask" or msg == "!water" or msg == "!w" and WaterFlaskThrow then
- local Mouse = LocalPlayer:GetMouse()
- local RandomPosition = Vector3.new(math.random(-1500, 1500), math.random(-1500, 1500), math.random(-1500, 1500))
- local Force = 20
- local Velocity = Vector3.new(math.random(-1500, 1500), math.random(-1500, 1500), math.random(-1500, 1500))
- Mouse.Button1Down:Wait()
- wait(0.55)
- for i = 1, 5000 do
- WaterFlaskThrow:FireServer(RandomPosition, Force, Velocity)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement