Advertisement
Noob3as

Doom Gun (Roblox)

Feb 19th, 2017
2,428
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.78 KB | None | 0 0
  1. --CREDITS TO XXJOJETXX
  2. -- DONT EDIT THIS SCRIPT UNLESS U KNOW WHAT YOU ARE DOING!
  3. -- VERSION 1
  4. -- DONT ABUSE ON VOIDACITY OR GET BANNNED
  5. -- COPY THIS LINE OF SCRIPT HERE THEN DO L/THESCRIPT ON VOIDACITY
  6. VVV -- COPY IT
  7.  
  8. local player = game.Players.LocalPlayer
  9. local mouse = player:GetMouse()
  10.  
  11. local tool = Instance.new("Tool", player.Backpack)
  12. tool.Name = "Doom Cannon"
  13. tool.GripUp = Vector3.new(0, 0, 1)
  14.  
  15. local handle = Instance.new("Part", tool)
  16. handle.Name = "Handle"
  17. handle.Anchored = false
  18.  
  19. local gunmesh = Instance.new("SpecialMesh", handle)
  20. gunmesh.MeshId = "http://www.roblox.com/asset/?id=78002401"
  21. gunmesh.TextureId = "rbxassetid://78002441"
  22.  
  23.  
  24. tool.Equipped:connect(function(mouse)
  25.  
  26. mouse.Button1Down:connect(function()
  27. local ray = Ray.new(handle.CFrame.p, (mouse.Hit.p - handle.CFrame.p).unit * 300)
  28. local human, position = workspace:FindPartOnRay(ray, player.Character, false, true)
  29.  
  30. local bullet = Instance.new("Part", workspace)
  31. bullet.BrickColor = BrickColor.new("Black")
  32. bullet.Material = "Neon"
  33. bullet.TopSurface = "Smooth"
  34. bullet.BottomSurface = "Smooth"
  35. bullet.Locked = true
  36. bullet.Anchored = true
  37. bullet.CanCollide = false
  38.  
  39. local distance = (handle.CFrame.p - position).magnitude
  40. bullet.Size = Vector3.new(0.5, 0.5, distance)
  41. bullet.CFrame = CFrame.new(handle.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  42.  
  43. game:GetService("Debris"):AddItem(bullet, 0.1)
  44.  
  45. if human then
  46.  
  47. if human then
  48. local human = human.Parent:FindFirstChild("Humanoid")
  49.  
  50. if not human then
  51. human = human.Parent.Parent:FindFirstChild("Humanoid")
  52. print("Not Mob")
  53. end
  54.  
  55. if human then
  56. human:TakeDamage(10 * 2)
  57. human.Parent.Torso.BrickColor = BrickColor.new("Black")
  58. human.Parent.Head.BrickColor = BrickColor.new("Black")
  59. human.Parent:FindFirstChild("Left Arm").BrickColor = BrickColor.new("Black")
  60. human.Parent:FindFirstChild("Right Arm").BrickColor = BrickColor.new("Black")
  61. human.Parent:FindFirstChild("Left Leg").BrickColor = BrickColor.new("Black")
  62. human.Parent:FindFirstChild("Right Leg").BrickColor = BrickColor.new("Black")
  63. while true do
  64.  
  65. for i = 1,10 do
  66. wait(0.1)
  67.  
  68. human.Parent.Torso.Size = human.Torso.Size - Vector3.new(1,1,1)
  69. human.Parent.Head.Size = human.Torso.Size - Vector3.new(1,1,1)
  70. human.Parent:FindFirstChild("Left Arm").Size = human.Torso.Size - Vector3.new(1,1,1)
  71. human.Parent:FindFirstChild("Right Arm").Size = human.Torso.Size - Vector3.new(1,1,1)
  72. human.Parent:FindFirstChild("Left Leg").Size = human.Torso.Size - Vector3.new(1,1,1)
  73. human.Parent:FindFirstChild("Right Leg").Size = human.Torso.Size - Vector3.new(1,1,1)
  74. end
  75. end
  76.  
  77.  
  78. end
  79.  
  80. end
  81. end
  82.  
  83.  
  84.  
  85. end)
  86. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement