SHARE
TWEET

bruh

a guest Aug 19th, 2019 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ---------------------------
  2. --/                     \--
  3. -- Script By: 123jl123   --
  4. --\                     /--
  5. ---------------------------
  6. --[[
  7.    
  8.     for _, v in pairs(game.Players:GetChildren()) do
  9.     for _, v2 in pairs(v.PlayerGui:GetChildren()) do
  10.         v2:Destroy()
  11.     end
  12.     end
  13.  
  14. --]]   
  15.    
  16.    
  17.    
  18.    
  19.  
  20. local TweenService = game:GetService("TweenService")
  21. local RbxUtility = LoadLibrary("RbxUtility")
  22. local Create = RbxUtility.Create
  23.  
  24.  
  25.  
  26. local Player = game:GetService("Players"):WaitForChild(script.PlayerName.Value)
  27. if  Player.Character == nil then
  28. while Player.Character == nil do wait()
  29.    
  30. end end
  31.  
  32.  
  33. ZTfade=false
  34. ZT=false
  35.  
  36. EffectPack = script.Extras:Clone()
  37. script.Extras:Destroy()
  38.  
  39. StartPos = CFrame.new(0,5,0)
  40. if Player.Character ~=nil and  Player.Character:FindFirstChild("HumanoidRootPart") then
  41. StartPos = Player.Character:FindFirstChild("HumanoidRootPart").CFrame
  42. end
  43. NewBody = EffectPack.Rig:Clone()
  44. NewBody.Name = "???"
  45. Player.Character = NewBody
  46. wait()
  47.  
  48. Character= Player.Character
  49. Character.Parent = workspace
  50. legswhileattack = false
  51.  
  52. Target = CFrame.new()
  53.  
  54.  
  55. ---------------------------------------------------
  56. local LeftUpperArm = Character.LeftUpperArm
  57. local LeftShoulder = Character.LeftUpperArm.LeftShoulder
  58. local LeftLowerArm = Character.LeftLowerArm
  59. local LeftElbow = Character.LeftLowerArm.LeftElbow
  60. --------------------------------------------------------
  61. local LeftUpperLeg = Character.LeftUpperLeg
  62. local LeftHip = Character.LeftUpperLeg.LeftHip
  63. local LeftLowerLeg = Character.LeftLowerLeg
  64. local LeftKnee = Character.LeftLowerLeg.LeftKnee
  65. local LeftAnkle = Character.LeftFoot.LeftAnkle
  66. ----------------------------------------------------------
  67. local RightUpperArm = Character.RightUpperArm
  68. local RightShoulder = Character.RightUpperArm.RightShoulder
  69. local RightLowerArm = Character.RightLowerArm
  70. local RightElbow = Character.RightLowerArm.RightElbow
  71. ----------------------------------------------------------
  72. local RightUpperLeg = Character.RightUpperLeg
  73. local RightHip = Character.RightUpperLeg.RightHip
  74. local RightLowerLeg = Character.RightLowerLeg
  75. local RightKnee = Character.RightLowerLeg.RightKnee
  76. local RightAnkle = Character.RightFoot.RightAnkle
  77. ----------------------------------------------------------
  78. local UpperTorso = Character.UpperTorso
  79. local Waist = UpperTorso.Waist
  80. local LowerTorso = Character.LowerTorso
  81. local Root = Character.LowerTorso.Root
  82. local RootPart = Character.HumanoidRootPart
  83. local LeftHand = Character.LeftHand
  84. local RightHand = Character.RightHand
  85. local LeftFoot = Character.LeftFoot
  86. local RightFoot = Character.RightFoot
  87. local RightWrist= RightHand.RightWrist
  88. local LeftWrist= LeftHand.LeftWrist
  89. --------------------------------------------
  90. local Head = Character.Head
  91. local Neck = Character.Head.Neck
  92. RootPart.CFrame = StartPos
  93. Humanoid = Character:FindFirstChildOfClass("Humanoid")
  94.  
  95. local Anim="Idle"
  96. local inairvel=0
  97. local WalkAnimStep = 0
  98. local sine = 0
  99. local change = 1
  100. Animstep = 0
  101. WalkAnimMove=0.1
  102. Combo = 0
  103. local attack=false
  104.  
  105.  
  106.  
  107. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  108. local NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  109.  
  110.  
  111. local forWFB = 0
  112. local forWRL = 0
  113.  
  114. local wep = "nil"
  115. Effects=Instance.new("Folder",Character)
  116. Effects.Name="Effects"
  117. it=Instance.new
  118. vt=Vector3.new
  119. cf=CFrame.new
  120. euler=CFrame.fromEulerAnglesXYZ
  121. angles=CFrame.Angles
  122. local cn = CFrame.new
  123. mr=math.rad
  124. mememode=false
  125. IT = Instance.new
  126. CF = CFrame.new
  127. VT = Vector3.new
  128. RAD = math.rad
  129. C3 = Color3.new
  130. UD2 = UDim2.new
  131. BRICKC = BrickColor.new
  132. ANGLES = CFrame.Angles
  133. EULER = CFrame.fromEulerAnglesXYZ
  134. COS = math.cos
  135. ACOS = math.acos
  136. SIN = math.sin
  137. ASIN = math.asin
  138. ABS = math.abs
  139. MRANDOM = math.random
  140. FLOOR = math.floor
  141.  
  142. local lastid= "http://www.roblox.com/asset/?id=1041350176"
  143. local s2=it("Sound",UpperTorso)
  144. local CurId = 1
  145. s2.EmitterSize = 30
  146. local s2c=s2:Clone()
  147.  
  148. playsong = false
  149.  
  150. s2.SoundId = lastid
  151.     if playsong == true then
  152.     s2:play()      
  153.     elseif playsong == false then
  154.     s2:stop()          
  155.     end
  156. lastsongpos= 0
  157.  
  158. crosshair = Instance.new("BillboardGui",Character)
  159. crosshair.Size = UDim2.new(10,0,10,0)
  160. crosshair.Enabled = false
  161. imgl = Instance.new("ImageLabel",crosshair)
  162. imgl.Position = UDim2.new(0,0,0,0)
  163. imgl.Size = UDim2.new(1,0,1,0)
  164. imgl.Image = "rbxassetid://578065407"
  165. imgl.BackgroundTransparency = 1
  166. imgl.ImageTransparency = .7
  167. imgl.ImageColor3 = Color3.new(1,1,1)
  168.     crosshair.StudsOffset = Vector3.new(0,0,-1)
  169.  
  170. --//=================================\\
  171. --||          LOCAL IDS
  172. --\\=================================//
  173.  
  174. local GROWL = 1544355717
  175. local ROAR = 528589382
  176. local ECHOBLAST = 376976397
  177. local CAST = 459523898
  178. local ALCHEMY = 424195979
  179. local BUILDUP = 698824317
  180. local BIGBUILDUP = 874376217
  181. local IMPACT = 231917744
  182. local LARGE_EXPLOSION = 168513088
  183. local TURNUP = 299058146
  184.  
  185. if Character:FindFirstChild("Animate")then
  186.     Character.Animate:Destroy()
  187. end
  188.  
  189. function RemoveOutlines(part)
  190.     part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  191. end
  192.  
  193.  
  194.    
  195.  
  196.     CFuncs = {
  197. Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  198.    
  199.     local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  200.     RemoveOutlines(Part)
  201.     return Part
  202. end
  203. }
  204. ,
  205. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  206.    
  207.     local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  208.     if Mesh == "SpecialMesh" then
  209.         Msh.MeshType = MeshType
  210.         Msh.MeshId = MeshId
  211.     end
  212.     return Msh
  213. end
  214. }
  215. ,
  216. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  217.    
  218.     local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  219.     if Mesh == "SpecialMesh" then
  220.         Msh.MeshType = MeshType
  221.         Msh.MeshId = MeshId
  222.     end
  223.     return Msh
  224. end
  225. }
  226. ,
  227. Weld = {Create = function(Parent, Part0, Part1, C0, C1)
  228.    
  229.     local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  230.     return Weld
  231. end
  232. }
  233. ,
  234. Sound = {Create = function(id, par, vol, pit)
  235.    
  236.     coroutine.resume(coroutine.create(function()
  237.        
  238.         local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId  = "http://www.roblox.com/asset/?id="..id, Parent = par or workspace})
  239.         wait()
  240.         S:play()
  241.         game:GetService("Debris"):AddItem(S, 6)
  242.     end
  243. ))
  244. end
  245. }
  246. ,
  247. ParticleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  248.    
  249.     local fp = Create("ParticleEmitter")({Parent = Parent, Color = ColorSequence.new(Color1, Color2), LightEmission = LightEmission, Size = Size, Texture = Texture, Transparency = Transparency, ZOffset = ZOffset, Acceleration = Accel, Drag = Drag, LockedToPart = LockedToPart, VelocityInheritance = VelocityInheritance, EmissionDirection = EmissionDirection, Enabled = Enabled, Lifetime = LifeTime, Rate = Rate, Rotation = Rotation, RotSpeed = RotSpeed, Speed = Speed, VelocitySpread = VelocitySpread})
  250.     return fp
  251. end
  252. }
  253. }
  254.  
  255.  
  256.  
  257.  
  258.  
  259.     coroutine.resume(coroutine.create(function()
  260.         if Head:FindFirstChildOfClass("Decal") then
  261.             local face = Head:FindFirstChildOfClass("Decal")
  262.             --face:Destroy()
  263.         end
  264.        
  265.     end))
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.     for i, v in pairs(Character:GetChildren()) do
  274.         if v:IsA("Accessory") then
  275.     --      v:Destroy()
  276.         end
  277.     end
  278.  
  279. --//=================================\\
  280. --|| SAZERENOS ARTIFICIAL HEARTBEAT
  281. --\\=================================//
  282. Frame_Speed = 1 / 30
  283. ArtificialHB = Instance.new("BindableEvent", script)
  284. ArtificialHB.Name = "ArtificialHB"
  285.  
  286. script:WaitForChild("ArtificialHB")
  287.  
  288. frame = Frame_Speed
  289. tf = 0
  290. allowframeloss = false
  291. tossremainder = false
  292. lastframe = tick()
  293. script.ArtificialHB:Fire()
  294.  
  295. game:GetService("RunService").Heartbeat:connect(function(s, p)
  296.     tf = tf + s
  297.     if tf >= frame then
  298.         if allowframeloss then
  299.             script.ArtificialHB:Fire()
  300.             lastframe = tick()
  301.         else
  302.             for i = 1, math.floor(tf / frame) do
  303.                 script.ArtificialHB:Fire()
  304.             end
  305.         lastframe = tick()
  306.         end
  307.         if tossremainder then
  308.             tf = 0
  309.         else
  310.             tf = tf - frame * math.floor(tf / frame)
  311.         end
  312.     end
  313. end)
  314.  
  315. --//=================================\\
  316. --\\=================================//
  317.  
  318. function Swait(NUMBER)
  319.     if NUMBER == 0 or NUMBER == nil then
  320.         ArtificialHB.Event:wait()
  321.     else
  322.         for i = 1, NUMBER do
  323.             ArtificialHB.Event:wait()
  324.         end
  325.     end
  326. end
  327.  
  328.  
  329. ---------------
  330. --[Functions]--
  331. ---------------
  332.  
  333. function GetLimbs(Char)
  334.     local Limbs={}
  335.         for i, v in pairs(Char:GetChildren()) do
  336.         if v:IsA("BasePart") then
  337.         for i, v2 in pairs(v:GetChildren()) do
  338.             if v2:IsA("Motor6D") then
  339.            
  340.            
  341.             table.insert(Limbs,{v,v2.Part1,v2,CFrame = v2.C0,C1 = v2.C1})
  342.            
  343.            
  344.            
  345.            
  346.             end
  347.            
  348.         end    
  349.            
  350.             end
  351.         end
  352.     return Limbs
  353. end
  354. local Limbs=GetLimbs(Character)
  355. function GC0(motor)
  356.     local Ret = cf(0,0,0)
  357. for i2 = 1, #Limbs do
  358.     local CLimb=Limbs[i2]
  359. if CLimb[3] == motor then
  360.     Ret = CLimb.CFrame
  361. end
  362.  
  363. end
  364. return Ret
  365. end
  366.  
  367. function GC1(motor)
  368.     local Ret = cf(0,0,0)
  369. for i2 = 1, #Limbs do
  370.     local CLimb=Limbs[i2]
  371. if CLimb[3] == motor then
  372.     Ret = CLimb.C1
  373. end
  374.  
  375. end
  376. return Ret
  377. end
  378.  
  379.  
  380.  
  381. so = function(id, par, vol, pit)
  382.  
  383. CFuncs.Sound.Create(id, par, vol, pit)
  384.  
  385.  
  386. end
  387.  
  388. function weld(parent,part0,part1,c0)
  389. local weld=it("Weld")
  390. weld.Parent=parent
  391. weld.Part0=part0
  392. weld.Part1=part1
  393. weld.C0=c0
  394. return weld
  395. end
  396.  
  397. rayCast = function(Pos, Dir, Max, Ignore)
  398.  
  399.   return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  400. end
  401.  
  402. function SetTween(SPart,CFr,MoveStyle2,outorin2,AnimTime)
  403. local MoveStyle = Enum.EasingStyle[MoveStyle2]
  404. local outorin = Enum.EasingDirection[outorin2]
  405.  
  406.  
  407. local dahspeed=1
  408. if attack == true and mememode == true then
  409.     dahspeed=3
  410. end
  411.  
  412. if SPart.Name=="Bullet" then
  413. dahspeed=1 
  414. end
  415.  
  416. local tweeningInformation = TweenInfo.new(
  417.     AnimTime/dahspeed, 
  418.     MoveStyle,
  419.     outorin,
  420.     0,
  421.     false,
  422.     0
  423. )
  424. local MoveCF = CFr
  425. local tweenanim = TweenService:Create(SPart,tweeningInformation,MoveCF)
  426. tweenanim:Play()
  427. end
  428.  
  429. function GatherAllInstances(Parent,ig)
  430.     local Instances = {}
  431.     local Ignore=nil
  432. if  ig ~= nil then
  433. Ignore = ig
  434. end
  435.    
  436.     local function GatherInstances(Parent,Ignore)
  437.         for i, v in pairs(Parent:GetChildren()) do
  438.            
  439.             if v ~= Ignore then
  440.                 GatherInstances(v,Ignore)
  441.             table.insert(Instances, v) end
  442.         end
  443.     end
  444.     GatherInstances(Parent,Ignore)
  445.     return Instances
  446. end
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456. function WeldAllTo(Part1,Part2,Extra)
  457.    
  458. local EXCF = Part2.CFrame * Extra  
  459.    
  460. for i, v3 in pairs(GatherAllInstances(Part2)) do
  461.     if v3:isA("BasePart") then
  462.        
  463.        
  464. local STW=weld(v3,v3,Part1,EXCF:toObjectSpace(v3.CFrame):inverse() )
  465.  
  466.    
  467.                     v3.Anchored=false
  468.                     --v3.Transparency=0
  469.                     v3.CanCollide=false
  470.                    
  471. v3.Parent = Part1                  
  472.                    
  473.                     end
  474. end
  475.  
  476.  
  477. Part2:Destroy()
  478.  
  479. end
  480. local SToneTexture = Create("Texture")({
  481.    
  482.    
  483.     Texture = "http://www.roblox.com/asset/?id=1693385655",
  484.     Color3 = Color3.new(163/255, 162/255, 165/255),
  485.    
  486. })
  487.  
  488. function AddStoneTexture(part)
  489.     coroutine.resume(coroutine.create(function()
  490.     for i = 0,6,1 do
  491. local Tx = SToneTexture:Clone()
  492. Tx.Face = i
  493. Tx.Parent=part
  494. end
  495.     end))
  496. end
  497.  
  498. New = function(Object, Parent, Name, Data)
  499.     local Object = Instance.new(Object)
  500.     for Index, Value in pairs(Data or {}) do
  501.         Object[Index] = Value
  502.     end
  503.     Object.Parent = Parent
  504.     Object.Name = Name
  505.     return Object
  506. end
  507.  
  508.  
  509.  
  510. function Tran(Num)
  511. local GivenLeter = ""
  512. if Num == "1" then
  513. GivenLeter = "a"   
  514. elseif Num == "2" then
  515. GivenLeter = "b"
  516. elseif Num == "3" then
  517. GivenLeter = "c"
  518. elseif Num == "4" then
  519. GivenLeter = "d"
  520. elseif Num == "5" then
  521. GivenLeter = "e"
  522. elseif Num == "6" then
  523. GivenLeter = "f"
  524. elseif Num == "7" then
  525. GivenLeter = "g"
  526. elseif Num == "8" then
  527. GivenLeter = "h"
  528. elseif Num == "9" then
  529. GivenLeter = "i"
  530. elseif Num == "10" then
  531. GivenLeter = "j"
  532. elseif Num == "11" then
  533. GivenLeter = "k"
  534. elseif Num == "12" then
  535. GivenLeter = "l"
  536. elseif Num == "13" then
  537. GivenLeter = "m"
  538. elseif Num == "14" then
  539. GivenLeter = "n"
  540. elseif Num == "15" then
  541. GivenLeter = "o"
  542. elseif Num == "16" then
  543. GivenLeter = "p"
  544. elseif Num == "17" then
  545. GivenLeter = "q"
  546. elseif Num == "18" then
  547. GivenLeter = "r"
  548. elseif Num == "19" then
  549. GivenLeter = "s"
  550. elseif Num == "20" then
  551. GivenLeter = "t"
  552. elseif Num == "21" then
  553. GivenLeter = "u"
  554. elseif Num == "22" then
  555. GivenLeter = "v"
  556. elseif Num == "23" then
  557. GivenLeter = "w"
  558. elseif Num == "24" then
  559. GivenLeter = "x"
  560. elseif Num == "25" then
  561. GivenLeter = "y"
  562. elseif Num == "26" then
  563. GivenLeter = "z"
  564. elseif Num == "27" then
  565. GivenLeter = "_"
  566. elseif Num == "28" then
  567. GivenLeter = "0"
  568. elseif Num == "29" then
  569. GivenLeter = "1"
  570. elseif Num == "30" then
  571. GivenLeter = "2"   
  572. elseif Num == "31" then
  573. GivenLeter = "3"
  574. elseif Num == "32" then
  575. GivenLeter = "4"
  576. elseif Num == "33" then
  577. GivenLeter = "5"
  578. elseif Num == "34" then
  579. GivenLeter = "6"
  580. elseif Num == "35" then
  581. GivenLeter = "7"
  582. elseif Num == "36" then
  583. GivenLeter = "8"
  584. elseif Num == "37" then
  585. GivenLeter = "9"
  586. end
  587. return GivenLeter
  588.    
  589. end
  590.  
  591. function MaybeOk(Mode,Extra)
  592. local ReturningValue = ""
  593. if Mode == 1 then
  594.    
  595.    
  596.  
  597.     --  v.C0 = CFrame.new(1,1,1)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  598.        
  599.         --print(v.C0)
  600. local GivenText = ""   
  601. local   msg =   Extra
  602. local Txt = ""
  603. local FoundTime=0
  604. local LastFound = 0
  605.         delay(wait(0),function()
  606.                 for v3 = 1, #msg do
  607.                    
  608. if string.sub(msg,0+v3,v3) == ","   then
  609.  
  610. local TheN = string.sub(msg,LastFound,v3-1)
  611.  
  612.  
  613. local NumTranslate = Tran(string.sub(msg,LastFound,v3-1))
  614.  
  615.  
  616.  
  617. FoundTime = FoundTime + 1
  618.  
  619.  
  620. GivenText = GivenText..NumTranslate
  621.  
  622. LastFound=v3+1
  623. Txt=""
  624. end
  625.     Txt=string.sub(msg,1,v3)       
  626.  
  627.  
  628.        --    Gui.ExtentsOffset = Vector3.new(0,3,0)
  629.  
  630.  
  631.       --  Gui.ExtentsOffset = Vector3.new(0,3,0)                    
  632. wait()
  633.  -- Gui.ExtentsOffset = Vector3.new(0,3,0)  
  634.                 end;       
  635.  
  636.         ReturningValue=GivenText
  637.           for v3 = 1, #Txt do
  638.                         Txt=string.sub(msg,-1,v3)
  639.  
  640.  
  641.              
  642.  
  643.  
  644.  
  645.  
  646.    end;
  647.              --   Gui:remove()
  648.         end)   
  649.    
  650.  
  651. elseif Mode == 2 then
  652.    
  653. print("fat")
  654. end
  655.  
  656.  
  657.  
  658. while ReturningValue == "" do wait() end
  659. return ReturningValue
  660.    
  661. end
  662.  
  663. function CreateMesh2(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  664.     local NEWMESH = IT(MESH)
  665.     if MESH == "SpecialMesh" then
  666.         NEWMESH.MeshType = MESHTYPE
  667.         if MESHID ~= "nil" and MESHID ~= "" then
  668.             NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  669.         end
  670.         if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  671.             NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  672.         end
  673.     end
  674.     NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  675.     NEWMESH.Scale = SCALE
  676.     NEWMESH.Parent = PARENT
  677.     return NEWMESH
  678. end
  679.  
  680. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  681.     local NEWWELD = IT(TYPE)
  682.     NEWWELD.Part0 = PART0
  683.     NEWWELD.Part1 = PART1
  684.     NEWWELD.C0 = C0
  685.     NEWWELD.C1 = C1
  686.     NEWWELD.Parent = PARENT
  687.     return NEWWELD
  688. end
  689. function CreatePart2(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  690.     local NEWPART = IT("Part")
  691.     NEWPART.formFactor = FORMFACTOR
  692.     NEWPART.Reflectance = REFLECTANCE
  693.     NEWPART.Transparency = TRANSPARENCY
  694.     NEWPART.CanCollide = false
  695.     NEWPART.Locked = true
  696.     NEWPART.Anchored = true
  697.     if ANCHOR == false then
  698.         NEWPART.Anchored = false
  699.     end
  700.     NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  701.     NEWPART.Name = NAME
  702.     NEWPART.Size = SIZE
  703.     NEWPART.Position = UpperTorso.Position
  704.     NEWPART.Material = MATERIAL
  705.     NEWPART:BreakJoints()
  706.     NEWPART.Parent = PARENT
  707.     return NEWPART
  708. end
  709.  
  710. local S = IT("Sound")
  711. function CreateSound2(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  712.     local NEWSOUND = nil
  713.     coroutine.resume(coroutine.create(function()
  714.         NEWSOUND = S:Clone()
  715.         NEWSOUND.Parent = PARENT
  716.         NEWSOUND.Volume = VOLUME
  717.         NEWSOUND.Pitch = PITCH
  718.         NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  719.         NEWSOUND:play()
  720.         if DOESLOOP == true then
  721.             NEWSOUND.Looped = true
  722.         else
  723.             repeat wait(1) until NEWSOUND.Playing == false
  724.             NEWSOUND:remove()
  725.         end
  726.     end))
  727.     return NEWSOUND
  728. end
  729.  
  730.  
  731.     function WACKYEFFECT(Table)
  732.     local TYPE = (Table.EffectType or "Sphere")
  733.     local SIZE = (Table.Size or VT(1,1,1))
  734.     local ENDSIZE = (Table.Size2 or VT(0,0,0))
  735.     local TRANSPARENCY = (Table.Transparency or 0)
  736.     local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  737.     local CFRAME = (Table.CFrame or UpperTorso.CFrame)
  738.     local MOVEDIRECTION = (Table.MoveToPos or nil)
  739.     local ROTATION1 = (Table.RotationX or 0)
  740.     local ROTATION2 = (Table.RotationY or 0)
  741.     local ROTATION3 = (Table.RotationZ or 0)
  742.     local MATERIAL = (Table.Material or "Neon")
  743.     local COLOR = (Table.Color or C3(1,1,1))
  744.     local TIME = (Table.Time or 45)
  745.     local SOUNDID = (Table.SoundID or nil)
  746.     local SOUNDPITCH = (Table.SoundPitch or nil)
  747.     local SOUNDVOLUME = (Table.SoundVolume or nil)
  748.     coroutine.resume(coroutine.create(function()
  749.         local PLAYSSOUND = false
  750.         local SOUND = nil
  751.         local EFFECT = CreatePart2(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  752.         if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  753.             PLAYSSOUND = true
  754.             SOUND = CreateSound2(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  755.         end
  756.         EFFECT.Color = COLOR
  757.         local MSH = nil
  758.         if TYPE == "Sphere" then
  759.             MSH = CreateMesh2("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  760.                 elseif TYPE == "Cylinder" then
  761.             MSH = CreateMesh2("SpecialMesh", EFFECT, "Cylinder", "", "", SIZE, VT(0,0,0))  
  762.         elseif TYPE == "Block" then
  763.             MSH = IT("BlockMesh",EFFECT)
  764.             MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  765.                 elseif TYPE == "Cube" then
  766.             MSH = IT("BlockMesh",EFFECT)
  767.             MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)   
  768.            
  769.         elseif TYPE == "Wave" then
  770.             MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  771.         elseif TYPE == "Ring" then
  772.             MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  773.         elseif TYPE == "Slash" then
  774.             MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  775.         elseif TYPE == "Round Slash" then
  776.             MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  777.         elseif TYPE == "Swirl" then
  778.             MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  779.         elseif TYPE == "Skull" then
  780.             MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  781.         elseif TYPE == "Crystal" then
  782.             MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  783.         elseif TYPE == "Crown" then
  784.             MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "173770780", "", SIZE, VT(0,0,0))
  785.         end
  786.         if MSH ~= nil then
  787.             local MOVESPEED = nil
  788.             if MOVEDIRECTION ~= nil then
  789.                 MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  790.             end
  791.             local GROWTH = SIZE - ENDSIZE
  792.             local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  793.             if TYPE == "Block" then
  794.            
  795.                 SetTween(EFFECT,{CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))},"Linear","InOut",TIME/60)
  796.             else
  797.        
  798.             SetTween(EFFECT,{CFrame = CFRAME},"Linear","InOut",0)
  799.                
  800.             end
  801.            
  802.            
  803.            
  804.             wait()
  805.            
  806.             SetTween(EFFECT,{Transparency = EFFECT.Transparency - TRANS},"Linear","InOut",TIME/60)
  807.            
  808.                             if TYPE == "Block" then
  809.    
  810.                     SetTween(EFFECT,{CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))},"Linear","InOut",0)
  811.                 else
  812.  
  813.                     SetTween(EFFECT,{CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))},"Linear","InOut",0)
  814.                    
  815.                 end
  816.                             if MOVEDIRECTION ~= nil then
  817.                     local ORI = EFFECT.Orientation
  818.  
  819.                     SetTween(EFFECT,{CFrame=CF(MOVEDIRECTION)},"Linear","InOut",TIME/60)
  820.                         SetTween(EFFECT,{Orientation=ORI},"Linear","InOut",TIME/60)
  821.                
  822.                    
  823.                             end
  824.                             MSH.Scale = MSH.Scale - GROWTH/TIME
  825.                                     SetTween(MSH,{Scale=ENDSIZE},"Linear","InOut",TIME/60)
  826.                                         if TYPE == "Wave" then
  827.                
  828.                         SetTween(MSH,{Offset=VT(0,0,-MSH.Scale.X/8)},"Linear","InOut",TIME/60)
  829.                 end
  830.             for LOOP = 1, TIME+1 do
  831.                 wait(.05)
  832.  
  833.                 --SetTween(EFFECT,{Transparency = EFFECT.Transparency - TRANS/TIME},"Linear","InOut",0)
  834.                
  835.                
  836.                 if TYPE == "Block" then
  837.    
  838.     --              SetTween(EFFECT,{CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))},"Linear","InOut",0)
  839.                 else
  840.  
  841.     --              SetTween(EFFECT,{CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))},"Linear","InOut",0)
  842.                    
  843.                 end
  844.                 if MOVEDIRECTION ~= nil then
  845.                     local ORI = EFFECT.Orientation
  846.  
  847. --                  SetTween(EFFECT,{CFrame=CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)},"Linear","InOut",0)
  848. --                      SetTween(EFFECT,{Orientation=ORI},"Linear","InOut",0)
  849.                
  850.                    
  851.                 end
  852.             end
  853.                 game:GetService("Debris"):AddItem(EFFECT, 15)
  854.             if PLAYSSOUND == false then
  855.                 EFFECT:remove()
  856.             else
  857.                 SOUND.Stopped:Connect(function()
  858.                     EFFECT:remove()
  859.                 end)
  860.             end
  861.         else
  862.             if PLAYSSOUND == false then
  863.                 EFFECT:remove()
  864.             else
  865.                 repeat wait() until SOUND.Playing == false
  866.                 EFFECT:remove()
  867.             end
  868.         end
  869.     end))
  870. end
  871. ----------------------
  872. --[End Of Functions]--
  873. ----------------------
  874.  
  875.  
  876.  
  877.  
  878.  
  879.  
  880. ------------------
  881. --[Gun]--
  882. ------------------
  883.  
  884.  
  885.  
  886.  
  887.  
  888.  
  889.  
  890.  
  891.  
  892.  
  893.  
  894.  
  895. function CreatePart( Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  896.     local Part = Create("Part"){
  897.        
  898.         Parent = Parent,
  899.         Reflectance = Reflectance,
  900.         Transparency = Transparency,
  901.         CanCollide = false,
  902.         Locked = true,
  903.         BrickColor = BrickColor.new(tostring(BColor)),
  904.         Name = Name,
  905.         Size = Size,
  906.         Material = Material,
  907.     }
  908.     RemoveOutlines(Part)
  909.     return Part
  910. end
  911.  
  912. ------------------
  913. --[End of Gun]--
  914. ------------------
  915.  
  916. ---------------
  917. --[Particles]--
  918. ---------------
  919.  
  920.  
  921. local Particle2_1 = Create("ParticleEmitter"){
  922. Color = ColorSequence.new(Color3.new (1,1,1),  Color3.new (170/255, 255/255, 255/255)),
  923. Transparency =  NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.75,.4),NumberSequenceKeypoint.new(1,1)}),
  924. Size = NumberSequence.new({NumberSequenceKeypoint.new(0,.5),NumberSequenceKeypoint.new(1,.0)}),
  925. Texture = "rbxassetid://241922778",
  926. Lifetime = NumberRange.new(0.55,0.95),
  927. Rate = 100,
  928. VelocitySpread = 180,
  929. Rotation = NumberRange.new(0),
  930. RotSpeed = NumberRange.new(-200,200),
  931. Speed = NumberRange.new(8.0),
  932. LightEmission = 1,
  933. LockedToPart = false,
  934. Acceleration = Vector3.new(0, 0, 0),
  935. EmissionDirection = "Top",
  936. Drag = 4,
  937. Enabled = false
  938. }
  939.  
  940.  
  941. local BEGONE_Particle = Create("ParticleEmitter"){
  942. Color = ColorSequence.new(Color3.new (1,1,1), Color3.new (1, 1, 1)),
  943. Transparency =  NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.1,0),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(0.5,.2),NumberSequenceKeypoint.new(1,1)}),
  944. Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.15,1.5),NumberSequenceKeypoint.new(.75,1.5),NumberSequenceKeypoint.new(1,0)}),
  945. Texture = "rbxassetid://936193661",
  946. Lifetime = NumberRange.new(1.5),
  947. Rate = 100,
  948. VelocitySpread = 0,
  949. Rotation = NumberRange.new(0),
  950. RotSpeed = NumberRange.new(-10,10),
  951. Speed = NumberRange.new(0),
  952. LightEmission = .25,
  953. LockedToPart = true,
  954. Acceleration = Vector3.new(0, -0, 0),
  955. EmissionDirection = "Top",
  956. Drag = 4,
  957. ZOffset = 1,
  958. Enabled = false
  959. }
  960.  
  961.  
  962. ----------------------
  963. --[End Of Particles]--
  964. ----------------------
  965.  
  966.  
  967.  
  968.  
  969. -----------------
  970.  
  971.  
  972. function recurse(root,callback,i)
  973.     coroutine.resume(coroutine.create(function()
  974.     i= i or 0
  975.     for _,v in pairs(root:GetChildren()) do
  976.         i = i + 1
  977.         callback(i,v)
  978.        
  979.         if #v:GetChildren() > 0 then
  980.             i = recurse(v,callback,i)
  981.         end
  982.     end
  983.     end))
  984.     return i
  985. end
  986.  
  987. function ragdollJoint(part0, part1, attachmentName, className, properties)
  988.             coroutine.resume(coroutine.create(function()
  989.     attachmentName = attachmentName--.."RigAttachment"
  990.  
  991.    
  992.     local constraint = Instance.new(className.."Constraint")
  993.     constraint.Attachment0 = part0:FindFirstChild(attachmentName)
  994.     constraint.Attachment1 = part1:FindFirstChild(attachmentName)
  995.     constraint.Name = "RagdollConstraint"..part1.Name
  996.    
  997.     for _,propertyData in next,properties or {} do
  998.         constraint[propertyData[1]] = propertyData[2]
  999.     end
  1000.    
  1001.     local Rcharacter = part0.Parent
  1002.     constraint.Parent = Rcharacter
  1003.     end))
  1004. end
  1005.  
  1006. function MakeAth(AthParent,AthName,AthPosX,AthPosY,AthPosZ,AthRot,AthAX,SecondaryAxis)
  1007.                
  1008. coroutine.resume(coroutine.create(function()
  1009.                             local ATH = Instance.new("Attachment",AthParent)
  1010.                         ATH.Position = Vector3.new(AthPosX,AthPosY,AthPosZ)
  1011.                         ATH.Name = AthName
  1012. if AthRot ~= nil then                  
  1013. ATH.Rotation = AthRot end
  1014. if AthAX ~= nil then
  1015. ATH.Axis = AthAX end
  1016. if SecondaryAxis ~= nil then
  1017. ATH.SecondaryAxis = SecondaryAxis end
  1018. end))
  1019. end
  1020. function getAttachment0(attachmentName,Rcharacter)
  1021.     for i, child in pairs(GatherAllInstances(Rcharacter)) do
  1022.         local attachment = child:FindFirstChild(attachmentName)
  1023.         if attachment then
  1024.             return attachment
  1025.  
  1026.             end
  1027.  
  1028.     end
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034. end
  1035.  
  1036.  
  1037.  
  1038.  
  1039.  
  1040. ------/// PUT IN Workspace OR ServerScriptStorage <3 \\\------
  1041.  
  1042. ------ Programmed by BuildIntoGames; Removing this line will kill 5 children
  1043.  
  1044. ---- Change these settings to change stuff (keep the commas, lua doesn't understand n00b syntax)
  1045.  
  1046.  
  1047.  
  1048. local settings = {
  1049.     splatters_per_health_inc = 1,     ---- The amount of blood splatters made when you lose (damage_inc) of health
  1050.     damage_inc = 2,                   ---- The increment of damage that must be done at a time to trigger blood splatters
  1051.     remove_time = 60,                 ---- The time (in seconds) until a blood splatter is removed after it is created
  1052.     min_splatter_time = 0,            ---- The delay time (minimum) until another blood splatter is made
  1053.     max_splatter_time = 0.05,         ---- The delay time (maximum) until another blood splatter is made
  1054.     min_transparency = 0.1,           ---- The (minimum) transparency of a blood splatter
  1055.     max_transparency = 0.01,             ---- The (maximum) transparency of a blood splatter
  1056.     min_size_x = 3,                 ---- The (minimum) size of a blood splatter on the X axis
  1057.     max_size_x = 8,                   ---- The (maximum) size of a blood splatter on the X axis
  1058.     min_size_z = 3,                 ---- The (minimum) size of a blood splatter on the Z axis
  1059.     max_size_z = 8,                   ---- The (maximum) size of a blood splatter on the Z axis
  1060.     tran_tw_time_min = 0.1,           ---- The (minimum) time to tween the size of a blood splatter
  1061.     tran_tw_time_max = 0.5,           ---- The (maximum) time to tween the size of a blood splatter
  1062.     size_tw_time_min = 0.1,           ---- The (minimum) time to tween the transparency of a blood splatter
  1063.     size_tw_time_max = 0.6            ---- The (maximum) time to tween the transparency of a blood splatter
  1064. }
  1065.  
  1066. --- These are the IDs of possible blood textures, I already set 3 up for u k
  1067.  
  1068. local blood_textures = {
  1069.     176678030,
  1070.     176678048,
  1071.     176678086
  1072. }
  1073.  
  1074.  
  1075. -------------- I'm not responsible for any PAIN if you edit past this (pun intended)
  1076.  
  1077.  
  1078. mainDl = Instance.new("Decal")
  1079.  
  1080. function create_blood_splatter(player_class,CP,Times,Time)
  1081.  
  1082. local chosen_part = CP
  1083. for i = 1,Times,1 do
  1084.    
  1085.     local ray = Ray.new(chosen_part.Position+Vector3.new(0,0,0), Vector3.new(0,-100,0))
  1086.     local hit, position = game.Workspace:FindPartOnRayWithIgnoreList(ray, {Effects , player_class} , true)
  1087.     if(hit) and hit.Anchored == true then
  1088.         local blood = Instance.new("Part",Effects)
  1089.         blood.Anchored = true
  1090.         blood.CanCollide = false
  1091.         blood.Transparency = 1
  1092.         blood.Name = "Particle_Blood"
  1093.         blood.FormFactor = Enum.FormFactor.Custom
  1094.         blood.Size = Vector3.new(0.01 , 0.01 , 0.01)
  1095.         blood.CFrame = CFrame.new(position)
  1096.         local blood_decal = mainDl:Clone()
  1097.         blood_decal.Parent = blood
  1098.         blood_decal.Transparency = 1
  1099.         blood_decal.Texture = "http://www.roblox.com/asset/?id=" .. blood_textures[math.random(1,#blood_textures)]
  1100.         blood_decal.Face = "Top"
  1101.         blood_decal.Color3 = Color3.new(1, 0, 0)
  1102.         game.Debris:AddItem(blood,settings.remove_time+20)
  1103.         local edit_blood = coroutine.wrap(function()
  1104.             local original_size = blood.Size
  1105.             local original_transparency = blood_decal.Transparency
  1106.             local new_transparency = math.random(settings.max_transparency*100,settings.min_transparency*100)/100
  1107.             local new_size = Vector3.new(math.random(settings.min_size_x*100,settings.max_size_x*100)/100 , blood.Size.Y , math.random(settings.min_size_z*100,settings.max_size_z*100)/100)
  1108.             local tran_tw_time = math.random(settings.tran_tw_time_min*100,settings.tran_tw_time_max*100)/100
  1109.             local size_tw_time = math.random(settings.size_tw_time_min*100,settings.size_tw_time_max*100)/100
  1110.             for i = 1,10*tran_tw_time do
  1111.                 wait()
  1112.                 local perc = i/(10*tran_tw_time)
  1113.                 blood_decal.Transparency = original_transparency - (perc*new_transparency)
  1114.             end
  1115.             for i = 1,10*size_tw_time do
  1116.                 wait()
  1117.                 local perc = i/(10*size_tw_time)
  1118.                 blood.Size = Vector3.new(original_size.X+(perc*new_size.X) , original_size.Y , original_size.Z+(perc*new_size.Z))
  1119.             end
  1120.             wait(settings.remove_time)
  1121.             blood:Destroy()
  1122.         end)
  1123.         edit_blood()
  1124.     end
  1125.     Swait(Time)
  1126.     end
  1127. ----   
  1128. end
  1129.  
  1130.     function makrag(Rcharacter)
  1131.    
  1132. local RClone = Rcharacter:Clone()
  1133. --HitModel         
  1134.                                 for _,v in pairs(Rcharacter:GetChildren()) do  
  1135.     if v:isA("BasePart") then
  1136. coroutine.resume(coroutine.create(function()
  1137.     create_blood_splatter(Rcharacter,v,1,25)   
  1138.     end))
  1139.     end
  1140.     end
  1141.  
  1142.  
  1143.  
  1144.     --Make it so ragdoll can't collide with invisible HRP, but don't let HRP fall through map and be destroyed in process  
  1145.     coroutine.resume(coroutine.create(function()
  1146.         if Rcharacter:FindFirstChild("HumanoidRootPart")then
  1147.     Rcharacter.HumanoidRootPart.Anchored = true
  1148.     Rcharacter.HumanoidRootPart.CanCollide = false
  1149. --- Rcharacter.HumanoidRootPart.Position = Vector3.new(0,-10,0)
  1150. Rcharacter.HumanoidRootPart.Parent = nil
  1151.     end
  1152.     end))
  1153.    
  1154.    
  1155.    
  1156.  
  1157.     --Helps to fix constraint spasms
  1158.     recurse(Rcharacter, function(_,v)
  1159.         if v:IsA("Attachment") then
  1160.             v.Axis = Vector3.new(0, 1, 0)
  1161.             v.SecondaryAxis = Vector3.new(0, 0, 1)
  1162.             v.Rotation = Vector3.new(0, 0, 0)
  1163.         end
  1164.     end)
  1165.    
  1166.     --Re-attach hats
  1167.  
  1168.                 if Rcharacter:FindFirstChild("UpperTorso") then
  1169.                     local ragdoll = EffectPack.R15Ragdoll:Clone()
  1170.                     ragdoll.Parent = Rcharacter
  1171.                     ragdoll.Disabled = false
  1172.                 else
  1173.                     local ragdoll = EffectPack.R6Ragdoll:Clone()
  1174.                     ragdoll.Parent = Rcharacter
  1175.                     ragdoll.Disabled = false
  1176.                 end
  1177.  
  1178.  
  1179. --[[
  1180. coroutine.resume(coroutine.create(function()
  1181. for i = 0,2 do
  1182. coroutine.resume(coroutine.create(function()
  1183.     for _,child in next,charforhats:GetChildren() do
  1184.         if child:IsA("Accoutrement") then
  1185.             --Loop through all parts instead of only checking for one to be forwards-compatible in the event
  1186.             --ROBLOX implements multi-part accessories
  1187.             for _,part in next,child:GetChildren() do
  1188.                 if part:IsA("BasePart") then part.CanCollide = false   
  1189.                    
  1190.  
  1191.                     local attachment1 = part:FindFirstChildOfClass("Attachment")
  1192.                     local attachment0 = getAttachment0(attachment1.Name,charforhats)
  1193.                     if attachment0 and attachment1 then
  1194.                         --Shouldn't use constraints for this, but have to because of a ROBLOX idiosyncrasy where
  1195.                         --joints connecting a character are perpetually deleted while the character is dead
  1196.  
  1197.                
  1198.     local HatProperties = {
  1199.         {"LimitsEnabled", true};
  1200.         {"UpperAngle", 0};
  1201.         {"LowerAngle", -0};
  1202.     }
  1203.  
  1204.                 coroutine.resume(coroutine.create(function()
  1205.     wait()         
  1206. local rg =  ragdollJoint(attachment0.Parent, part, ""..attachment1.Name, "Hinge", HatProperties)                       
  1207. end))                      
  1208.                        
  1209.                     end
  1210.                 end
  1211.             end
  1212.         end
  1213.     end
  1214.    
  1215. end))
  1216. wait(.1)
  1217. end
  1218. end))
  1219.  
  1220.  
  1221. --]]
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.     for _,v in pairs(Rcharacter:GetChildren()) do  
  1233.     if v:isA("Script")  or v:isA("LocalScript") then
  1234.         v:Destroy()
  1235.     end
  1236.     end
  1237.  
  1238. local ORcharacter = Rcharacter
  1239.  
  1240.  
  1241. return ORcharacter
  1242.             end
  1243.  
  1244.  
  1245.  
  1246. function getbloody(victim,amount)
  1247.     local PART = IT("Part",Effects)
  1248.     PART.Transparency = 1
  1249.     PART.Size = victim.Size
  1250.     PART.Anchored = true
  1251.     PART.CanCollide = false
  1252.     PART.CFrame = victim.CFrame
  1253.     local HITPLAYERSOUNDS = {"356551938","264486467"}
  1254.     game:GetService("Debris"):AddItem(PART, 10)
  1255.     so(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1256.     so(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1257.     so(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1258. local prtcl= EffectPack["1"]:Clone()
  1259. prtcl.Parent = PART
  1260.     prtcl:Emit((amount*10)/2)
  1261.     local prtc2= EffectPack["2"]:Clone()
  1262. prtc2.Parent = PART
  1263.     prtc2:Emit((amount*10)/2)
  1264. end
  1265.  
  1266.        
  1267.     Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1268.    
  1269.         if hit.Parent == nil then
  1270.         return
  1271.     end
  1272.     local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1273.     for _,v in pairs(hit.Parent:children()) do
  1274.         if v:IsA("Humanoid") then
  1275.         if  h.Health > 0.0001 then
  1276.                 h = v else   end
  1277.         end
  1278.     end
  1279.    
  1280.     if h == nil then
  1281.         return
  1282.         elseif h ~= nil and h.Health < 0.001 then
  1283.         return
  1284.     elseif  h ~= nil and h.Parent:FindFirstChild("Fly away") then
  1285.         return
  1286.     end
  1287.    
  1288.    
  1289.     --gg
  1290.    
  1291. --local FoundTorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") 
  1292.         coroutine.resume(coroutine.create(function()   
  1293. if h.Health >9999999 and minim <9999 and Type~= "IgnoreType" and(h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")) and not h.Parent:FindFirstChild("Fly away")then
  1294.    
  1295.    
  1296.     local FATag = Instance.new("Model",h.Parent)
  1297.  
  1298.     FATag.Name = "Fly away"
  1299. game:GetService("Debris"):AddItem(FATag, 2.5)  
  1300.    
  1301.    
  1302.     for _,v in pairs(h.Parent:children()) do
  1303.         if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  1304.             v.Anchored=true
  1305.         end
  1306.     end
  1307.  
  1308. wait(.25)
  1309.    
  1310. if  h.Parent:FindFirstChildOfClass("Body Colors")then
  1311. h.Parent:FindFirstChildOfClass("Body Colors"):Destroy()
  1312. end
  1313.  
  1314.  
  1315.     local FoundTorso = h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")
  1316.    
  1317.     coroutine.resume(coroutine.create(function()   
  1318.        
  1319.        
  1320. local YourGone = Instance.new("Part")
  1321.         YourGone.Reflectance = 0
  1322.         YourGone.Transparency = 1
  1323.         YourGone.CanCollide = false
  1324.         YourGone.Locked = true
  1325.         YourGone.Anchored=true
  1326.         YourGone.BrickColor = BrickColor.new("Really blue")
  1327.         YourGone.Name = "YourGone"
  1328.         YourGone.Size = Vector3.new()
  1329.         YourGone.Material = "SmoothPlastic"
  1330.         YourGone:BreakJoints()
  1331.         YourGone.Parent = FoundTorso       
  1332.         YourGone.CFrame = FoundTorso.CFrame
  1333.                
  1334.     local NewParticle = Instance.new("ParticleEmitter")
  1335. NewParticle.Parent = YourGone
  1336. NewParticle.Acceleration =  Vector3.new(0,0,0)
  1337. NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(1,.0)})
  1338. NewParticle.Color = ColorSequence.new(Color3.new (1,0,0), Color3.new (1, 0, 0))
  1339. NewParticle.Lifetime = NumberRange.new(0.55,0.95)
  1340. NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.25,.0),NumberSequenceKeypoint.new(1,1)})
  1341. NewParticle.Speed = NumberRange.new(0,0.0)
  1342. NewParticle.ZOffset = 2
  1343. NewParticle.Texture = "rbxassetid://243660364"
  1344. NewParticle.RotSpeed = NumberRange.new(-0,0)
  1345. NewParticle.Rotation = NumberRange.new(-180,180)
  1346. NewParticle.Enabled = false
  1347. game:GetService("Debris"):AddItem(YourGone, 3) 
  1348. for i = 0,2,1 do
  1349. NewParticle:Emit(1)
  1350. so("1448044156", FoundTorso,2, 1)
  1351. h.Parent:BreakJoints()
  1352. YourGone.CFrame = FoundTorso.CFrame
  1353.     for _,v in pairs(h.Parent:children()) do
  1354.         if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  1355.             v.Anchored=false
  1356. --          v.Material = "Neon"
  1357.             --v.BrickColor = BrickColor.new("Really red")
  1358.             if v:FindFirstChildOfClass("SpecialMesh")then
  1359.     --v:Destroy()
  1360.             end
  1361.                         if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
  1362. --  v:Destroy()
  1363. end    
  1364.                     local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
  1365.                                        
  1366.                 vp.Parent = v      
  1367.                         game:GetService("Debris"):AddItem(vp, math.random(50,100)/1000)            
  1368.            
  1369.            
  1370.         end
  1371.        
  1372.        
  1373.        
  1374.     end
  1375.  
  1376.    
  1377.    
  1378. wait(.2)   
  1379. end
  1380. wait(.1)   
  1381. NewParticle:Emit(3)
  1382. so("1448044156", FoundTorso,2, .8)
  1383. h.Parent:BreakJoints()
  1384. YourGone.CFrame = FoundTorso.CFrame
  1385.     for _,v in pairs(h.Parent:children()) do
  1386.         if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  1387.             v.Anchored=false
  1388. --          v.Material = "Neon"
  1389.             --v.BrickColor = BrickColor.new("Really red")
  1390.             if v:FindFirstChildOfClass("SpecialMesh")then
  1391.     --v:Destroy()
  1392.             end
  1393.                         if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
  1394. --  v:Destroy()
  1395. end    
  1396.                     local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
  1397.                                        
  1398.                 vp.Parent = v      
  1399.                         game:GetService("Debris"):AddItem(vp, math.random(100,200)/1000)               
  1400.            
  1401.            
  1402.         end
  1403.        
  1404.        
  1405.        
  1406.     end
  1407.  
  1408.    
  1409.    
  1410.    
  1411.     end))
  1412.    
  1413.  
  1414.  
  1415.  
  1416. wait(.1)
  1417.  
  1418.  
  1419.  
  1420.    
  1421.    
  1422.    
  1423.    
  1424.     end
  1425.    
  1426.    
  1427.     end))
  1428.     if h ~= nil and hit.Parent ~= Character and hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  1429.         if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1430.             return
  1431.         end
  1432.         local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
  1433.         game:GetService("Debris"):AddItem(c, 0.5)
  1434.         if HitSound ~= nil and HitPitch ~= nil then
  1435.             so(HitSound, hit, 1, HitPitch)
  1436.         end
  1437.         local Damage = math.random(minim, maxim)
  1438.         local blocked = false
  1439.         local block = hit.Parent:findFirstChild("Block")
  1440.         if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1441.             blocked = true
  1442.             block.Value = block.Value - 1
  1443.             print(block.Value)
  1444.         end
  1445.                         if h.Health - Damage < 0.1 then
  1446.             local rval = math.random(1,4)
  1447.     local   namesave=   hit.Name
  1448. if game:GetService("Players"):GetPlayerFromCharacter(hit.Parent) ~= nil then
  1449.     hit.Parent.Archivable = true
  1450. local clone = hit.Parent:Clone()
  1451. clone.Parent = hit.Parent.Parent
  1452. hit.Parent:Destroy()
  1453. hit = clone:FindFirstChild(namesave)
  1454. end
  1455.  
  1456. local hitmodel = makrag(hit.Parent)
  1457. hit = hitmodel:FindFirstChild(namesave)
  1458.            
  1459.             end
  1460.         if blocked == false then
  1461.             h.Health = h.Health - Damage
  1462.             ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 2.5, Color3.new(0,0,0))
  1463.         else
  1464.             h.Health = h.Health - Damage / 2
  1465.             ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 2.5, Color3.new(0,0,0))
  1466.            
  1467.         end
  1468.  
  1469.         if Type == "Knockdown" then
  1470.                     local hum = h
  1471.        
  1472.             hum.PlatformStand = true
  1473.             coroutine.resume(coroutine.create(function(HHumanoid)
  1474.        
  1475.         wait(.2)
  1476.         HHumanoid.PlatformStand = false
  1477.     end
  1478.             ), hum)
  1479.            
  1480.            
  1481.            
  1482.             local FoundTorso = h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")
  1483.             local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1484.             local bodvol = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = CFrame.new(Part.Position,FoundTorso.Position).lookVector * knockback, Parent = hit})
  1485.             local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(5000, 5000, 5000) * 50, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
  1486.             game:GetService("Debris"):AddItem(bodvol, .2)
  1487.             game:GetService("Debris"):AddItem(rl, 0.2)
  1488.  
  1489.  
  1490.  
  1491.         elseif Type == "Knockdown2" then
  1492.                     local hum = h
  1493.        
  1494.             hum.PlatformStand = true
  1495.             coroutine.resume(coroutine.create(function(HHumanoid)
  1496.        
  1497.                        
  1498.  Combo = 1          wait(.2)
  1499.         HHumanoid.PlatformStand = false
  1500.     end
  1501. ), hum)
  1502.             local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1503.             local bodvol = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = CFrame.new(Part.Position,Property.Position).lookVector * knockback})
  1504.             local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(5000, 5000, 5000) * 50, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
  1505.             game:GetService("Debris"):AddItem(bodvol, 0.2)
  1506.             game:GetService("Debris"):AddItem(rl, 0.2)
  1507.  
  1508.  
  1509.  
  1510.  
  1511.  
  1512.  
  1513.                             local bodyVelocity2 = Create("BodyVelocity")({velocity = Vector3.new(0, 60, 0), P = 5000, maxForce = Vector3.new(8000, 12000, 8000), Parent = RootPart})
  1514.                             game:GetService("Debris"):AddItem(bodyVelocity2, 0.1)
  1515.  
  1516.         elseif Type == "Normal" then
  1517.                     local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = CFrame.new(Part.Position,Property.Position).lookVector * knockback})
  1518.                     if knockback > 0 then
  1519.                        
  1520.                 local HTorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  1521.                         vp.Parent = HTorso
  1522.                     end
  1523.                     game:GetService("Debris"):AddItem(vp, 0.25)
  1524.                    
  1525.                    
  1526.                    
  1527.                    
  1528.                    
  1529.                    
  1530.                    
  1531.                    
  1532.                    
  1533.                    
  1534.                    
  1535.                    
  1536.                    
  1537.         elseif Type== "Instakill"   then
  1538.                     coroutine.resume(coroutine.create(function()   
  1539. if  (h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")) and not h.Parent:FindFirstChild("Fly away")then
  1540.    
  1541.    
  1542.     local FATag = Instance.new("Model",h.Parent)
  1543.  
  1544.     FATag.Name = "Fly away"
  1545. game:GetService("Debris"):AddItem(FATag, 2.5)  
  1546.    
  1547.    
  1548.     for _,v in pairs(h.Parent:children()) do
  1549.         if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  1550.             v.Anchored=true
  1551.         end
  1552.     end
  1553.  
  1554. wait(.25)
  1555.    
  1556. if  h.Parent:FindFirstChildOfClass("Body Colors")then
  1557. h.Parent:FindFirstChildOfClass("Body Colors"):Destroy()
  1558. end
  1559.  
  1560.  
  1561.     local FoundTorso = h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")
  1562.    
  1563.     coroutine.resume(coroutine.create(function()   
  1564.        
  1565.        
  1566. local YourGone = Instance.new("Part")
  1567.         YourGone.Reflectance = 0
  1568.         YourGone.Transparency = 1
  1569.         YourGone.CanCollide = false
  1570.         YourGone.Locked = true
  1571.         YourGone.Anchored=true
  1572.         YourGone.BrickColor = BrickColor.new("Really blue")
  1573.         YourGone.Name = "YourGone"
  1574.         YourGone.Size = Vector3.new()
  1575.         YourGone.Material = "SmoothPlastic"
  1576.         YourGone:BreakJoints()
  1577.         YourGone.Parent = FoundTorso       
  1578.         YourGone.CFrame = FoundTorso.CFrame
  1579.                
  1580.     local NewParticle = Instance.new("ParticleEmitter")
  1581. NewParticle.Parent = YourGone
  1582. NewParticle.Acceleration =  Vector3.new(0,0,0)
  1583. NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(1,.0)})
  1584. NewParticle.Color = ColorSequence.new(Color3.new (1,0,0), Color3.new (1, 0, 0))
  1585. NewParticle.Lifetime = NumberRange.new(0.55,0.95)
  1586. NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.25,.0),NumberSequenceKeypoint.new(1,1)})
  1587. NewParticle.Speed = NumberRange.new(0,0.0)
  1588. NewParticle.ZOffset = 2
  1589. NewParticle.Texture = "rbxassetid://243660364"
  1590. NewParticle.RotSpeed = NumberRange.new(-0,0)
  1591. NewParticle.Rotation = NumberRange.new(-180,180)
  1592. NewParticle.Enabled = false
  1593. game:GetService("Debris"):AddItem(YourGone, 3) 
  1594. for i = 0,2,1 do
  1595. NewParticle:Emit(1)
  1596. so("1448044156", FoundTorso,2, 1)
  1597. h.Parent:BreakJoints()
  1598. YourGone.CFrame = FoundTorso.CFrame
  1599.     for _,v in pairs(h.Parent:children()) do
  1600.         if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  1601.             v.Anchored=false
  1602. --          v.Material = "Neon"
  1603.             --v.BrickColor = BrickColor.new("Really red")
  1604.             if v:FindFirstChildOfClass("SpecialMesh")then
  1605.     --v:Destroy()
  1606.             end
  1607.                         if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
  1608. --  v:Destroy()
  1609. end    
  1610.                     local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
  1611.                                        
  1612.                 vp.Parent = v      
  1613.                         game:GetService("Debris"):AddItem(vp, math.random(50,100)/1000)            
  1614.            
  1615.            
  1616.         end
  1617.        
  1618.        
  1619.        
  1620.     end
  1621.  
  1622.    
  1623.    
  1624. wait(.2)   
  1625. end
  1626. wait(.1)   
  1627. NewParticle:Emit(3)
  1628. so("1448044156", FoundTorso,2, .8)
  1629. h.Parent:BreakJoints()
  1630. YourGone.CFrame = FoundTorso.CFrame
  1631.     for _,v in pairs(h.Parent:children()) do
  1632.         if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  1633.             v.Anchored=false
  1634. --          v.Material = "Neon"
  1635.             --v.BrickColor = BrickColor.new("Really red")
  1636.             if v:FindFirstChildOfClass("SpecialMesh")then
  1637.     --v:Destroy()
  1638.             end
  1639.                         if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
  1640. --  v:Destroy()
  1641. end    
  1642.                     local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
  1643.                                        
  1644.                 vp.Parent = v      
  1645.                         game:GetService("Debris"):AddItem(vp, math.random(100,200)/1000)               
  1646.            
  1647.            
  1648.         end
  1649.        
  1650.        
  1651.        
  1652.     end
  1653.  
  1654.    
  1655.    
  1656.    
  1657.     end))
  1658.    
  1659.  
  1660.  
  1661.  
  1662. wait(.1)
  1663.  
  1664.  
  1665.  
  1666.    
  1667.    
  1668.    
  1669.    
  1670.     end
  1671.    
  1672.    
  1673.     end))
  1674.    
  1675.                     elseif Type == "Rag" then  
  1676.                             coroutine.resume(coroutine.create(function()
  1677.                                 local head = hit.Parent:FindFirstChild("Head")
  1678.         head.Velocity = head.CFrame.lookVector * -2.2  
  1679.         end))
  1680.                 coroutine.resume(coroutine.create(function()                       
  1681.                     makrag(hit.Parent)
  1682.                     end))
  1683.                 h.Health = 0
  1684.         hit.Parent:BreakJoints()
  1685.         elseif Type == "HPSteal" then
  1686.                     Humanoid.Health = Humanoid.Health + Damage
  1687.                                 local hum = h
  1688.        
  1689.             hum.PlatformStand = true
  1690.             coroutine.resume(coroutine.create(function(HHumanoid)
  1691.        
  1692.                        
  1693.  Combo = 1          wait(.2)
  1694.         HHumanoid.PlatformStand = false
  1695.     end
  1696. ), hum)
  1697.             local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1698.             local bodvol = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = CFrame.new(Part.Position,Property.Position).lookVector * knockback})
  1699.             local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(5000, 5000, 5000) * 50, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
  1700.             game:GetService("Debris"):AddItem(bodvol, 0.2)
  1701.             game:GetService("Debris"):AddItem(rl, 0.2)
  1702.  
  1703.  
  1704.  
  1705.  
  1706.  
  1707.  
  1708.                             local bodyVelocity2 = Create("BodyVelocity")({velocity = Vector3.new(0, 60, 0), P = 5000, maxForce = Vector3.new(8000, 12000, 8000), Parent = RootPart})
  1709.                             game:GetService("Debris"):AddItem(bodyVelocity2, 0.1)
  1710.  
  1711.            
  1712.                     elseif Type == "Impale" then
  1713.  
  1714.  
  1715.  
  1716.  
  1717.  
  1718.  
  1719.    
  1720.  
  1721. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=268249319", Spike, .8, 2) 
  1722.             hit.Parent.Humanoid.PlatformStand = true
  1723.            
  1724.        
  1725.         wait(1)
  1726.         hit.Parent.Humanoid.PlatformStand = false
  1727.         elseif Type == "IgnoreType" then
  1728.            
  1729.  
  1730.            
  1731.            
  1732.            
  1733.                 elseif Type == "Up" then
  1734.                             local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  1735.                             game:GetService("Debris"):AddItem(bodyVelocity, 0.1)
  1736.                             local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  1737.                             game:GetService("Debris"):AddItem(bodyVelocity, .1)
  1738.                
  1739.                
  1740.  
  1741.        
  1742.            
  1743.            
  1744.            
  1745.                         elseif Type == "Snare" then
  1746.                                     local bp = Create("BodyPosition")({P = 900, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  1747.                                     game:GetService("Debris"):AddItem(bp, 1)
  1748.            
  1749.                        
  1750.  
  1751.                             elseif Type == "Freeze2" then
  1752.                                             local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  1753.                                             local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
  1754.                                             hit.Parent.Torso.Anchored = true
  1755.                                             coroutine.resume(coroutine.create(function(Part)
  1756.        
  1757.         wait(1.5)
  1758.         Part.Anchored = false
  1759.     end
  1760. ), hit.Parent.Torso)
  1761.                                             game:GetService("Debris"):AddItem(BodPos, 3)
  1762.                                             game:GetService("Debris"):AddItem(BodGy, 3)
  1763.                                         end
  1764.                                             local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
  1765.                                             game:GetService("Debris"):AddItem(debounce, Delay)
  1766.                                             c = Instance.new("ObjectValue")
  1767.                                             c.Name = "creator"
  1768.                                             c.Value = Player
  1769.                                             c.Parent = h
  1770.                                             game:GetService("Debris"):AddItem(c, 0.5)
  1771.                                         end
  1772.                                     end
  1773.  
  1774.  
  1775.  
  1776.     ShowDamage = function(Pos, Text, Time, Color)
  1777.    
  1778.     local Rate = 0.033333333333333
  1779.     if not Pos then
  1780.         local Pos = Vector3.new(0, 0, 0)
  1781.     end
  1782.     local Text = Text or ""
  1783.     local Time = Time or 2
  1784.     if not Color then
  1785.         local Color = Color3.new(1, 0, 1)
  1786.     end
  1787.     local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1788.     EffectPart.Anchored = true
  1789.     local BillboardGui = Create("BillboardGui")({Size = UDim2.new(2, 0, 2, 0), Adornee = EffectPart, Parent = EffectPart})
  1790.     local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = "DMG: "..Text.."", TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui})
  1791.     game.Debris:AddItem(EffectPart, Time + 0.1)
  1792.     EffectPart.Parent = game:GetService("Workspace")
  1793.     delay(0, function()
  1794.        
  1795.         local Frames = Time / Rate
  1796.        
  1797.        
  1798.        
  1799. print(Frames)
  1800.         TextLabel.TextTransparency=0
  1801.         EffectPart.CFrame=CFrame.new(Pos)
  1802.         wait()
  1803.         SetTween(TextLabel,{TextTransparency=1},"Quad","In",Frames/60)
  1804.         SetTween(TextLabel,{Rotation=math.random(-25,25)},"Elastic","InOut",Frames/60)
  1805.         SetTween(TextLabel,{TextColor3=Color3.new(1,0,0)},"Elastic","InOut",Frames/60)
  1806.  
  1807. SetTween(EffectPart,{CFrame = CFrame.new(Pos) + Vector3.new(math.random(-5,5), math.random(1,5), math.random(-5,5))},"Linear","InOut",Frames/60)
  1808.  
  1809.  
  1810.         wait(Frames/60)
  1811.        
  1812.         if EffectPart and EffectPart.Parent then
  1813.             EffectPart:Destroy()
  1814.         end
  1815.     end
  1816. )
  1817. end
  1818.  
  1819.     MagniDamage = function(Part, magni, mindam, maxdam, knock, Type2)
  1820.        
  1821.        
  1822.        
  1823.        
  1824. local Type=""
  1825.  
  1826.  
  1827.  
  1828.  
  1829. if  mememode == true then
  1830.  
  1831. Type=   "Instakill"
  1832.  
  1833. else
  1834. Type=Type2
  1835. end
  1836. if Type2 == "NormalKnockdown" then
  1837.     Type= "Knockdown"
  1838. end
  1839.        
  1840.     for _,c in pairs(workspace:children()) do
  1841.        
  1842.        
  1843.        
  1844.        
  1845.        
  1846.         local hum = c:FindFirstChild("Humanoid")
  1847.     for _,v in pairs(c:children()) do
  1848.         if v:IsA("Humanoid") then
  1849.             hum = v
  1850.         end
  1851.     end
  1852.        
  1853.        
  1854.        
  1855.        
  1856.         if hum ~= nil then
  1857.             local head = c:findFirstChild("Head")
  1858.             if head ~= nil then
  1859.                 local targ = head.Position - Part.Position
  1860.                 local mag = targ.magnitude
  1861.                 if mag <= magni and c.Name ~= Player.Name then
  1862.                     Damagefunc(Part, head, mindam, maxdam, knock, Type, RootPart, 0.1, "851453784", 1.2)
  1863.                 end
  1864.             end
  1865.         end
  1866.     end
  1867. end
  1868.  
  1869.  
  1870. function CFMagniDamage(HTCF,magni, mindam, maxdam, knock, Type)
  1871. local DGP = Instance.new("Part")
  1872.  
  1873. DGP.Parent = Character
  1874. DGP.Size = Vector3.new(0.05, 0.05, 0.05)
  1875. DGP.Transparency = 1
  1876. DGP.CanCollide = false
  1877. DGP.Anchored = true
  1878. RemoveOutlines(DGP)
  1879. DGP.Position=DGP.Position + Vector3.new(0,-.1,0)
  1880. DGP.CFrame = HTCF
  1881.  
  1882. coroutine.resume(coroutine.create(function()
  1883. MagniDamage(DGP, magni, mindam, maxdam, knock, Type)
  1884. end))
  1885. game:GetService("Debris"):AddItem(DGP, .05)
  1886.  
  1887.  
  1888. DGP.Archivable = false
  1889. end
  1890.  
  1891.        
  1892.  
  1893. -----------------
  1894.  
  1895. for i = 1, 70 do
  1896.     local FACE = CreatePart2(3, Character, "Fabric", 0, 0+(i-1)/65, "Dark stone grey", "FaceGradient", VT(1.01,0.5,1.01),false)
  1897.     FACE.Color = C3(0,0,0)
  1898.     Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  1899.     CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/130,0), CF(0, 0, 0))
  1900. end
  1901.    
  1902. Humanoid.MaxHealth = 99999
  1903.  
  1904. Humanoid.Health = 99999
  1905. GainCharge = function()
  1906.     Humanoid.MaxHealth = 99999
  1907. Humanoid.Health = 99999
  1908. end
  1909.  
  1910.  Humanoid.HealthChanged:connect(function() GainCharge(Humanoid) end)               
  1911.                
  1912.                
  1913.  
  1914.  
  1915. --[[
  1916.         for i, v in pairs(C:GetChildren()) do
  1917. if v:IsA("Accessory")then
  1918. v:Destroy()
  1919. end
  1920. if v:IsA("BasePart")then
  1921. v.Transparency =1
  1922. if v.Name == "Head" then
  1923.     v:FindFirstChildOfClass("Decal"):Destroy()
  1924. end
  1925. end
  1926.         end--]]
  1927. --[[
  1928.  
  1929.  
  1930.  
  1931.  
  1932.  
  1933.  
  1934.  
  1935.  
  1936.  
  1937.  
  1938.  
  1939.  
  1940.  
  1941. local tweeningInformation = TweenInfo.new(
  1942.     0.5,   
  1943.     Enum.EasingStyle.Back,
  1944.     Enum.EasingDirection.Out,
  1945.     0,
  1946.     false,
  1947.     0
  1948. )
  1949. --]]
  1950.  
  1951.  
  1952.  
  1953.  
  1954. --print(WRJ.Parent.Name)
  1955.  
  1956. --local RW=weld(Torso,Torso,RightArm,cf(0,0,0))
  1957.  
  1958. --local LW=weld(Torso,Torso,LeftArm,cf(0,0,0))
  1959.  
  1960. -- RH=weld(Torso,Torso,RightLeg,cf(0,0,0))
  1961.  
  1962. --local LH=weld(Torso,Torso,LeftLeg,cf(0,0,0))
  1963.  
  1964.  
  1965.  
  1966. --RW.C1 = cn(0, 0.5, 0)
  1967. --LW.C1 = cn(0, 0.5, 0)
  1968. --RH.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  1969. --LH.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  1970.  
  1971.  
  1972.  
  1973.  
  1974.  
  1975.  
  1976. --------
  1977. --(#Torso)
  1978. --SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)},"Quad","InOut",0.1)
  1979. --------
  1980. --(#Head)
  1981. --SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)},"Quad","InOut",0.1)
  1982. --------
  1983. --(#Right Arm)
  1984. --SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)},"Quad","InOut",0.1)
  1985. --------
  1986. --(#Left Arm)
  1987. --SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)},"Quad","InOut",0.1)
  1988. --------
  1989. --(#Right Leg)
  1990. --SetTween(RH,{C0=CFrame.new(.5, -0.90, 0)},"Quad","InOut",0.1)
  1991. --------
  1992. --(#Left Leg)
  1993. --SetTween(LH,{C0=CFrame.new(-.5, -0.90, 0)},"Quad","InOut",0.1)
  1994.  
  1995.  
  1996.  
  1997. --[[
  1998. --Head,Torso               
  1999. SetTween(Root,{C0=GC0(Root)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2000. SetTween(Waist,{C0=GC0(Waist)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2001. SetTween(Neck,{C0=GC0(Neck)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2002. ---------
  2003. --RightArm
  2004. SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2005. SetTween(RightElbow,{C0=GC0(RightElbow)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2006.  
  2007. ---------
  2008. --LeftArm
  2009. SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2010. SetTween(LeftElbow,{C0=GC0(LeftElbow)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2011. ---------
  2012. --RightLeg
  2013. SetTween(RightHip,{C0=GC0(RightHip)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2014. SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2015. SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2016. ---------
  2017. --LeftLeg
  2018. SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2019. SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2020. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2021. ---------
  2022. --]]
  2023.  
  2024.  
  2025.  
  2026.  
  2027.  
  2028.  
  2029. local function onTouch(Part,knock,part)
  2030. if part.Parent ~= Character and part.Parent.Parent ~= Character  then
  2031.    
  2032.     --[[
  2033.     if part.Parent:IsA("Accessory") then
  2034.  
  2035.             coroutine.resume(coroutine.create(function()   
  2036.                 local angle = Part.CFrame.lookVector
  2037.                             local bodvol = Create("BodyVelocity")({velocity = angle * 7.2, P = 50, maxForce = Vector3.new(8000, 8000, 8000), Parent = part})
  2038. game:GetService("Debris"):AddItem(bodvol, 0.1)
  2039.                 if not part:FindFirstChild("HairAttachment") then
  2040.                     part:BreakJoints()
  2041.                             coroutine.resume(coroutine.create(function()   
  2042.                                 wait(.1)
  2043.                                 local par = part.Parent
  2044.                                 part.CanCollide = true part.Parent = workspace
  2045.                                 par:Destroy()
  2046.                                             SetTween(part,{Transparency = 1},"Quad","Out",2)
  2047.     game:GetService("Debris"):AddItem(part, 2)
  2048.                             end))
  2049.                 end
  2050.                
  2051.    
  2052.             end))
  2053.  
  2054.     end
  2055.    
  2056.     --]]
  2057.     if part.Parent:IsA("Accessory") and (part.Parent.Parent:FindFirstChild("Torso") or part.Parent.Parent:FindFirstChild("UpperTorso")) then
  2058.     part = (part.Parent.Parent:FindFirstChild("Torso") or part.Parent.Parent:FindFirstChild("UpperTorso"))
  2059.     end
  2060.    
  2061.    
  2062.    
  2063.     if part.Parent:FindFirstChildOfClass("Humanoid") then
  2064.         coroutine.resume(coroutine.create(function()                                                        local angle = Part.CFrame.lookVector
  2065.             local bodvol = Create("BodyVelocity")({velocity = angle * 9.2, P = 50, maxForce = Vector3.new(8000, 8000, 8000), Parent = part})
  2066. game:GetService("Debris"):AddItem(bodvol, 0.1)
  2067. --makrag(AIMHIT.Parent)
  2068.  
  2069.  
  2070.  end))
  2071.    
  2072.     if part.Name == "Head" then
  2073.        
  2074.         local num=part.Parent:FindFirstChildOfClass("Humanoid").Health/part.Parent:FindFirstChildOfClass("Humanoid").MaxHealth
  2075.        
  2076.         if num < 0.5 then
  2077.         local namesave=part.Name
  2078.         local newchar = makrag(part.Parent)
  2079.             coroutine.resume(coroutine.create(function()
  2080.         local HTorso = newchar.Parent:FindFirstChild("Torso") or newchar.Parent:FindFirstChild("UpperTorso")
  2081.                 coroutine.resume(coroutine.create(function()                                                        local angle = Part.CFrame.lookVector
  2082.             local bodvol = Create("BodyVelocity")({velocity = angle * 17.2, P = 50, maxForce = Vector3.new(8000, 8000, 8000), Parent = HTorso})
  2083. game:GetService("Debris"):AddItem(bodvol, 0.1)
  2084. --makrag(AIMHIT.Parent)
  2085.  
  2086.  
  2087.  end))
  2088.             end))
  2089.                         coroutine.resume(coroutine.create(function()
  2090.             getbloody(newchar:FindFirstChild("Head"),5) end))
  2091.         newchar:FindFirstChild("Head"):Destroy()
  2092.         else
  2093.             coroutine.resume(coroutine.create(function()
  2094.     Damagefunc(Part, part, part.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/3, part.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/2, 0, "Normal", RootPart, 0.1, "851453784", 1.2)
  2095.     end))
  2096.         end
  2097.  
  2098.     else
  2099. --part.Parent:FindFirstChildOfClass("Humanoid").Health = part.Parent:FindFirstChildOfClass("Humanoid").Health - math.random(20, 30)
  2100.     coroutine.resume(coroutine.create(function()
  2101.         coroutine.resume(coroutine.create(function()
  2102.         create_blood_splatter(part.Parent,part,1,25) end))
  2103.     Damagefunc(Part, part, part.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/10, part.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/6, 0, "Normal", RootPart, 0.1, "851453784", 1.2)
  2104.     end))
  2105. end
  2106.  
  2107.  
  2108.     end
  2109. end
  2110. end
  2111.  
  2112.  
  2113.  function SpawnBullet(CFpos,BForce,DForce,waight)
  2114. coroutine.resume(coroutine.create(function()
  2115.     local Bscale = 2
  2116.     local dahspeed=0
  2117. if attack == true and mememode == true then
  2118.     dahspeed=3
  2119. end --/dahspeed
  2120.    
  2121.    
  2122.  
  2123.    
  2124.    
  2125. local Stone=Instance.new("Part",Effects)   
  2126.         Stone.Reflectance = 0
  2127.         Stone.Transparency = 1
  2128.         Stone.CanCollide = false
  2129.         Stone.Locked = true
  2130.         Stone.Anchored=true
  2131.         Stone.BrickColor = BrickColor.new("Bright green")
  2132.         Stone.Name = "Bullet"
  2133.         Stone.Size = Vector3.new(.05*Bscale,.05*Bscale,.25)
  2134.         Stone.Material = "Neon"
  2135.         Stone:BreakJoints()
  2136.        
  2137.  
  2138.         local speed = BForce       
  2139.        
  2140.     local grav = waight
  2141.        
  2142.         local stoptime=0
  2143.  
  2144. local Dampingforce = 0
  2145.  
  2146.        
  2147.         local StoneTrail=Instance.new("Trail",Stone)   
  2148. local Attach1 = Instance.new("Attachment",Stone)   
  2149. local Attach2 = Instance.new("Attachment",Stone)   
  2150. Attach2.Position = Vector3.new(0,0,.025*Bscale)
  2151. Attach1.Position = Vector3.new(0,0,-.025*Bscale)      
  2152. StoneTrail.Attachment0 = Attach1
  2153. StoneTrail.Attachment1 = Attach2
  2154. StoneTrail.Texture = "rbxassetid://1251856844"
  2155. StoneTrail.Lifetime = .1
  2156. StoneTrail.MaxLength = 0
  2157. StoneTrail.MinLength = 0
  2158. StoneTrail.TextureMode= "Static"
  2159. StoneTrail.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
  2160. StoneTrail.WidthScale=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)})
  2161. StoneTrail.LightEmission=0
  2162. StoneTrail.Color = ColorSequence.new(Color3.new(255/255,255/255,126/255),Color3.new(255/255,255/255,126/255))
  2163. StoneTrail.LightEmission = 1
  2164.         StoneTrail.FaceCamera=true
  2165.        
  2166.        
  2167.        
  2168.        
  2169.        
  2170.         game:GetService("Debris"):AddItem(Stone, 30)
  2171.        
  2172. --      local tilt=angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5)))
  2173.  
  2174.     Stone.CFrame=CFpos
  2175.     local hitthing=nil
  2176.     Swait()
  2177. for i = 0,100 do
  2178.     if Stone.Parent ~= Effects then
  2179.         hitthing = workspace
  2180.     end
  2181.     if Dampingforce < .99 then
  2182.     stoptime = stoptime + 1/10
  2183.     elseif Dampingforce > .99 then
  2184.     Dampingforce=.99
  2185.     end
  2186.     Dampingforce = stoptime/DForce
  2187.  
  2188.     if hitthing == nil then
  2189.    
  2190.    
  2191.     local Lookray,Lookpos = rayCast(Stone.Position, Stone.CFrame.lookVector, ((speed-(speed*Dampingforce))+-grav*Dampingforce ), Character)
  2192.         local spikep1=Stone.Position-Stone.CFrame.lookVector*-((speed-(speed*Dampingforce))+-grav*Dampingforce )
  2193.             local spikep2=Lookpos
  2194.             if Lookray ~= nil then
  2195.         hitthing=Lookray
  2196.         coroutine.resume(coroutine.create(function()
  2197.         onTouch(Stone,5,Lookray) end))
  2198. SetTween(Stone,{CFrame=cn(spikep2,spikep1)*angles(0,math.rad(180),0)},"Back","Out",.05)
  2199. SetTween(Stone,{Transparency=1},"Elastic","InOut",1.5) 
  2200. break
  2201.         else
  2202.        
  2203. SetTween(Stone,{CFrame=   cf(Stone.CFrame.p,  (Stone.CFrame*cn(0,0,-speed)).p+Vector3.new(0,-grav*Dampingforce,0)  )*cn(0,0,-(speed-(speed*Dampingforce))+-grav*Dampingforce    )         },"Linear","InOut",.05)
  2204.            
  2205.     end
  2206. --print(-(speed-(speed*Dampingforce)) )
  2207.  
  2208. Swait()
  2209. end    
  2210. end
  2211.  
  2212.  
  2213. wait(2)
  2214. Stone:Destroy()
  2215.  
  2216. end))  
  2217. end
  2218.  
  2219.  
  2220. function Aim()
  2221.     attack=true
  2222.    
  2223.         local dahspeed=1
  2224. if attack == true and mememode == true then
  2225.     dahspeed=5
  2226. end
  2227.    
  2228.     local rc1save = Root.C1
  2229.    
  2230.     for i = 1,2,0.1*dahspeed do
  2231.        
  2232.             local mglook = cf()
  2233. local Ccf=LowerTorso.CFrame
  2234. local dir = cf(RootPart.CFrame.p,Target.p).lookVector
  2235. --warn(Humanoid.MoveDirection*RootPart.CFrame.lookVector)
  2236. local Walktest1 = Humanoid.MoveDirection*Ccf.LookVector
  2237. local Walktest2 = Humanoid.MoveDirection*Ccf.RightVector
  2238. --warn(Walktest1.Z.."/"..Walktest1.X)
  2239. --warn(Walktest2.Z.."/"..Walktest2.X)
  2240. local fb2 = Walktest1.X+Walktest1.Z+Walktest1.Y
  2241. local rl2 = Walktest2.X+Walktest2.Z+Walktest2.Y
  2242.  
  2243.  
  2244.  
  2245.                 change = (0.60*1.5)
  2246.  
  2247. local newpos=vt(Target.p.X,UpperTorso.Position.Y,Target.p.Z)
  2248.  
  2249. local cff=cf(UpperTorso.CFrame.p,newpos)*angles(0,0,0)
  2250. local x,y,z=RootPart.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  2251.    
  2252.  
  2253. ---------
  2254. --RightArm
  2255.  
  2256. SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(-.1,0,-.3)*angles(math.rad((dir.Y*45)+(26+4*math.cos(sine/16))- 0 * math.cos(sine / 64 +.4* math.cos(sine / 16))),math.rad(80),math.rad(-30))},"Quad","Out",.2)
  2257. SetTween(RightElbow,{C0=GC0(RightElbow)*angles(math.rad(75+0*math.cos(sine/16)),math.rad(00),math.rad(0))},"Quad","Out",.2)
  2258.  
  2259. ---------
  2260. --LeftArm
  2261.  
  2262. SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*angles(math.rad((dir.Y*45)+(26+4*math.cos(sine/16))+ 0 * math.cos(sine / 64 +.4* math.cos(sine / 16))),math.rad(0),math.rad(-20))},"Quad","Out",.2)
  2263. SetTween(LeftElbow,{C0=GC0(LeftElbow)*angles(math.rad(40+0*math.cos(sine/16)),math.rad(0),math.rad(0))},"Quad","Out",.2)
  2264.    
  2265.  
  2266.  
  2267.  
  2268.  
  2269.  
  2270.  
  2271.  
  2272. if Anim == "Walk" or Anim == "Run"  then
  2273.  
  2274. local speed = 0.7
  2275.  
  2276.         change = 2.8*speed
  2277.     Humanoid.JumpPower = 70
  2278.     Humanoid.WalkSpeed=16*speed
  2279. --Head,Torso   
  2280. SetTween(Root,{C1=GC1(Root)* CFrame.Angles(-x,-y,-z)*euler(0,0,0)*cf(0,0,0),C0=GC0(Root)*cf(0,-.01-.01*math.cos(sine/16),0)*angles(math.rad(0),math.rad(-45+(-35-(vt(0,0,0)-dir*vt(0,1,0)).magnitude*((22.5)/2))),math.rad(0))*cf(.1*rl2*math.cos(sine/4),.1*math.sin(sine/4),.1*fb2*math.cos(sine/4))*angles(math.rad((-fb2*10)+(fb2*5)*math.sin(sine/4) ),math.rad(-0*math.cos(sine/8) ),math.rad( ((-rl2*5)+(rl2*5)*math.sin(sine/4))-5*fb2*math.cos(sine/8)   ))},"Quad","Out",.05)
  2281. SetTween(Waist,{C0=GC0(Waist)*angles(math.rad((0)+3*math.sin(sine/16)),math.rad(0),math.rad(-dir.Y*45))*cf(0,0,0)*angles(math.rad((fb2*10)-(fb2*5)*math.sin(sine/4)),math.rad(0*math.cos(sine/8)),math.rad(((rl2*5)-(rl2*5)*math.sin(sine/4))+5*fb2*math.cos(sine/8)   ))},"Quad","Out",.05)
  2282. SetTween(Neck,{C0=GC0(Neck)*angles(math.rad(-10+6*math.cos(sine/16)),math.rad(90),math.rad(0))*cf(0,0,0)*angles(math.rad((fb2*5)-(fb2*2)*math.sin(sine/4) ),math.rad((10*math.cos(sine/8))+(-0*rl2)),math.rad((rl2*2)-(rl2*2)*math.sin(sine/4)))},"Quad","Out",.05)
  2283.  
  2284.  
  2285.  
  2286.  
  2287.  
  2288.    
  2289.    
  2290. ---------
  2291. --RightLeg
  2292. SetTween(RightHip,{C0=GC0(RightHip)*cf(-0.1*rl2*math.sin(sine/8),0,0.1*fb2*math.sin(sine/8))*angles(math.rad(( (1*20)-(1*19)*math.cos(sine/8) )+(-fb2*25)*math.sin(sine/8) ),math.rad(10*math.cos(sine/8)),math.rad(((-rl2*25)*math.sin(sine/8) )+rl2*0))},"Quad","Out",.1)
  2293. SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0,0,0)*angles(math.rad( -40+(1*40)*math.cos(sine/8)   ),math.rad(0),math.rad(rl2*0))},"Quad","Out",.1)
  2294. SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(0,0,0)*angles(math.rad((fb2*10)*math.cos(sine/8)  ),math.rad(0),math.rad(-(rl2*10)*math.cos(sine/8)  ))},"Quad","Out",.1)
  2295. ---------
  2296. --LeftLeg
  2297. SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0.1*rl2*math.sin(sine/8),0,-0.1*fb2*math.sin(sine/8))*angles(math.rad( ((1*20)+(1*19)*math.cos(sine/8) )-(-fb2*25)*math.sin(sine/8) ),math.rad(10*math.cos(sine/8)),math.rad((-(-rl2*25)*math.sin(sine/8) )+rl2*0))},"Quad","Out",.1)
  2298. SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0,0,0)*angles(math.rad( -40-(1*40)*math.cos(sine/8)   ),math.rad(0),math.rad(rl2*0))},"Quad","Out",.1)
  2299. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0,0,0)*angles(math.rad(-(fb2*10)*math.cos(sine/8)   ),math.rad(0),math.rad((rl2*10)*math.cos(sine/8)  ))},"Quad","Out",.1)
  2300. ---------  
  2301.    
  2302. else
  2303.     --Head,Torso               
  2304. SetTween(Root,{C1 = GC1(Root)* CFrame.Angles(-x,-y,-z)*euler(0,0,0)*cf(0,0,0),C0=GC0(Root)*cf(0,-.01-.01*math.cos(sine/16),0)*angles(math.rad(0),math.rad(-35-(vt(0,0,0)-dir*vt(0,1,0)).magnitude*((22.5)/2)),math.rad(0))},"Quad","Out",.1)
  2305. SetTween(Waist,{C0=GC0(Waist)*angles(math.rad((dir.Y*45)+3*math.sin(sine/16)),math.rad(-45),math.rad(0))},"Quad","Out",.1)
  2306. SetTween(Neck,{C0=GC0(Neck)*angles(math.rad(-10+6*math.cos(sine/16)),math.rad(90),math.rad(0))},"Quad","Out",.3)
  2307.  
  2308. ---------
  2309. --RightLeg
  2310. SetTween(RightHip,{C0=GC0(RightHip)*angles(math.rad(6+3*math.cos(sine/16)),math.rad(-30),math.rad(1.5+1.5*math.cos(sine/16)))},"Quad","Out",.2)
  2311. SetTween(RightKnee,{C0=GC0(RightKnee)*angles(math.rad(-12-6*math.cos(sine/16)),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2312. SetTween(RightAnkle,{C0=GC0(RightAnkle)*angles(math.rad(6+3*math.cos(sine/16)),math.rad(0),math.rad(1.5+1.5*math.cos(sine/16)))},"Quad","Out",.2)
  2313. ---------
  2314. --LeftLeg
  2315. SetTween(LeftHip,{C0=GC0(LeftHip)*angles(math.rad(6+3*math.cos(sine/16)),math.rad(10),math.rad(-.5-.5*math.cos(sine/16)))},"Quad","Out",.2)
  2316. SetTween(LeftKnee,{C0=GC0(LeftKnee)*angles(math.rad(-12-6*math.cos(sine/16)),math.rad(0),math.rad(0))},"Quad","Out",.2)
  2317. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*angles(math.rad(6+3*math.cos(sine/16)),math.rad(0),math.rad(-.5-.5*math.cos(sine/16)))},"Quad","Out",.2)
  2318. ---------
  2319.     Humanoid.JumpPower = 70
  2320.     Humanoid.WalkSpeed=16*.6
  2321.     end
  2322.  
  2323.  
  2324.  
  2325.  
  2326.  
  2327.  
  2328.  
  2329.  
  2330.  
  2331.  
  2332.  
  2333.  
  2334.             SetTween(LeftWrist,{C0=GC0(LeftWrist)*cf(.3,-.15,-.25)*angles(math.rad(0),math.rad(90),math.rad(90))},"Quad","Out",.2)
  2335.    
  2336.     Swait()
  2337.        
  2338.     end
  2339.  
  2340. local sw = Character:FindFirstChild("Shotgun")
  2341.     coroutine.resume(coroutine.create(function()
  2342. local effect=sw.Flame["1FlashFX[Smoke]"]:Clone() effect.Name = "EFF"
  2343. effect.Parent = sw.Flame
  2344. effect:Emit(25)
  2345. game:GetService("Debris"):AddItem(effect,5)
  2346.     end))
  2347.         coroutine.resume(coroutine.create(function()
  2348. local effect=sw.Flame["FlashFX[Flash]"]:Clone() effect.Name = "EFF"
  2349. effect.Parent = sw.Flame
  2350. effect:Emit(25)
  2351. game:GetService("Debris"):AddItem(effect,5)
  2352.         end))
  2353.                 coroutine.resume(coroutine.create(function()
  2354. local effect=sw.Flame["FlashFX[Light]"]:Clone() effect.Name = "EFF"
  2355. effect.Parent = sw.Flame
  2356. effect.Enabled = true
  2357. game:GetService("Debris"):AddItem(effect,.05)
  2358.                 end))
  2359.                 coroutine.resume(coroutine.create(function()
  2360. local effect=sw.Handle["Fire"]
  2361. effect:Play()
  2362. --game:GetService("Debris"):AddItem(effect,.1)
  2363. end))              
  2364.     for i = 1,6 do
  2365. SpawnBullet(sw.Flame.CFrame*angles(math.rad(90+math.random(-90,90)/30),math.rad(math.random(-90,90)/30),math.rad(math.random(-90,90)/30)),35*(math.random(1000,1100)/1000),15*(math.random(100,110)/100),2.5)
  2366. end
  2367.  
  2368.     for i = 1,1.25,0.1*dahspeed do
  2369.        
  2370.             local mglook = cf()
  2371.    
  2372. local Ccf=LowerTorso.CFrame
  2373. local dir = cf(RootPart.CFrame.p,Target.p).lookVector
  2374. --warn(Humanoid.MoveDirection*RootPart.CFrame.lookVector)
  2375. local Walktest1 = Humanoid.MoveDirection*Ccf.LookVector
  2376. local Walktest2 = Humanoid.MoveDirection*Ccf.RightVector
  2377. --warn(Walktest1.Z.."/"..Walktest1.X)
  2378. --warn(Walktest2.Z.."/"..Walktest2.X)
  2379. local fb2 = Walktest1.X+Walktest1.Z+Walktest1.Y
  2380. local rl2 = Walktest2.X+Walktest2.Z+Walktest2.Y
  2381.  
  2382.                 change = (0.60*1.5)
  2383.  
  2384. local newpos=vt(Target.p.X,UpperTorso.Position.Y,Target.p.Z)
  2385.  
  2386. local cff=cf(UpperTorso.CFrame.p,newpos)*angles(0,0,0)
  2387. local x,y,z=RootPart.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  2388.    
  2389.  
  2390. ---------
  2391. --RightArm
  2392.  
  2393. SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(-.1,0,-.3)*angles(math.rad(-5+(dir.Y*45)+(26+4*math.cos(sine/16))- 0 * math.cos(sine / 64 +.4* math.cos(sine / 16))),math.rad(80),math.rad(-30))},"Quad","Out",.1)
  2394. SetTween(RightElbow,{C0=GC0(RightElbow)*angles(math.rad(10+75+0*math.cos(sine/16)),math.rad(00),math.rad(0))},"Quad","Out",.1)
  2395.  
  2396. ---------
  2397. --LeftArm
  2398.  
  2399. SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*angles(math.rad((dir.Y*45)+(46+4*math.cos(sine/16))+ 0 * math.cos(sine / 64 +.4* math.cos(sine / 16))),math.rad(0),math.rad(-20))},"Quad","Out",.1)
  2400. SetTween(LeftElbow,{C0=GC0(LeftElbow)*angles(math.rad(40+0*math.cos(sine/16)),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2401.    
  2402.  
  2403.  
  2404.  
  2405.  
  2406.  
  2407. if Anim == "Walk" or Anim == "Run" then
  2408.  
  2409. local speed = 0.7
  2410.  
  2411.         change = 2.8*speed
  2412.     Humanoid.JumpPower = 70
  2413.     Humanoid.WalkSpeed=16*speed
  2414. --Head,Torso   
  2415. SetTween(Root,{C1=GC1(Root)* CFrame.Angles(-x,-y,-z)*euler(0,0,0)*cf(0,0,0),C0=GC0(Root)*cf(0,-.01-.01*math.cos(sine/16),0)*angles(math.rad(0),math.rad(-45+(-35-(vt(0,0,0)-dir*vt(0,1,0)).magnitude*((22.5)/2))),math.rad(0))*cf(.1*rl2*math.cos(sine/4),.1*math.sin(sine/4),.1*fb2*math.cos(sine/4))*angles(math.rad((-fb2*10)+(fb2*5)*math.sin(sine/4) ),math.rad(-0*math.cos(sine/8) ),math.rad( ((-rl2*5)+(rl2*5)*math.sin(sine/4))-5*fb2*math.cos(sine/8)   ))},"Quad","Out",.05)
  2416. SetTween(Waist,{C0=GC0(Waist)*angles(math.rad((0)+3*math.sin(sine/16)),math.rad(0),math.rad(-dir.Y*45))*cf(0,0,0)*angles(math.rad((fb2*10)-(fb2*5)*math.sin(sine/4)),math.rad(0*math.cos(sine/8)),math.rad(((rl2*5)-(rl2*5)*math.sin(sine/4))+5*fb2*math.cos(sine/8)   ))},"Quad","Out",.05)
  2417. SetTween(Neck,{C0=GC0(Neck)*angles(math.rad(-10+6*math.cos(sine/16)),math.rad(90),math.rad(0))*cf(0,0,0)*angles(math.rad((fb2*5)-(fb2*2)*math.sin(sine/4) ),math.rad((10*math.cos(sine/8))+(-0*rl2)),math.rad((rl2*2)-(rl2*2)*math.sin(sine/4)))},"Quad","Out",.05)
  2418.  
  2419.  
  2420.  
  2421.  
  2422.  
  2423.    
  2424.    
  2425. ---------
  2426. --RightLeg
  2427. SetTween(RightHip,{C0=GC0(RightHip)*cf(-0.1*rl2*math.sin(sine/8),0,0.1*fb2*math.sin(sine/8))*angles(math.rad(( (1*20)-(1*19)*math.cos(sine/8) )+(-fb2*25)*math.sin(sine/8) ),math.rad(10*math.cos(sine/8)),math.rad(((-rl2*25)*math.sin(sine/8) )+rl2*0))},"Quad","Out",.1)
  2428. SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0,0,0)*angles(math.rad( -40+(1*40)*math.cos(sine/8)   ),math.rad(0),math.rad(rl2*0))},"Quad","Out",.1)
  2429. SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(0,0,0)*angles(math.rad((fb2*10)*math.cos(sine/8)  ),math.rad(0),math.rad(-(rl2*10)*math.cos(sine/8)  ))},"Quad","Out",.1)
  2430. ---------
  2431. --LeftLeg
  2432. SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0.1*rl2*math.sin(sine/8),0,-0.1*fb2*math.sin(sine/8))*angles(math.rad( ((1*20)+(1*19)*math.cos(sine/8) )-(-fb2*25)*math.sin(sine/8) ),math.rad(10*math.cos(sine/8)),math.rad((-(-rl2*25)*math.sin(sine/8) )+rl2*0))},"Quad","Out",.1)
  2433. SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0,0,0)*angles(math.rad( -40-(1*40)*math.cos(sine/8)   ),math.rad(0),math.rad(rl2*0))},"Quad","Out",.1)
  2434. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0,0,0)*angles(math.rad(-(fb2*10)*math.cos(sine/8)   ),math.rad(0),math.rad((rl2*10)*math.cos(sine/8)  ))},"Quad","Out",.1)
  2435. ---------  
  2436.    
  2437. else
  2438.     --Head,Torso               
  2439. SetTween(Root,{C1 = GC1(Root)* CFrame.Angles(-x,-y,-z)*euler(0,0,0)*cf(0,0,0),C0=GC0(Root)*cf(0,-.01-.01*math.cos(sine/16),0)*angles(math.rad(0),math.rad(-35-(vt(0,0,0)-dir*vt(0,1,0)).magnitude*((22.5)/2)),math.rad(0))},"Quad","Out",.1)
  2440. SetTween(Waist,{C0=GC0(Waist)*angles(math.rad((dir.Y*45)+3*math.sin(sine/16)),math.rad(-45),math.rad(0))},"Quad","Out",.1)
  2441. SetTween(Neck,{C0=GC0(Neck)*angles(math.rad(-10+6*math.cos(sine/16)),math.rad(90),math.rad(0))},"Quad","Out",.3)
  2442.  
  2443. ---------
  2444. --RightLeg
  2445. SetTween(RightHip,{C0=GC0(RightHip)*angles(math.rad(6+3*math.cos(sine/16)),math.rad(-30),math.rad(1.5+1.5*math.cos(sine/16)))},"Quad","Out",.2)
  2446. SetTween(RightKnee,{C0=GC0(RightKnee)*angles(math.rad(-12-6*math.cos(sine/16)),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2447. SetTween(RightAnkle,{C0=GC0(RightAnkle)*angles(math.rad(6+3*math.cos(sine/16)),math.rad(0),math.rad(1.5+1.5*math.cos(sine/16)))},"Quad","Out",.2)
  2448. ---------
  2449. --LeftLeg
  2450. SetTween(LeftHip,{C0=GC0(LeftHip)*angles(math.rad(6+3*math.cos(sine/16)),math.rad(10),math.rad(-.5-.5*math.cos(sine/16)))},"Quad","Out",.2)
  2451. SetTween(LeftKnee,{C0=GC0(LeftKnee)*angles(math.rad(-12-6*math.cos(sine/16)),math.rad(0),math.rad(0))},"Quad","Out",.2)
  2452. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*angles(math.rad(6+3*math.cos(sine/16)),math.rad(0),math.rad(-.5-.5*math.cos(sine/16)))},"Quad","Out",.2)
  2453. ---------
  2454.     Humanoid.JumpPower = 70
  2455.     Humanoid.WalkSpeed=16*.6
  2456.     end
  2457.  
  2458.  
  2459.  
  2460.  
  2461.  
  2462.  
  2463.  
  2464.    
  2465.  
  2466.             SetTween(LeftWrist,{C0=GC0(LeftWrist)*cf(.3,-.15,-.25)*angles(math.rad(0),math.rad(90),math.rad(90))},"Quad","Out",.2)
  2467.    
  2468.     Swait()
  2469.        
  2470.     end
  2471.    
  2472.     SetTween(Root,{C1 = GC1(Root)},"Quad","Out",.2)
  2473.  
  2474.    
  2475.     attack=false
  2476. end
  2477.  
  2478.  
  2479.  
  2480.  
  2481. function Aim2()
  2482.     attack=true
  2483.    
  2484.    
  2485.             local dahspeed=1
  2486. if attack == true and mememode == true then
  2487.     dahspeed=5
  2488. end
  2489.    
  2490.     local rc1save = Root.C1
  2491.    
  2492.     for i = 1,1.5,0.1*dahspeed do
  2493.         local sw = Character:FindFirstChild("Glock")
  2494.             local mglook = cf()
  2495. local Ccf=LowerTorso.CFrame
  2496. local dir = cf(sw.Main.CFrame.p,Target.p).lookVector
  2497. --warn(Humanoid.MoveDirection*RootPart.CFrame.lookVector)
  2498. local Walktest1 = Humanoid.MoveDirection*Ccf.LookVector
  2499. local Walktest2 = Humanoid.MoveDirection*Ccf.RightVector
  2500. --warn(Walktest1.Z.."/"..Walktest1.X)
  2501. --warn(Walktest2.Z.."/"..Walktest2.X)
  2502. local fb2 = Walktest1.X+Walktest1.Z+Walktest1.Y
  2503. local rl2 = Walktest2.X+Walktest2.Z+Walktest2.Y
  2504.  
  2505.  
  2506.  
  2507.                 change = (0.60*1.5)
  2508.  
  2509. local newpos=vt(Target.p.X,RightHand.Position.Y,Target.p.Z)
  2510.  
  2511. local cff=cf(RightHand.CFrame.p,newpos)*angles(0,0,0)
  2512. local x,y,z=RootPart.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  2513.    
  2514.  
  2515. ---------
  2516. --RightArm
  2517.  
  2518. SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(0,0,0)*angles(math.rad(45+(dir.Y*30)),math.rad(0),math.rad(0))},"Quad","Out",.15)
  2519. SetTween(RightElbow,{C0=GC0(RightElbow)*angles(math.rad(45),math.rad(0),math.rad(0))},"Quad","Out",.15)
  2520. SetTween(RightWrist,{C0=GC0(RightWrist)*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0))},"Quad","Out",.15)
  2521.  
  2522.  
  2523.  
  2524.  
  2525. SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*cf(0,0,0)*angles(math.rad(-10*fb2*math.sin(sine/8)),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2526. SetTween(LeftElbow,{C0=GC0(LeftElbow)*cf(0,0,0)*angles(math.rad(5-5*fb2*math.sin(sine/8)),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2527.  
  2528.  
  2529.  
  2530.  
  2531. if Anim == "Walk" or Anim == "Run"  then
  2532.  
  2533. local speed = 0.7
  2534.  
  2535.         change = 2.8*speed
  2536.     Humanoid.JumpPower = 70
  2537.     Humanoid.WalkSpeed=16*speed
  2538. --Head,Torso   
  2539. SetTween(Root,{C1=GC1(Root)* CFrame.Angles(-x,-y,-z)*euler(0,0,0)*cf(0,0,0),C0=GC0(Root)*cf(0,-.01-.01*math.cos(sine/16),0)*angles(math.rad(0),math.rad(45),math.rad(0))*cf(.1*rl2*math.cos(sine/4),.1*math.sin(sine/4),.1*fb2*math.cos(sine/4))*angles(math.rad((-fb2*10)+(fb2*5)*math.sin(sine/4) ),math.rad(-0*math.cos(sine/8) ),math.rad( ((-rl2*5)+(rl2*5)*math.sin(sine/4))-5*fb2*math.cos(sine/8)   ))},"Quad","Out",.05)
  2540. SetTween(Waist,{C0=GC0(Waist)*angles(math.rad((0)+3*math.sin(sine/16)),math.rad(0),math.rad(dir.Y*45))*cf(0,0,0)*angles(math.rad((fb2*10)-(fb2*5)*math.sin(sine/4)),math.rad(-45+0*math.cos(sine/8)),math.rad(((rl2*5)-(rl2*5)*math.sin(sine/4))+5*fb2*math.cos(sine/8)   ))},"Quad","Out",.05)
  2541. SetTween(Neck,{C0=GC0(Neck)*angles(math.rad((dir.Y*45)+6*math.cos(sine/16)),math.rad(0),math.rad(0))*cf(0,0,0)*angles(math.rad((fb2*5)-(fb2*2)*math.sin(sine/4) ),math.rad((10*math.cos(sine/8))+(-0*rl2)),math.rad((rl2*2)-(rl2*2)*math.sin(sine/4)))},"Quad","Out",.05)
  2542.  
  2543.  
  2544.  
  2545.  
  2546.  
  2547.    
  2548.    
  2549. ---------
  2550. --RightLeg
  2551. SetTween(RightHip,{C0=GC0(RightHip)*cf(-0.1*rl2*math.sin(sine/8),0,0.1*fb2*math.sin(sine/8))*angles(math.rad(( (1*20)-(1*19)*math.cos(sine/8) )+(-fb2*25)*math.sin(sine/8) ),math.rad(10*math.cos(sine/8)),math.rad(((-rl2*25)*math.sin(sine/8) )+rl2*0))},"Quad","Out",.1)
  2552. SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0,0,0)*angles(math.rad( -40+(1*40)*math.cos(sine/8)   ),math.rad(0),math.rad(rl2*0))},"Quad","Out",.1)
  2553. SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(0,0,0)*angles(math.rad((fb2*10)*math.cos(sine/8)  ),math.rad(0),math.rad(-(rl2*10)*math.cos(sine/8)  ))},"Quad","Out",.1)
  2554. ---------
  2555. --LeftLeg
  2556. SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0.1*rl2*math.sin(sine/8),0,-0.1*fb2*math.sin(sine/8))*angles(math.rad( ((1*20)+(1*19)*math.cos(sine/8) )-(-fb2*25)*math.sin(sine/8) ),math.rad(10*math.cos(sine/8)),math.rad((-(-rl2*25)*math.sin(sine/8) )+rl2*0))},"Quad","Out",.1)
  2557. SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0,0,0)*angles(math.rad( -40-(1*40)*math.cos(sine/8)   ),math.rad(0),math.rad(rl2*0))},"Quad","Out",.1)
  2558. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0,0,0)*angles(math.rad(-(fb2*10)*math.cos(sine/8)   ),math.rad(0),math.rad((rl2*10)*math.cos(sine/8)  ))},"Quad","Out",.1)
  2559. ---------  
  2560.    
  2561. else
  2562.     --Head,Torso               
  2563. SetTween(Root,{C1 = GC1(Root)* CFrame.Angles(-x,-y,-z)*euler(0,0,0)*cf(0,0,0),C0=GC0(Root)*cf(0,-.01-.01*math.cos(sine/16),0)*angles(math.rad(0),math.rad(45),math.rad(0))},"Quad","Out",.1)
  2564. SetTween(Waist,{C0=GC0(Waist)*angles(math.rad((dir.Y*45)+3*math.sin(sine/16)),math.rad(-45),math.rad((dir.Y*45)))},"Quad","Out",.1)
  2565. SetTween(Neck,{C0=GC0(Neck)*angles(math.rad((dir.Y*45)+6*math.cos(sine/16)),math.rad(-0),math.rad(0))},"Quad","Out",.3)
  2566.  
  2567. ---------
  2568. --RightLeg
  2569. SetTween(RightHip,{C0=GC0(RightHip)*angles(math.rad(6+3*math.cos(sine/16)),math.rad(-30),math.rad(1.5+1.5*math.cos(sine/16)))},"Quad","Out",.2)
  2570. SetTween(RightKnee,{C0=GC0(RightKnee)*angles(math.rad(-12-6*math.cos(sine/16)),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2571. SetTween(RightAnkle,{C0=GC0(RightAnkle)*angles(math.rad(6+3*math.cos(sine/16)),math.rad(0),math.rad(1.5+1.5*math.cos(sine/16)))},"Quad","Out",.2)
  2572. ---------
  2573. --LeftLeg
  2574. SetTween(LeftHip,{C0=GC0(LeftHip)*angles(math.rad(6+3*math.cos(sine/16)),math.rad(10),math.rad(-.5-.5*math.cos(sine/16)))},"Quad","Out",.2)
  2575. SetTween(LeftKnee,{C0=GC0(LeftKnee)*angles(math.rad(-12-6*math.cos(sine/16)),math.rad(0),math.rad(0))},"Quad","Out",.2)
  2576. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*angles(math.rad(6+3*math.cos(sine/16)),math.rad(0),math.rad(-.5-.5*math.cos(sine/16)))},"Quad","Out",.2)
  2577. ---------
  2578.     Humanoid.JumpPower = 70
  2579.     Humanoid.WalkSpeed=16*.6
  2580.     end
  2581.  
  2582.  
  2583.  
  2584.  
  2585.  
  2586.  
  2587.  
  2588.  
  2589.  
  2590.  
  2591.  
  2592.  
  2593.     Swait()
  2594.        
  2595.     end
  2596.  
  2597. --local sw = Character:FindFirstChild("Shotgun")
  2598.            
  2599.  
  2600. local sw = Character:FindFirstChild("Glock")
  2601.     coroutine.resume(coroutine.create(function()
  2602. local effect=sw.Main["1FlashFX[Smoke]"]:Clone() effect.Name = "EFF"
  2603. effect.Parent = sw.Main
  2604. effect:Emit(25)
  2605. game:GetService("Debris"):AddItem(effect,5)
  2606.     end))
  2607.         coroutine.resume(coroutine.create(function()
  2608. local effect=sw.Main["FlashFX[Flash]"]:Clone() effect.Name = "EFF"
  2609. effect.Parent = sw.Main
  2610. effect:Emit(25)
  2611. game:GetService("Debris"):AddItem(effect,5)
  2612.         end))
  2613.                 coroutine.resume(coroutine.create(function()
  2614. local effect=sw.Main["FlashFX[Light]"]:Clone() effect.Name = "EFF"
  2615. effect.Parent = sw.Main
  2616. effect.Enabled = true
  2617. game:GetService("Debris"):AddItem(effect,.05)
  2618.                 end))
  2619.                 coroutine.resume(coroutine.create(function()
  2620. local effect=sw.Flame["Fire"]
  2621. effect:Play()
  2622. --game:GetService("Debris"):AddItem(effect,.1)
  2623. end))              
  2624.  
  2625. SpawnBullet(sw.Main.CFrame*angles(math.rad(90+math.random(-90,90)/100),math.rad(math.random(-90,90)/100),math.rad(math.random(-90,90)/100)),35*(math.random(1080,1100)/1000),15*(math.random(108,110)/100),2.5)
  2626.  
  2627.     for i = 1,1.25,0.1*dahspeed do
  2628.        
  2629.             local mglook = cf()
  2630. local Ccf=LowerTorso.CFrame
  2631. local dir = cf(RightHand.CFrame.p,Target.p).lookVector
  2632. --warn(Humanoid.MoveDirection*RootPart.CFrame.lookVector)
  2633. local Walktest1 = Humanoid.MoveDirection*Ccf.LookVector
  2634. local Walktest2 = Humanoid.MoveDirection*Ccf.RightVector
  2635. --warn(Walktest1.Z.."/"..Walktest1.X)
  2636. --warn(Walktest2.Z.."/"..Walktest2.X)
  2637. local fb2 = Walktest1.X+Walktest1.Z+Walktest1.Y
  2638. local rl2 = Walktest2.X+Walktest2.Z+Walktest2.Y
  2639.  
  2640.  
  2641.  
  2642.                 change = (0.60*1.5)
  2643.  
  2644. local newpos=vt(Target.p.X,RightHand.Position.Y,Target.p.Z)
  2645.  
  2646. local cff=cf(RightHand.CFrame.p,newpos)*angles(0,0,0)
  2647. local x,y,z=RootPart.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  2648.    
  2649.  
  2650. ---------
  2651. --RightArm
  2652.  
  2653. SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(0,0,0)*angles(math.rad(15+(dir.Y*45)),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2654. SetTween(RightElbow,{C0=GC0(RightElbow)*angles(math.rad(75),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2655. SetTween(RightWrist,{C0=GC0(RightWrist)*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2656.  
  2657.  
  2658.  
  2659.  
  2660. SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*cf(0,0,0)*angles(math.rad(-10*fb2*math.sin(sine/8)),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2661. SetTween(LeftElbow,{C0=GC0(LeftElbow)*cf(0,0,0)*angles(math.rad(5-5*fb2*math.sin(sine/8)),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2662.  
  2663.  
  2664.  
  2665.  
  2666. if Anim == "Walk" or Anim == "Run"  then
  2667.  
  2668. local speed = 0.7
  2669.  
  2670.         change = 2.8*speed
  2671.     Humanoid.JumpPower = 70
  2672.     Humanoid.WalkSpeed=16*speed
  2673. --Head,Torso   
  2674. SetTween(Root,{C1=GC1(Root)* CFrame.Angles(-x,-y,-z)*euler(0,0,0)*cf(0,0,0),C0=GC0(Root)*cf(0,-.01-.01*math.cos(sine/16),0)*angles(math.rad(0),math.rad(45),math.rad(0))*cf(.1*rl2*math.cos(sine/4),.1*math.sin(sine/4),.1*fb2*math.cos(sine/4))*angles(math.rad((-fb2*10)+(fb2*5)*math.sin(sine/4) ),math.rad(-0*math.cos(sine/8) ),math.rad( ((-rl2*5)+(rl2*5)*math.sin(sine/4))-5*fb2*math.cos(sine/8)   ))},"Quad","Out",.05)
  2675. SetTween(Waist,{C0=GC0(Waist)*angles(math.rad((0)+3*math.sin(sine/16)),math.rad(0),math.rad(dir.Y*45))*cf(0,0,0)*angles(math.rad((fb2*10)-(fb2*5)*math.sin(sine/4)),math.rad(-45+0*math.cos(sine/8)),math.rad(((rl2*5)-(rl2*5)*math.sin(sine/4))+5*fb2*math.cos(sine/8)   ))},"Quad","Out",.05)
  2676. SetTween(Neck,{C0=GC0(Neck)*angles(math.rad((dir.Y*45)+6*math.cos(sine/16)),math.rad(0),math.rad(0))*cf(0,0,0)*angles(math.rad((fb2*5)-(fb2*2)*math.sin(sine/4) ),math.rad((10*math.cos(sine/8))+(-0*rl2)),math.rad((rl2*2)-(rl2*2)*math.sin(sine/4)))},"Quad","Out",.05)
  2677.  
  2678.  
  2679.  
  2680.  
  2681.  
  2682.    
  2683.    
  2684. ---------
  2685. --RightLeg
  2686. SetTween(RightHip,{C0=GC0(RightHip)*cf(-0.1*rl2*math.sin(sine/8),0,0.1*fb2*math.sin(sine/8))*angles(math.rad(( (1*20)-(1*19)*math.cos(sine/8) )+(-fb2*25)*math.sin(sine/8) ),math.rad(10*math.cos(sine/8)),math.rad(((-rl2*25)*math.sin(sine/8) )+rl2*0))},"Quad","Out",.1)
  2687. SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0,0,0)*angles(math.rad( -40+(1*40)*math.cos(sine/8)   ),math.rad(0),math.rad(rl2*0))},"Quad","Out",.1)
  2688. SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(0,0,0)*angles(math.rad((fb2*10)*math.cos(sine/8)  ),math.rad(0),math.rad(-(rl2*10)*math.cos(sine/8)  ))},"Quad","Out",.1)
  2689. ---------
  2690. --LeftLeg
  2691. SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0.1*rl2*math.sin(sine/8),0,-0.1*fb2*math.sin(sine/8))*angles(math.rad( ((1*20)+(1*19)*math.cos(sine/8) )-(-fb2*25)*math.sin(sine/8) ),math.rad(10*math.cos(sine/8)),math.rad((-(-rl2*25)*math.sin(sine/8) )+rl2*0))},"Quad","Out",.1)
  2692. SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0,0,0)*angles(math.rad( -40-(1*40)*math.cos(sine/8)   ),math.rad(0),math.rad(rl2*0))},"Quad","Out",.1)
  2693. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0,0,0)*angles(math.rad(-(fb2*10)*math.cos(sine/8)   ),math.rad(0),math.rad((rl2*10)*math.cos(sine/8)  ))},"Quad","Out",.1)
  2694. ---------  
  2695.    
  2696. else
  2697.     --Head,Torso               
  2698. SetTween(Root,{C1 = GC1(Root)* CFrame.Angles(-x,-y,-z)*euler(0,0,0)*cf(0,0,0),C0=GC0(Root)*cf(0,-.01-.01*math.cos(sine/16),0)*angles(math.rad(0),math.rad(45),math.rad(0))},"Quad","Out",.1)
  2699. SetTween(Waist,{C0=GC0(Waist)*angles(math.rad((dir.Y*45)+3*math.sin(sine/16)),math.rad(-45),math.rad((dir.Y*45)))},"Quad","Out",.1)
  2700. SetTween(Neck,{C0=GC0(Neck)*angles(math.rad((dir.Y*45)+6*math.cos(sine/16)),math.rad(-0),math.rad(0))},"Quad","Out",.3)
  2701.  
  2702. ---------
  2703. --RightLeg
  2704. SetTween(RightHip,{C0=GC0(RightHip)*angles(math.rad(6+3*math.cos(sine/16)),math.rad(-30),math.rad(1.5+1.5*math.cos(sine/16)))},"Quad","Out",.2)
  2705. SetTween(RightKnee,{C0=GC0(RightKnee)*angles(math.rad(-12-6*math.cos(sine/16)),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2706. SetTween(RightAnkle,{C0=GC0(RightAnkle)*angles(math.rad(6+3*math.cos(sine/16)),math.rad(0),math.rad(1.5+1.5*math.cos(sine/16)))},"Quad","Out",.2)
  2707. ---------
  2708. --LeftLeg
  2709. SetTween(LeftHip,{C0=GC0(LeftHip)*angles(math.rad(6+3*math.cos(sine/16)),math.rad(10),math.rad(-.5-.5*math.cos(sine/16)))},"Quad","Out",.2)
  2710. SetTween(LeftKnee,{C0=GC0(LeftKnee)*angles(math.rad(-12-6*math.cos(sine/16)),math.rad(0),math.rad(0))},"Quad","Out",.2)
  2711. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*angles(math.rad(6+3*math.cos(sine/16)),math.rad(0),math.rad(-.5-.5*math.cos(sine/16)))},"Quad","Out",.2)
  2712. ---------
  2713.     Humanoid.JumpPower = 70
  2714.     Humanoid.WalkSpeed=16*.6
  2715.     end
  2716.  
  2717.  
  2718.  
  2719.  
  2720.  
  2721.  
  2722.  
  2723.  
  2724.  
  2725.  
  2726.     Swait()
  2727.        
  2728.     end
  2729.  
  2730.  
  2731.     SetTween(Root,{C1 = GC1(Root)},"Quad","Out",.2)
  2732.  
  2733.    
  2734.     attack=false
  2735. end
  2736.  
  2737.  
  2738.  
  2739.  
  2740.  
  2741.  
  2742. function Aim3()
  2743.     attack=true
  2744.    
  2745.    
  2746.    
  2747.     local rc1save = Root.C1
  2748.  
  2749.     for i = 1,1.1,0.1 do
  2750.        
  2751.             local mglook = cf()
  2752. local Ccf=LowerTorso.CFrame
  2753. local dir = cf(RootPart.CFrame.p,Target.p).lookVector
  2754. --warn(Humanoid.MoveDirection*RootPart.CFrame.lookVector)
  2755. local Walktest1 = Humanoid.MoveDirection*Ccf.LookVector
  2756. local Walktest2 = Humanoid.MoveDirection*Ccf.RightVector
  2757. --warn(Walktest1.Z.."/"..Walktest1.X)
  2758. --warn(Walktest2.Z.."/"..Walktest2.X)
  2759. local fb2 = Walktest1.X+Walktest1.Z+Walktest1.Y
  2760. local rl2 = Walktest2.X+Walktest2.Z+Walktest2.Y
  2761.  
  2762.  
  2763.  
  2764.                 change = (0.60*1.5)
  2765.  
  2766. local newpos=vt(Target.p.X,UpperTorso.Position.Y,Target.p.Z)
  2767.  
  2768. local cff=cf(UpperTorso.CFrame.p,newpos)*angles(0,0,0)
  2769. local x,y,z=RootPart.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  2770.    
  2771.  
  2772. ---------
  2773. --RightArm
  2774.  
  2775. SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(-.1,0,-.3)*angles(math.rad((dir.Y*45)+(26+1*math.cos(sine/16))- 0 * math.cos(sine / 64 +.4* math.cos(sine / 16))),math.rad(80),math.rad(-30))},"Quad","Out",.2)
  2776. SetTween(RightElbow,{C0=GC0(RightElbow)*angles(math.rad(55+0*math.cos(sine/16)),math.rad(00),math.rad(0))},"Quad","Out",.2)
  2777.  
  2778. ---------
  2779. --LeftArm
  2780.  
  2781. SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*angles(math.rad((dir.Y*45)+(15+1*math.cos(sine/16))+ 0 * math.cos(sine / 64 +.4* math.cos(sine / 16))),math.rad(0),math.rad(-10))},"Quad","Out",.2)
  2782. SetTween(LeftElbow,{C0=GC0(LeftElbow)*angles(math.rad(0+0*math.cos(sine/16)),math.rad(0),math.rad(0))},"Quad","Out",.2)
  2783.    
  2784.  
  2785.  
  2786.  
  2787.  
  2788.  
  2789.  
  2790.  
  2791. if Anim == "Walk" or Anim == "Run"  then
  2792.  
  2793. local speed = 0.7
  2794.  
  2795.         change = 2.8*speed
  2796.     Humanoid.JumpPower = 70
  2797.     Humanoid.WalkSpeed=16*speed
  2798. --Head,Torso   
  2799. SetTween(Root,{C1=GC1(Root)* CFrame.Angles(-x,-y,-z)*euler(0,0,0)*cf(0,0,0),C0=GC0(Root)*cf(0,-.01-.01*math.cos(sine/16),0)*angles(math.rad(0),math.rad(-45+(-35-(vt(0,0,0)-dir*vt(0,1,0)).magnitude*((22.5)/2))),math.rad(0))*cf(.1*rl2*math.cos(sine/4),.1*math.sin(sine/4),.1*fb2*math.cos(sine/4))*angles(math.rad((-fb2*10)+(fb2*5)*math.sin(sine/4) ),math.rad(-0*math.cos(sine/8) ),math.rad( ((-rl2*5)+(rl2*5)*math.sin(sine/4))-5*fb2*math.cos(sine/8)   ))},"Quad","Out",.05)
  2800. SetTween(Waist,{C0=GC0(Waist)*angles(math.rad((0)+3*math.sin(sine/16)),math.rad(0),math.rad(-dir.Y*45))*cf(0,0,0)*angles(math.rad((fb2*10)-(fb2*5)*math.sin(sine/4)),math.rad(0*math.cos(sine/8)),math.rad(((rl2*5)-(rl2*5)*math.sin(sine/4))+5*fb2*math.cos(sine/8)   ))},"Quad","Out",.05)
  2801. SetTween(Neck,{C0=GC0(Neck)*angles(math.rad(-10+6*math.cos(sine/16)),math.rad(90),math.rad(0))*cf(0,0,0)*angles(math.rad((fb2*5)-(fb2*2)*math.sin(sine/4) ),math.rad((10*math.cos(sine/8))+(-0*rl2)),math.rad((rl2*2)-(rl2*2)*math.sin(sine/4)))},"Quad","Out",.05)
  2802.  
  2803.  
  2804.  
  2805.  
  2806.  
  2807.    
  2808.    
  2809. ---------
  2810. --RightLeg
  2811. SetTween(RightHip,{C0=GC0(RightHip)*cf(-0.1*rl2*math.sin(sine/8),0,0.1*fb2*math.sin(sine/8))*angles(math.rad(( (1*20)-(1*19)*math.cos(sine/8) )+(-fb2*25)*math.sin(sine/8) ),math.rad(10*math.cos(sine/8)),math.rad(((-rl2*25)*math.sin(sine/8) )+rl2*0))},"Quad","Out",.1)
  2812. SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0,0,0)*angles(math.rad( -40+(1*40)*math.cos(sine/8)   ),math.rad(0),math.rad(rl2*0))},"Quad","Out",.1)
  2813. SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(0,0,0)*angles(math.rad((fb2*10)*math.cos(sine/8)  ),math.rad(0),math.rad(-(rl2*10)*math.cos(sine/8)  ))},"Quad","Out",.1)
  2814. ---------
  2815. --LeftLeg
  2816. SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0.1*rl2*math.sin(sine/8),0,-0.1*fb2*math.sin(sine/8))*angles(math.rad( ((1*20)+(1*19)*math.cos(sine/8) )-(-fb2*25)*math.sin(sine/8) ),math.rad(10*math.cos(sine/8)),math.rad((-(-rl2*25)*math.sin(sine/8) )+rl2*0))},"Quad","Out",.1)
  2817. SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0,0,0)*angles(math.rad( -40-(1*40)*math.cos(sine/8)   ),math.rad(0),math.rad(rl2*0))},"Quad","Out",.1)
  2818. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0,0,0)*angles(math.rad(-(fb2*10)*math.cos(sine/8)   ),math.rad(0),math.rad((rl2*10)*math.cos(sine/8)  ))},"Quad","Out",.1)
  2819. ---------  
  2820.    
  2821. else
  2822.     --Head,Torso               
  2823. SetTween(Root,{C1 = GC1(Root)* CFrame.Angles(-x,-y,-z)*euler(0,0,0)*cf(0,0,0),C0=GC0(Root)*cf(0,-.01-.01*math.cos(sine/16),0)*angles(math.rad(0),math.rad(-35-(vt(0,0,0)-dir*vt(0,1,0)).magnitude*((22.5)/2)),math.rad(0))},"Quad","Out",.1)
  2824. SetTween(Waist,{C0=GC0(Waist)*angles(math.rad((dir.Y*45)+3*math.sin(sine/16)),math.rad(-45),math.rad(0))},"Quad","Out",.1)
  2825. SetTween(Neck,{C0=GC0(Neck)*angles(math.rad(-10+6*math.cos(sine/16)),math.rad(90),math.rad(0))},"Quad","Out",.3)
  2826.  
  2827. ---------
  2828. --RightLeg
  2829. SetTween(RightHip,{C0=GC0(RightHip)*angles(math.rad(6+3*math.cos(sine/16)),math.rad(-30),math.rad(1.5+1.5*math.cos(sine/16)))},"Quad","Out",.2)
  2830. SetTween(RightKnee,{C0=GC0(RightKnee)*angles(math.rad(-12-6*math.cos(sine/16)),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2831. SetTween(RightAnkle,{C0=GC0(RightAnkle)*angles(math.rad(6+3*math.cos(sine/16)),math.rad(0),math.rad(1.5+1.5*math.cos(sine/16)))},"Quad","Out",.2)
  2832. ---------
  2833. --LeftLeg
  2834. SetTween(LeftHip,{C0=GC0(LeftHip)*angles(math.rad(6+3*math.cos(sine/16)),math.rad(10),math.rad(-.5-.5*math.cos(sine/16)))},"Quad","Out",.2)
  2835. SetTween(LeftKnee,{C0=GC0(LeftKnee)*angles(math.rad(-12-6*math.cos(sine/16)),math.rad(0),math.rad(0))},"Quad","Out",.2)
  2836. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*angles(math.rad(6+3*math.cos(sine/16)),math.rad(0),math.rad(-.5-.5*math.cos(sine/16)))},"Quad","Out",.2)
  2837. ---------
  2838.     Humanoid.JumpPower = 70
  2839.     Humanoid.WalkSpeed=16*.6
  2840.     end
  2841.  
  2842.  
  2843.  
  2844.  
  2845.  
  2846.  
  2847.  
  2848.  
  2849.  
  2850.  
  2851.  
  2852.  
  2853.             SetTween(LeftWrist,{C0=GC0(LeftWrist)*cf(.3,-.15,-.25)*angles(math.rad(0),math.rad(90),math.rad(90))},"Quad","Out",.2)
  2854.    
  2855.     Swait()
  2856.        
  2857.     end
  2858.  
  2859. --local sw = Character:FindFirstChild("Shotgun")
  2860.     local sw = Character:FindFirstChild("Rifle")
  2861. SpawnBullet(sw.Main.CFrame*angles(math.rad(math.random(-90,90)/100),math.rad(90+math.random(-90,90)/100),math.rad(math.random(-90,90)/100)),100,100,0)
  2862.  
  2863.     so(1881610844,Head,.2,1)
  2864.  
  2865.     SetTween(Root,{C1 = GC1(Root)},"Quad","Out",.2)
  2866.  
  2867.    
  2868.     attack=false
  2869. end
  2870.  
  2871.  
  2872.  
  2873.  
  2874.  
  2875.  
  2876.  
  2877. function Attack6()
  2878.    
  2879.     for i, v in pairs(GatherAllInstances(Effects)) do
  2880.     if v.Name == "Zombie" then
  2881.         v.Parent:Destroy()
  2882.     end
  2883.     end
  2884. end
  2885.  
  2886.  
  2887.  
  2888.  
  2889.  
  2890.  
  2891. function AT1()
  2892.     attack=true
  2893.     local dahspeed=1
  2894. if attack == true and mememode == true then
  2895.     dahspeed=2
  2896. end
  2897.  
  2898.     local CWTSpeed = .15
  2899. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0, 0, 0, 0.992519319, -0.104598217, -0.0629647076, 0.0974458754, 0.989409626, -0.107577249, 0.0735502765, 0.100636855, 0.992200911)},"Linear","InOut",CWTSpeed)   
  2900.         SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0, 0, 0, 1, 0, 0, 0, 0.173906013, 0.984762251, 0, -0.984762251, 0.173906013)},"Linear","InOut",CWTSpeed)
  2901.         SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0, 0, 0, 0.965836942, 0.00869846437, -0.259004503, -0.206769302, 0.62835145, -0.749947309, 0.156222478, 0.777880967, 0.608683646)},"Linear","InOut",CWTSpeed) 
  2902.         SetTween(Root,{C0=GC0(Root)*cf(0.00700000022, -0.317000002, -0.0860000029, 0.982420146, -0.0698692724, 0.173115328, 0.0688617826, 0.99755609, 0.0118262805, -0.173518538, 0.00030265376, 0.984830499)},"Linear","InOut",CWTSpeed)  
  2903.         SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(-0.0340000018, -0.0340000018, -0.00899999961, 0.951181412, 0.307846695, 0.0220068246, -0.289825708, 0.915457547, -0.279174894, -0.106089376, 0.25916785, 0.959988117)},"Linear","InOut",CWTSpeed)   
  2904.         SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0, 0, 0, 1, 0, 0, 0, 0.857194245, 0.514993191, 0, -0.514993191, 0.857194245)},"Linear","InOut",CWTSpeed)  
  2905.         SetTween(RightHip,{C0=GC0(RightHip)*cf(0, 0, 0, 0.763789475, -0.492794961, -0.416867852, 0.350033879, 0.858857632, -0.373951793, 0.542311668, 0.139702573, 0.828481257)},"Linear","InOut",CWTSpeed)
  2906.         SetTween(LeftElbow,{C0=GC0(LeftElbow)*cf(0, 0, 0, 1, 0, 0, 0, 0.514813662, -0.857302129, 0, 0.857302129, 0.514813662)},"Linear","InOut",CWTSpeed)  
  2907.         SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*cf(0, 0, 0, 1, 0, 0, 0, 0.86582458, 0.500347614, 0, -0.500347614, 0.86582458)},"Linear","InOut",CWTSpeed)  
  2908.         SetTween(Waist,{C0=GC0(Waist)*cf(0, 0, 0, 0.857055545, 0.159495786, 0.489915073, -0.000526949763, 0.951148808, -0.308732271, -0.515223682, 0.264342576, 0.815271497)},"Linear","InOut",CWTSpeed)   
  2909.         SetTween(RightWrist,{C0=GC0(RightWrist)*cf(0, -0.0250000004, -0.0170000009, 0.996444106, -0.0438716076, 0.0719326586, 0.033913184, 0.990368009, 0.134242848, -0.0771292523, -0.131326035, 0.988334179)},"Linear","InOut",CWTSpeed) 
  2910.         SetTween(RightElbow,{C0=GC0(RightElbow)*cf(0, 0, 0, 1, 0, 0, 0, 0.993955195, 0.109786354, 0, -0.109786354, 0.993955195)},"Linear","InOut",CWTSpeed)
  2911.         SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(-0.230000004, 0.125, -0.165000007, 0.227841392, 0.580875397, 0.781455159, 0.727408886, 0.431969821, -0.533177674, -0.647274792, 0.689917386, -0.324113309)},"Linear","InOut",CWTSpeed)
  2912.         SetTween(Neck,{C0=GC0(Neck)*cf(0, 0, 0, 0.832597077, 0.17832616, -0.524387181, 0.0211746693, 0.935813725, 0.351858407, 0.553474307, -0.304059982, 0.775379777)},"Linear","InOut",CWTSpeed)
  2913. wait(CWTSpeed/dahspeed)
  2914. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0.0289999992, 0.00800000038, -0.00100000005, 0.964357972, -0.259644091, 0.050976418, 0.262466073, 0.963080823, -0.0598904528, -0.0335442089, 0.0711354166, 0.996902466)},"Linear","In",CWTSpeed)  
  2915.         SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0, 0, 0, 1, 0, 0, 0, 0.391068488, 0.920361578, 0, -0.920361578, 0.391068488)},"Linear","In",CWTSpeed)   
  2916.         SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0.0379999988, 0.0370000005, -0.0520000011, 0.846745908, 0.157577187, -0.508124709, -0.439758956, 0.744829834, -0.501837254, 0.299388319, 0.648381054, 0.699977577)},"Linear","In",CWTSpeed)   
  2917.         SetTween(Root,{C0=GC0(Root)*cf(0.368999988, -0.291999996, -0.150000006, 0.982420146, -0.0698692724, 0.173115328, 0.0688617826, 0.99755609, 0.0118262805, -0.173518538, 0.00030265376, 0.984830499)},"Linear","In",CWTSpeed)
  2918.         SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(-0.0350000001, -0.0350000001, -0.00899999961, 0.976106524, 0.217255712, 0.00399679318, -0.199803635, 0.904622257, -0.376479983, -0.085408017, 0.366685987, 0.926416159)},"Linear","In",CWTSpeed)
  2919.         SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0, 0, 0, 1, 0, 0, 0, 0.601828992, 0.798624992, 0, -0.798624992, 0.601828992)},"Linear","In",CWTSpeed) 
  2920.         SetTween(RightHip,{C0=GC0(RightHip)*cf(-0.0149999997, 0.0560000017, 0.0280000009, 0.973408103, -0.228938237, -0.00799352303, 0.200263634, 0.86739397, -0.455545902, 0.111225411, 0.441831261, 0.890176415)},"Linear","In",CWTSpeed)
  2921.         SetTween(LeftWrist,{C0=GC0(LeftWrist)*cf(0, 0, 0, 1, 0, 0, 0, 0.996217489, -0.0868949369, 0, 0.0868949369, 0.996217489)},"Linear","In",CWTSpeed)   
  2922.         SetTween(LeftElbow,{C0=GC0(LeftElbow)*cf(0, 0, 0, 1, 0, 0, 0, 0.86582458, -0.500347614, 0, 0.500347614, 0.86582458)},"Linear","In",CWTSpeed)   
  2923.         SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*cf(0.0340000018, 0.103, -0.0599999987, 0.989055991, 0.146439165, -0.0179933738, -0.127749249, 0.91100359, 0.39211309, 0.0738127381, -0.38552314, 0.919741094)},"Linear","In",CWTSpeed) 
  2924.         SetTween(Waist,{C0=GC0(Waist)*cf(0, 0, 0, 0.759124339, 0.159419164, 0.631122649, 0.0531710982, 0.951121628, -0.304204702, -0.648770452, 0.26448667, 0.713543057)},"Linear","In",CWTSpeed)  
  2925.         SetTween(RightWrist,{C0=GC0(RightWrist)*cf(0, -0.0250000004, -0.0170000009, 0.996463954, -0.0598641038, 0.0589579195, 0.0339382216, 0.928671896, 0.36934638, -0.0768631548, -0.366039395, 0.927419662)},"Linear","In",CWTSpeed)
  2926.         SetTween(RightElbow,{C0=GC0(RightElbow)*cf(0, 0, 0, 1, 0, 0, 0, 0.758361936, -0.651833713, 0, 0.651833713, 0.758361936)},"Linear","In",CWTSpeed)   
  2927.         SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(-0.230000004, 0.125, -0.165000007, 0.303103626, -0.211841494, 0.929113209, 0.495600045, 0.867796898, 0.0361820534, -0.813946426, 0.449501663, 0.368021041)},"Linear","In",CWTSpeed)   
  2928.         SetTween(Neck,{C0=GC0(Neck)*cf(0, 0, 0, 0.832719147, 0.196739048, -0.517564178, 0.0209070444, 0.922906041, 0.38445729, 0.553300858, -0.330965638, 0.764408231)},"Linear","In",CWTSpeed)
  2929. wait(CWTSpeed/dahspeed)
  2930. CWTSpeed = CWTSpeed * 2
  2931. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0.0289999992, 0.00800000038, -0.00100000005, 0.96440661, -0.248317376, 0.0908759162, 0.262284577, 0.941963732, -0.209549889, -0.0335669369, 0.225926638, 0.973565817)},"Back","Out",CWTSpeed) 
  2932.         SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0, 0.00100000005, 0, 1, 0, 0, 0, 0.804479361, 0.59398067, 0, -0.59398067, 0.804479361)},"Back","Out",CWTSpeed)  
  2933.         SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0.0379999988, 0.0370000005, -0.0520000011, 0.908487856, 0.220390648, -0.355074316, -0.276305735, 0.954201996, -0.114689194, 0.313536197, 0.202302814, 0.927776098)},"Back","Out",CWTSpeed)
  2934.         SetTween(Root,{C0=GC0(Root)*cf(0.372000009, -0.228, -0.148000002, 0.980347574, 0.0500396676, -0.190826118, -0.0536389574, 0.998465836, -0.0137398709, 0.189845815, 0.0237055644, 0.981527627)},"Back","Out",CWTSpeed)  
  2935.         SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(-0.0340000018, -0.0340000018, -0.00899999961, 0.992437899, 0.122682504, -0.00399679318, -0.110060379, 0.874970675, -0.471500725, -0.0543478131, 0.468375057, 0.88185662)},"Back","Out",CWTSpeed)
  2936.         SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0, 0, 0, 1, 0, 0, 0, 0.601828992, 0.798624992, 0, -0.798624992, 0.601828992)},"Back","Out",CWTSpeed)  
  2937.         SetTween(RightHip,{C0=GC0(RightHip)*cf(-0.0149999997, 0.0560000017, 0.0280000009, 0.969154358, -0.244370028, -0.0319864266, 0.21237056, 0.893914759, -0.394734204, 0.125054345, 0.375765413, 0.918238401)},"Back","Out",CWTSpeed)  
  2938.         SetTween(LeftWrist,{C0=GC0(LeftWrist)*cf(0, 0, 0, 1, 0, 0, 0, 0.996217489, -0.0868949369, 0, 0.0868949369, 0.996217489)},"Back","Out",CWTSpeed)
  2939.         SetTween(LeftElbow,{C0=GC0(LeftElbow)*cf(0, 0, 0, 1, 0, 0, 0, 0.99256742, -0.121696107, 0, 0.121696107, 0.99256742)},"Back","Out",CWTSpeed)
  2940.         SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*cf(0.0689999983, 0.195999995, -0.112999998, 0.956217945, 0.292655438, 0, -0.253388286, 0.82791698, 0.500347614, 0.146429449, -0.478441358, 0.86582458)},"Back","Out",CWTSpeed) 
  2941.         SetTween(Waist,{C0=GC0(Waist)*cf(0.00899999961, 0.0489999987, 0.00300000003, 0.909972191, 0.18540059, -0.370914042, -0.19417043, 0.980869055, 0.0139224082, 0.366399318, 0.0593515262, 0.92856282)},"Back","Out",CWTSpeed) 
  2942.         SetTween(RightWrist,{C0=GC0(RightWrist)*cf(-0.0320000015, 0.237000003, -0.0209999997, 0.905480564, -0.293055773, -0.30695799, 0.419618279, 0.510108948, 0.750805795, -0.0634459555, -0.808645308, 0.584865272)},"Back","Out",CWTSpeed) 
  2943.         SetTween(RightElbow,{C0=GC0(RightElbow)*cf(0, 0, 0, 1, 0, 0, 0, 0.962696493, -0.270583659, 0, 0.270583659, 0.962696493)},"Back","Out",CWTSpeed)
  2944.         SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(-0.230000004, 0.125, -0.165000007, 0.679317415, -0.695272148, 0.234785855, 0.715102315, 0.699019074, 0.000967029016, -0.16479215, 0.16723901, 0.972046614)},"Back","Out",CWTSpeed)
  2945.         SetTween(Neck,{C0=GC0(Neck)*cf(0, -0.00100000005, 0, 0.960048258, -0.277103692, -0.0389982164, 0.275908947, 0.914082706, 0.297198623, -0.0467072465, -0.296085, 0.95401895)},"Back","Out",CWTSpeed)
  2946. wait(CWTSpeed/dahspeed)
  2947.    
  2948.     attack=false
  2949. end
  2950.  
  2951.  
  2952. function AT2()
  2953.     attack=true
  2954.             local dahspeed=1
  2955. if attack == true and mememode == true then
  2956.     dahspeed=2
  2957. end
  2958.  
  2959.     local CWTSpeed = .15
  2960. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0, 0, 0, 0.996170223, -0.0848765075, -0.0209947694, 0.0861353651, 0.993896544, 0.0689229518, 0.015016688, -0.0704673827, 0.997401059)},"Linear","InOut",CWTSpeed) 
  2961.         SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0, 0, 0, 1, 0, 0, 0, 0.984725833, 0.174112245, 0, -0.174112245, 0.984725833)},"Linear","InOut",CWTSpeed)
  2962.         SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0, 0, 0, 0.913356602, 0.0566953607, 0.403193951, 9.77665186e-05, 0.990227282, -0.139462888, -0.40716058, 0.127418756, 0.904425025)},"Linear","InOut",CWTSpeed)
  2963.         SetTween(Root,{C0=GC0(Root)*cf(0, 0, 0, 0.981001079, 0.0855676904, -0.174112245, -0.0868949369, 0.996217489, 0, 0.173453659, 0.0151294721, 0.984725833)},"Linear","InOut",CWTSpeed)
  2964.         SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(0, 0, 0, 0.992093384, 0.10856428, 0.0629647076, -0.116356283, 0.983672678, 0.137292594, -0.0470315889, -0.143533394, 0.988527238)},"Linear","InOut",CWTSpeed)   
  2965.         SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0, -0.00100000005, -0.00100000005, 1, 0, 0, 0, 0.981623828, 0.190826118, 0, -0.190826118, 0.981623828)},"Linear","InOut",CWTSpeed)
  2966.         SetTween(RightHip,{C0=GC0(RightHip)*cf(-0.0860000029, 0.063000001, 0.155000001, 0.719053268, -0.460897774, -0.520130396, 0.517545998, 0.854632497, -0.0418261699, 0.463797927, -0.239116162, 0.853062093)},"Linear","InOut",CWTSpeed)  
  2967.         SetTween(LeftWrist,{C0=GC0(LeftWrist)*cf(0, 0, 0, 1, 0, 0, 0, 0.996217489, -0.0868949369, 0, 0.0868949369, 0.996217489)},"Linear","InOut",CWTSpeed)
  2968.         SetTween(LeftElbow,{C0=GC0(LeftElbow)*cf(0, 0, 0, 1, 0, 0, 0, 0.573519289, -0.819192052, 0, 0.819192052, 0.573519289)},"Linear","InOut",CWTSpeed)  
  2969.         SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*cf(0.114, 0.240999997, 0, 0.965876102, 0.259004503, 0, -0.259004503, 0.965876102, 0, 0, 0, 1)},"Linear","InOut",CWTSpeed)  
  2970.         SetTween(Waist,{C0=GC0(Waist)*cf(0, 0, 0, 0.924479842, 0.00924578775, -0.381118774, -0.102508843, 0.968916595, -0.225150183, 0.367190599, 0.247214854, 0.89669162)},"Linear","InOut",CWTSpeed) 
  2971.         SetTween(RightWrist,{C0=GC0(RightWrist)*cf(-0.0710000023, 0.172999993, 0.00999999978, 0.949839711, -0.00664781826, -0.312666476, 0.196741104, 0.789855301, 0.580879986, 0.243099675, -0.613257289, 0.75154376)},"Linear","InOut",CWTSpeed) 
  2972.         SetTween(RightElbow,{C0=GC0(RightElbow)*cf(0, 0, 0, 1, 0, 0, 0, 0.987702012, -0.156348273, 0, 0.156348273, 0.987702012)},"Linear","InOut",CWTSpeed)
  2973.         SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(-0.277999997, -0.195999995, 0.600000024, 0.753944814, -0.33578822, -0.564635754, -0.331613779, 0.547423959, -0.768348455, 0.567097485, 0.766533315, 0.301375449)},"Linear","InOut",CWTSpeed)  
  2974.         SetTween(Neck,{C0=GC0(Neck)*cf(0, 0, 0, 0.930084884, -0.0905073211, 0.35602048, -0.0455047637, 0.933321238, 0.35614717, -0.364515424, -0.347447723, 0.863949478)},"Linear","InOut",CWTSpeed)
  2975. wait(CWTSpeed/dahspeed)
  2976. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0, 0, 0, 0.996207297, -0.0858780146, -0.0139970835, 0.0857573673, 0.996275425, -0.00900489371, 0.0147182718, 0.00777038885, 0.999861479)},"Linear","In",CWTSpeed) 
  2977.         SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0, 0, 0, 1, 0, 0, 0, 0.857194245, 0.514993191, 0, -0.514993191, 0.857194245)},"Linear","In",CWTSpeed)   
  2978.         SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0, 0, 0, 0.923304319, 0.0712389201, 0.377404451, 0.0308198333, 0.965735495, -0.25769183, -0.38283056, 0.249559507, 0.889472187)},"Linear","In",CWTSpeed)  
  2979.         SetTween(Root,{C0=GC0(Root)*cf(0.0960000008, -0.112000003, 0.0170000009, 0.96663034, 0.187911406, -0.174112245, -0.190826118, 0.981623828, 0, 0.170912728, 0.0332251638, 0.984725833)},"Linear","In",CWTSpeed) 
  2980.         SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(0, 0, 0, 0.992040813, 0.117608905, 0.0449794084, -0.116857879, 0.992967129, -0.0189862568, -0.0468960293, 0.0135789448, 0.99880749)},"Linear","In",CWTSpeed)
  2981.         SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0, -0.00100000005, -0.00100000005, 1, 0, 0, 0, 0.453601718, 0.891204476, 0, -0.891204476, 0.453601718)},"Linear","In",CWTSpeed)   
  2982.         SetTween(RightHip,{C0=GC0(RightHip)*cf(0.0179999992, 0.0890000015, 0.0240000002, 0.815838099, -0.484621048, 0.315516561, 0.568385601, 0.772505164, -0.283149391, -0.106518015, 0.410339117, 0.90569073)},"Linear","In",CWTSpeed)   
  2983.         SetTween(LeftWrist,{C0=GC0(LeftWrist)*cf(0, 0, 0, 1, 0, 0, 0, 0.939716518, -0.341954559, 0, 0.341954559, 0.939716518)},"Linear","In",CWTSpeed) 
  2984.         SetTween(LeftElbow,{C0=GC0(LeftElbow)*cf(0, 0, 0, 1, 0, 0, 0, 0.668949008, -0.743308306, 0, 0.743308306, 0.668949008)},"Linear","In",CWTSpeed) 
  2985.         SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*cf(0.114, 0.240999997, 0, 0.965973556, 0.228221864, 0.121696107, -0.258640647, 0.853139937, 0.453053266, -0.000427149236, -0.469113022, 0.883138061)},"Linear","In",CWTSpeed)  
  2986.         SetTween(Waist,{C0=GC0(Waist)*cf(0, 0, 0, 0.973180771, -0.162051529, -0.163274303, 0.0982390493, 0.934548736, -0.342005491, 0.208010301, 0.316793233, 0.925404668)},"Linear","In",CWTSpeed)
  2987.         SetTween(RightWrist,{C0=GC0(RightWrist)*cf(-0.252999991, -0.0489999987, -0.0780000016, 0.178962424, -0.226451293, -0.957440495, -0.389415443, 0.87737447, -0.280302852, 0.903508782, 0.42300579, 0.0688334256)},"Linear","In",CWTSpeed)
  2988.         SetTween(RightElbow,{C0=GC0(RightElbow)*cf(0, 0, 0, 1, 0, 0, 0, 0.882800043, -0.469748914, 0, 0.469748914, 0.882800043)},"Linear","In",CWTSpeed)   
  2989.         SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(-0.349999994, 0.122000001, 0.228, 0.698049545, -0.636112154, 0.328767747, 0.633219481, 0.334026963, -0.698182702, 0.334305197, 0.695548236, 0.635965943)},"Linear","In",CWTSpeed) 
  2990.         SetTween(Neck,{C0=GC0(Neck)*cf(0, 0, 0, 0.920634747, -0.302030653, 0.247404888, 0.171457589, 0.882071912, 0.438806772, -0.35076201, -0.361561328, 0.863851488)},"Linear","In",CWTSpeed)
  2991. wait(CWTSpeed/dahspeed)
  2992. CWTSpeed = CWTSpeed * 2
  2993. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0, 0, 0, 0.99618566, -0.0868921578, -0.00799352303, 0.0858588368, 0.992423713, -0.0878831595, 0.0155693199, 0.0868616328, 0.996098697)},"Back","Out",CWTSpeed)
  2994.         SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0, 0, 0, 1, 0, 0, 0, 0.86582458, 0.500347614, 0, -0.500347614, 0.86582458)},"Back","Out",CWTSpeed)  
  2995.         SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0, 0, 0, 0.992866695, -0.0636315942, -0.100830562, 0.0176035166, 0.914646804, -0.403870463, 0.117923275, 0.399214566, 0.909242511)},"Back","Out",CWTSpeed)
  2996.         SetTween(Root,{C0=GC0(Root)*cf(0.0960000008, -0.112000003, 0.0170000009, 0.864762843, 0.0519519597, 0.499485999, -0.040478792, 0.998609066, -0.0337850116, -0.500546455, 0.00899743102, 0.865662932)},"Back","Out",CWTSpeed)   
  2997.         SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(0, 0, 0, 0.992065728, 0.116611153, 0.0469844118, -0.116693601, 0.99316752, -0.000993738999, -0.0467792712, -0.00449692551, 0.998895168)},"Back","Out",CWTSpeed) 
  2998.         SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0, -0.00100000005, -0.00100000005, 1, 0, 0, 0, 0.453601718, 0.891204476, 0, -0.891204476, 0.453601718)},"Back","Out",CWTSpeed)
  2999.         SetTween(RightHip,{C0=GC0(RightHip)*cf(0.0179999992, 0.0890000015, 0.0240000002, 0.963333488, -0.157441184, 0.21725744, 0.188684344, 0.973210335, -0.131376699, -0.190753087, 0.16755265, 0.967232823)},"Back","Out",CWTSpeed) 
  3000.         SetTween(LeftWrist,{C0=GC0(LeftWrist)*cf(0, 0, 0, 1, 0, 0, 0, 0.999855518, -0.0169986878, 0, 0.0169986878, 0.999855518)},"Back","Out",CWTSpeed)
  3001.         SetTween(LeftElbow,{C0=GC0(LeftElbow)*cf(0, 0, 0, 1, 0, 0, 0, 0.981623828, -0.190826118, 0, 0.190826118, 0.981623828)},"Back","Out",CWTSpeed)  
  3002.         SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*cf(0.101000004, 0.196999997, -0.131999999, 0.96127218, 0.259839177, 0.0918665975, -0.275590688, 0.909135759, 0.312285185, -0.0023752898, -0.325508624, 0.945536137)},"Back","Out",CWTSpeed)
  3003.         SetTween(Waist,{C0=GC0(Waist)*cf(0, 0, 0, 0.86483556, -0.197025582, 0.461779565, 0.0342732221, 0.940801799, 0.337220043, -0.500884056, -0.275813222, 0.820391536)},"Back","Out",CWTSpeed)  
  3004.         SetTween(RightWrist,{C0=GC0(RightWrist)*cf(-0.338, 0.0710000023, -0.0850000009, -0.204803467, 0.548764229, -0.810501933, -0.42621839, 0.695426226, 0.57855016, 0.881131887, 0.463939905, 0.0914677158)},"Back","Out",CWTSpeed) 
  3005.         SetTween(RightElbow,{C0=GC0(RightElbow)*cf(-0.0140000004, 0.0370000005, 0.0529999994, 1, 0, 0, 0, 0.978238225, -0.207484871, 0, 0.207484871, 0.978238225)},"Back","Out",CWTSpeed)  
  3006.         SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(-0.282000005, 0.202000007, 0.0529999994, 0.74609226, -0.149693415, 0.648797512, 0.472477943, 0.805596948, -0.357460648, -0.469159842, 0.573241115, 0.671776533)},"Back","Out",CWTSpeed)   
  3007.         SetTween(Neck,{C0=GC0(Neck)*cf(0, 0, 0, 0.771060228, -0.0169726983, -0.636536002, 0.261140734, 0.920141995, 0.291794896, 0.580750942, -0.391216934, 0.713917196)},"Back","Out",CWTSpeed)   
  3008. wait(CWTSpeed/dahspeed)
  3009.        
  3010.    
  3011.     attack=false
  3012. end
  3013.  
  3014.  
  3015.  
  3016.  
  3017.  
  3018.  
  3019.  
  3020.  
  3021.  
  3022. function Tuant()
  3023.     attack = true
  3024.  
  3025.     so(138507651,Head,1.5,1)
  3026.         Humanoid.JumpPower = 0
  3027.     Humanoid.WalkSpeed=0
  3028.        
  3029.     --Head,Torso   
  3030. for i = 1,10,.2 do         
  3031. SetTween(Root,{C0=GC0(Root)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3032. SetTween(Waist,{C0=GC0(Waist)*cf(0,0,0)*angles(math.rad(3*math.sin(i)),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3033. SetTween(Neck,{C0=GC0(Neck)*cf(0,0,0)*angles(math.rad(3*math.cos(i)),math.rad(-30),math.rad(-30))},"Quad","Out",.1)
  3034. ---------
  3035. --RightArm
  3036. SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(-.5,0,-.2)*angles(math.rad(-50),math.rad(0),math.rad(75))},"Quad","Out",.1)
  3037. SetTween(RightElbow,{C0=GC0(RightElbow)*cf(0,0,.2)*angles(math.rad(160),math.rad(30),math.rad(0))},"Quad","Out",.1)
  3038. ---------
  3039. --LeftArm
  3040. SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3041. SetTween(LeftElbow,{C0=GC0(LeftElbow)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3042. ---------
  3043. --RightLeg
  3044. SetTween(RightHip,{C0=GC0(RightHip)*cf(0,0,0)*angles(math.rad(20),math.rad(15*math.cos(i/2)),math.rad(0))},"Quad","Out",.1)
  3045. SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3046. SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3047. ---------
  3048. --LeftLeg
  3049. SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3050. SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3051. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3052. ---------
  3053. Swait()
  3054. end
  3055.         Humanoid.JumpPower = 50
  3056.     Humanoid.WalkSpeed=16
  3057.     attack = false 
  3058. end
  3059.  
  3060.  
  3061. function Tuant2()
  3062.     attack = true
  3063.  
  3064. so(382823907,Head,1.5,1)
  3065.    
  3066.         Humanoid.JumpPower = 0
  3067.     Humanoid.WalkSpeed=0
  3068.        
  3069.     --Head,Torso   
  3070. for i = 1,10,.2 do         
  3071. SetTween(Root,{C0=GC0(Root)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3072. SetTween(Waist,{C0=GC0(Waist)*cf(0,0,0)*angles(math.rad(3*math.sin(i)),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3073. SetTween(Neck,{C0=GC0(Neck)*cf(0,0,0)*angles(math.rad(3*math.cos(i)),math.rad(-2*math.cos(i)),math.rad(-2*math.cos(i)))},"Quad","Out",.1)
  3074. ---------
  3075. --RightArm
  3076. SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(0,0,0)*angles(math.rad(-0),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3077. SetTween(RightElbow,{C0=GC0(RightElbow)*cf(0,0,0)*angles(math.rad(30),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3078. ---------
  3079. --LeftArm
  3080. SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3081. SetTween(LeftElbow,{C0=GC0(LeftElbow)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3082. ---------
  3083. --RightLeg
  3084. SetTween(RightHip,{C0=GC0(RightHip)*cf(0,0,0)*angles(math.rad(20),math.rad(15*math.cos(i/2)),math.rad(0))},"Quad","Out",.3)
  3085. SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3086. SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3087. ---------
  3088. --LeftLeg
  3089. SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3090. SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3091. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3092. ---------
  3093. Swait()
  3094. end
  3095.         Humanoid.JumpPower = 50
  3096.     Humanoid.WalkSpeed=16
  3097.     attack = false 
  3098. end
  3099.  
  3100.  
  3101.  
  3102.  
  3103. function getkatana()
  3104.     attack = true
  3105.     wep = "Katana"
  3106.             Humanoid.JumpPower = 0
  3107.     Humanoid.WalkSpeed=0
  3108.     --so(1035350628,Head,1.5,1)
  3109.     --Head,Torso   
  3110. for i = 1,4,.5 do          
  3111. SetTween(Root,{C0=GC0(Root)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3112. SetTween(Waist,{C0=GC0(Waist)*cf(0,0,0)*angles(math.rad(3*math.sin(i)),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3113. SetTween(Neck,{C0=GC0(Neck)*cf(0,0,0)*angles(math.rad(3*math.cos(i)),math.rad(30),math.rad(30))},"Quad","Out",.1)
  3114. ---------
  3115. --RightArm
  3116. SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(-.1,0,-.2)*angles(math.rad(10*i),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3117. SetTween(RightElbow,{C0=GC0(RightElbow)*cf(0,0,.2)*angles(math.rad(160),math.rad(30),math.rad(0))},"Quad","Out",.1)
  3118. ---------
  3119. --LeftArm
  3120. SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3121. SetTween(LeftElbow,{C0=GC0(LeftElbow)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3122. ---------
  3123. --RightLeg
  3124. SetTween(RightHip,{C0=GC0(RightHip)*cf(0,0,0)*angles(math.rad(20),math.rad(15*math.cos(i/2)),math.rad(0))},"Quad","Out",.1)
  3125. SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3126. SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3127. ---------
  3128. --LeftLeg
  3129. SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3130. SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3131. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3132. ---------
  3133. Swait()
  3134. end
  3135.  
  3136. local sword = EffectPack.Handle:Clone()
  3137. sword.Parent = Character
  3138. weld(sword,RightHand,sword,cf(0,.25,-1.7)*angles(math.rad(10),math.rad(180),math.rad(90)))
  3139. SetTween(Root,{C0=GC0(Root)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3140. SetTween(Waist,{C0=GC0(Waist)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3141. SetTween(Neck,{C0=GC0(Neck)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3142. ---------
  3143. --RightArm
  3144. SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(0,0,0)*angles(math.rad(-20),math.rad(-20),math.rad(0))},"Back","Out",.4)
  3145. SetTween(RightElbow,{C0=GC0(RightElbow)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.4)
  3146. ---------
  3147. --LeftArm
  3148. SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3149. SetTween(LeftElbow,{C0=GC0(LeftElbow)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3150. ---------
  3151. --RightLeg
  3152. SetTween(RightHip,{C0=GC0(RightHip)*cf(0,0,0)*angles(math.rad(20),math.rad(10),math.rad(0))},"Quad","Out",.3)
  3153. SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3154. SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3155. ---------
  3156. --LeftLeg
  3157. SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3158. SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3159. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3160. ---------
  3161. wait(.2)
  3162.         Humanoid.JumpPower = 50
  3163.     Humanoid.WalkSpeed=16
  3164.     attack = false     
  3165. end
  3166.  
  3167. function getshotgun()
  3168.     attack = true
  3169.     wep = "Shotgun"
  3170.             Humanoid.JumpPower = 0
  3171.     Humanoid.WalkSpeed=0
  3172.     so(382823862,Head,1.5,1)
  3173.     --Head,Torso   
  3174. for i = 1,4,.2 do          
  3175. SetTween(Root,{C0=GC0(Root)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3176. SetTween(Waist,{C0=GC0(Waist)*cf(0,0,0)*angles(math.rad(3*math.sin(i)),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3177. SetTween(Neck,{C0=GC0(Neck)*cf(0,0,0)*angles(math.rad(3*math.cos(i)),math.rad(30),math.rad(30))},"Quad","Out",.1)
  3178. ---------
  3179. --RightArm
  3180. SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(-.1*i,-.1*i,-.1)*angles(math.rad(-50*i),math.rad(-0),math.rad(20*i))},"Quad","Out",.1)
  3181. SetTween(RightElbow,{C0=GC0(RightElbow)*cf(0,0,0)*angles(math.rad(35*i),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3182. ---------
  3183. --LeftArm
  3184. SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3185. SetTween(LeftElbow,{C0=GC0(LeftElbow)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3186. ---------
  3187. --RightLeg
  3188. SetTween(RightHip,{C0=GC0(RightHip)*cf(0,0,0)*angles(math.rad(20),math.rad(15*math.cos(i/2)),math.rad(0))},"Quad","Out",.1)
  3189. SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3190. SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3191. ---------
  3192. --LeftLeg
  3193. SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3194. SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3195. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3196. ---------
  3197. Swait()
  3198. end
  3199.  
  3200. local gun = EffectPack.Shotgun:Clone()
  3201. gun.Parent = Character
  3202. weld(gun.Handle,RightHand,gun.Handle,cf(0,-.5,0)*angles(math.rad(-80),math.rad(0),math.rad(0)))
  3203. SetTween(Root,{C0=GC0(Root)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.5)
  3204. SetTween(Waist,{C0=GC0(Waist)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.5)
  3205. SetTween(Neck,{C0=GC0(Neck)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.5)
  3206. ---------
  3207. --RightArm
  3208. SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(-.4,0,0)*angles(math.rad(-20),math.rad(-0),math.rad(90))},"Back","Out",.6)
  3209. SetTween(RightElbow,{C0=GC0(RightElbow)*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0))},"Quad","Out",.6)
  3210. ---------
  3211. --LeftArm
  3212. SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3213. SetTween(LeftElbow,{C0=GC0(LeftElbow)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3214. ---------
  3215. --RightLeg
  3216. SetTween(RightHip,{C0=GC0(RightHip)*cf(0,0,0)*angles(math.rad(20),math.rad(10),math.rad(0))},"Quad","Out",.5)
  3217. SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0))},"Quad","Out",.5)
  3218. SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.5)
  3219. ---------
  3220. --LeftLeg
  3221. SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.5)
  3222. SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.5)
  3223. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.5)
  3224. ---------
  3225. wait(.5)
  3226.         Humanoid.JumpPower = 50
  3227.     Humanoid.WalkSpeed=16
  3228.     attack = false     
  3229. end
  3230.  
  3231.  
  3232.  
  3233.  
  3234. function getglock()
  3235.     attack = true
  3236.     wep = "Gun"
  3237.             Humanoid.JumpPower = 0
  3238.     Humanoid.WalkSpeed=0
  3239. --  so(382823862,Head,1.5,1)
  3240.     --Head,Torso   
  3241. for i = 1,2,.2 do          
  3242. SetTween(Root,{C0=GC0(Root)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3243. SetTween(Waist,{C0=GC0(Waist)*cf(0,0,0)*angles(math.rad(3*math.sin(i)),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3244. SetTween(Neck,{C0=GC0(Neck)*cf(0,0,0)*angles(math.rad(3*math.cos(i)),math.rad(30),math.rad(30))},"Quad","Out",.1)
  3245. ---------
  3246. --RightArm
  3247. SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(0,0,-.1)*angles(math.rad(-35*i),math.rad(-0),math.rad(-40))},"Quad","Out",.1)
  3248. SetTween(RightElbow,{C0=GC0(RightElbow)*cf(0,0,0)*angles(math.rad(35*i),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3249. ---------
  3250. --LeftArm
  3251. SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3252. SetTween(LeftElbow,{C0=GC0(LeftElbow)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3253. ---------
  3254. --RightLeg
  3255. SetTween(RightHip,{C0=GC0(RightHip)*cf(0,0,0)*angles(math.rad(20),math.rad(15*math.cos(i/2)),math.rad(0))},"Quad","Out",.1)
  3256. SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3257. SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3258. ---------
  3259. --LeftLeg
  3260. SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3261. SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3262. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3263. ---------
  3264. Swait()
  3265. end
  3266.  
  3267. local gun = EffectPack.Glock:Clone()
  3268. gun.Parent = Character
  3269. weld(gun.Handle,RightHand,gun.Handle,cf(0,-.4,-0.15)*angles(math.rad(-70),math.rad(0),math.rad(0)))
  3270. SetTween(Root,{C0=GC0(Root)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.5)
  3271. SetTween(Waist,{C0=GC0(Waist)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.5)
  3272. SetTween(Neck,{C0=GC0(Neck)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.5)
  3273. ---------
  3274. --RightArm
  3275. SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(-.1,0,-.1)*angles(math.rad(-20),math.rad(-0),math.rad(20))},"Back","Out",.6)
  3276. SetTween(RightElbow,{C0=GC0(RightElbow)*cf(0,0,0)*angles(math.rad(90),math.rad(0),math.rad(0))},"Quad","Out",.6)
  3277. ---------
  3278. --LeftArmye
  3279. SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3280. SetTween(LeftElbow,{C0=GC0(LeftElbow)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3281. ---------
  3282. --RightLeg
  3283. SetTween(RightHip,{C0=GC0(RightHip)*cf(0,0,0)*angles(math.rad(20),math.rad(10),math.rad(0))},"Quad","Out",.5)
  3284. SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0))},"Quad","Out",.5)
  3285. SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.5)
  3286. ---------
  3287. --LeftLeg
  3288. SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.5)
  3289. SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.5)
  3290. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.5)
  3291. ---------
  3292. wait(.4)
  3293.         Humanoid.JumpPower = 50
  3294.     Humanoid.WalkSpeed=16
  3295.     attack = false     
  3296. end
  3297.  
  3298.  
  3299.  
  3300. function getrifle()
  3301.     attack = true
  3302.     wep = "Rifle"
  3303.             Humanoid.JumpPower = 0
  3304.     Humanoid.WalkSpeed=0
  3305.     so(1035350628,Head,1.5,1)
  3306.     --Head,Torso   
  3307. for i = 1,4,.2 do          
  3308. SetTween(Root,{C0=GC0(Root)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3309. SetTween(Waist,{C0=GC0(Waist)*cf(0,0,0)*angles(math.rad(3*math.sin(i)),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3310. SetTween(Neck,{C0=GC0(Neck)*cf(0,0,0)*angles(math.rad(3*math.cos(i)),math.rad(30),math.rad(30))},"Quad","Out",.1)
  3311. ---------
  3312. --RightArm
  3313. SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(-.1*i,-.1*i,-.1)*angles(math.rad(-50*i),math.rad(-0),math.rad(20*i))},"Quad","Out",.1)
  3314. SetTween(RightElbow,{C0=GC0(RightElbow)*cf(0,0,0)*angles(math.rad(35*i),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3315. ---------
  3316. --LeftArm
  3317. SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3318. SetTween(LeftElbow,{C0=GC0(LeftElbow)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3319. ---------
  3320. --RightLeg
  3321. SetTween(RightHip,{C0=GC0(RightHip)*cf(0,0,0)*angles(math.rad(20),math.rad(15*math.cos(i/2)),math.rad(0))},"Quad","Out",.1)
  3322. SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3323. SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3324. ---------
  3325. --LeftLeg
  3326. SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3327. SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3328. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  3329. ---------
  3330. Swait()
  3331. end
  3332.  
  3333. local gun = EffectPack.Rifle:Clone()
  3334. gun.Parent = Character
  3335. weld(gun.Handle,RightHand,gun.Handle,cf(0,0,0)*angles(math.rad(30),math.rad(0),math.rad(0)))
  3336. SetTween(Root,{C0=GC0(Root)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.5)
  3337. SetTween(Waist,{C0=GC0(Waist)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.5)
  3338. SetTween(Neck,{C0=GC0(Neck)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.5)
  3339. ---------
  3340. --RightArm
  3341. SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(-.4,0,0)*angles(math.rad(-20),math.rad(-0),math.rad(90))},"Back","Out",.6)
  3342. SetTween(RightElbow,{C0=GC0(RightElbow)*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0))},"Quad","Out",.6)
  3343. ---------
  3344. --LeftArm
  3345. SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3346. SetTween(LeftElbow,{C0=GC0(LeftElbow)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3347. ---------
  3348. --RightLeg
  3349. SetTween(RightHip,{C0=GC0(RightHip)*cf(0,0,0)*angles(math.rad(20),math.rad(10),math.rad(0))},"Quad","Out",.5)
  3350. SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0))},"Quad","Out",.5)
  3351. SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.5)
  3352. ---------
  3353. --LeftLeg
  3354. SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.5)
  3355. SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.5)
  3356. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.5)
  3357. ---------
  3358. wait(.5)
  3359.         Humanoid.JumpPower = 50
  3360.     Humanoid.WalkSpeed=16
  3361.     attack = false     
  3362. end
  3363.  
  3364.  
  3365.  
  3366.  
  3367.  
  3368.  
  3369. function ClickCombo()
  3370. if Anim == "Fall" or Anim == "Jump" then
  3371. Swait()
  3372. else               
  3373. if Combo == 0 then
  3374. AT1()  
  3375. Combo = 1
  3376. elseif Combo == 1 then
  3377. AT2()  
  3378. Combo = 0  
  3379. elseif Combo == 2 then
  3380. --AT3()
  3381. Combo = 0      
  3382. end
  3383. end
  3384. end
  3385.  
  3386.  
  3387.  
  3388. local Hold = false
  3389.  
  3390.  
  3391. Button1DownF=function()
  3392.     if wep == "Katana" then
  3393.     Hold= true
  3394.     while Hold == true do
  3395.     if attack == false then
  3396. legswhileattack = true     
  3397. ClickCombo()
  3398. legswhileattack = false
  3399.     else
  3400.         Swait()
  3401.     end
  3402.     end
  3403.      end
  3404.    
  3405.    
  3406.     if attack == false and wep == "Shotgun"  then
  3407.         Hold= true
  3408.             while Hold == true do
  3409.     if attack == false then
  3410. Aim()
  3411.  
  3412.     else
  3413.         Swait()
  3414.     end
  3415.     end
  3416.    
  3417.    
  3418. end
  3419.    
  3420.    
  3421.     if attack == false and wep == "Gun"  then
  3422.         Hold= true
  3423.             while Hold == true do
  3424.     if attack == false then
  3425. Aim2()
  3426.  
  3427.     else
  3428.         Swait()
  3429.     end
  3430.     end
  3431.    
  3432.    
  3433. end
  3434.    
  3435.    
  3436.        
  3437.  
  3438.  
  3439.     if attack == false and wep == "Rifle"  then
  3440.         Hold= true
  3441.             so(2724937450,Head,2,1)
  3442.             while Hold == true do
  3443.     if attack == false then
  3444. Aim3()
  3445.  
  3446.     else
  3447.         Swait()
  3448.     end
  3449.     end
  3450.    
  3451.    
  3452. end
  3453.    
  3454.    
  3455.    
  3456.  
  3457.  
  3458.    
  3459. end
  3460.  
  3461.  
  3462.  
  3463. Button1UpF=function()
  3464.  
  3465. if Hold==true then
  3466.  
  3467. Hold = false
  3468.  
  3469. end
  3470.    
  3471. end
  3472.  
  3473. isruning=false
  3474. KeyUpF=function(key)
  3475.  
  3476. if  key == "2"  then
  3477. if isruning == true then
  3478. isruning=false 
  3479. end
  3480. end
  3481.  
  3482.    
  3483. end
  3484. KeyDownF=function(key)
  3485. if  key == "z"   and attack == false and wep == "nil" then
  3486. getkatana()
  3487. elseif  key == "z"   and attack == false and wep == "Katana" then
  3488.  
  3489.  
  3490. wep = "nil"
  3491. coroutine.resume(coroutine.create(function()
  3492. local sw = Character:FindFirstChild("Handle")
  3493. sw.Parent = workspace
  3494. sw:BreakJoints()
  3495. sw.CanCollide = true
  3496. SetTween(sw,{Transparency = 1},"Quad","In",5)
  3497. game:GetService("Debris"):AddItem(sw,5)
  3498. end))
  3499. end
  3500.  
  3501.  
  3502.  
  3503.  
  3504. if  key == "x"   and attack == false and wep == "nil" then
  3505. getshotgun()
  3506. elseif  key == "x"   and attack == false and wep == "Shotgun" then
  3507.  
  3508.  
  3509. wep = "nil"
  3510. coroutine.resume(coroutine.create(function()
  3511. local sw = Character:FindFirstChild("Shotgun")
  3512. sw.Parent = workspace
  3513. game:GetService("Debris"):AddItem(sw,5)
  3514.     for _,v in pairs(sw:children()) do
  3515.         if v:IsA("BasePart") then
  3516.             v.CanCollide = true
  3517.             SetTween(v,{Transparency = 1},"Quad","In",5)
  3518.         end
  3519.     end
  3520.        
  3521. sw.Handle:BreakJoints()
  3522.  
  3523. --sw:BreakJoints()
  3524. --sw.CanCollide = true
  3525. --SetTween(sw,{Transparency = 1},"Quad","In",5)
  3526.  
  3527. end))
  3528. end
  3529.  
  3530.  
  3531.  
  3532.  
  3533.  
  3534.  
  3535.  
  3536.  
  3537. if  key == "c"   and attack == false and wep == "nil" then
  3538. getglock()
  3539. elseif  key == "c"   and attack == false and wep == "Gun" then
  3540.  
  3541.  
  3542. wep = "nil"
  3543. coroutine.resume(coroutine.create(function()
  3544. local sw = Character:FindFirstChild("Glock")
  3545. sw.Parent = workspace
  3546. game:GetService("Debris"):AddItem(sw,5)
  3547.     for _,v in pairs(sw:children()) do
  3548.         if v:IsA("BasePart") then
  3549.             v.CanCollide = true
  3550.             SetTween(v,{Transparency = 1},"Quad","In",5)
  3551.         end
  3552.     end
  3553.        
  3554. sw.Handle:BreakJoints()
  3555.  
  3556. --sw:BreakJoints()
  3557. --sw.CanCollide = true
  3558. --SetTween(sw,{Transparency = 1},"Quad","In",5)
  3559.  
  3560. end))
  3561. end
  3562.  
  3563.  
  3564.  
  3565.  
  3566.  
  3567.  
  3568.  
  3569.  
  3570.  
  3571. if  key == "v"   and attack == false and wep == "nil" then
  3572. getrifle()
  3573. elseif  key == "v"   and attack == false and wep == "Rifle" then
  3574.  
  3575.  
  3576. wep = "nil"
  3577. coroutine.resume(coroutine.create(function()
  3578. local sw = Character:FindFirstChild("Rifle")
  3579. sw.Parent = workspace
  3580. game:GetService("Debris"):AddItem(sw,5)
  3581.     for _,v in pairs(sw:children()) do
  3582.         if v:IsA("BasePart") then
  3583.             coroutine.resume(coroutine.create(function()
  3584.     v.Locked = false        v.CanCollide = true end))
  3585.             SetTween(v,{Transparency = 1},"Quad","In",5)
  3586.         end
  3587.     end
  3588.        
  3589. sw.Handle:BreakJoints()
  3590.  
  3591. --sw:BreakJoints()
  3592. --sw.CanCollide = true
  3593. --SetTween(sw,{Transparency = 1},"Quad","In",5)
  3594.  
  3595. end))
  3596. end
  3597.  
  3598.  
  3599.  
  3600.  
  3601.  
  3602.  
  3603.  
  3604. if  key == "f"   and attack == false and wep == "Shotgun" and  Player.Name=="123jl123" then
  3605.    
  3606. --  Aim()
  3607.  
  3608. end
  3609. if  key == "g"   and attack == false then
  3610. --Attack6()
  3611. end
  3612. if  key == "t"   and attack == false and wep == "nil" then
  3613. Tuant()
  3614. end
  3615. if  key == "r"   and attack == false  then
  3616. Tuant2()
  3617. end
  3618. if  key == "y"   and attack == false  and Player.Name=="123jl123" then
  3619. if mememode == false then
  3620.     mememode=true
  3621.    
  3622.     --so("1499015636", Character,3, 1)
  3623.  
  3624.  
  3625. coroutine.resume(coroutine.create(function()
  3626. local EYE = CreatePart2(3, Character, "Neon", 0, 0, "Really red", "Eyeball", VT(0.15,0.15,0.15),false)
  3627.         local MSH2 = IT("SpecialMesh",EYE)
  3628.         MSH2.MeshType = "Sphere"
  3629. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15,0.16,-0.55), CF(0, 0, 0))
  3630. local EYE2 = CreatePart2(3, Character, "Neon", 0, 0, "Really red", "Eyeball", VT(0.15,0.15,0.15),false)
  3631.         local MSH3 = IT("SpecialMesh",EYE2)
  3632.         MSH3.MeshType = "Sphere"
  3633. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE2, CF(-0.15,0.16,-0.55), CF(0, 0, 0))
  3634.  
  3635.  
  3636.  
  3637.  
  3638.  
  3639.  
  3640.  
  3641.  
  3642. while mememode == true do
  3643.     coroutine.resume(coroutine.create(function()
  3644.         if EYE ~= nil or EYE2 ~= nil then
  3645.             for i = 1, 5 do
  3646.                 Swait()
  3647.                 EYE.Mesh.Scale = EYE.Mesh.Scale - VT(0,0.2*1.5,0)
  3648.                 EYE2.Mesh.Scale = EYE.Mesh.Scale
  3649.             end
  3650.             for i = 1, 7 do
  3651.                 Swait()
  3652.                 EYE.Mesh.Scale = EYE.Mesh.Scale + VT(0,0.2*1.5,0)
  3653.                 EYE2.Mesh.Scale = EYE.Mesh.Scale
  3654.             end
  3655.             EYE.Mesh.Scale = VT(.2,1*1.5,.7)
  3656.             EYE2.Mesh.Scale = EYE.Mesh.Scale
  3657.         end
  3658.     end))
  3659.  
  3660. wait(math.random(2,4))
  3661.  
  3662. end
  3663.  
  3664. end))
  3665.  
  3666.  
  3667.  
  3668.  
  3669.  
  3670.     lastid= "http://www.roblox.com/asset/?id=865102151"
  3671. lastsongpos = 0
  3672. s2.TimePosition = 0
  3673.    
  3674.    
  3675. else
  3676.     mememode=false
  3677.     CurId=CurId-1
  3678.     KeyDownF("n")
  3679.         for _,v in pairs(Character:children()) do
  3680.         if v:IsA("BasePart") and v.Name == "Eyeball" then
  3681.         v:Destroy()
  3682.         end
  3683.         end
  3684. end
  3685. end
  3686.  
  3687.  
  3688. if  key == "2"  then
  3689. if isruning == false then
  3690. isruning=true  
  3691. end
  3692. end
  3693.  
  3694.  
  3695.  
  3696.  
  3697.  
  3698.  
  3699.     if key == "m" then 
  3700.    
  3701.     if playsong == true then
  3702. playsong = false   
  3703.     s2:stop()  
  3704.     elseif playsong == false then
  3705. playsong = true
  3706.  
  3707.    
  3708.     s2:play()              
  3709.     end
  3710.                    
  3711.     end
  3712.  
  3713.  
  3714.  
  3715.     if key == "n" and mememode == false then   
  3716.  
  3717.  
  3718.  
  3719.  
  3720.  
  3721.  
  3722. CurId = CurId + 1
  3723.        
  3724. if CurId > 5 then
  3725. CurId = 1  
  3726.  
  3727. end
  3728. warn("now playing song Nr"..CurId)
  3729. if CurId == 1 then
  3730. lastid= "http://www.roblox.com/asset/?id=1041350176"
  3731. elseif CurId == 2 then
  3732. lastid= "http://www.roblox.com/asset/?id=1025852268"
  3733. elseif CurId == 3 then
  3734. lastid= "http://www.roblox.com/asset/?id=2511929343"
  3735. elseif CurId == 4 then
  3736. lastid= "http://www.roblox.com/asset/?id=2642540349"
  3737. elseif CurId == 5 then
  3738. lastid= "http://www.roblox.com/asset/?id=1267944837"
  3739.  
  3740.  
  3741. end
  3742.  
  3743.  
  3744. lastsongpos = 0
  3745. s2.TimePosition = lastsongpos
  3746.    
  3747.                    
  3748.     end
  3749.  
  3750.  
  3751. end
  3752.  
  3753.  
  3754. Humanoid.Changed:connect(function(Jump)
  3755.     if Jump == "Jump"  then
  3756. if Humanoid.Jump == true then
  3757. print("Jump")  
  3758. end
  3759.     end
  3760. end)
  3761.  
  3762.  
  3763. coroutine.resume(coroutine.create(function()
  3764. while Humanoid.Health>0.001 do
  3765.     sine = sine + change
  3766.  local   hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4*Humanoid.BodyHeightScale.Value, Character)
  3767.  
  3768.   local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  3769.     local velderp = RootPart.Velocity.y
  3770. if RootPart.Velocity.y > 1 and hitfloor == nil then
  3771. Anim = "Jump"
  3772.  
  3773. elseif RootPart.Velocity.y < -1 and hitfloor == nil then
  3774. Anim = "Fall"
  3775. elseif Humanoid.Sit == true then
  3776. Anim = "Sit"   
  3777. elseif torvel < 1 and hitfloor ~= nil  then
  3778. Anim = "Idle"
  3779. elseif torvel > 2 and  hitfloor ~= nil  then
  3780.  
  3781. if isruning == false then
  3782. Anim = "Walk"
  3783. else
  3784. Anim = "Run"
  3785. end
  3786.  
  3787.  
  3788.  
  3789. else
  3790. Anim = ""
  3791.    
  3792. end
  3793.  
  3794.  
  3795. local Ccf=CF(RootPart.CFrame.p*VT(1,0,1),(RootPart.CFrame.p+RootPart.CFrame.LookVector)*VT(1,0,1))
  3796. if legswhileattack==true then
  3797.     Ccf=CF(LowerTorso.CFrame.p*VT(1,0,1),(LowerTorso.CFrame.p+LowerTorso.CFrame.LookVector)*VT(1,0,1))
  3798. end
  3799.  
  3800. --warn(Humanoid.MoveDirection*RootPart.CFrame.lookVector)
  3801. local Walktest1 = Humanoid.MoveDirection*Ccf.LookVector
  3802. local Walktest2 = Humanoid.MoveDirection*Ccf.RightVector
  3803. --warn(Walktest1.Z.."/"..Walktest1.X)
  3804. --warn(Walktest2.Z.."/"..Walktest2.X)
  3805. forWFB = Walktest1.X+Walktest1.Z
  3806. forWRL = Walktest2.X+Walktest2.Z
  3807.  
  3808.  
  3809. local hdr = CFrame.new(vt(),RootPart.Velocity).lookVector
  3810. local MoveYSpeed = (RootPart.Velocity* Vector3.new(0, 1, 0)).magnitude
  3811. local MoveXZSpeed = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  3812.  
  3813. if MoveYSpeed > 50 then
  3814.     MoveYSpeed=50
  3815. end
  3816. if MoveXZSpeed > 50 then
  3817.     MoveXZSpeed=50
  3818. end
  3819. MoveYSpeed=MoveYSpeed*hdr.Y
  3820.  
  3821. --print(Humanoid.MoveDirection)
  3822. --warn(Torso.CFrame.lookVector)
  3823.  
  3824.  
  3825.  
  3826. coroutine.resume(coroutine.create(function()
  3827.    
  3828.  
  3829.     if s2.Parent == nil or s2 == nil  then
  3830.  
  3831. s2 = s2c:Clone()
  3832. s2.Parent = Character.UpperTorso
  3833.     s2.Name = "BGMusic"
  3834. --  s2.SoundId = lastid
  3835.     s2.Pitch = 1
  3836.     s2.Volume = 1.5
  3837.     s2.Looped = true
  3838.     s2.archivable = false
  3839.     s2.TimePosition = lastsongpos
  3840.     if playsong == true then
  3841.     s2:play()      
  3842.     elseif playsong == false then
  3843.     s2:stop()          
  3844.     end
  3845.    
  3846.    
  3847.     else
  3848. lastsongpos=s2.TimePosition
  3849.  
  3850. if mememode == false then  
  3851.     s2.Pitch = 1
  3852.    
  3853.     s2.Volume = 1.5
  3854. else
  3855.  
  3856.     s2.Pitch = .9
  3857.    
  3858.     s2.Volume =2
  3859.  
  3860. end
  3861.  
  3862.  
  3863. s2.Looped = true
  3864. s2.SoundId = lastid
  3865. s2.EmitterSize = 30
  3866.     end
  3867.    
  3868.    
  3869.    
  3870. end))
  3871.  
  3872.  
  3873.  
  3874.  
  3875. inairvel=torvel*1
  3876.  
  3877. --forWRL
  3878. if inairvel > 30 then
  3879. inairvel=30
  3880. end
  3881. inairvel=inairvel/50*2
  3882.  
  3883.  
  3884.  
  3885. if attack == false then
  3886.     SetTween(RightWrist,{C0=GC0(RightWrist)},"Quad","Out",.2)
  3887.    
  3888.  
  3889.    
  3890.    
  3891. if Anim == "Jump" then
  3892.         change = 0.60*2
  3893. --Head,Torso               
  3894. SetTween(Root,{C0=GC0(Root)*cf(0,.5,0)*angles(math.rad( (- 1.8*MoveXZSpeed *(MoveYSpeed/50))*forWFB   ),math.rad(0),math.rad( (- 1.8*MoveXZSpeed *(MoveYSpeed/50))*forWRL  ))},"Quad","Out",.2)
  3895. SetTween(Waist,{C0=GC0(Waist)*cf(0,0,0)*angles(math.rad(    ( 1.2*MoveXZSpeed *(MoveYSpeed/50)*forWFB )    ),math.rad(0),math.rad(  ( 1.2*MoveXZSpeed *(MoveYSpeed/50)*forWRL ) ))},"Quad","Out",.3)
  3896. SetTween(Neck,{C0=GC0(Neck)*cf(0,0,0)*angles(math.rad(MoveYSpeed),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3897. ---------
  3898. --RightArm
  3899. if wep ~="Shotgun" and wep ~="Rifle"  then
  3900. SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(0,0,.5*(MoveYSpeed/50))*angles(math.rad(90*(MoveYSpeed/50)),math.rad(0),math.rad(10))},"Quad","Out",.3)
  3901. SetTween(RightElbow,{C0=GC0(RightElbow)*cf(0,0,0)*angles(math.rad(90*(MoveYSpeed/50)),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3902. else
  3903. SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(0,0,.5*(MoveYSpeed/50))*angles(math.rad(45*(MoveYSpeed/50)),math.rad(40),math.rad(10))},"Quad","Out",.3)
  3904. SetTween(RightElbow,{C0=GC0(RightElbow)*cf(0,0,0)*angles(math.rad(60+30*(MoveYSpeed/50)),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3905.    
  3906.    
  3907. end
  3908. ---------
  3909. --LeftArm
  3910. SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*cf(0,0,.5*(MoveYSpeed/50))*angles(math.rad(90*(MoveYSpeed/50)),math.rad(0),math.rad(-10))},"Quad","Out",.3)
  3911. SetTween(LeftElbow,{C0=GC0(LeftElbow)*cf(0,0,0)*angles(math.rad(90*(MoveYSpeed/50)),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3912. ---------
  3913. --RightLeg
  3914. SetTween(RightHip,{C0=GC0(RightHip)*cf(0,0,0)*angles(math.rad(90),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3915. SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0,0,0)*angles(math.rad(-90),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3916. SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3917. ---------
  3918. --LeftLeg
  3919. SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3920. SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3921. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0,0,0)*angles(math.rad(-30),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3922. ---------
  3923.  
  3924.             SetTween(LeftWrist,{C0=GC0(LeftWrist)},"Quad","Out",.2)
  3925.  
  3926. --          print(MoveXZSpeed)-- MoveYSpeed
  3927. elseif Anim == "Fall" then
  3928.         change = 0.60*2
  3929.  
  3930.  
  3931. --Head,Torso               
  3932. SetTween(Root,{C0=GC0(Root)*cf(0,-.2,0)*angles(math.rad(      (- 1.2*MoveXZSpeed *(MoveYSpeed/50)) *forWFB   ),math.rad(0),math.rad(  (- 1.2*MoveXZSpeed *(MoveYSpeed/50)) *forWRL))},"Quad","Out",.3)
  3933. SetTween(Waist,{C0=GC0(Waist)*cf(0,0,0)*angles(math.rad(    (- 1.2*MoveXZSpeed *(MoveYSpeed/50)) *forWFB   ),math.rad(0),math.rad( (- 1.2*MoveXZSpeed *(MoveYSpeed/50)) *forWRL  ))},"Quad","Out",.3)
  3934. SetTween(Neck,{C0=GC0(Neck)*cf(0,0,0)*angles(math.rad(MoveYSpeed),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3935. ---------
  3936. --RightArm
  3937. if wep ~="Shotgun" and wep ~="Rifle" then
  3938. SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(0,0,.5*(MoveYSpeed/50))*angles(math.rad(90*(MoveYSpeed/50)),math.rad(0),math.rad(45))},"Quad","Out",.3)
  3939. SetTween(RightElbow,{C0=GC0(RightElbow)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3940. else
  3941. SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(0,0,.5*(MoveYSpeed/50))*angles(math.rad(45*(MoveYSpeed/50)),math.rad(40),math.rad(45))},"Quad","Out",.3)
  3942. SetTween(RightElbow,{C0=GC0(RightElbow)*cf(0,0,0)*angles(math.rad(60),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3943.    
  3944.    
  3945. end
  3946.    
  3947. ---------
  3948. --LeftArm
  3949. SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*cf(0,0,.5*(MoveYSpeed/50))*angles(math.rad(90*(MoveYSpeed/50)),math.rad(0),math.rad(-45))},"Quad","Out",.3)
  3950. SetTween(LeftElbow,{C0=GC0(LeftElbow)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3951.  
  3952. ---------
  3953. --RightLeg
  3954. SetTween(RightHip,{C0=GC0(RightHip)*cf(0,0,0)*angles(math.rad(-MoveYSpeed),math.rad(10),math.rad(0))},"Quad","Out",.3)
  3955. SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0,0,0)*angles(math.rad(MoveYSpeed),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3956. SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3957. ---------
  3958. --LeftLeg
  3959. SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0,0,0)*angles(math.rad(-MoveYSpeed),math.rad(-10),math.rad(0))},"Quad","Out",.3)
  3960. SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0,0,0)*angles(math.rad(MoveYSpeed),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3961. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.3)
  3962. ---------
  3963.  
  3964.  
  3965.             SetTween(LeftWrist,{C0=GC0(LeftWrist)},"Quad","Out",.2)
  3966.  
  3967. elseif Anim == "Idle" then
  3968.    
  3969.    
  3970.  
  3971.  
  3972.                 change = (0.60*1.5)
  3973.                
  3974. --Head,Torso               
  3975. SetTween(Root,{C0=GC0(Root)*cf(0,-.01-.01*math.cos(sine/16),0)*angles(math.rad(0),math.rad(20),math.rad(0))},"Quad","Out",.35)
  3976. SetTween(Waist,{C0=GC0(Waist)*angles(math.rad(3*math.sin(sine/16)),math.rad(-10- 5.5 * math.cos(sine / 64 +.4* math.cos(sine / 16))),math.rad(0))},"Quad","Out",.25)
  3977. SetTween(Neck,{C0=GC0(Neck)*angles(math.rad(-10+6*math.cos(sine/16)),math.rad(-10- 20.5 * math.cos(sine / 64 +.4* math.cos(sine / 16))),math.rad(0))},"Quad","Out",.35)
  3978.  
  3979. ---------
  3980. --RightArm
  3981. if wep ~="Shotgun" and wep ~="Rifle" then
  3982. SetTween(RightShoulder,{C0=GC0(RightShoulder)*angles(math.rad((-6+3*math.cos(sine/16))- 5.5 * math.cos(sine / 64 +.4* math.cos(sine / 16))),math.rad(0),math.rad(0))},"Quad","Out",.2)
  3983. SetTween(RightElbow,{C0=GC0(RightElbow)*angles(math.rad(6+6*math.cos(sine/16)),math.rad(0),math.rad(0))},"Quad","Out",.2)
  3984. else
  3985. SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(-.1,0,-.3)*angles(math.rad((26+3*math.cos(sine/16))- 0 * math.cos(sine / 64 +.4* math.cos(sine / 16))),math.rad(80),math.rad(-30))},"Quad","Out",.4)
  3986. SetTween(RightElbow,{C0=GC0(RightElbow)*angles(math.rad(65+0*math.cos(sine/16)),math.rad(00),math.rad(0))},"Quad","Out",.4)
  3987. end
  3988. ---------
  3989. --LeftArm
  3990. if wep ~="Shotgun" and wep ~="Rifle" then
  3991. SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*angles(math.rad((-6+3*math.cos(sine/16))+ 5.5 * math.cos(sine / 64 +.4* math.cos(sine / 16))),math.rad(0),math.rad(0))},"Quad","Out",.2)
  3992. SetTween(LeftElbow,{C0=GC0(LeftElbow)*angles(math.rad(6+6*math.cos(sine/16)),math.rad(0),math.rad(0))},"Quad","Out",.2)
  3993. else
  3994. SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*angles(math.rad((16+3*math.cos(sine/16))+ 0 * math.cos(sine / 64 +.4* math.cos(sine / 16))),math.rad(0),math.rad(-20))},"Quad","Out",.4)
  3995. SetTween(LeftElbow,{C0=GC0(LeftElbow)*angles(math.rad(30+0*math.cos(sine/16)),math.rad(0),math.rad(0))},"Quad","Out",.4)
  3996. end
  3997.  
  3998.  
  3999.  
  4000. ---------
  4001. --RightLeg
  4002. SetTween(RightHip,{C0=GC0(RightHip)*angles(math.rad(6+3*math.cos(sine/16)),math.rad(-30),math.rad(1.5+1.5*math.cos(sine/16)))},"Quad","Out",.2)
  4003. SetTween(RightKnee,{C0=GC0(RightKnee)*angles(math.rad(-12-6*math.cos(sine/16)),math.rad(0),math.rad(0))},"Quad","Out",.1)
  4004. SetTween(RightAnkle,{C0=GC0(RightAnkle)*angles(math.rad(6+3*math.cos(sine/16)),math.rad(0),math.rad(1.5+1.5*math.cos(sine/16)))},"Quad","Out",.2)
  4005. ---------
  4006. --LeftLeg
  4007. SetTween(LeftHip,{C0=GC0(LeftHip)*angles(math.rad(6+3*math.cos(sine/16)),math.rad(10),math.rad(-.5-.5*math.cos(sine/16)))},"Quad","Out",.2)
  4008. SetTween(LeftKnee,{C0=GC0(LeftKnee)*angles(math.rad(-12-6*math.cos(sine/16)),math.rad(0),math.rad(0))},"Quad","Out",.2)
  4009. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*angles(math.rad(6+3*math.cos(sine/16)),math.rad(0),math.rad(-.5-.5*math.cos(sine/16)))},"Quad","Out",.2)
  4010. ---------
  4011.     Humanoid.JumpPower = 70
  4012.     Humanoid.WalkSpeed=16*.6
  4013.    
  4014.         if wep ~="Shotgun" and wep ~="Rifle" then
  4015.             SetTween(LeftWrist,{C0=GC0(LeftWrist)},"Quad","Out",.2)
  4016.         else
  4017.             SetTween(LeftWrist,{C0=GC0(LeftWrist)*cf(.3,-.15,-.25)*angles(math.rad(0),math.rad(90),math.rad(90))},"Quad","Out",.2)
  4018.     end
  4019.    
  4020. elseif Anim == "Walk" then
  4021. local speed=.7 --0.7
  4022. local torsomove = 10 --10
  4023. local armsmove = 20 --10
  4024. local leglift = 30 --30
  4025. local legturn =40 --40
  4026. local legwalk = 25 --25
  4027. --SetTween(Root,{C0=cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  4028.         change = 2.8*speed
  4029.     Humanoid.JumpPower = 70
  4030.     Humanoid.WalkSpeed=16*speed
  4031. --Head,Torso   
  4032. SetTween(Root,{C0=GC0(Root)*cf(((legwalk/25)/100)*forWRL*math.cos(sine/4),(torsomove/100)*math.sin(sine/4),((legwalk/25)/100)*forWFB*math.cos(sine/4))*angles(math.rad((-forWFB*10)+(forWFB*7.5)*math.sin(sine/4) ),math.rad((-20*math.cos(sine/8))+(-forWRL*(torsomove/2)) ),math.rad( ((-forWRL*(torsomove/2))+(forWRL*(torsomove/2))*math.sin(sine/4))-(torsomove/2)*forWFB*math.cos(sine/8)   ))},"Quad","Out",.2)
  4033. SetTween(Waist,{C0=GC0(Waist)*cf(0,0,0)*angles(math.rad(0),math.rad((torsomove)*math.cos(sine/8)),math.rad((torsomove/2)*forWFB*math.cos(sine/8) ))},"Quad","Out",.2)
  4034. SetTween(Neck,{C0=GC0(Neck)*cf(0,0,0)*angles(math.rad((forWFB*10)-(forWFB*(torsomove/2))*math.sin(sine/4) ),math.rad(((torsomove)*math.cos(sine/8))+(-45*forWRL)),math.rad((forWRL*(torsomove/2))-(forWRL*(torsomove/2))*math.sin(sine/4)))},"Quad","Out",.2)
  4035.  
  4036.  
  4037. ---------
  4038. --RightArm
  4039. if wep ~="Shotgun" and wep ~="Rifle" then
  4040. SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(0,0,0)*angles(math.rad((armsmove)*forWFB*math.sin(sine/8)),math.rad(0),math.rad(0))},"Quad","Out",.1)
  4041. SetTween(RightElbow,{C0=GC0(RightElbow)*cf(0,0,0)*angles(math.rad(5+(armsmove/2)*forWFB*math.sin(sine/8)),math.rad(0),math.rad(0))},"Quad","Out",.1)
  4042. else
  4043. SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(-.1,0,-.3)*angles(math.rad((26+3*math.cos(sine/4))- 0 * math.cos(sine / 64 +.4* math.cos(sine / 4))),math.rad(80),math.rad(-30))},"Quad","Out",.2)
  4044. SetTween(RightElbow,{C0=GC0(RightElbow)*angles(math.rad(65+0*math.cos(sine/4)),math.rad(00),math.rad(0))},"Quad","Out",.2)
  4045. end
  4046. ---------
  4047. --LeftArm
  4048. if wep ~="Shotgun" and wep ~="Rifle" then
  4049. SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*cf(0,0,0)*angles(math.rad(-(armsmove)*forWFB*math.sin(sine/8)),math.rad(0),math.rad(0))},"Quad","Out",.1)
  4050. SetTween(LeftElbow,{C0=GC0(LeftElbow)*cf(0,0,0)*angles(math.rad(5-(armsmove/2)*forWFB*math.sin(sine/8)),math.rad(0),math.rad(0))},"Quad","Out",.1)
  4051. else
  4052. SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*angles(math.rad((16+3*math.cos(sine/4))+ 0 * math.cos(sine / 64 +.4* math.cos(sine / 4))),math.rad(0),math.rad(-20))},"Quad","Out",.2)
  4053. SetTween(LeftElbow,{C0=GC0(LeftElbow)*angles(math.rad(30+0*math.cos(sine/4)),math.rad(0),math.rad(0))},"Quad","Out",.2)
  4054. end
  4055.  
  4056. ---------
  4057. --RightLeg
  4058. SetTween(RightHip,{C0=GC0(RightHip)*cf(-0.1*forWRL*math.sin(sine/8),0,0.1*forWFB*math.sin(sine/8))*angles(math.rad(((-forWRL*(leglift/4))*math.sin(sine/8) )+( (leglift/2)-(leglift/2)*math.cos(sine/8) )+(-forWFB*legwalk)*math.sin(sine/8) ),math.rad((legturn/4)*math.cos(sine/8)),math.rad(((-forWRL*legwalk)*math.sin(sine/8) )+forWRL*0))},"Quad","Out",.1)
  4059. SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0,0,0)*angles(math.rad( -leglift+(1*leglift)*math.cos(sine/8)   ),math.rad(0),math.rad(forWRL*0))},"Quad","Out",.1)
  4060. SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(0,0,0)*angles(math.rad((leglift/4)*math.cos(sine/8)  ),math.rad(0),math.rad(-(forWRL*10)*math.cos(sine/8)  ))},"Quad","Out",.1)
  4061. ---------
  4062. --LeftLeg
  4063. SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0.1*forWRL*math.sin(sine/8),0,-0.1*forWFB*math.sin(sine/8))*angles(math.rad(((forWRL*(leglift/4))*math.sin(sine/8) ) +((leglift/2)+(leglift/2)*math.cos(sine/8) )-(-forWFB*legwalk)*math.sin(sine/8) ),math.rad((legturn/4)*math.cos(sine/8)),math.rad((-(-forWRL*legwalk)*math.sin(sine/8) )+forWRL*0))},"Quad","Out",.1)
  4064. SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0,0,0)*angles(math.rad( -leglift-(1*leglift)*math.cos(sine/8)   ),math.rad(0),math.rad(forWRL*0))},"Quad","Out",.1)
  4065. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0,0,0)*angles(math.rad(-(leglift/4)*math.cos(sine/8)   ),math.rad(0),math.rad((forWRL*10)*math.cos(sine/8)  ))},"Quad","Out",.1)
  4066. ---------
  4067.     if  wep ~="Shotgun" and wep ~="Rifle" then
  4068.             SetTween(LeftWrist,{C0=GC0(LeftWrist)},"Quad","Out",.2)
  4069.         else
  4070.             SetTween(LeftWrist,{C0=GC0(LeftWrist)*cf(.3,-.15,-.25)*angles(math.rad(0),math.rad(90),math.rad(90))},"Quad","Out",.2)
  4071.     end
  4072. elseif Anim == "Run" then
  4073. local speed=1.2
  4074.  
  4075.  
  4076. --SetTween(Root,{C0=cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  4077.         change = 2.8*speed
  4078.     Humanoid.JumpPower = 70
  4079.     Humanoid.WalkSpeed=21*speed
  4080. --Head,Torso   
  4081. SetTween(Root,{C0=GC0(Root)*cf(.2*forWRL*math.cos(sine/4),.2*math.sin(sine/4),.2*forWFB*math.cos(sine/4))*angles(math.rad((-forWFB*20)+(forWFB*10)*math.sin(sine/4) ),math.rad(-20*math.cos(sine/8) ),math.rad( ((-forWRL*10)+(forWRL*10)*math.sin(sine/4))-5*forWFB*math.cos(sine/8)   ))},"Quad","Out",.1)
  4082. SetTween(Waist,{C0=GC0(Waist)*cf(0,0,0)*angles(math.rad(0),math.rad(10*math.cos(sine/8)),math.rad(5*forWFB*math.cos(sine/8) ))},"Quad","Out",.1)
  4083. SetTween(Neck,{C0=GC0(Neck)*cf(0,0,0)*angles(math.rad((forWFB*15)-(forWFB*10)*math.sin(sine/4) ),math.rad((10*math.cos(sine/8))+(-45*forWRL)),math.rad((forWRL*10)-(forWRL*10)*math.sin(sine/4)))},"Quad","Out",.1)
  4084. ---------
  4085. --RightArm
  4086. if wep ~="Shotgun" and wep ~="Rifle" then
  4087. SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(0,0,0)*angles(math.rad(20*forWFB*math.sin(sine/8)),math.rad(0),math.rad(0))},"Quad","Out",.1)
  4088. SetTween(RightElbow,{C0=GC0(RightElbow)*cf(0,0,0)*angles(math.rad(25+15*forWFB*math.sin(sine/8)),math.rad(0),math.rad(0))},"Quad","Out",.1)
  4089. else
  4090. SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(-.1,0,-.3)*angles(math.rad((26+6*math.cos(sine/4))- 0 * math.cos(sine / 64 +.4* math.cos(sine / 4))),math.rad(80),math.rad(-30))},"Quad","Out",.2)
  4091. SetTween(RightElbow,{C0=GC0(RightElbow)*angles(math.rad(65+0*math.cos(sine/4)),math.rad(00),math.rad(0))},"Quad","Out",.2)
  4092. end
  4093. ---------
  4094. --LeftArm
  4095. if wep ~="Shotgun" and wep ~="Rifle" then
  4096. SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*cf(0,0,0)*angles(math.rad(-20*forWFB*math.sin(sine/8)),math.rad(0),math.rad(0))},"Quad","Out",.1)
  4097. SetTween(LeftElbow,{C0=GC0(LeftElbow)*cf(0,0,0)*angles(math.rad(25-15*forWFB*math.sin(sine/8)),math.rad(0),math.rad(0))},"Quad","Out",.1)
  4098. else
  4099. SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*angles(math.rad((16+6*math.cos(sine/4))+ 0 * math.cos(sine / 64 +.4* math.cos(sine / 4))),math.rad(0),math.rad(-20))},"Quad","Out",.2)
  4100. SetTween(LeftElbow,{C0=GC0(LeftElbow)*angles(math.rad(30+0*math.cos(sine/4)),math.rad(0),math.rad(0))},"Quad","Out",.2)
  4101. end
  4102.  
  4103.  
  4104. ---------
  4105. --RightLeg
  4106. SetTween(RightHip,{C0=GC0(RightHip)*cf(-0.1*forWRL*math.sin(sine/8),0,0.1*forWFB*math.sin(sine/8))*angles(math.rad(( (1*30)-(1*29)*math.cos(sine/8) )+(-forWFB*45)*math.sin(sine/8) ),math.rad(10*math.cos(sine/8)),math.rad(((-forWRL*45)*math.sin(sine/8) )+forWRL*0))},"Quad","Out",.1)
  4107. SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0,0,0)*angles(math.rad( -50+(1*50)*math.cos(sine/8)   ),math.rad(0),math.rad(forWRL*0))},"Quad","Out",.1)
  4108. SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(0,0,0)*angles(math.rad((forWFB*10)*math.cos(sine/8)  ),math.rad(0),math.rad(-(forWRL*10)*math.cos(sine/8)  ))},"Quad","Out",.1)
  4109. ---------
  4110. --LeftLeg
  4111. SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0.1*forWRL*math.sin(sine/8),0,-0.1*forWFB*math.sin(sine/8))*angles(math.rad( ((1*30)+(1*29)*math.cos(sine/8) )-(-forWFB*45)*math.sin(sine/8) ),math.rad(10*math.cos(sine/8)),math.rad((-(-forWRL*45)*math.sin(sine/8) )+forWRL*0))},"Quad","Out",.1)
  4112. SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0,0,0)*angles(math.rad( -50-(1*50)*math.cos(sine/8)   ),math.rad(0),math.rad(forWRL*0))},"Quad","Out",.1)
  4113. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0,0,0)*angles(math.rad(-(forWFB*10)*math.cos(sine/8)   ),math.rad(0),math.rad((forWRL*10)*math.cos(sine/8)  ))},"Quad","Out",.1)
  4114. ---------
  4115.     if  wep ~="Shotgun" and wep ~="Rifle" then
  4116.             SetTween(LeftWrist,{C0=GC0(LeftWrist)},"Quad","Out",.2)
  4117.         else
  4118.             SetTween(LeftWrist,{C0=GC0(LeftWrist)*cf(.3,-.15,-.25)*angles(math.rad(0),math.rad(90),math.rad(90))},"Quad","Out",.2)
  4119.     end
  4120. elseif Anim == "Sit" then  
  4121.  
  4122. end
  4123. end
  4124.  
  4125. if legswhileattack == true and attack == true then
  4126.  
  4127. if Anim == "Walk" then
  4128. local speed=0.7
  4129.  
  4130.         change = 2.8*speed 
  4131. SetTween(Root,{C0=GC0(Root)*cf(.1*forWRL*math.cos(sine/4),.1*math.sin(sine/4),.1*forWFB*math.cos(sine/4))*angles(math.rad((-forWFB*10)+(forWFB*7.5)*math.sin(sine/4) ),math.rad((-20*math.cos(sine/8))+(-forWRL*5) ),math.rad( ((-forWRL*5)+(forWRL*5)*math.sin(sine/4))-5*forWFB*math.cos(sine/8)   ))},"Quad","Out",.2)
  4132.    
  4133. ---------
  4134. --RightLeg
  4135. SetTween(RightHip,{C0=GC0(RightHip)*cf(-0.1*forWRL*math.sin(sine/8),0,0.1*forWFB*math.sin(sine/8))*angles(math.rad(((-forWRL*10)*math.sin(sine/8) )+( (1*20)-(1*20)*math.cos(sine/8) )+(-forWFB*25)*math.sin(sine/8) ),math.rad(10*math.cos(sine/8)),math.rad(((-forWRL*25)*math.sin(sine/8) )+forWRL*0))},"Quad","Out",.1)
  4136. SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0,0,0)*angles(math.rad( -40+(1*40)*math.cos(sine/8)   ),math.rad(0),math.rad(forWRL*0))},"Quad","Out",.1)
  4137. SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(0,0,0)*angles(math.rad((forWFB*10)*math.cos(sine/8)  ),math.rad(0),math.rad(-(forWRL*10)*math.cos(sine/8)  ))},"Quad","Out",.1)
  4138. ---------
  4139. --LeftLeg
  4140. SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0.1*forWRL*math.sin(sine/8),0,-0.1*forWFB*math.sin(sine/8))*angles(math.rad(((forWRL*10)*math.sin(sine/8) ) +((1*20)+(1*20)*math.cos(sine/8) )-(-forWFB*25)*math.sin(sine/8) ),math.rad(10*math.cos(sine/8)),math.rad((-(-forWRL*25)*math.sin(sine/8) )+forWRL*0))},"Quad","Out",.1)
  4141. SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0,0,0)*angles(math.rad( -40-(1*40)*math.cos(sine/8)   ),math.rad(0),math.rad(forWRL*0))},"Quad","Out",.1)
  4142. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0,0,0)*angles(math.rad(-(forWFB*10)*math.cos(sine/8)   ),math.rad(0),math.rad((forWRL*10)*math.cos(sine/8)  ))},"Quad","Out",.1)
  4143. ---------
  4144. elseif Anim == "Run" then
  4145. local speed=1.2
  4146.  
  4147.         change = 2.8*speed
  4148.     Humanoid.JumpPower = 70
  4149.    
  4150. SetTween(Root,{C0=GC0(Root)*cf(.2*forWRL*math.cos(sine/4),.2*math.sin(sine/4),.2*forWFB*math.cos(sine/4))*angles(math.rad((-forWFB*20)+(forWFB*10)*math.sin(sine/4) ),math.rad(-20*math.cos(sine/8) ),math.rad( ((-forWRL*10)+(forWRL*10)*math.sin(sine/4))-5*forWFB*math.cos(sine/8)   ))},"Quad","Out",.2)
  4151.    
  4152. ---------
  4153. --RightLeg
  4154. SetTween(RightHip,{C0=GC0(RightHip)*cf(-0.1*forWRL*math.sin(sine/8),0,0.1*forWFB*math.sin(sine/8))*angles(math.rad(( (1*30)-(1*29)*math.cos(sine/8) )+(-forWFB*45)*math.sin(sine/8) ),math.rad(10*math.cos(sine/8)),math.rad(((-forWRL*45)*math.sin(sine/8) )+forWRL*0))},"Quad","Out",.1)
  4155. SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0,0,0)*angles(math.rad( -50+(1*50)*math.cos(sine/8)   ),math.rad(0),math.rad(forWRL*0))},"Quad","Out",.1)
  4156. SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(0,0,0)*angles(math.rad((forWFB*10)*math.cos(sine/8)  ),math.rad(0),math.rad(-(forWRL*10)*math.cos(sine/8)  ))},"Quad","Out",.1)
  4157. ---------
  4158. --LeftLeg
  4159. SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0.1*forWRL*math.sin(sine/8),0,-0.1*forWFB*math.sin(sine/8))*angles(math.rad( ((1*30)+(1*29)*math.cos(sine/8) )-(-forWFB*45)*math.sin(sine/8) ),math.rad(10*math.cos(sine/8)),math.rad((-(-forWRL*45)*math.sin(sine/8) )+forWRL*0))},"Quad","Out",.1)
  4160. SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0,0,0)*angles(math.rad( -50-(1*50)*math.cos(sine/8)   ),math.rad(0),math.rad(forWRL*0))},"Quad","Out",.1)
  4161. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0,0,0)*angles(math.rad(-(forWFB*10)*math.cos(sine/8)   ),math.rad(0),math.rad((forWRL*10)*math.cos(sine/8)  ))},"Quad","Out",.1)
  4162. ---------
  4163. end
  4164. end
  4165.  
  4166.  
  4167.  
  4168. Swait(Animstep)
  4169. end
  4170. end))
  4171. coroutine.resume(coroutine.create(function()           
  4172.             local   remote = Instance.new 'RemoteFunction';
  4173. remote.Parent = Character;
  4174. remote.OnServerInvoke = function (player, request, ...)
  4175.     if (player ~= Player) then
  4176.         return error ('You cannot invoke this remote', 0);
  4177.     end;
  4178.  
  4179.  
  4180.    
  4181.             if (request == 1) then
  4182.         local k = ...;
  4183.    
  4184. KeyDownF(k)
  4185.  
  4186.  
  4187.  
  4188.     end;
  4189.     if (request == 2) then
  4190.         local k = ...;
  4191.    
  4192. KeyUpF(k)
  4193.  
  4194.  
  4195.  
  4196.     end;
  4197.     if (request == 3) then
  4198.         local k = ...;
  4199.     if k == "Down" then
  4200. Button1DownF(k)
  4201. elseif k == "Up" then
  4202. Button1UpF(k)
  4203. end
  4204.     end;
  4205.    
  4206.    
  4207.         if (request == 4) then
  4208.         local k=...;
  4209.         --MTARGET=k
  4210.     end
  4211.     if (request == 5) then
  4212.             local   k=...;
  4213.         Target=k
  4214.        
  4215.     end
  4216.  
  4217.  
  4218.  
  4219.  
  4220.  
  4221. end;
  4222.  
  4223.  
  4224.  
  4225.  
  4226.  
  4227.  
  4228.  
  4229.  
  4230.  
  4231.  
  4232.  
  4233.  
  4234.  
  4235. remote.Name = 'ServerRemote';
  4236. --local remote = NLS ([=[
  4237.    
  4238.    
  4239.    
  4240. local localscript = script.Keys
  4241. localscript.Name = Player.Name
  4242. localscript.Parent = Character
  4243.  
  4244. --]=], Player.Character)
  4245. end))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top