Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function wbtwe(Part0, Part1, C0)
- local weld = Instance.new("Weld", Part0)
- weld.Part0 = Part0
- weld.Part1 = Part1
- weld.C0 = Part1.CFrame:inverse() *Part1.CFrame *C0
- return weld
- end
- squat = 1
- nod = 1
- hrw = wbtwe(owner.Character.Torso, owner.Character.HumanoidRootPart, CFrame.new(0, 0, 0))
- law = wbtwe(owner.Character["Left Arm"], owner.Character.Torso, CFrame.new(1.45, 0, 0.1) *CFrame.Angles(0, 25, 0))
- raw = wbtwe(owner.Character["Right Arm"], owner.Character.Torso, CFrame.new(-1.45, 0, 0) *CFrame.Angles(0, 0, 0))
- llw = wbtwe(owner.Character["Left Leg"], owner.Character.HumanoidRootPart, CFrame.new(1.2, 1.99, 0) *CFrame.Angles(0, 25, 0))
- rlw = wbtwe(owner.Character["Right Leg"], owner.Character.HumanoidRootPart, CFrame.new(-1.2, 1.99, 0) *CFrame.Angles(0, 0, 0))
- hw = wbtwe(owner.Character.Head, owner.Character.Torso, CFrame.new(0, -1.45, 0.8) *CFrame.Angles(-0.8, 0, 0))
- local sound = Instance.new("Sound", owner.Character.Head)
- sound.SoundId = "rbxassetid://2586147657"
- sound.Volume = 2
- sound.PlaybackSpeed = 1.2
- local Distortion = Instance.new("FlangeSoundEffect")
- Distortion.Rate = 8
- Distortion.Parent = sound
- sound:Play()
- local gun = Instance.new("Part", owner.Character)
- gun.Anchored = true
- gun.CFrame = owner.Character.Torso.CFrame *CFrame.new(1.10, 0, 0.1) *CFrame.Angles(0, 0, 0)
- gun.CanCollide = false
- local gmesh = Instance.new("SpecialMesh", gun)
- gmesh.MeshId = "http://www.roblox.com/asset/?id=79401392"
- gmesh.TextureId = "http://www.roblox.com/asset/?id=91723031"
- gmesh.Scale = Vector3.new(1.5, 1.5, 1.5)
- local gbang = Instance.new("Sound", gun)
- gbang.SoundId = "rbxassetid://2989923150"
- gbang.Volume = 3
- anim = coroutine.wrap(function()
- while game:GetService("RunService").Stepped:wait() do
- squat = squat +0.3
- nod = nod +0.76
- 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))
- 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))
- 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)
- 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)
- end
- end)anim()
- gunanim = coroutine.wrap(function()
- while game:GetService("RunService").Stepped:wait() do
- if owner.Character.HumanoidRootPart.Velocity.Magnitude < 1 then
- gun.CFrame = gun.CFrame:lerp(owner.Character.Torso.CFrame *CFrame.new(1.10, 0, 0.1) *CFrame.Angles(0, 0, 0), 0.1)
- end
- if owner.Character.HumanoidRootPart.Velocity.Magnitude > 1 then
- gun.CFrame = gun.CFrame:lerp(owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, 0, -10) *CFrame.Angles(-7.8, 0, 0), 1)
- end
- end
- end)gunanim()
- gun.Touched:connect(function(p)
- if p.Parent.Name ~= owner.Name then
- if p.Parent:FindFirstChildOfClass("Humanoid") then
- if p.Parent:FindFirstChildOfClass("Humanoid").Health ~= 0 then
- if owner.Character.HumanoidRootPart.Velocity.Magnitude > 1 then
- p.Parent:BreakJoints()
- gbang:Play()
- local ex = Instance.new("Part", gun)
- ex.Anchored = true
- ex.CanCollide = false
- ex.Material = "Neon"
- ex.Size = Vector3.new(3, 3, 3)
- local exx = Instance.new("Part", gun)
- exx.Anchored = true
- exx.CanCollide = false
- exx.Material = "Neon"
- exx.Size = Vector3.new(3, 3, 3)
- local exxx = Instance.new("Part", gun)
- exxx.Anchored = true
- exxx.CanCollide = false
- exxx.Material = "Neon"
- exxx.Size = Vector3.new(3, 3, 3)
- if p.Parent:FindFirstChild("Torso") then
- ex.CFrame = p.Parent.Torso.CFrame
- exx.CFrame = p.Parent.Torso.CFrame
- exxx.CFrame = p.Parent.Torso.CFrame
- end
- if p.Parent:FindFirstChild("UpperTorso") then
- ex.CFrame = p.Parent.UpperTorso.CFrame
- exx.CFrame = p.Parent.UpperTorso.CFrame
- exxx.CFrame = p.Parent.UpperTorso.CFrame
- end
- if p.Parent:FindFirstChild("Torso") ~= nil and p.Parent:FindFirstChild("UpperTorso") ~= nil then
- ex.CFrame = gun.CFrame
- exx.CFrame = gun.CFrame
- exxx.CFrame = gun.CFrame
- end
- for i = 1,25 do
- game:GetService("RunService").Stepped:wait()
- ex.Size = ex.Size +Vector3.new(1, 1, 1)
- ex.CFrame = ex.CFrame *CFrame.Angles(math.random(-500, 500), math.random(-500, 500), math.random(-500, 500))
- ex.Transparency = ex.Transparency +0.05
- exx.Size = ex.Size +Vector3.new(1, 1, 1)
- exx.CFrame = ex.CFrame *CFrame.Angles(math.random(-500, 500), math.random(-500, 500), math.random(-500, 500))
- exx.Transparency = ex.Transparency +0.05
- exxx.Size = ex.Size +Vector3.new(1, 1, 1)
- exxx.CFrame = ex.CFrame *CFrame.Angles(math.random(-500, 500), math.random(-500, 500), math.random(-500, 500))
- exxx.Transparency = ex.Transparency +0.05
- end
- ex:Destroy()
- end
- end
- end
- end
- end)
Add Comment
Please, Sign In to add comment