Znimator

EDGE

Jun 27th, 2019
572
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 71.87 KB | None | 0 0
  1. ---------------
  2. --EDGE v0.1--
  3. ----------------------------------------------------------------
  4. print([[
  5. --made by ki2005rill
  6. --FE code by Mokiros
  7. --Discord: Znimator#3275
  8. --------------------------------
  9. Hello its me MARI... ki2005rill
  10. IF U LEAK THIS! I WILL FOUND U AND KILL UR TADDY BEAR
  11. UNDERSTAND?
  12. --------------------------------
  13. Enjoy ;3
  14. ]])
  15.  
  16. wait(0.2)
  17.  
  18. local sick = Instance.new("Sound",Character)
  19. sick.SoundId = "rbxassetid://183142252"
  20. sick.Looped = true
  21. sick.Pitch = 1
  22. sick.Volume = 5
  23. sick:Play()
  24. Player = game:GetService("Players").LocalPlayer
  25. PlayerGui = Player.PlayerGui
  26. Cam = workspace.CurrentCamera
  27. Backpack = Player.Backpack
  28. Character = Player.Character
  29. Humanoid = Character.Humanoid
  30. Mouse = Player:GetMouse()
  31. RootPart = Character["HumanoidRootPart"]
  32. Torso = Character["Torso"]
  33. Head = Character["Head"]
  34. RightArm = Character["Right Arm"]
  35. LeftArm = Character["Left Arm"]
  36. RightLeg = Character["Right Leg"]
  37. LeftLeg = Character["Left Leg"]
  38. RootJoint = RootPart["RootJoint"]
  39. Neck = Torso["Neck"]
  40. RightShoulder = Torso["Right Shoulder"]
  41. LeftShoulder = Torso["Left Shoulder"]
  42. RightHip = Torso["Right Hip"]
  43. LeftHip = Torso["Left Hip"]
  44.  
  45. IT = Instance.new
  46. CF = CFrame.new
  47. VT = Vector3.new
  48. RAD = math.rad
  49. C3 = Color3.new
  50. UD2 = UDim2.new
  51. BRICKC = BrickColor.new
  52. ANGLES = CFrame.Angles
  53. EULER = CFrame.fromEulerAnglesXYZ
  54. COS = math.cos
  55. ACOS = math.acos
  56. SIN = math.sin
  57. ASIN = math.asin
  58. ABS = math.abs
  59. MRANDOM = math.random
  60. FLOOR = math.floor
  61.  
  62. --//=================================\\
  63. --||          USEFUL VALUES
  64. --\\=================================//
  65.  
  66. Animation_Speed = 3
  67. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  68. local Speed = 12
  69. local SIZE = 1
  70. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  71. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  72. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  73. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  74. local DAMAGEMULTIPLIER = 1
  75. local ANIM = "Idle"
  76. local ATTACK = false
  77. local EQUIPPED = false
  78. local HOLD = false
  79. local COMBO = 1
  80. local Rooted = false
  81. local SINE = 0
  82. local KEYHOLD = false
  83. local CHANGE = 2 / Animation_Speed
  84. local WALKINGANIM = false
  85. local VALUE1 = false
  86. local VALUE2 = false
  87. local ROBLOXIDLEANIMATION = IT("Animation")
  88. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  89. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  90. --ROBLOXIDLEANIMATION.Parent = Humanoid
  91. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  92. WEAPONGUI.Name = "Weapon GUI"
  93. local Weapon = IT("Model")
  94. Weapon.Name = "Adds"
  95. local Effects = IT("Folder", Weapon)
  96. Effects.Name = "Effects"
  97. local ANIMATOR = Humanoid.Animator
  98. local ANIMATE = Character.Animate
  99. local UNANCHOR = true
  100. local PLAYANIMS = true
  101. local CLOAKED = false
  102.  
  103. --//=================================\\
  104. --\\=================================//
  105.  
  106.  
  107. --//=================================\\
  108. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  109. --\\=================================//
  110.  
  111. ArtificialHB = Instance.new("BindableEvent", script)
  112. ArtificialHB.Name = "ArtificialHB"
  113.  
  114. script:WaitForChild("ArtificialHB")
  115.  
  116. frame = Frame_Speed
  117. tf = 0
  118. allowframeloss = false
  119. tossremainder = false
  120. lastframe = tick()
  121. script.ArtificialHB:Fire()
  122.  
  123. game:GetService("RunService").Heartbeat:connect(function(s, p)
  124.     tf = tf + s
  125.     if tf >= frame then
  126.         if allowframeloss then
  127.             script.ArtificialHB:Fire()
  128.             lastframe = tick()
  129.         else
  130.             for i = 1, math.floor(tf / frame) do
  131.                 script.ArtificialHB:Fire()
  132.             end
  133.         lastframe = tick()
  134.         end
  135.         if tossremainder then
  136.             tf = 0
  137.         else
  138.             tf = tf - frame * math.floor(tf / frame)
  139.         end
  140.     end
  141. end)
  142.  
  143. --//=================================\\
  144. --\\=================================//
  145.  
  146. --//=================================\\
  147. --||          SOME FUNCTIONS
  148. --\\=================================//
  149.  
  150. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  151.     return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  152. end
  153.  
  154. function PositiveAngle(NUMBER)
  155.     if NUMBER >= 0 then
  156.         NUMBER = 0
  157.     end
  158.     return NUMBER
  159. end
  160.  
  161. function NegativeAngle(NUMBER)
  162.     if NUMBER <= 0 then
  163.         NUMBER = 0
  164.     end
  165.     return NUMBER
  166. end
  167.  
  168. function Swait(NUMBER)
  169.     if NUMBER == 0 or NUMBER == nil then
  170.         ArtificialHB.Event:wait()
  171.     else
  172.         for i = 1, NUMBER do
  173.             ArtificialHB.Event:wait()
  174.         end
  175.     end
  176. end
  177.  
  178. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  179.     local NEWMESH = IT(MESH)
  180.     if MESH == "SpecialMesh" then
  181.         NEWMESH.MeshType = MESHTYPE
  182.         if MESHID ~= "nil" and MESHID ~= "" then
  183.             NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  184.         end
  185.         if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  186.             NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  187.         end
  188.     end
  189.     NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  190.     NEWMESH.Scale = SCALE
  191.     NEWMESH.Parent = PARENT
  192.     return NEWMESH
  193. end
  194.  
  195. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  196.     local NEWPART = IT("Part")
  197.     NEWPART.formFactor = FORMFACTOR
  198.     NEWPART.Reflectance = REFLECTANCE
  199.     NEWPART.Transparency = TRANSPARENCY
  200.     NEWPART.CanCollide = false
  201.     NEWPART.Locked = true
  202.     NEWPART.Anchored = true
  203.     if ANCHOR == false then
  204.         NEWPART.Anchored = false
  205.     end
  206.     NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  207.     NEWPART.Name = NAME
  208.     NEWPART.Size = SIZE
  209.     NEWPART.Position = Torso.Position
  210.     NEWPART.Material = MATERIAL
  211.     NEWPART:BreakJoints()
  212.     NEWPART.Parent = PARENT
  213.     return NEWPART
  214. end
  215.  
  216.     local function weldBetween(a, b)
  217.         local weldd = Instance.new("ManualWeld")
  218.         weldd.Part0 = a
  219.         weldd.Part1 = b
  220.         weldd.C0 = CFrame.new()
  221.         weldd.C1 = b.CFrame:inverse() * a.CFrame
  222.         weldd.Parent = a
  223.         return weldd
  224.     end
  225.  
  226.  
  227. function QuaternionFromCFrame(cf)
  228.     local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  229.     local trace = m00 + m11 + m22
  230.     if trace > 0 then
  231.         local s = math.sqrt(1 + trace)
  232.         local recip = 0.5 / s
  233.         return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  234.     else
  235.         local i = 0
  236.         if m11 > m00 then
  237.             i = 1
  238.         end
  239.         if m22 > (i == 0 and m00 or m11) then
  240.             i = 2
  241.         end
  242.         if i == 0 then
  243.             local s = math.sqrt(m00 - m11 - m22 + 1)
  244.             local recip = 0.5 / s
  245.             return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  246.         elseif i == 1 then
  247.             local s = math.sqrt(m11 - m22 - m00 + 1)
  248.             local recip = 0.5 / s
  249.             return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  250.         elseif i == 2 then
  251.             local s = math.sqrt(m22 - m00 - m11 + 1)
  252.             local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  253.         end
  254.     end
  255. end
  256.  
  257. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  258.     local xs, ys, zs = x + x, y + y, z + z
  259.     local wx, wy, wz = w * xs, w * ys, w * zs
  260.     local xx = x * xs
  261.     local xy = x * ys
  262.     local xz = x * zs
  263.     local yy = y * ys
  264.     local yz = y * zs
  265.     local zz = z * zs
  266.     return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  267. end
  268.  
  269. function QuaternionSlerp(a, b, t)
  270.     local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  271.     local startInterp, finishInterp;
  272.     if cosTheta >= 0.0001 then
  273.         if (1 - cosTheta) > 0.0001 then
  274.             local theta = ACOS(cosTheta)
  275.             local invSinTheta = 1 / SIN(theta)
  276.             startInterp = SIN((1 - t) * theta) * invSinTheta
  277.             finishInterp = SIN(t * theta) * invSinTheta
  278.         else
  279.             startInterp = 1 - t
  280.             finishInterp = t
  281.         end
  282.     else
  283.         if (1 + cosTheta) > 0.0001 then
  284.             local theta = ACOS(-cosTheta)
  285.             local invSinTheta = 1 / SIN(theta)
  286.             startInterp = SIN((t - 1) * theta) * invSinTheta
  287.             finishInterp = SIN(t * theta) * invSinTheta
  288.         else
  289.             startInterp = t - 1
  290.             finishInterp = t
  291.         end
  292.     end
  293.     return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  294. end
  295.  
  296. function Clerp(a, b, t)
  297.     local qa = {QuaternionFromCFrame(a)}
  298.     local qb = {QuaternionFromCFrame(b)}
  299.     local ax, ay, az = a.x, a.y, a.z
  300.     local bx, by, bz = b.x, b.y, b.z
  301.     local _t = 1 - t
  302.     return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  303. end
  304.  
  305. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  306.     local frame = IT("Frame")
  307.     frame.BackgroundTransparency = TRANSPARENCY
  308.     frame.BorderSizePixel = BORDERSIZEPIXEL
  309.     frame.Position = POSITION
  310.     frame.Size = SIZE
  311.     frame.BackgroundColor3 = COLOR
  312.     frame.BorderColor3 = BORDERCOLOR
  313.     frame.Name = NAME
  314.     frame.Parent = PARENT
  315.     return frame
  316. end
  317.  
  318. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  319.     local label = IT("TextLabel")
  320.     label.BackgroundTransparency = 1
  321.     label.Size = UD2(1, 0, 1, 0)
  322.     label.Position = UD2(0, 0, 0, 0)
  323.     label.TextColor3 = TEXTCOLOR
  324.     label.TextStrokeTransparency = STROKETRANSPARENCY
  325.     label.TextTransparency = TRANSPARENCY
  326.     label.FontSize = TEXTFONTSIZE
  327.     label.Font = TEXTFONT
  328.     label.BorderSizePixel = BORDERSIZEPIXEL
  329.     label.TextScaled = false
  330.     label.Text = TEXT
  331.     label.Name = NAME
  332.     label.Parent = PARENT
  333.     return label
  334. end
  335.  
  336. function NoOutlines(PART)
  337.     PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  338. end
  339.  
  340. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  341.     local NEWWELD = IT(TYPE)
  342.     NEWWELD.Part0 = PART0
  343.     NEWWELD.Part1 = PART1
  344.     NEWWELD.C0 = C0
  345.     NEWWELD.C1 = C1
  346.     NEWWELD.Parent = PARENT
  347.     return NEWWELD
  348. end
  349.  
  350. local S = IT("Sound")
  351. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  352.     local NEWSOUND = nil
  353.     coroutine.resume(coroutine.create(function()
  354.         NEWSOUND = S:Clone()
  355.         NEWSOUND.Parent = PARENT
  356.         NEWSOUND.Volume = VOLUME
  357.         NEWSOUND.Pitch = PITCH
  358.         NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  359.         NEWSOUND:play()
  360.         if DOESLOOP == true then
  361.             NEWSOUND.Looped = true
  362.         else
  363.             repeat wait(1) until NEWSOUND.Playing == false
  364.             NEWSOUND:remove()
  365.         end
  366.     end))
  367.     return NEWSOUND
  368. end
  369.  
  370. function MakeForm(PART,TYPE)
  371.     if TYPE == "Cyl" then
  372.         local MSH = IT("CylinderMesh",PART)
  373.     elseif TYPE == "Ball" then
  374.         local MSH = IT("SpecialMesh",PART)
  375.         MSH.MeshType = "Sphere"
  376.     elseif TYPE == "Wedge" then
  377.         local MSH = IT("SpecialMesh",PART)
  378.         MSH.MeshType = "Wedge"
  379.     end
  380. end
  381.  
  382. function CFrameFromTopBack(at, top, back)
  383.     local right = top:Cross(back)
  384.     return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  385. end
  386.  
  387. function PuddleOfBlood(Position,MaxDrop,Model,MaxSize)
  388.     local HITFLOOR, HITPOS, NORMAL = Raycast(Position, (CF(Position, Position + VT(0, -1, 0))).lookVector, MaxDrop, Model)
  389.     if HITFLOOR ~= nil then
  390.         if HITFLOOR.Parent ~= Weapon and HITFLOOR.Parent ~= Character then
  391.             if HITFLOOR.Name == "BloodPuddle" then
  392.                 local DIST = (Position - HITFLOOR.Position).Magnitude
  393.                 if (HITFLOOR.Size.Z <= 5 and HITFLOOR.Size.Z < MaxSize) or (HITFLOOR.Size.Z > 5 and HITFLOOR.Size.Z < MaxSize and DIST < HITFLOOR.Size.Z/3) then
  394.                     HITFLOOR.Size = HITFLOOR.Size + VT(0.1,0,0.1)
  395.                 end
  396.             else
  397.                 if HITFLOOR.Anchored == true then
  398.                     local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(2,0,2))
  399.                     BLOOD.CFrame = CF(HITPOS,HITPOS+NORMAL)*ANGLES(RAD(90),RAD(0),RAD(0))
  400.                     MakeForm(BLOOD,"Cyl")
  401.                     coroutine.resume(coroutine.create(function()
  402.                         Swait(75)
  403.                         while true do
  404.                             Swait()
  405.                             BLOOD.Size = BLOOD.Size - VT(0.02,0,0.02)
  406.                             if BLOOD.Size.Z < 0.051 then
  407.                                 BLOOD:remove()
  408.                                 break
  409.                             end
  410.                         end
  411.                     end))
  412.                 end
  413.             end
  414.         end
  415.     end
  416. end
  417.  
  418. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  419. function WACKYEFFECT(Table)
  420.     local TYPE = (Table.EffectType or "Sphere")
  421.     local SIZE = (Table.Size or VT(1,1,1))
  422.     local ENDSIZE = (Table.Size2 or VT(0,0,0))
  423.     local TRANSPARENCY = (Table.Transparency or 0)
  424.     local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  425.     local CFRAME = (Table.CFrame or Torso.CFrame)
  426.     local MOVEDIRECTION = (Table.MoveToPos or nil)
  427.     local ROTATION1 = (Table.RotationX or 0)
  428.     local ROTATION2 = (Table.RotationY or 0)
  429.     local ROTATION3 = (Table.RotationZ or 0)
  430.     local MATERIAL = (Table.Material or "Neon")
  431.     local COLOR = (Table.Color or C3(1,1,1))
  432.     local TIME = (Table.Time or 45)
  433.     local SOUNDID = (Table.SoundID or nil)
  434.     local SOUNDPITCH = (Table.SoundPitch or nil)
  435.     local SOUNDVOLUME = (Table.SoundVolume or nil)
  436.     coroutine.resume(coroutine.create(function()
  437.         local PLAYSSOUND = false
  438.         local SOUND = nil
  439.         local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  440.         if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  441.             PLAYSSOUND = true
  442.             SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  443.         end
  444.         EFFECT.Color = COLOR
  445.         local MSH = nil
  446.         if TYPE == "Sphere" then
  447.             MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  448.         elseif TYPE == "Block" or TYPE == "Box" then
  449.             MSH = IT("BlockMesh",EFFECT)
  450.             MSH.Scale = SIZE
  451.         elseif TYPE == "Wave" then
  452.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  453.         elseif TYPE == "Ring" then
  454.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  455.         elseif TYPE == "Slash" then
  456.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  457.         elseif TYPE == "Round Slash" then
  458.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  459.         elseif TYPE == "Swirl" then
  460.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  461.         elseif TYPE == "Skull" then
  462.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  463.         elseif TYPE == "Crystal" then
  464.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  465.         end
  466.         if MSH ~= nil then
  467.             local MOVESPEED = nil
  468.             if MOVEDIRECTION ~= nil then
  469.                 MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  470.             end
  471.             local GROWTH = SIZE - ENDSIZE
  472.             local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  473.             if TYPE == "Block" then
  474.                 EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  475.             else
  476.                 EFFECT.CFrame = CFRAME
  477.             end
  478.             for LOOP = 1, TIME+1 do
  479.                 Swait()
  480.                 MSH.Scale = MSH.Scale - GROWTH/TIME
  481.                 if TYPE == "Wave" then
  482.                     MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  483.                 end
  484.                 EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  485.                 if TYPE == "Block" then
  486.                     EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  487.                 else
  488.                     EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  489.                 end
  490.                 if MOVEDIRECTION ~= nil then
  491.                     local ORI = EFFECT.Orientation
  492.                     EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  493.                     EFFECT.Orientation = ORI
  494.                 end
  495.             end
  496.             if PLAYSSOUND == false then
  497.                 EFFECT:remove()
  498.             else
  499.                 repeat wait(1) until SOUND.Playing == false
  500.                 EFFECT:remove()
  501.             end
  502.         else
  503.             if PLAYSSOUND == false then
  504.                 EFFECT:remove()
  505.             else
  506.                 repeat Swait() until SOUND.Playing == false
  507.                 EFFECT:remove()
  508.             end
  509.         end
  510.     end))
  511. end
  512.  
  513. function SprayBlood(POSITION,DIRECTION,BloodSize)
  514.     local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(0.3,0.3,0.3),false)
  515.     BLOOD.CFrame = CF(POSITION)
  516.     MakeForm(BLOOD,"Ball")
  517.     local bv = Instance.new("BodyVelocity",BLOOD)
  518.     bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  519.     bv.velocity = CF(POSITION,DIRECTION+VT(MRANDOM(-3,3)/30,MRANDOM(-3,3)/30,MRANDOM(-3,3)/30)).lookVector*75
  520.     bv.Name = "MOVE"
  521.     Debris:AddItem(bv,0.05)
  522.     coroutine.resume(coroutine.create(function()
  523.         local HASTOUCHEDGROUND = false
  524.         local HIT = BLOOD.Touched:Connect(function(hit)
  525.             if hit.Anchored == true then
  526.                 HASTOUCHEDGROUND = true
  527.                 PuddleOfBlood(BLOOD.Position+VT(0,1,0),2,BLOOD,BloodSize)
  528.             end
  529.         end)
  530.         wait(5)
  531.         if HASTOUCHEDGROUND == false then
  532.             BLOOD:remove()
  533.         end
  534.     end))
  535. end
  536.  
  537. Debris = game:GetService("Debris")
  538.  
  539. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  540.     local DIRECTION = CF(StartPos,EndPos).lookVector
  541.     return Raycast(StartPos, DIRECTION, Distance, Ignore)
  542. end
  543.  
  544. function turnto(position)
  545.     RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  546. end
  547.  
  548. function recurse(root,callback,i)
  549.     i= i or 0
  550.     for _,v in pairs(root:GetChildren()) do
  551.         i = i + 1
  552.         callback(i,v)
  553.        
  554.         if #v:GetChildren() > 0 then
  555.             i = recurse(v,callback,i)
  556.         end
  557.     end
  558.    
  559.     return i
  560. end
  561.  
  562. function ragdollJoint(character, part0, part1, attachmentName, className, properties)
  563.     attachmentName = attachmentName.."RigAttachment"
  564.     local constraint = Instance.new(className.."Constraint")
  565.     constraint.Attachment0 = part0:FindFirstChild(attachmentName)
  566.     constraint.Attachment1 = part1:FindFirstChild(attachmentName)
  567.     constraint.Name = "RagdollConstraint"..part1.Name
  568.    
  569.     for _,propertyData in next,properties or {} do
  570.         constraint[propertyData[1]] = propertyData[2]
  571.     end
  572.    
  573.     constraint.Parent = character
  574. end
  575.  
  576. function getAttachment0(character, attachmentName)
  577.     for _,child in next,character:GetChildren() do
  578.         local attachment = child:FindFirstChild(attachmentName)
  579.         if attachment then
  580.             return attachment
  581.         end
  582.     end
  583. end
  584.  
  585. function R15Ragdoll(character)
  586.     recurse(character, function(_,v)
  587.         if v:IsA("Attachment") then
  588.             v.Axis = Vector3.new(0, 1, 0)
  589.             v.SecondaryAxis = Vector3.new(0, 0, 1)
  590.             v.Rotation = Vector3.new(0, 0, 0)
  591.         end
  592.     end)
  593.     for _,child in next,character:GetChildren() do
  594.         if child:IsA("Accoutrement") then
  595.             for _,part in next,child:GetChildren() do
  596.                 if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
  597.                     local attachment1 = part:FindFirstChildOfClass("Attachment")
  598.                     local attachment0 = getAttachment0(character,attachment1.Name)
  599.                     if attachment0 and attachment1 then
  600.                         local constraint = Instance.new("HingeConstraint")
  601.                         constraint.Attachment0 = attachment0
  602.                         constraint.Attachment1 = attachment1
  603.                         constraint.LimitsEnabled = true
  604.                         constraint.UpperAngle = 0
  605.                         constraint.LowerAngle = 0
  606.                         constraint.Parent = character
  607.                     end
  608.                 elseif part.Name == "HumanoidRootPart" then
  609.                     part:remove()
  610.                 end
  611.             end
  612.         end
  613.     end
  614.    
  615.     ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
  616.         {"LimitsEnabled",true};
  617.         {"UpperAngle",5};
  618.     })
  619.     ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", {
  620.         {"LimitsEnabled",true};
  621.         {"UpperAngle",15};
  622.     })
  623.    
  624.     local handProperties = {
  625.         {"LimitsEnabled", true};
  626.         {"UpperAngle",0};
  627.         {"LowerAngle",0};
  628.     }
  629.     ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
  630.     ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
  631.    
  632.     local shinProperties = {
  633.         {"LimitsEnabled", true};
  634.         {"UpperAngle", 0};
  635.         {"LowerAngle", -75};
  636.     }
  637.     ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
  638.     ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
  639.    
  640.     local footProperties = {
  641.         {"LimitsEnabled", true};
  642.         {"UpperAngle", 15};
  643.         {"LowerAngle", -45};
  644.     }
  645.     ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
  646.     ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
  647.    
  648.     ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket")
  649.     ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
  650.     ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket")
  651.     ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
  652.     ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
  653.     ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
  654. end
  655.  
  656. function Ragdoll(Character2,CharTorso)
  657.     Character2:BreakJoints()
  658.     local hum = Character2:findFirstChild("Humanoid")
  659.     hum:remove()
  660.     local function Scan(ch)
  661.         local e
  662.         for e = 1,#ch do
  663.             Scan(ch[e]:GetChildren())
  664.             if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  665.                 ch[e]:remove()
  666.             end
  667.         end
  668.     end
  669.     local NEWHUM = IT("Humanoid")
  670.     NEWHUM.Name = "Corpse"
  671.     NEWHUM.Health = 0
  672.     NEWHUM.MaxHealth = 0
  673.     NEWHUM.PlatformStand = true
  674.     NEWHUM.Parent = Character2
  675.     NEWHUM.DisplayDistanceType = "None"
  676.  
  677.     local ch = Character2:GetChildren()
  678.     local i
  679.     for i = 1,#ch do
  680.         if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  681.             ch[i]:remove()
  682.         end
  683.     end
  684.  
  685.     local Torso2 = Character2.Torso
  686.     local movevector = Vector3.new()
  687.  
  688.     if Torso2 then
  689.         movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
  690.         local Head = Character2:FindFirstChild("Head")
  691.         if Head then
  692.             local Neck = Instance.new("Weld")
  693.             Neck.Name = "Neck"
  694.             Neck.Part0 = Torso2
  695.             Neck.Part1 = Head
  696.             Neck.C0 = CFrame.new(0, 1.5, 0)
  697.             Neck.C1 = CFrame.new()
  698.             Neck.Parent = Torso2
  699.  
  700.         end
  701.         local Limb = Character2:FindFirstChild("Right Arm")
  702.         if Limb then
  703.  
  704.             Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
  705.             local Joint = Instance.new("Glue")
  706.             Joint.Name = "RightShoulder"
  707.             Joint.Part0 = Torso2
  708.             Joint.Part1 = Limb
  709.             Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  710.             Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  711.             Joint.Parent = Torso2
  712.  
  713.             local B = Instance.new("Part")
  714.             B.TopSurface = 0
  715.             B.BottomSurface = 0
  716.             B.formFactor = "Symmetric"
  717.             B.Size = Vector3.new(1, 1, 1)
  718.             B.Transparency = 1
  719.             B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  720.             B.Parent = Character2
  721.             local W = Instance.new("Weld")
  722.             W.Part0 = Limb
  723.             W.Part1 = B
  724.             W.C0 = CFrame.new(0, -0.5, 0)
  725.             W.Parent = Limb
  726.  
  727.         end
  728.         local Limb = Character2:FindFirstChild("Left Arm")
  729.         if Limb then
  730.  
  731.             Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
  732.             local Joint = Instance.new("Glue")
  733.             Joint.Name = "LeftShoulder"
  734.             Joint.Part0 = Torso2
  735.             Joint.Part1 = Limb
  736.             Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  737.             Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  738.             Joint.Parent = Torso2
  739.  
  740.             local B = Instance.new("Part")
  741.             B.TopSurface = 0
  742.             B.BottomSurface = 0
  743.             B.formFactor = "Symmetric"
  744.             B.Size = Vector3.new(1, 1, 1)
  745.             B.Transparency = 1
  746.             B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  747.             B.Parent = Character2
  748.             local W = Instance.new("Weld")
  749.             W.Part0 = Limb
  750.             W.Part1 = B
  751.             W.C0 = CFrame.new(0, -0.5, 0)
  752.             W.Parent = Limb
  753.  
  754.         end
  755.         local Limb = Character2:FindFirstChild("Right Leg")
  756.         if Limb then
  757.  
  758.             Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
  759.             local Joint = Instance.new("Glue")
  760.             Joint.Name = "RightHip"
  761.             Joint.Part0 = Torso2
  762.             Joint.Part1 = Limb
  763.             Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  764.             Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  765.             Joint.Parent = Torso2
  766.  
  767.             local B = Instance.new("Part")
  768.             B.TopSurface = 0
  769.             B.BottomSurface = 0
  770.             B.formFactor = "Symmetric"
  771.             B.Size = Vector3.new(1, 1, 1)
  772.             B.Transparency = 1
  773.             B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  774.             B.Parent = Character2
  775.             local W = Instance.new("Weld")
  776.             W.Part0 = Limb
  777.             W.Part1 = B
  778.             W.C0 = CFrame.new(0, -0.5, 0)
  779.             W.Parent = Limb
  780.  
  781.         end
  782.         local Limb = Character2:FindFirstChild("Left Leg")
  783.         if Limb then
  784.  
  785.             Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
  786.             local Joint = Instance.new("Glue")
  787.             Joint.Name = "LeftHip"
  788.             Joint.Part0 = Torso2
  789.             Joint.Part1 = Limb
  790.             Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  791.             Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  792.             Joint.Parent = Torso2
  793.  
  794.             local B = Instance.new("Part")
  795.             B.TopSurface = 0
  796.             B.BottomSurface = 0
  797.             B.formFactor = "Symmetric"
  798.             B.Size = Vector3.new(1, 1, 1)
  799.             B.Transparency = 1
  800.             B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  801.             B.Parent = Character2
  802.             local W = Instance.new("Weld")
  803.             W.Part0 = Limb
  804.             W.Part1 = B
  805.             W.C0 = CFrame.new(0, -0.5, 0)
  806.             W.Parent = Limb
  807.  
  808.         end
  809.         --[
  810.         local Bar = Instance.new("Part")
  811.         Bar.TopSurface = 0
  812.         Bar.BottomSurface = 0
  813.         Bar.formFactor = "Symmetric"
  814.         Bar.Size = Vector3.new(1, 1, 1)
  815.         Bar.Transparency = 1
  816.         Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
  817.         Bar.Parent = Character2
  818.         local Weld = Instance.new("Weld")
  819.         Weld.Part0 = Torso2
  820.         Weld.Part1 = Bar
  821.         Weld.C0 = CFrame.new(0, 0.5, 0)
  822.         Weld.Parent = Torso2
  823.         --]]
  824.     end
  825.     Character2.Parent = workspace
  826.     Debris:AddItem(Character2,5)
  827.  
  828.     return Character2,Torso2
  829. end
  830.  
  831. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  832. function WACKYEFFECT(Table)
  833.     local TYPE = (Table.EffectType or "Sphere")
  834.     local SIZE = (Table.Size or VT(1,1,1))
  835.     local ENDSIZE = (Table.Size2 or VT(0,0,0))
  836.     local TRANSPARENCY = (Table.Transparency or 0)
  837.     local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  838.     local CFRAME = (Table.CFrame or Torso.CFrame)
  839.     local MOVEDIRECTION = (Table.MoveToPos or nil)
  840.     local ROTATION1 = (Table.RotationX or 0)
  841.     local ROTATION2 = (Table.RotationY or 0)
  842.     local ROTATION3 = (Table.RotationZ or 0)
  843.     local MATERIAL = (Table.Material or "Neon")
  844.     local COLOR = (Table.Color or C3(1,1,1))
  845.     local TIME = (Table.Time or 45)
  846.     local SOUNDID = (Table.SoundID or nil)
  847.     local SOUNDPITCH = (Table.SoundPitch or nil)
  848.     local SOUNDVOLUME = (Table.SoundVolume or nil)
  849.     coroutine.resume(coroutine.create(function()
  850.         local PLAYSSOUND = false
  851.         local SOUND = nil
  852.         local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  853.         if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  854.             PLAYSSOUND = true
  855.             SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  856.         end
  857.         EFFECT.Color = COLOR
  858.         local MSH = nil
  859.         if TYPE == "Sphere" then
  860.             MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  861.         elseif TYPE == "Block" or TYPE == "Box" then
  862.             MSH = IT("BlockMesh",EFFECT)
  863.             MSH.Scale = SIZE
  864.         elseif TYPE == "Wave" then
  865.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  866.         elseif TYPE == "Ring" then
  867.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  868.         elseif TYPE == "Slash" then
  869.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  870.         elseif TYPE == "Round Slash" then
  871.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  872.         elseif TYPE == "Swirl" then
  873.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  874.         elseif TYPE == "Skull" then
  875.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  876.         elseif TYPE == "Crystal" then
  877.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  878.         end
  879.         if MSH ~= nil then
  880.             local MOVESPEED = nil
  881.             if MOVEDIRECTION ~= nil then
  882.                 MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  883.             end
  884.             local GROWTH = SIZE - ENDSIZE
  885.             local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  886.             if TYPE == "Block" then
  887.                 EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  888.             else
  889.                 EFFECT.CFrame = CFRAME
  890.             end
  891.             for LOOP = 1, TIME+1 do
  892.                 Swait()
  893.                 MSH.Scale = MSH.Scale - GROWTH/TIME
  894.                 if TYPE == "Wave" then
  895.                     MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  896.                 end
  897.                 EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  898.                 if TYPE == "Block" then
  899.                     EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  900.                 else
  901.                     EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  902.                 end
  903.                 if MOVEDIRECTION ~= nil then
  904.                     local ORI = EFFECT.Orientation
  905.                     EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  906.                     EFFECT.Orientation = ORI
  907.                 end
  908.             end
  909.             if PLAYSSOUND == false then
  910.                 EFFECT:remove()
  911.             else
  912.                 repeat Swait() until SOUND.Playing == false
  913.                 EFFECT:remove()
  914.             end
  915.         else
  916.             if PLAYSSOUND == false then
  917.                 EFFECT:remove()
  918.             else
  919.                 repeat Swait() until SOUND.Playing == false
  920.                 EFFECT:remove()
  921.             end
  922.         end
  923.     end))
  924. end
  925.  
  926. --//=================================\\
  927. --||         WEAPON CREATION
  928. --\\=================================//
  929.  
  930. local BMUSIC = IT("Sound",RootPart)
  931. local VOLUME = 0.8
  932. local PITCH = 0.8
  933. local SONGID = 521970657
  934. local A = IT("Attachment",Torso)
  935.  
  936. local GUN = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gun", VT(1, 0.8, 3),false)
  937. CreateMesh("SpecialMesh", GUN, "FileMesh", "623102664", "623102879", VT(0.01, 0.01, 0.01), VT(0,0,0))
  938. local GUNWELD = CreateWeldOrSnapOrMotor("Weld", GUN, Torso, GUN, CF(-1.1,-1.1,0) * ANGLES(RAD(0), RAD(90), RAD(-90)), CF(0, 0, 0))
  939.  
  940. local Knife = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,1.2,0.2),false)
  941. local Grip = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Knife, CF(0,-1.2, -0.5) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, 0.3, 0))
  942. CreateMesh("SpecialMesh", Knife, "FileMesh", "470094777", "470149026", VT(0.2,0.2,0.2), VT(0,0,0))
  943. local A = IT("Attachment",Knife)
  944. A.Position = VT(-0, 0.2, 0.136)
  945. local B = IT("Attachment",Knife)
  946. B.Position = VT(-0, -0.95, -0.982)
  947. local Trail = IT("Trail",Knife)
  948. Trail.Attachment0 = B
  949. Trail.Attachment1 = A
  950. Trail.Lifetime = 0.1
  951. Trail.Transparency = NumberSequence.new(0.5, 1)
  952. Trail.Texture = "http://www.roblox.com/asset/?id=1472703539"
  953. Trail.Enabled = true
  954. Humanoid.DisplayDistanceType = "None"
  955. Humanoid.MaxHealth = 800
  956. Humanoid.Health = 800
  957.  
  958. local STEP = CreateSound(131436155, Torso, 3, 1, true)
  959. STEP.Playing = false
  960. STEP.Looped = false
  961. local STEPPING = false
  962. Humanoid.Running:Connect(function(speed)
  963.     if STEPPING == false then
  964.         STEPPING = true
  965.         repeat
  966.             local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  967.             wait(8/TORSOVELOCITY)
  968.             local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  969.             if TORSOVELOCITY > 1 and Torso.Transparency ~= 1 and HITFLOOR ~= nil then
  970.                 STEP.Parent = Torso
  971.                 STEP.Pitch = MRANDOM(8,12)/10
  972.                 STEP:Play()
  973.             end
  974.         until TORSOVELOCITY < 0.6
  975.         STEPPING = false
  976.     end
  977. end)
  978.  
  979. for _, c in pairs(Weapon:GetChildren()) do
  980.     if c.ClassName == "Part" then
  981.         c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  982.     end
  983. end
  984.  
  985. local SKILLTEXTCOLOR = C3(0,0,0)
  986. local SKILLFONT = "SciFi"
  987. local SKILLTEXTSIZE = 7
  988.  
  989. Weapon.Parent = Character
  990.  
  991. Humanoid.Died:connect(function()
  992.     ATTACK = true
  993. end)
  994.  
  995. --//=================================\\
  996. --||         DAMAGE FUNCTIONS
  997. --\\=================================//
  998.  
  999. function StatLabel(CFRAME, TEXT, COLOR)
  1000.     local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  1001.     STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
  1002.     local BODYGYRO = IT("BodyGyro", STATPART)
  1003.     game:GetService("Debris"):AddItem(STATPART ,5)
  1004.     local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  1005.     BILLBOARDGUI.Adornee = STATPART
  1006.     BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  1007.     BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  1008.     BILLBOARDGUI.AlwaysOnTop = false
  1009.     local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  1010.     TEXTLABEL.BackgroundTransparency = 1
  1011.     TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  1012.     TEXTLABEL.Text = TEXT
  1013.     TEXTLABEL.Font = SKILLFONT
  1014.     TEXTLABEL.FontSize="Size42"
  1015.     TEXTLABEL.TextColor3 = COLOR
  1016.     TEXTLABEL.TextStrokeTransparency = 0
  1017.     TEXTLABEL.TextScaled = true
  1018.     TEXTLABEL.TextWrapped = true
  1019.     coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  1020.         for i = 1, 50 do
  1021.             Swait()
  1022.             STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
  1023.             TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50)
  1024.             TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
  1025.         end
  1026.         THEPART.Parent = nil
  1027.     end),STATPART, TEXTLABEL)
  1028. end
  1029.  
  1030. --//=================================\\
  1031. --||            DAMAGING
  1032. --\\=================================//
  1033.  
  1034. function CameraEnshaking(Length, Intensity)
  1035.     coroutine.resume(coroutine.create(function()
  1036.         local intensity = 1 * Intensity
  1037.         local rotM = 0.01 * Intensity
  1038.         for i = 0, Length, 0.1 do
  1039.             Swait()
  1040.             intensity = intensity - 0.05 * Intensity / Length
  1041.             rotM = rotM - 5.0E-4 * Intensity / Length
  1042.             hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  1043.             cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM)
  1044.         end
  1045.         hum.CameraOffset = Vector3.new(0, 0, 0)
  1046.     end))
  1047. end
  1048.  
  1049. function ApplyDamage(Humanoid,Damage,TorsoPart)
  1050.     local defence = Instance.new("BoolValue",Humanoid.Parent)
  1051.     defence.Name = ("HitBy"..Player.Name)
  1052.     game:GetService("Debris"):AddItem(defence, 0.001)
  1053.     Damage = Damage * DAMAGEMULTIPLIER
  1054.     if Humanoid.Health ~= 0 then
  1055.         local CritChance = MRANDOM(1,100)
  1056.         if Damage > Humanoid.Health then
  1057.             Damage = math.ceil(Humanoid.Health)
  1058.             if Damage == 0 then
  1059.                 Damage = 0.1
  1060.             end
  1061.         end
  1062.         Humanoid.Health = Humanoid.Health - Damage
  1063.         StatLabel(TorsoPart.CFrame * CF(0, 0 + (TorsoPart.Size.z - 1), 0), Damage, C3(0, 0, 0))
  1064.     end
  1065. end
  1066.  
  1067. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  1068.     local CHILDREN = workspace:GetDescendants()
  1069.     for index, CHILD in pairs(CHILDREN) do
  1070.         if CHILD.ClassName == "Model" and CHILD ~= Character then
  1071.             local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1072.             if HUM then
  1073.                 local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1074.                 if TORSO then
  1075.                     if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1076.                         if INSTAKILL == true then
  1077.                             CHILD:BreakJoints()
  1078.                         else
  1079.                             local DMG = MRANDOM(MINDMG,MAXDMG)
  1080.                             ApplyDamage(HUM,DMG,TORSO)
  1081.                         end
  1082.                         if FLING > 0 then
  1083.                             for _, c in pairs(CHILD:GetChildren()) do
  1084.                                 if c:IsA("BasePart") then
  1085.                                     local bv = Instance.new("BodyVelocity")
  1086.                                     bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1087.                                     bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1088.                                     bv.Parent = c
  1089.                                     Debris:AddItem(bv,0.05)
  1090.                                 end
  1091.                             end
  1092.                         end
  1093.                     end
  1094.                 end
  1095.             end
  1096.         end
  1097.     end
  1098. end
  1099.  
  1100. function ApplyDamages(Humanoid,Damage)
  1101.     Damage = Damage * DAMAGEMULTIPLIER
  1102.     local DEAD = false
  1103.     if Humanoid.Health < 2000 then
  1104.         if Humanoid.Health - Damage > 0 then
  1105.             Humanoid.Health = Humanoid.Health - Damage
  1106.         else
  1107.             DEAD = true
  1108.             Humanoid.Parent:BreakJoints()
  1109.         end
  1110.     else
  1111.         DEAD = true
  1112.         Humanoid.Parent:BreakJoints()
  1113.     end
  1114. end
  1115.  
  1116. --//=================================\\
  1117. --||    ATTACK FUNCTIONS AND STUFF
  1118. --\\=================================//
  1119.  
  1120. function Cloaked()
  1121.     CLOAKED = true
  1122.     Speed = 0
  1123.     local POS = RootPart.Position
  1124.     local DISTANCE = 99999
  1125.     for i = 1, 15 do
  1126.         wait()
  1127.         for _, c in pairs(Character:GetChildren()) do
  1128.             if c:IsA("BasePart") and c ~= RootPart then
  1129.                 c.Transparency = c.Transparency + 1/15
  1130.             elseif c.ClassName == "Accessory" then
  1131.                 c.Handle.Transparency = c.Handle.Transparency + 1/15
  1132.             end
  1133.         end
  1134.         Trail.Transparency = NumberSequence.new(0.5+((i/15)/2), 1)
  1135.         Knife.Transparency = Knife.Transparency + 1/15
  1136.     end
  1137.     Speed = 5
  1138.     repeat
  1139.         wait()
  1140.         DISTANCE = (RootPart.Position - POS).Magnitude
  1141.     until DISTANCE > 45 or CLOAKED == false
  1142.     Speed = 0
  1143.     for i = 1, 15 do
  1144.         wait()
  1145.         for _, c in pairs(Character:GetChildren()) do
  1146.             if c:IsA("BasePart") and c ~= RootPart then
  1147.                 c.Transparency = 1 - i/15
  1148.             elseif c.ClassName == "Accessory" then
  1149.                 c.Handle.Transparency = 1 - i/15
  1150.             end
  1151.         end
  1152.         Trail.Transparency = NumberSequence.new(1-((0.5/15)*i), 1)
  1153.         Knife.Transparency = 1 - i/15
  1154.     end
  1155.     Speed = 12
  1156.     CLOAKED = false
  1157. end
  1158.  
  1159. function Attack()
  1160.     PLAYANIMS = false
  1161.     ATTACK = true
  1162.     Rooted = false
  1163.     local TARGET = nil
  1164.     Knife.CanCollide = true
  1165.     local HUMAN = nil
  1166.     local TORSOPART = nil
  1167.     local HIT = Knife.Touched:Connect(function(hit)
  1168.         if hit.Parent:FindFirstChildOfClass("Humanoid") then
  1169.             local HITBODY = hit.Parent
  1170.             local HUM = hit.Parent:FindFirstChildOfClass("Humanoid")
  1171.             local TORSO = HITBODY:FindFirstChild("Torso") or HITBODY:FindFirstChild("UpperTorso")
  1172.             if TORSO and HUM.Health > 0 then
  1173.                 TARGET = HITBODY
  1174.                 TORSOPART = TORSO
  1175.                 HUMAN = HUM
  1176.             end
  1177.         end
  1178.     end)
  1179.     for i=0, 0.4, 0.1 / Animation_Speed do
  1180.         Swait()
  1181.         if TARGET then
  1182.             break
  1183.         end
  1184.         RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 1 / Animation_Speed)
  1185.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 1 / Animation_Speed)
  1186.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1187.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1188.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1189.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1190.     end
  1191.     CreateSound(143501853,Knife,2,MRANDOM(8,13)/10,false)
  1192.     for i=0, 0.5, 0.1 / Animation_Speed do
  1193.         Swait()
  1194.         if TARGET then
  1195.             break
  1196.         end
  1197.         RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), 1 / Animation_Speed)
  1198.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-35)), 1 / Animation_Speed)
  1199.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.4) * ANGLES(RAD(90), RAD(0), RAD(35)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1200.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.3) * ANGLES(RAD(90), RAD(0), RAD(35)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1201.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1202.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1203.     end
  1204.     Knife.CanCollide = false
  1205.     if TARGET then
  1206.         CLOAKED = false
  1207.         local DISPOSE = false
  1208.         Rooted = true
  1209.         coroutine.resume(coroutine.create(function()
  1210.             repeat
  1211.                 Swait()
  1212.                 if TORSOPART then
  1213.                     TORSOPART.Anchored = true
  1214.                     TORSOPART.CFrame = RootPart.CFrame*CF(0,0,-2.2)
  1215.                 end
  1216.             until DISPOSE == true
  1217.             TORSOPART.Anchored = false
  1218.         end))
  1219.         for i=0, 0.5, 0.1 / Animation_Speed do
  1220.             Swait()
  1221.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 1 / Animation_Speed)
  1222.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 1 / Animation_Speed)
  1223.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.75, -1.3) * ANGLES(RAD(90), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1224.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1225.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1226.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1227.         end
  1228.         CreateSound(28144268,Knife,2,MRANDOM(8,13)/10,false)
  1229.         CreateSound(180083298,TORSOPART,5,MRANDOM(8,13)/10,false)
  1230.         coroutine.resume(coroutine.create(function()
  1231.             for i = 1, 750 do
  1232.                 Swait()
  1233.                 if HUMAN and TORSOPART then
  1234.                     if HUMAN.Health > 0 then
  1235.                         SprayBlood(TORSOPART.CFrame*CF(0,TORSOPART.Size.Y/2,-TORSOPART.Size.Z/2).p,TORSOPART.CFrame*CF(MRANDOM(-3,3)/15,TORSOPART.Size.Y+MRANDOM(-3,3)/35,-TORSOPART.Size.Z*MRANDOM(8,25)/10).p,MRANDOM(15,35)/10)
  1236.                         HUMAN.Health = HUMAN.Health - 1
  1237.                         HUMAN.WalkSpeed = MRANDOM(5,45)
  1238.                     else
  1239.                         break
  1240.                     end
  1241.                 else
  1242.                     break
  1243.                 end
  1244.             end
  1245.             local SCREAMS = {160718677,337800380}
  1246.             if HUMAN and TORSOPART then
  1247.                 if HUMAN.Health == 0 then
  1248.                     local HEAD = TORSOPART.Parent:FindFirstChild("Head")
  1249.                     if HEAD then
  1250.                         CreateSound(SCREAMS[MRANDOM(1,#SCREAMS)],HEAD,5,MRANDOM(13,15)/10,false)
  1251.                         local FACE = HEAD:FindFirstChild("face")
  1252.                         if FACE then
  1253.                             FACE.Texture = "http://www.roblox.com/asset/?id=145854465"
  1254.                         end
  1255.                     end
  1256.                     if TORSOPART.Name == "Torso" then
  1257.                         Ragdoll(TORSOPART.Parent,Torso)
  1258.                     elseif TORSOPART.Name == "UpperTorso" then
  1259.                         R15Ragdoll(TORSOPART.Parent)
  1260.                     end
  1261.                 end
  1262.                 HUMAN.WalkSpeed = 16
  1263.             end
  1264.         end))
  1265.         for i=0, 0.2, 0.1 / Animation_Speed do
  1266.             Swait()
  1267.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 1 / Animation_Speed)
  1268.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 1 / Animation_Speed)
  1269.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(2, 0.75, -1.3) * ANGLES(RAD(90), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1270.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1271.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1272.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1273.         end
  1274.         DISPOSE = true
  1275.         local bv = Instance.new("BodyVelocity")
  1276.         bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1277.         bv.velocity = CF(TORSOPART.Position,TORSOPART.CFrame*CF(0,5,-15).p).lookVector*75
  1278.         bv.Parent = TORSOPART
  1279.         Debris:AddItem(bv,0.05)
  1280.         for i=0, 0.5, 0.1 / Animation_Speed do
  1281.             Swait()
  1282.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-35)), 1 / Animation_Speed)
  1283.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(35)), 1 / Animation_Speed)
  1284.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-25), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1285.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1286.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(110), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1287.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1288.         end
  1289.     end
  1290.     HIT:disconnect()
  1291.     ATTACK = false
  1292.     Rooted = false
  1293.     PLAYANIMS = true
  1294. end
  1295.  
  1296. function Taunt()
  1297.     ATTACK = true
  1298.     Rooted = true
  1299.     PLAYANIMS = false
  1300.     CreateSound(2062482384,Torso,5,MRANDOM(8,9)/10,false)
  1301.     for i=0, 1.5, 0.1 / Animation_Speed do
  1302.         Swait()
  1303.         RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1304.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(35), RAD(0)), 1 / Animation_Speed)
  1305.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(140)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1306.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-140)) * ANGLES(RAD(0), RAD(90), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1307.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1308.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1309.     end
  1310.     PLAYANIMS = true
  1311.     ATTACK = false
  1312.     Rooted = false
  1313. end
  1314.  
  1315. function Silence()
  1316.     Speed = 6
  1317.     ATTACK = true
  1318.     Rooted = false
  1319.     local GYRO = IT("BodyGyro",RootPart)
  1320.     GYRO.D = 2
  1321.     GYRO.P = 20000
  1322.     GYRO.MaxTorque = VT(0,4000000,0)
  1323.     coroutine.resume(coroutine.create(function()
  1324.         repeat
  1325.             Swait()
  1326.             GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
  1327.         until ATTACK == false
  1328.         GYRO:Remove()
  1329.     end))
  1330.     for i=0, 0.2, 0.1 / Animation_Speed do
  1331.         Swait()
  1332.         RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1333.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(15)), 1 / Animation_Speed)
  1334.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1335.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.525, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1336.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1337.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1338.     end
  1339.     local AMMO = 6
  1340.     local FIRING = true
  1341.     local SHOOTING = false
  1342.     local TIMER = 70
  1343.     CreateSound(147722227, GUN, 6, 1.3, false)
  1344.     GUNWELD.Part0 = LeftArm
  1345.     GUNWELD.C0 = CF(0,-1.5,0) * ANGLES(RAD(0), RAD(90), RAD(-90))
  1346.     local MOUSE = Mouse.Button1Down:connect(function(NEWKEY)
  1347.         if SHOOTING == false and AMMO > 0 then
  1348.             SHOOTING = true
  1349.             AMMO = AMMO - 1
  1350.             local GUNPOS = GUN.CFrame*CF(1.2, 0.5, 0).p
  1351.             local HIT,POS = CastProperRay(GUNPOS,Mouse.Hit.p,1000,Character)
  1352.             local DISTANCE = (POS - GUNPOS).Magnitude
  1353.             if HIT then
  1354.                 if HIT.Parent:FindFirstChildOfClass("Humanoid") then
  1355.                     if HIT.Parent:FindFirstChildOfClass("Humanoid").Health > 0 then
  1356.                         CreateSound(160432334, HIT, 10, 1, false)
  1357.                         ApplyDamages(HIT.Parent:FindFirstChildOfClass("Humanoid"),35)
  1358.                     end
  1359.                 end
  1360.             end
  1361.             TIMER = 55
  1362.             WACKYEFFECT({Time = 15, EffectType = "Block", Size = VT(0,0,0), Size2 = VT(0.3,0.3,0.3), Transparency = 0, Transparency2 = 1, CFrame = CF(GUNPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = 330704232, SoundPitch = 1, SoundVolume = 4})
  1363.             WACKYEFFECT({Time = 6, EffectType = "Box", Size = VT(0,0,DISTANCE), Size2 = VT(0.1,0.1,DISTANCE), Transparency = 0, Transparency2 = 1, CFrame = CF(GUNPOS,POS)*CF(0,0,-DISTANCE/2), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1364.             for i=0, 0.3, 0.1 / Animation_Speed do
  1365.                 Swait()
  1366.                 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
  1367.                 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  1368.                 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1369.                 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(100), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1370.                 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1371.                 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1372.             end
  1373.             if AMMO <= 0 then
  1374.                 FIRING = false
  1375.             end
  1376.             SHOOTING = false
  1377.         end
  1378.     end)
  1379.     repeat
  1380.         Swait()
  1381.         if SHOOTING == false then
  1382.             TIMER = TIMER - 1
  1383.             if TIMER <= 0 then
  1384.                 FIRING = false
  1385.             end
  1386.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
  1387.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  1388.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1389.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1390.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1391.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1392.         end
  1393.     until FIRING == false and SHOOTING == false
  1394.     MOUSE:Disconnect()
  1395.     for i=0, 0.3, 0.1 / Animation_Speed do
  1396.         Swait()
  1397.         RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1398.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(15)), 1 / Animation_Speed)
  1399.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1400.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.525, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1401.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1402.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1403.     end
  1404.     GUNWELD.Part0 = Torso
  1405.     GUNWELD.C0 = CF(-1.1,-1.1,0) * ANGLES(RAD(0), RAD(90), RAD(-90))
  1406.     Speed = 20
  1407.     ATTACK = false
  1408.     Rooted = false
  1409. end
  1410.  
  1411. function ee()
  1412.         ATTACK = true
  1413.         Rooted = true
  1414.         for i=0, 1, 0.1 / Animation_Speed do
  1415.             Swait()
  1416.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1417.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.25*SIZE) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
  1418.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.3*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(0), RAD(0), RAD(200)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1419.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.3*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(0), RAD(0), RAD(-200)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1420.             RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1421.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1422.         end
  1423.         CameraEnshaking(1,45)
  1424.         CreateSound(363808674, Torso, 6, 1, false)
  1425.         for i=0, 0.5, 0.1 / Animation_Speed do
  1426.             Swait()
  1427.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1428.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.25*SIZE) - 1)) * ANGLES(RAD(35), RAD(0), RAD(25)), 1 / Animation_Speed)
  1429.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.3*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(-40), RAD(50), RAD(200)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1430.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.3*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(40), RAD(50), RAD(-200)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1431.             RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1432.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1433.         end
  1434.         CameraEnshaking(1,45)
  1435.         CreateSound(363808674, Torso, 6, 1, false)
  1436.         for i=0, 0.5, 0.1 / Animation_Speed do
  1437.             Swait()
  1438.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1439.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.25*SIZE) - 1)) * ANGLES(RAD(35), RAD(0), RAD(-25)), 1 / Animation_Speed)
  1440.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.3*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(40), RAD(-50), RAD(200)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1441.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.3*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(-40), RAD(-50), RAD(-200)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1442.             RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1443.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1444.         end
  1445.         ATTACK = false
  1446.         Rooted = false
  1447. end
  1448.  
  1449. --//=================================\\
  1450. --||      ASSIGN THINGS TO KEYS
  1451. --\\=================================//
  1452.  
  1453. function MouseDown(Mouse)
  1454.     HOLD = true
  1455.     if ATTACK == false then
  1456.         Attack()
  1457.     end
  1458. end
  1459.  
  1460. function MouseUp(Mouse)
  1461. HOLD = false
  1462. end
  1463.  
  1464. function KeyDown(Key)
  1465.     KEYHOLD = true
  1466.     if Key == "z" and ATTACK == false then
  1467.         if CLOAKED == false then
  1468.             Cloaked()
  1469.         else
  1470.             CLOAKED = false
  1471.         end
  1472.     end
  1473.  
  1474.     if Key == "t" and ATTACK == false then
  1475.         Taunt()
  1476.     end
  1477.  
  1478.     if Key == "y" and ATTACK == false then
  1479.         ee()
  1480.     end
  1481.  
  1482.     if Key == "q" and ATTACK == false then
  1483.         Silence()
  1484.     end
  1485.  
  1486.     if string.byte(Key) == 50 and ATTACK == false and CLOAKED == false then
  1487.         if Speed == 12 then
  1488.             Speed = 30
  1489.         elseif Speed == 30 then
  1490.             Speed = 12
  1491.         end
  1492.     end
  1493. end
  1494.  
  1495. function KeyUp(Key)
  1496.     KEYHOLD = false
  1497. end
  1498.  
  1499.     Mouse.Button1Down:connect(function(NEWKEY)
  1500.         MouseDown(NEWKEY)
  1501.     end)
  1502.     Mouse.Button1Up:connect(function(NEWKEY)
  1503.         MouseUp(NEWKEY)
  1504.     end)
  1505.     Mouse.KeyDown:connect(function(NEWKEY)
  1506.         KeyDown(NEWKEY)
  1507.     end)
  1508.     Mouse.KeyUp:connect(function(NEWKEY)
  1509.         KeyUp(NEWKEY)
  1510.     end)
  1511.  
  1512. --//=================================\\
  1513. --\\=================================//
  1514.  
  1515. function unanchor()
  1516.     if UNANCHOR == true then
  1517.         g = Character:GetChildren()
  1518.         for i = 1, #g do
  1519.             if g[i].ClassName == "Part" then
  1520.                 g[i].Anchored = false
  1521.             end
  1522.         end
  1523.     end
  1524. end
  1525.  
  1526. --//=================================\\
  1527. --||    WRAP THE WHOLE SCRIPT UP
  1528. --\\=================================//
  1529.  
  1530. Humanoid.Changed:connect(function(Jump)
  1531.     if Jump == "Jump" and (Disable_Jump == true) then
  1532.         Humanoid.Jump = false
  1533.     end
  1534. end)
  1535.  
  1536. while true do
  1537.     Swait()
  1538.     script.Parent = WEAPONGUI
  1539.     ANIMATE.Parent = nil
  1540.     for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1541.         v:Stop();
  1542.     end
  1543.     SINE = SINE + CHANGE
  1544.     local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1545.     local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1546.     local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1547.     local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1548.     if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1549.         RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1550.         Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1551.         RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.3 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1552.         LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.3 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1553.     elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1554.         RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1555.         Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1556.         RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1557.         LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1558.     end
  1559.     if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1560.         ANIM = "Jump"
  1561.         if PLAYANIMS == true then
  1562.             RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1563.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1564.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1565.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1566.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1567.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1568.         end
  1569.     elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1570.         ANIM = "Fall"
  1571.         if PLAYANIMS == true then
  1572.             RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1573.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1574.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1575.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1576.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1577.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1578.         end
  1579.     elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1580.         ANIM = "Idle"
  1581.         if PLAYANIMS == true then
  1582.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1583.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1584.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(15), RAD(35), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1585.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1586.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1587.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1588.         end
  1589.     elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1590.         ANIM = "Walk"
  1591.         if PLAYANIMS == true then
  1592.             if Humanoid.WalkSpeed <= 17 then
  1593.                 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1594.                 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1595.                 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(20 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.35 / Animation_Speed)
  1596.                 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  1597.                 RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1598.                 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1599.             else
  1600.                 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(35), RAD(0), RAD(5 * SIN(SINE / (WALKSPEEDVALUE / 2)))), 0.15 / Animation_Speed)
  1601.                 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(-5 * SIN(SINE / (WALKSPEEDVALUE / 2)))), 0.15 / Animation_Speed)
  1602.                 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.2) * ANGLES(RAD(0), RAD(35), RAD(0)) * ANGLES(RAD(35+20 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1603.                 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(0), RAD(-35), RAD(0)) * ANGLES(RAD(35-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1604.                 RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(5)), 2 / Animation_Speed)
  1605.                 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-5)), 2 / Animation_Speed)
  1606.             end
  1607.         end
  1608.     end
  1609.     BMUSIC.SoundId = "rbxassetid://"..SONGID
  1610.     BMUSIC.Looped = true
  1611.     BMUSIC.Pitch = PITCH
  1612.     BMUSIC.Volume = VOLUME
  1613.     BMUSIC.Playing = true
  1614.     if BMUSIC.Parent ~= RootPart then
  1615.         BMUSIC = IT("Sound",RootPart)
  1616.     end
  1617.     unanchor()
  1618.     if Rooted == false then
  1619.         Disable_Jump = false
  1620.         Humanoid.WalkSpeed = Speed
  1621.     elseif Rooted == true then
  1622.         Disable_Jump = true
  1623.         Humanoid.WalkSpeed = 0
  1624.     end
  1625.     if Head:FindFirstChild("face") then
  1626.         Head.face:remove()
  1627.     elseif Head:FindFirstChildOfClass("Sound") then
  1628.         Head:FindFirstChildOfClass("Sound"):remove()
  1629.     end
  1630.     Humanoid.Health = Humanoid.Health + 1
  1631. end
  1632. --//=================================\\
  1633. --\\=================================//
  1634.  
  1635.  
  1636.  
  1637.  
  1638.  
  1639. --//====================================================\\--
  1640. --||                     END OF SCRIPT
  1641. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment