DrakerMaker

EhEhEhEh v.2

Oct 27th, 2019
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.86 KB | None | 0 0
  1. function wbtwe(Part0, Part1, C0)
  2. local weld = Instance.new("Weld", Part0)
  3. weld.Part0 = Part0
  4. weld.Part1 = Part1
  5. weld.C0 = Part1.CFrame:inverse() *Part1.CFrame *C0
  6. return weld
  7. end
  8. squat = 1
  9. nod = 1
  10. hrw = wbtwe(owner.Character.Torso, owner.Character.HumanoidRootPart, CFrame.new(0, 0, 0))
  11. law = wbtwe(owner.Character["Left Arm"], owner.Character.Torso, CFrame.new(1.45, 0, 0.1) *CFrame.Angles(0, 25, 0))
  12. raw = wbtwe(owner.Character["Right Arm"], owner.Character.Torso, CFrame.new(-1.45, 0, 0) *CFrame.Angles(0, 0, 0))
  13. llw = wbtwe(owner.Character["Left Leg"], owner.Character.HumanoidRootPart, CFrame.new(1.2, 1.99, 0) *CFrame.Angles(0, 25, 0))
  14. rlw = wbtwe(owner.Character["Right Leg"], owner.Character.HumanoidRootPart, CFrame.new(-1.2, 1.99, 0) *CFrame.Angles(0, 0, 0))
  15. hw = wbtwe(owner.Character.Head, owner.Character.Torso, CFrame.new(0, -1.45, 0.8) *CFrame.Angles(-0.8, 0, 0))
  16. local sound = Instance.new("Sound", owner.Character.Head)
  17. sound.SoundId = "rbxassetid://2586147657"
  18. sound.Volume = 2
  19. sound.PlaybackSpeed = 1.2
  20. local Distortion = Instance.new("FlangeSoundEffect")
  21. Distortion.Rate = 8
  22. Distortion.Parent = sound
  23. sound:Play()
  24. local gun = Instance.new("Part", owner.Character)
  25. gun.Anchored = true
  26. gun.CFrame = owner.Character.Torso.CFrame *CFrame.new(1.10, 0, 0.1) *CFrame.Angles(0, 0, 0)
  27. gun.CanCollide = false
  28. local gmesh = Instance.new("SpecialMesh", gun)
  29. gmesh.MeshId = "http://www.roblox.com/asset/?id=79401392"
  30. gmesh.TextureId = "http://www.roblox.com/asset/?id=91723031"
  31. gmesh.Scale = Vector3.new(1.5, 1.5, 1.5)
  32. local gbang = Instance.new("Sound", gun)
  33. gbang.SoundId = "rbxassetid://2989923150"
  34. gbang.Volume = 3
  35. anim = coroutine.wrap(function()
  36. while game:GetService("RunService").Stepped:wait() do
  37. squat = squat +0.3
  38. nod = nod +0.76
  39. law.C0 = owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.45, 0, 0.1) *CFrame.Angles(math.random(-7, 7), 25, math.random(-7, 7))
  40. raw.C0 = owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.45, 0, 0.1) *CFrame.Angles(math.random(-7, 7), 0, math.random(-7, 7))
  41. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(math.cos(squat) *1, math.sin(squat) *1, 0) *CFrame.Angles(math.rad(math.random(-1, 1)), math.rad(math.random(-1, 1)), math.rad(math.random(-1, 1))), 0.1)
  42. hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.45, 0.8) *CFrame.Angles(-0.8, math.cos(nod) *0.76, 0), 0.1)
  43. end
  44. end)anim()
  45. gunanim = coroutine.wrap(function()
  46. while game:GetService("RunService").Stepped:wait() do
  47. if owner.Character.HumanoidRootPart.Velocity.Magnitude < 1 then
  48. gun.CFrame = gun.CFrame:lerp(owner.Character.Torso.CFrame *CFrame.new(1.10, 0, 0.1) *CFrame.Angles(0, 0, 0), 0.1)
  49. end
  50. if owner.Character.HumanoidRootPart.Velocity.Magnitude > 1 then
  51. gun.CFrame = gun.CFrame:lerp(owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, 0, -10) *CFrame.Angles(-7.8, 0, 0), 1)
  52. end
  53. end
  54. end)gunanim()
  55. gun.Touched:connect(function(p)
  56. if p.Parent.Name ~= owner.Name then
  57. if p.Parent:FindFirstChildOfClass("Humanoid") then
  58. if p.Parent:FindFirstChildOfClass("Humanoid").Health ~= 0 then
  59. if owner.Character.HumanoidRootPart.Velocity.Magnitude > 1 then
  60. p.Parent:BreakJoints()
  61. gbang:Play()
  62. local ex = Instance.new("Part", gun)
  63. ex.Anchored = true
  64. ex.CanCollide = false
  65. ex.Material = "Neon"
  66. ex.Size = Vector3.new(3, 3, 3)
  67. local exx = Instance.new("Part", gun)
  68. exx.Anchored = true
  69. exx.CanCollide = false
  70. exx.Material = "Neon"
  71. exx.Size = Vector3.new(3, 3, 3)
  72. local exxx = Instance.new("Part", gun)
  73. exxx.Anchored = true
  74. exxx.CanCollide = false
  75. exxx.Material = "Neon"
  76. exxx.Size = Vector3.new(3, 3, 3)
  77. if p.Parent:FindFirstChild("Torso") then
  78. ex.CFrame = p.Parent.Torso.CFrame
  79. exx.CFrame = p.Parent.Torso.CFrame
  80. exxx.CFrame = p.Parent.Torso.CFrame
  81. end
  82. if p.Parent:FindFirstChild("UpperTorso") then
  83. ex.CFrame = p.Parent.UpperTorso.CFrame
  84. exx.CFrame = p.Parent.UpperTorso.CFrame
  85. exxx.CFrame = p.Parent.UpperTorso.CFrame
  86. end
  87. if p.Parent:FindFirstChild("Torso") ~= nil and p.Parent:FindFirstChild("UpperTorso") ~= nil then
  88. ex.CFrame = gun.CFrame
  89. exx.CFrame = gun.CFrame
  90. exxx.CFrame = gun.CFrame
  91. end
  92. for i = 1,25 do
  93. game:GetService("RunService").Stepped:wait()
  94. ex.Size = ex.Size +Vector3.new(1, 1, 1)
  95. ex.CFrame = ex.CFrame *CFrame.Angles(math.random(-500, 500), math.random(-500, 500), math.random(-500, 500))
  96. ex.Transparency = ex.Transparency +0.05
  97. exx.Size = ex.Size +Vector3.new(1, 1, 1)
  98. exx.CFrame = ex.CFrame *CFrame.Angles(math.random(-500, 500), math.random(-500, 500), math.random(-500, 500))
  99. exx.Transparency = ex.Transparency +0.05
  100. exxx.Size = ex.Size +Vector3.new(1, 1, 1)
  101. exxx.CFrame = ex.CFrame *CFrame.Angles(math.random(-500, 500), math.random(-500, 500), math.random(-500, 500))
  102. exxx.Transparency = ex.Transparency +0.05
  103. end
  104. ex:Destroy()
  105. end
  106. end
  107. end
  108. end
  109. end)
Add Comment
Please, Sign In to add comment