Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 0), math.rad(0), math.rad(50)), .2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(60), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(125 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2)
- RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.1 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(4 + 2 * math.cos(sine / 25))), .2)
- LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.1 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(-20 + 2 * math.cos(sine / 25))), .2)
- GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
- DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
- end
- end
- for i = 0, 1, 0.4 do
- swait()
- if Torsovelocity > 2 then
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-50 - 5 * math.cos(sine / 5))), .2)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(50 + 5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.1)
- RH.C0 = clerp(RH.C0, cn(.9, -.9 + -.1 * math.cos(sine / 4),-.6) * RHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)
- LH.C0 = clerp(LH.C0, cn(-.9, -.9 + .1 * math.cos(sine / 4), .5) * LHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)
- GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
- DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
- elseif Torsovelocity < 1 then
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.1)
- RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.1 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), .2)
- LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.1 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), .2)
- GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
- DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
- end
- end
- end
- function holding()
- while Rapid == true and attack==true and sentrymode == false do
- attack = true
- MinShotAttackAnim1()
- BlockEffect(BrickColor.new("Really red"), gun1.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=419268760", RootPart, 1, 1.5)
- shoottraildd(mouse.Hit.p, gun1, .55)
- MinShotAttackAnim1()
- BlockEffect(BrickColor.new("Really red"), gun2.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=419268760", RootPart, 1, 1.5)
- shoottraildd(mouse.Hit.p, gun2, .55)
- MinShotAttackAnim1()
- BlockEffect(BrickColor.new("Really red"), gun3.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=419268760", RootPart, 1, 1.5)
- shoottraildd(mouse.Hit.p, gun3, .55)
- MinShotAttackAnim1()
- BlockEffect(BrickColor.new("Really red"), gun4.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=419268760", RootPart, 1, 1.5)
- shoottraildd(mouse.Hit.p, gun4, .55)
- end
- attack = false
- end
- mouse.KeyUp:connect(function(k)
- if k == "z" and Rapid == true then
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=231107923", RootPart, 1, 2)
- Rapid = false
- Effects.Ring.Create (BrickColor.new("Really red"), gun1.CFrame, .1, .1, .1, .1,.1,0,0.08)
- Effects.Ring.Create (BrickColor.new("Really red"), gun1.CFrame, .1, .1, .1, .1,.1,0,0.1)
- end
- end)
- mouse.KeyDown:connect(function(k)
- if k == "z" and sentrymode == false and attack == false then
- attack = true
- Rapid = true
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=162611981", RootPart, 1, 1)
- MinShotAttackAnim1()
- MinShotAttackAnim1()
- for i = 0,10 do
- BlockEffect(BrickColor.new("Really red"), gun1.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
- BlockEffect(BrickColor.new("Really red"), gun2.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
- BlockEffect(BrickColor.new("Really red"), gun3.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
- BlockEffect(BrickColor.new("Really red"), gun4.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
- Effects.Ring.Create (BrickColor.new("Really red"), gun1.CFrame, 2.1, 2.1, .1, -.3,-.3,0,0.07)
- MinShotAttackAnim1()
- end
- holding()
- end
- end)
- mouse.KeyDown:connect(function(k)
- if attack == false and k == "x" and sentrymode == false then
- attack = true
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=316030607", LaPart, 5, 3)
- for i=1,5 do
- BlockEffect(BrickColor.new("Really red"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
- BlockEffect(BrickColor.new("Really red"), gun2.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
- BlockEffect(BrickColor.new("Really red"), gun3.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
- BlockEffect(BrickColor.new("Really red"), gun4.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
- ShotAttackAnim1()
- BlockEffect(BrickColor.new("Really red"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
- BlockEffect(BrickColor.new("Really red"), gun2.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
- BlockEffect(BrickColor.new("Really red"), gun3.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
- BlockEffect(BrickColor.new("Really red"), gun4.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
- ShotAttackAnim1()
- BlockEffect(BrickColor.new("Really red"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
- BlockEffect(BrickColor.new("Really red"), gun2.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
- BlockEffect(BrickColor.new("Really red"), gun3.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
- BlockEffect(BrickColor.new("Really red"), gun4.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
- BlockEffect(BrickColor.new("Really red"), gun1.CFrame, 0, 0, 0, 60, 60, 60, 0.4)
- ShotAttackAnim1()
- end
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=633129949", LaPart, 10, 1)
- for i=1,2 do
- BlockEffect(BrickColor.new("Really red"), gun1.CFrame, 20, 20, 20, 50, 50, 50, 0.12)
- BlockEffect(BrickColor.new("Really red"), gun1.CFrame, 20, 20, 20, 30, 30, 30, 0.09)
- BlockEffect(BrickColor.new("Really red"), gun1.CFrame, 10, 10, 10, 20, 20, 20, 0.06)
- BlockEffect(BrickColor.new("Really black"), gun1.CFrame, 3, 3, 3, 10, 10, 10, 0.045)
- end
- BlockEffect(BrickColor.new("Really black"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
- MagniDamage(gun1, 15, 20, 69, 99, "Normal")
- ShotAttackAnim3()
- for i=1,2 do
- BlockEffect(BrickColor.new("Really black"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
- ShotAttackAnim1()
- BlockEffect(BrickColor.new("Really black"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
- ShotAttackAnim1()
- BlockEffect(BrickColor.new("Really black"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
- ShotAttackAnim1()
- end
- attack = false
- end
- if k == "r" and attack == false then
- attack=true
- while Torsovelocity < 1 do
- attack=true
- idleanim2()
- end
- attack=false
- end
- if k == "v" and sentrymode == false and attack == false and ultwait==false then
- ultwait=true
- attack = true
- Humanoid.WalkSpeed = 0
- local Sond = Create("Sound")({Volume = 1.5, Pitch = 1.2, SoundId = "http://www.roblox.com/asset/?id=195322948", Parent = Character or workspace})
- wait()
- Sond:play()
- for i = 0, 1, 0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2)
- RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2)
- LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2)
- GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
- DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
- end
- for i = 0, 2, 0.1 do
- swait()
- Effects.Ring.Create (BrickColor.new("Really red"), LeftArm.CFrame, .1, .1, .1, 1,1,0,0.1)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(50)), .2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(90 + 1 * math.cos(sine / 25)), math.rad(-45), math.rad(-45 - 1 * math.cos(sine / 25))), 0.2)
- RH.C0 = clerp(RH.C0, cn(.9, -1 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(0 + 0 * math.cos(sine / 25))), .2)
- LH.C0 = clerp(LH.C0, cn(-.9, -1 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(-0 + 0 * math.cos(sine / 25))), .2)
- GuW.C0 = clerp(GuW.C0, CFrame.new(0,-1.3,-1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
- DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
- end
- for i = 0, 58, 0.1 do
- swait()
- Effects.Ring.Create (BrickColor.new("Really red"), LeftArm.CFrame, .1, .1, .1, .6,.6,0,0.08)
- Effects.Ring.Create (BrickColor.new("Really red"), LeftArm.CFrame, .1, .1, .1, .6,.6,0,0.1)
- BlockEffect(BrickColor.new("Really red"), LeftArm.CFrame, 21, 41, 21, -.5, -.5, -.5, 0.1,2)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(50)), .2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(120 + 1 * math.cos(sine / 25)), math.rad(-45), math.rad(-45 - 1 * math.cos(sine / 25))), 0.1)
- RH.C0 = clerp(RH.C0, cn(.9, -1 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(0 + 0 * math.cos(sine / 25))), .1)
- LH.C0 = clerp(LH.C0, cn(-.9, -1 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(-0 + 0 * math.cos(sine / 25))), .2)
- GuW.C0 = clerp(GuW.C0, CFrame.new(0,-1.3,-1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
- DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
- end
- BlockEffect(BrickColor.new("Really red"), LeftArm.CFrame, 0, 0, 0, 20,20,20, 0.05,1)
- for i = 0, 55, 0.1 do
- swait()
- Effects.Ring.Create (BrickColor.new("Really red"), LeftArm.CFrame, .1, .1, .1, 1,1,0,0.08)
- Effects.Ring.Create (BrickColor.new("Really red"), LeftArm.CFrame, .1, .1, .1, 1,1,0,0.1)
- Effects.Break.Create (BrickColor.new("Really red"), LeftArm.CFrame, 6, .1, .1)
- BlockEffect(BrickColor.new("Really red"), LeftArm.CFrame, 21, 41, 21, .1, .1, .1, 0.05,2)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 5) * angles(math.rad(0), math.rad(0), math.rad(-50)), .01)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(50)), .2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(120 + 1 * math.cos(sine / 25)), math.rad(-0), math.rad(-45 - 1 * math.cos(sine / 25))), 0.2)
- RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.2 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(0 + 0 * math.cos(sine / 25))), .1)
- LH.C0 = clerp(LH.C0, cn(-.9, -.7 - 0.2 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2)
- GuW.C0 = clerp(GuW.C0, CFrame.new(0,-1.3,-1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
- DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
- end
- BlockEffect(BrickColor.new("Really red"), LeftArm.CFrame, 0, 0, 0, 30,30,30, 0.05,1)
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=260434750", Character, 2, .7)
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=209833293", Character, 2, 2)
- for i = 0, 10, 0.1 do
- swait()
- Effects.Wave.Create (BrickColor.new("Really red"), Torso.CFrame, .1, .1, .1, .5,10000,.5,0.08)
- Effects.Ring.Create (BrickColor.new("Really red"), LeftArm.CFrame, .1, .1, .1, 17,17,0,0.08)
- Effects.Ring.Create (BrickColor.new("Really red"), LeftArm.CFrame, .1, .1, .1, 17,17,0,0.1)
- Effects.Break.Create (BrickColor.new("Really red"), LeftArm.CFrame, 76, .1, .1)
- BlockEffect(BrickColor.new("Really red"), LeftArm.CFrame, 40, 40, 40, 70,70,70, 0.05,1)
- MagniKILL(Torso, 80,99,99999999, 0, "Normal")
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(50)), .2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(160 + 1 * math.cos(sine / 25)), math.rad(-0), math.rad(-0 - 1 * math.cos(sine / 25))), 0.2)
- RH.C0 = clerp(RH.C0, cn(.9, -1 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(0 + 0 * math.cos(sine / 25))), .1)
- LH.C0 = clerp(LH.C0, cn(-.9, -1 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(-0 + 0 * math.cos(sine / 25))), .2)
- GuW.C0 = clerp(GuW.C0, CFrame.new(0,-1.3,-1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
- DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
- end
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=260435164", Character, 2, .7)
- for i = 0, 1, 0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2)
- RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2)
- LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2)
- GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
- DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
- end
- Humanoid.WalkSpeed = 16
- Sond:Destroy()
- attack = false
- wait(30)
- ultwait=false
- end
- if k == "e" then
- if sentrymode== false then
- if attack == false then
- GlowParticle.Enabled = true
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=876800936", LaPart, 1.5, 1.5)
- sentrymode= true
- end
- else
- sentrymode=false
- GlowParticle.Enabled = false
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=231107923", LaPart, 3, 1.5)
- end
- end
- end)
- mouse.Button1Down:connect(function(key)
- if attack == false and sentrymode == false then
- attack = true
- ShotAttackAnim2()
- BlockEffect(BrickColor.new("Really red"), LaPart.CFrame, 0, 0, 0, 6, 6, 6, 0.18)
- BlockEffect(BrickColor.new("Really red"), LaPart.CFrame, 0, 0, 0, 2, 2, 2, 0.12)
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=410543238", LaPart, 0.5, 1.6)
- bigLigLaser(mouse.Hit.p, LaPart, 0)
- ShotAttackAnim2()
- attack = false
- end
- end)
- Humanoid.MaxHealth = 500
- wait()
- Humanoid.Health = Humanoid.MaxHealth
- ------------------------------------------------------------------------------------------------
- local HiveMind = {}
- function HiveMind:new(owner)
- self.__index = self
- local o = {mind = {}, mindState = "FOLLOW", victimObject = nil}
- o.owner = owner
- setmetatable(o, self)
- return o
- end
- function HiveMind:add(model, humanoid, torso)
- if model and humanoid and torso then
- table.insert(self.mind, {model = model, humanoid = humanoid,
- torso = torso})
- local hiv = self
- local lastJump = 0
- torso.Touched:connect(function(object)
- local hive = false
- if hiv.owner.Character
- and object:IsDescendantOf(hiv.owner.Character) == false
- then
- for i = 1, #hiv.mind do
- if object:IsDescendantOf(hiv.mind[i].model) then
- hive = true
- break
- end
- end
- if not hive then
- local hum = object.Parent
- and object.Parent:FindFirstChild("Humanoid")
- if hum then
- hum:TakeDamage(1)
- end
- elseif time() - lastJump > 2 then
- lastJump = time(0) + math.random()*1
- humanoid.Jump = true
- end
- end
- end)
- end
- end
- function HiveMind:cleanupHive()
- local i = 1
- while i <= #self.mind do
- if self.mind[i].model:IsDescendantOf(game) == false
- or self.mind[i].humanoid.Health == 0 then
- table.remove(self.mind, i)
- else
- i = i + 1
- end
- end
- end
- function HiveMind:getOrbitNumberFromUnitNumber(i)
- local circleNumber = 0
- while self:getUnitsInOrbit(circleNumber) < i do
- i = i - self:getUnitsInOrbit(circleNumber)
- circleNumber = circleNumber + 1
- end
- return circleNumber, i
- end
- function HiveMind:getOrbitDiameter(orbitNumber)
- return math.pi*(orbitNumber*14)
- end
- function HiveMind:getUnitsInOrbit(orbitNumber)
- return math.floor(self:getOrbitDiameter(orbitNumber)/5)
- end
- function HiveMind:lineup(location)
- for i = 1, #self.mind do
- local row = (i - 1) % 3
- local column = math.floor((i - 1) / 3)
- local xOffset, yOffset
- if row == 0 then
- xOffset = -7
- elseif row == 1 then
- xOffset = 0
- else
- xOffset = 7
- end
- yOffset = column * 7
- local position = location * CFrame.new(xOffset, 0, yOffset)
- self.mind[i].humanoid:MoveTo(position.p, workspace.Base)
- end
- end
- function HiveMind:ownerTorso()
- return self.owner.Character
- and self.owner.Character:FindFirstChild("Torso")
- end
- function HiveMind:update()
- self:cleanupHive()
- if self.owner.Character then
- local ownerTorso = self.owner.Character:FindFirstChild("Torso")
- if ownerTorso then
- if (self.mindState == "FOLLOW") then
- local hiveSpawn = ownerTorso.CFrame * CFrame.new(0, 0, 9)
- self:lineup(hiveSpawn)
- elseif (self.mindState == "CIRCLE") then
- self:circle(ownerTorso.Position)
- elseif (self.mindState == "ATTACK") then
- self:crowdAttack()
- elseif (self.mindState == "Deffend") then
- self:deffend()
- elseif (self.mindState == "GOTO") then
- self:pushToTarget()
- end
- end
- end
- end
- local me = game:GetService("Players").LocalPlayer
- local hiveMind = HiveMind:new(me)
- ------------------------------------------------------------------------------------------------
- function findNearestTorso(pos,dist2)
- local list = game.Workspace:children()
- local torso = nil
- if dist2 == nil then
- dist2=50
- end
- local dist = dist2
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= Character) then
- temp = temp2:findFirstChild("HumanoidRootPart")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- else
- end
- end
- end
- end
- return torso
- end
- game:GetService("RunService"):BindToRenderStep("ew", 0, function()
- if sentrymode == true and sonarwait == false then
- sonarwait = true
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=752527668", LaPart, 2, 0.8)
- wait(1)
- sonarwait = false
- end
- wait()
- if sentrymode == true then
- local target = findNearestTorso(Character.HumanoidRootPart.Position,30)
- if target ~= nil then
- ShotAttackAnim2()
- if sentrywait == false then
- sentrywait = true
- attack= true
- BlockEffect(BrickColor.new("Really red"), LaPart.CFrame, 0, 0, 0, 6, 6, 6, 0.18)
- BlockEffect(BrickColor.new("Really red"), LaPart.CFrame, 0, 0, 0, 2, 2, 2, 0.12)
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=260433584", LaPart, 1.5, .8)
- LigLaser(target.Position, LaPart, 0)
- wait()
- attack= false
- sentrywait = false
- end
- end
- end
- end)
- sonarwait = false
- FaceIdList = {'117930174'}
- FaceId = FaceIdList[math.random(1,#FaceIdList)]
- local YourName = game.Players.LocalPlayer.Name
- Character = Player.Character
- Heartbeat = Instance.new("BindableEvent")
- Heartbeat.Name = "Heartbeat"
- Heartbeat.Parent = script
- frame = 0.03333333333333333
- tf = 0
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- for i = 1, math.floor(tf / frame) do
- Heartbeat:Fire()
- end
- tf = tf - frame * math.floor(tf / frame)
- end
- end)
- local nscale = Instance.new("NumberValue")
- nscale.Value = 1
- nscale.Parent = nil
- nscale.Changed:connect(function()
- RightShoulderC0 = CFrame.new(1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- RightShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- LeftShoulderC0 = CFrame.new(-1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- LeftShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- RightHipC0 = CFrame.new(0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- RightHipC1 = CFrame.new(0, 1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- LeftHipC0 = CFrame.new(-0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- LeftHipC1 = CFrame.new(0 * nscale.Value, 1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- RootJointC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- RootJointC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- NeckC0 = CFrame.new(0, 1 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- NeckC1 = CFrame.new(0, -0.5 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- end)
- function makegloo(paren, co, ci, parto, parti, nam)
- local gloo = Instance.new("Glue")
- gloo.Name = nam
- gloo.C0 = co
- gloo.C1 = ci
- gloo.Part0 = parto
- gloo.Part1 = parti
- gloo.Parent = paren
- end
- function makejoint(paren, co, ci, parto, parti, nam)
- local gloo = Instance.new("Motor6D")
- gloo.Name = nam
- gloo.C0 = co
- gloo.C1 = ci
- gloo.Part0 = parto
- gloo.Part1 = parti
- gloo.Parent = paren
- end
- function maketouchy(parent, limb, cframe)
- local pr = Instance.new("Part")
- pr.Name = "touchy"
- pr.Size = Vector3.new(1 * nscale.Value, 1 * nscale.Value, 1 * nscale.Value)
- pr.Transparency = 1
- pr.CustomPhysicalProperties = PhysicalProperties.new(0.55, 0.3, 0.5)
- pr.CanCollide = true
- pr.Anchored = false
- pr.Parent = parent
- local w = Instance.new("Weld")
- w.Part0 = pr
- w.Part1 = limb
- w.C0 = cframe
- w.Parent = pr
- end
- --[[ function swait(num)
- if num == 0 or num == nil then
- Heartbeat.Event:wait()
- else
- for i = 1, num do
- Heartbeat.Event:wait()
- end
- end
- end
- --]]
- modz = Instance.new("Model")
- modz.Name = "efx"
- modz.Parent = Character
- RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- local nscale = Instance.new("NumberValue")
- nscale.Value = 1
- nscale.Parent = nil
- RightShoulderC0 = CFrame.new(1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- RightShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- LeftShoulderC0 = CFrame.new(-1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- LeftShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- RightHipC0 = CFrame.new(0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- RightHipC1 = CFrame.new(0, 1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- LeftHipC0 = CFrame.new(-0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- LeftHipC1 = CFrame.new(0 * nscale.Value, 1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- RootJointC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- RootJointC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- NeckC0 = CFrame.new(0, 1 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- NeckC1 = CFrame.new(0, -0.5 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- sWaiting=false
- wait3=false
- shotval = 0
- npcname = ""..Character.Name.."'s Combine"
- Character.ChildAdded:connect(function(object)
- if object.Name == npcname then
- hiveMind:add(object, object:WaitForChild("Humanoid"),
- object:WaitForChild("Torso"))
- end
- end)
- game:GetService("RunService").Stepped:connect(function()
- hiveMind:update()
- end)
- function makenoob(cfrem, scalo, rags)
- nscale.Value = scalo
- local md = Instance.new("Model")
- md.Name = ""..Character.Name.."'s Combine"
- md.Parent = Character
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=220230512", md, 1, 1)
- wait(.5)
- local hu = Instance.new("Humanoid")
- hu.RigType = "R6"
- hu.MaxHealth = 150 * scalo
- hu.Health = 150 * scalo
- hu.Parent = md
- hu.DisplayDistanceType="Viewer"
- hu.HealthDisplayDistance=100
- hu.NameDisplayDistance=100
- hu.NameOcclusion="EnemyOcclusion"
- local anm = Instance.new("Animator")
- anm.Parent = hu
- local forthisnpcanim = npcanim:Clone()
- forthisnpcanim.Parent = md
- hu.PlatformStand = true
- local light = function(part)
- part.CustomPhysicalProperties = PhysicalProperties.new(0.35, 0.3, 0.5)
- end
- local hd = Instance.new("Part")
- hd.Name = "Head"
- hd.Size = Vector3.new(2 * nscale.Value, 1 * nscale.Value, 1 * nscale.Value)
- hd.TopSurface = "Smooth"
- hd.BottomSurface = "Inlet"
- hd.Locked = true
- hd.BrickColor = BrickColor.new("Pastel brown")
- hd.CanCollide = true
- hd.Anchored = false
- light(hd)
- hd.Parent = md
- local hm = Instance.new("SpecialMesh")
- hm.MeshType = "Head"
- hm.Scale = Vector3.new(1.25, 1.25, 1.25)
- hm.Parent = hd
- shirt = Instance.new("Shirt", md)
- shirt.Name = "Shirt"
- pants = Instance.new("Pants", md)
- pants.Name = "Pants"
- md.Shirt.ShirtTemplate = "rbxassetid://49257392"
- md.Pants.PantsTemplate = "rbxassetid://49257378"
- function loada(anim)
- local loaded = md.Humanoid:LoadAnimation(anim)
- return loaded
- end
- IdleA = New("Animation",md,"Idle",{AnimationId = "rbxassetid://243282565"})
- IdleAnim = loada(IdleA)
- local hf = Instance.new("Decal")
- FaceId = FaceIdList[math.random(1,#FaceIdList)]
- hf.Texture = "rbxassetid://"..FaceId
- hf.Face = "Front"
- hf.Parent = hd
- local hrpa = Instance.new("Part")
- hrpa.Name = "HumanoidRootPart"
- hrpa.TopSurface, hrpa.BottomSurface = 0, 0
- hrpa.Size = Vector3.new(2 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
- hrpa.Transparency = 1
- hrpa.CanCollide = false
- hrpa.Locked = true
- light(hrpa)
- hrpa.Parent = md
- local tagbomb = Instance.new("BoolValue")
- tagbomb.Name = "tagbomb"
- tagbomb.Value = false
- tagbomb.Parent = hrpa
- local learm = Instance.new("Part")
- learm.Name = "Left Arm"
- learm.BrickColor = BrickColor.new("Pastel brown")
- learm.CanCollide = false
- learm.Locked = true
- learm.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
- light(learm)
- learm.Parent = md
- local riarm = Instance.new("Part")
- riarm.Name = "Right Arm"
- riarm.BrickColor = BrickColor.new("Pastel brown")
- riarm.CanCollide = false
- riarm.Locked = true
- light(riarm)
- riarm.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
- riarm.Parent = md
- local leleg = Instance.new("Part")
- leleg.Name = "Left Leg"
- leleg.BrickColor = BrickColor.new("Navy blue")
- leleg.CanCollide = false
- leleg.Locked = true
- light(leleg)
- leleg.BottomSurface = 0
- leleg.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
- leleg.Parent = md
- local rileg = Instance.new("Part")
- rileg.Name = "Right Leg"
- rileg.BrickColor = BrickColor.new("Navy blue")
- rileg.CanCollide = false
- rileg.Locked = true
- light(rileg)
- rileg.BottomSurface = 0
- rileg.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
- rileg.Parent = md
- local tor = Instance.new("Part")
- tor.Name = "Torso"
- tor.BrickColor = BrickColor.new("Really red")
- tor.Locked = true
- light(tor)
- tor.Size = Vector3.new(2 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
- tor.LeftSurface, tor.RightSurface = "Weld", "Weld"
- tor.Parent = md
- md.PrimaryPart = hrpa
- md:SetPrimaryPartCFrame(cfrem)
- md:makeJoints()
- makejoint(hrpa, RootJointC0, RootJointC1, hrpa, tor, "RootJoint")
- makejoint(tor, NeckC0, NeckC1, tor, hd, "Neck")
- if rags == true then
- makegloo(tor, RightShoulderC0, RightShoulderC1, tor, riarm, "Right Shoulder")
- makegloo(tor, LeftShoulderC0, LeftShoulderC1, tor, learm, "Left Shoulder")
- makegloo(tor, RightHipC0, RightHipC1, tor, rileg, "Right Hip")
- makegloo(tor, LeftHipC0, LeftHipC1, tor, leleg, "Left Hip")
- maketouchy(riarm, riarm, CFrame.new(0, 0.5 * nscale.Value, 0))
- maketouchy(learm, learm, CFrame.new(0, 0.5 * nscale.Value, 0))
- maketouchy(leleg, leleg, CFrame.new(0, 0.5 * nscale.Value, 0))
- maketouchy(rileg, rileg, CFrame.new(0, 0.5 * nscale.Value, 0))
- elseif rags == false then
- makejoint(tor, RightShoulderC0, RightShoulderC1, tor, riarm, "Right Shoulder")
- makejoint(tor, LeftShoulderC0, LeftShoulderC1, tor, learm, "Left Shoulder")
- makejoint(tor, RightHipC0, RightHipC1, tor, rileg, "Right Hip")
- makejoint(tor, LeftHipC0, LeftHipC1, tor, leleg, "Left Hip")
- hu.PlatformStand = false
- end
- local Solhat = Instance.new("Accessory")
- Solhat.AttachmentPos = Vector3.new(0, .3, 0)
- local SHH = Instance.new("Part",Solhat)
- SHH.Name = "Handle"
- SHH.CanCollide=false
- local SHHMesh = Instance.new("SpecialMesh",SHH)
- SHHMesh.Parent = SHH
- SHHMesh.MeshId = "rbxassetid://31152467"
- SHHMesh.TextureId = "rbxassetid://32002857"
- SHHMesh.Scale = Vector3.new(1, 1, 1)
- SHHMesh.VertexColor = Vector3.new(1, 1, 1)
- nscale.Value = 1
- wait()
- Solhat.Parent = md
- Thegun = Instance.new("Part",riarm)
- Thegun.CanCollide=false
- Thegun.Size = Vector3.new(1,1,1)
- ThegunW = Instance.new("Weld")
- ThegunW.Name = "GuW"
- ThegunW.Part0 = riarm
- ThegunW.C0 = cn(-.5, -2.4, -.4)*angles(0,0,3.2)
- ThegunW.C1 = cn(0, 0, 0)
- ThegunW.Part1 = Thegun
- ThegunW.Parent = riarm
- local ThegunMesh = Instance.new("SpecialMesh",Thegun)
- ThegunMesh.Parent = Thegun
- ThegunMesh.MeshId = "rbxassetid://477158943"
- ThegunMesh.TextureId = "rbxassetid://477158949"
- ThegunMesh.Scale = Vector3.new(0.04, 0.035, 0.04)
- ThegunMesh.VertexColor = Vector3.new(0.2, 0, 0)
- Thegun2 = Instance.new("Part",md)
- Thegun2.CanCollide=false
- Thegun2.Size = Vector3.new(.1,.1,.1)
- Thegun2.Name = "Shoot"
- ThegunW2 = Instance.new("Weld")
- ThegunW2.Name = "GuW"
- ThegunW2.Part0 = riarm
- ThegunW2.C0 = cn(-0.4,-4.6,-.45)*angles(0,0,0)
- ThegunW2.C1 = cn(0, 0, 0)
- ThegunW2.Part1 = Thegun2
- ThegunW2.Parent = riarm
- BlockEffect(BrickColor.new("Really black"), tor.CFrame, 160, 160, 160, -5, -5, -5, 0.04)
- BlockEffect(BrickColor.new("Really black"), tor.CFrame, 160, 160, 160, -5, -5, -5, 0.04)
- BlockEffect(BrickColor.new("Really red"), tor.CFrame, 160, 160, 160, -14, -14, -14, 0.06)
- BlockEffect(BrickColor.new("Really red"), tor.CFrame, 160, 160, 160, -14, -14, -14, 0.06)
- wait(0.5)
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=183921414", tor, 1, 1)
- IdleAnim:Play()
- wait(2.5)
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=183953820", tor, 2, 1)
- game:GetService("RunService"):BindToRenderStep("ew", 0, function()
- if md ~= nil and hu.Health > 0 and sentrymode == false then
- if md ~= nil and hu.Health > 0 and sentrymode == false then
- if killcom==true or sentrymode == true and sWaiting==false then
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=282061033", Torso, .5, 1)
- BlockEffect(BrickColor.new("Really black"), tor.CFrame, 160, 160, 160, -5, -5, -5, 0.04)
- BlockEffect(BrickColor.new("Really black"), tor.CFrame, 160, 160, 160, -5, -5, -5, 0.04)
- BlockEffect(BrickColor.new("Really red"), tor.CFrame, 160, 160, 160, -14, -14, -14, 0.06)
- BlockEffect(BrickColor.new("Really red"), tor.CFrame, 160, 160, 160, -14, -14, -14, 0.06)
- hu.Health = 0
- game:service'Debris':AddItem(md, .0);
- end
- hu.WalkSpeed = 16.5
- local target2 = findNearestTorso(hrpa.Position,60)
- if target2 ~= nil then
- hu:MoveTo(target2.Position, target2)
- end
- local target3 = findNearestTorso(hrpa.Position,45)
- if target3 ~= nil then
- hu.WalkSpeed = 0
- tor.CFrame = CFrame.new(tor.Position, target3.Position) * CFrame.Angles(0,math.rad(0),0) * CFrame.new(0,0,(dir2.s))
- end
- if target3 ~= nil and wait3==false and sentrymode == false then
- wait3=true
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=419268760", LaPart, 3, .7)
- shoottraildd2(target3.Position, Thegun2, 1)
- local PointLight = Instance.new("PointLight", Thegun2);
- PointLight.Color = Color3.new(1,0,0)
- PointLight.Brightness = 50;
- PointLight.Range = 10
- game:service'Debris':AddItem(PointLight, .02);
- wait(2.2)
- wait3=false
- --Torso.CFrame = CFrame.new(Torso.Position, mouse.Hit.p) * CFrame.Angles(0,math.rad(0),0) * CFrame.new(0,0,(dir.s))
- end
- end
- for i,v in pairs(Character:GetChildren()) do
- if ""..Character.Name.."'s Combine" then
- if hu.Health == 0 and md ~= nil and killcom==false and sWaiting==false then
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=160622487", Torso, .6, 1)
- game:service'Debris':AddItem(md, 3);
- end
- end
- return md
- end
- end
- end)
- end
- function makecircle(cfrem, scalo)
- local mcir1 = Instance.new("Part")
- mcir1.Anchored = true
- mcir1.CanCollide = false
- mcir1.Size = Vector3.new(0.2, 0.2, 0.2)
- mcir1.Transparency = 1
- mcir1.CFrame = cfrem
- mcir1.Parent = modz
- game.Debris:AddItem(mcir1, 8)
- local d1 = Instance.new("Decal")
- d1.Texture = "rbxassetid://0"
- d1.Face = "Front"
- d1.Parent = mcir1
- local d2 = Instance.new("Decal")
- d2.Texture = "rbxassetid://0"
- d2.Face = "Back"
- d2.Parent = mcir1
- local bme = Instance.new("BlockMesh")
- bme.Parent = mcir1
- for _ = 1, 9 do
- swait()
- bme.Scale = bme.Scale:lerp(Vector3.new(35 * scalo, 35 * scalo, 0), 0.3)
- end
- coroutine.resume(coroutine.create(function()
- swait(15)
- for _ = 1, 12 do
- swait()
- d1.Transparency = d1.Transparency + 0.08
- d2.Transparency = d2.Transparency + 0.08
- end
- mcir1:Destroy()
- end))
- return mcir1
- end
- function spawnnoob(circlecf, noobcf, scalez, ragd)
- local aearae = makecircle(circlecf, scalez)
- local nananb
- nananb = makenoob(aearae.CFrame * noobcf, scalez, false)
- return nananb
- end
- mouse.KeyDown:connect(function(k)
- if k == "c" and attack == false and sentrymode == false then
- if killcom==false then
- killcom=true
- else
- killcom=false
- spawnnoob(RootPart.CFrame * cn((math.random(-5,5)), 10, (math.random(-0,5))) * angles(mr(90), 0, 0), cn(0, 0, 0) * angles(mr(-90), 0, 0), 1, false)
- end
- end
- end)
- --[[
- BlockEffect(BrickColor.new("Royal purple"), Firepart1.CFrame, 1, 1, 1, 3, 3, 3, 0.06)
- BlockEffect(BrickColor.new("Eggplant"), Firepart1.CFrame, 1, 1, 1, 2.8, 2.8, 2.8, 0.06)
- BlockEffect(BrickColor.new("Royal purple"), Firepart2.CFrame, 1, 1, 1, 3, 3, 3, 0.06)
- BlockEffect(BrickColor.new("Eggplant"), Firepart2.CFrame, 1, 1, 1, 2.8, 2.8, 2.8, 0.06)
- --]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement