Advertisement
lafur

Untitled

Mar 21st, 2020
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. --Made In PopuVille by Kensington Weapons And Millatary Equipment(CEO: lotushomerun)® ©2015 -
  3. --Feel free to leak
  4.  
  5. mouse = game.Players.LocalPlayer:GetMouse()
  6.  
  7. gun = Instance.new("Part", game.Players.LocalPlayer.Character)
  8. gun.Size = Vector3.new(.4, .4, .5)
  9. gun.CanCollide = false
  10. mesh = Instance.new("SpecialMesh", gun)
  11. mesh.MeshId = "rbxassetid://4183097171"
  12. mesh.TextureId = "rbxassetid://4183097344"
  13. mesh.Scale = Vector3.new(.08, .08, .08)
  14. weld = Instance.new("Weld", gun)
  15. weld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  16. weld.Part1 = gun
  17. weld.C0 = weld.C0 * CFrame.new(0,-1,-.4) * CFrame.Angles(4.7,0,0)
  18. swooshing = Instance.new("Sound", gun)
  19. swooshing.SoundId = "rbxassetid://1438146024"
  20. swooshing.EmitterSize = 1
  21. swooshing.PlaybackSpeed = 0.9
  22. swooshing.Volume = 10
  23. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  24. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  25. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  26. rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  27. rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  28. shooting = false
  29. damage = math.random(20, 30)
  30. for i = 1,2 do
  31. wait()
  32. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.03)
  33. end
  34. for i = 1,2 do
  35. wait()
  36. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.07)
  37. end
  38. swooshing:Play()
  39. for i = 1,7 do
  40. wait()
  41. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.17)
  42. end
  43. for i = 1,2 do
  44. wait()
  45. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.07)
  46. end
  47. for i = 1,2 do
  48. wait()
  49. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.03)
  50. end
  51.  
  52. function shoot()
  53. local shotsound = Instance.new("Sound", gun)
  54. shotsound.EmitterSize = 1
  55. shotsound.SoundId = "rbxassetid://1043082902"
  56. shotsound.Volume = 3
  57. shotsound:Play()
  58. local bullet = Instance.new("Part", workspace)
  59. bullet.Size = Vector3.new(0.05,0.05,0.05)
  60. bullet.CFrame = gun.CFrame * CFrame.new(0,2,0)
  61. bullet.BrickColor = BrickColor.new("Very pink")
  62. bullet.Shape = "Ball"
  63. bullet.CanCollide = false
  64. bullet:BreakJoints()
  65. local velo = Instance.new("BodyVelocity", bullet)
  66. velo.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  67. velo.Velocity = mouse.Hit.lookVector * 190
  68. function hurt(hit)
  69. bullet:Destroy()
  70. local hum = hit.Parent:findFirstChild("Humanoid")
  71. if hum ~= nil and hum.Parent.Name ~= game.Players.LocalPlayer.Name then
  72. hum.Health = hum.Health - damage
  73.  
  74. end
  75.  
  76. end
  77. bullet.Touched:connect(hurt)
  78. end
  79.  
  80.  
  81. mouse.Button1Down:connect(shoot)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement