wanTH092

SinGun (leak)

Jul 8th, 2018
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 53.89 KB | None | 0 0
  1. --//====================================================\\--
  2. --||               CREATED BY SHACKLUSTER
  3. --\\====================================================//--
  4.  
  5. wait(0.2)
  6.  
  7. Player = game:GetService("Players").LocalPlayer
  8. PlayerGui = Player.PlayerGui
  9. Cam = workspace.CurrentCamera
  10. Backpack = Player.Backpack
  11. Character = Player.Character
  12. Humanoid = Character.Humanoid
  13. Mouse = Player:GetMouse()
  14. RootPart = Character["HumanoidRootPart"]
  15. Torso = Character["Torso"]
  16. Head = Character["Head"]
  17. RightArm = Character["Right Arm"]
  18. LeftArm = Character["Left Arm"]
  19. RightLeg = Character["Right Leg"]
  20. LeftLeg = Character["Left Leg"]
  21. RootJoint = RootPart["RootJoint"]
  22. Neck = Torso["Neck"]
  23. RightShoulder = Torso["Right Shoulder"]
  24. LeftShoulder = Torso["Left Shoulder"]
  25. RightHip = Torso["Right Hip"]
  26. LeftHip = Torso["Left Hip"]
  27. SIZE = 1
  28.  
  29. IT = Instance.new
  30. CF = CFrame.new
  31. VT = Vector3.new
  32. RAD = math.rad
  33. C3 = Color3.new
  34. UD2 = UDim2.new
  35. BRICKC = BrickColor.new
  36. ANGLES = CFrame.Angles
  37. EULER = CFrame.fromEulerAnglesXYZ
  38. COS = math.cos
  39. ACOS = math.acos
  40. SIN = math.sin
  41. ASIN = math.asin
  42. ABS = math.abs
  43. MRANDOM = math.random
  44. FLOOR = math.floor
  45.  
  46. --//=================================\\
  47. --||          USEFUL VALUES
  48. --\\=================================//
  49.  
  50. Animation_Speed = 3
  51. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  52. local Speed = 10
  53. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  54. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  55. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  56. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  57. local DAMAGEMULTIPLIER = 1
  58. local ANIM = "Idle"
  59. local ATTACK = false
  60. local EQUIPPED = false
  61. local HOLD = false
  62. local COMBO = 1
  63. local Rooted = false
  64. local SINE = 0
  65. local KEYHOLD = false
  66. local CHANGE = 2 / Animation_Speed
  67. local WALKINGANIM = false
  68. local VALUE1 = false
  69. local VALUE2 = false
  70. local ROBLOXIDLEANIMATION = IT("Animation")
  71. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  72. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  73. --ROBLOXIDLEANIMATION.Parent = Humanoid
  74. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  75. WEAPONGUI.Name = "Weapon GUI"
  76. local ANIMATOR = Humanoid.Animator
  77. local ANIMATE = Character.Animate
  78. local UNANCHOR = true
  79. local GHOSTS = {}
  80. ANIMATE:remove()
  81. Character.Archivable = true
  82. script.Parent = WEAPONGUI
  83. local GHOSTBASE = Character:Clone()
  84. GHOSTBASE.Parent = nil
  85. GHOSTBASE.Name = "Ghost"
  86. for _, c in pairs(GHOSTBASE:GetChildren()) do
  87.     if c.ClassName == "Part" and c.Transparency < 1 then
  88.         c.Color = C3(0,0,0)
  89.         if c.ClassName == "Accessory" or c.ClassName == "Hat" or c.ClassName == "CharacterMesh" or c.ClassName == "Shirt" or c.ClassName == "Pants" then
  90.             c:remove()
  91.         end
  92.     end
  93. end
  94. local sick = Instance.new("Sound",Torso)
  95. sick.SoundId = "rbxassetid://1472374501"
  96. sick.Looped = true
  97. sick.Pitch = 0.7
  98. sick.Volume = 3
  99. sick:Play()
  100. local Effects = IT("Folder", Character)
  101. Effects.Name = "Effects"
  102. Character.Archivable = false
  103.  
  104. --//=================================\\
  105. --\\=================================//
  106.  
  107.  
  108. --//=================================\\
  109. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  110. --\\=================================//
  111.  
  112. ArtificialHB = Instance.new("BindableEvent", script)
  113. ArtificialHB.Name = "ArtificialHB"
  114.  
  115. script:WaitForChild("ArtificialHB")
  116.  
  117. frame = Frame_Speed
  118. tf = 0
  119. allowframeloss = false
  120. tossremainder = false
  121. lastframe = tick()
  122. script.ArtificialHB:Fire()
  123.  
  124. game:GetService("RunService").Heartbeat:connect(function(s, p)
  125.     tf = tf + s
  126.     if tf >= frame then
  127.         if allowframeloss then
  128.             script.ArtificialHB:Fire()
  129.             lastframe = tick()
  130.         else
  131.             for i = 1, math.floor(tf / frame) do
  132.                 script.ArtificialHB:Fire()
  133.             end
  134.         lastframe = tick()
  135.         end
  136.         if tossremainder then
  137.             tf = 0
  138.         else
  139.             tf = tf - frame * math.floor(tf / frame)
  140.         end
  141.     end
  142. end)
  143.  
  144. --//=================================\\
  145. --\\=================================//
  146.  
  147. --//=================================\\
  148. --||          SOME FUNCTIONS
  149. --\\=================================//
  150.  
  151. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  152.     return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  153. end
  154.  
  155. function PositiveAngle(NUMBER)
  156.     if NUMBER >= 0 then
  157.         NUMBER = 0
  158.     end
  159.     return NUMBER
  160. end
  161.  
  162. function NegativeAngle(NUMBER)
  163.     if NUMBER <= 0 then
  164.         NUMBER = 0
  165.     end
  166.     return NUMBER
  167. end
  168.  
  169. function Swait(NUMBER)
  170.     if NUMBER == 0 or NUMBER == nil then
  171.         ArtificialHB.Event:wait()
  172.     else
  173.         for i = 1, NUMBER do
  174.             ArtificialHB.Event:wait()
  175.         end
  176.     end
  177. end
  178.  
  179. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  180.     local NEWMESH = IT(MESH)
  181.     if MESH == "SpecialMesh" then
  182.         NEWMESH.MeshType = MESHTYPE
  183.         if MESHID ~= "nil" and MESHID ~= "" then
  184.             NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  185.         end
  186.         if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  187.             NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  188.         end
  189.     end
  190.     NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  191.     NEWMESH.Scale = SCALE
  192.     NEWMESH.Parent = PARENT
  193.     return NEWMESH
  194. end
  195.  
  196. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  197.     local NEWPART = IT("Part")
  198.     NEWPART.formFactor = FORMFACTOR
  199.     NEWPART.Reflectance = REFLECTANCE
  200.     NEWPART.Transparency = TRANSPARENCY
  201.     NEWPART.CanCollide = false
  202.     NEWPART.Locked = true
  203.     NEWPART.Anchored = true
  204.     if ANCHOR == false then
  205.         NEWPART.Anchored = false
  206.     end
  207.     NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  208.     NEWPART.Name = NAME
  209.     NEWPART.Size = SIZE
  210.     NEWPART.Position = Torso.Position
  211.     NEWPART.Material = MATERIAL
  212.     NEWPART:BreakJoints()
  213.     NEWPART.Parent = PARENT
  214.     return NEWPART
  215. end
  216.  
  217.     local function weldBetween(a, b)
  218.         local weldd = Instance.new("ManualWeld")
  219.         weldd.Part0 = a
  220.         weldd.Part1 = b
  221.         weldd.C0 = CFrame.new()
  222.         weldd.C1 = b.CFrame:inverse() * a.CFrame
  223.         weldd.Parent = a
  224.         return weldd
  225.     end
  226.  
  227.  
  228. function QuaternionFromCFrame(cf)
  229.     local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  230.     local trace = m00 + m11 + m22
  231.     if trace > 0 then
  232.         local s = math.sqrt(1 + trace)
  233.         local recip = 0.5 / s
  234.         return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  235.     else
  236.         local i = 0
  237.         if m11 > m00 then
  238.             i = 1
  239.         end
  240.         if m22 > (i == 0 and m00 or m11) then
  241.             i = 2
  242.         end
  243.         if i == 0 then
  244.             local s = math.sqrt(m00 - m11 - m22 + 1)
  245.             local recip = 0.5 / s
  246.             return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  247.         elseif i == 1 then
  248.             local s = math.sqrt(m11 - m22 - m00 + 1)
  249.             local recip = 0.5 / s
  250.             return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  251.         elseif i == 2 then
  252.             local s = math.sqrt(m22 - m00 - m11 + 1)
  253.             local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  254.         end
  255.     end
  256. end
  257.  
  258. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  259.     local xs, ys, zs = x + x, y + y, z + z
  260.     local wx, wy, wz = w * xs, w * ys, w * zs
  261.     local xx = x * xs
  262.     local xy = x * ys
  263.     local xz = x * zs
  264.     local yy = y * ys
  265.     local yz = y * zs
  266.     local zz = z * zs
  267.     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))
  268. end
  269.  
  270. function QuaternionSlerp(a, b, t)
  271.     local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  272.     local startInterp, finishInterp;
  273.     if cosTheta >= 0.0001 then
  274.         if (1 - cosTheta) > 0.0001 then
  275.             local theta = ACOS(cosTheta)
  276.             local invSinTheta = 1 / SIN(theta)
  277.             startInterp = SIN((1 - t) * theta) * invSinTheta
  278.             finishInterp = SIN(t * theta) * invSinTheta
  279.         else
  280.             startInterp = 1 - t
  281.             finishInterp = t
  282.         end
  283.     else
  284.         if (1 + cosTheta) > 0.0001 then
  285.             local theta = ACOS(-cosTheta)
  286.             local invSinTheta = 1 / SIN(theta)
  287.             startInterp = SIN((t - 1) * theta) * invSinTheta
  288.             finishInterp = SIN(t * theta) * invSinTheta
  289.         else
  290.             startInterp = t - 1
  291.             finishInterp = t
  292.         end
  293.     end
  294.     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
  295. end
  296.  
  297. function Clerp(a, b, t)
  298.     local qa = {QuaternionFromCFrame(a)}
  299.     local qb = {QuaternionFromCFrame(b)}
  300.     local ax, ay, az = a.x, a.y, a.z
  301.     local bx, by, bz = b.x, b.y, b.z
  302.     local _t = 1 - t
  303.     return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  304. end
  305.  
  306. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  307.     local frame = IT("Frame")
  308.     frame.BackgroundTransparency = TRANSPARENCY
  309.     frame.BorderSizePixel = BORDERSIZEPIXEL
  310.     frame.Position = POSITION
  311.     frame.Size = SIZE
  312.     frame.BackgroundColor3 = COLOR
  313.     frame.BorderColor3 = BORDERCOLOR
  314.     frame.Name = NAME
  315.     frame.Parent = PARENT
  316.     return frame
  317. end
  318.  
  319. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  320.     local label = IT("TextLabel")
  321.     label.BackgroundTransparency = 1
  322.     label.Size = UD2(1, 0, 1, 0)
  323.     label.Position = UD2(0, 0, 0, 0)
  324.     label.TextColor3 = TEXTCOLOR
  325.     label.TextStrokeTransparency = STROKETRANSPARENCY
  326.     label.TextTransparency = TRANSPARENCY
  327.     label.FontSize = TEXTFONTSIZE
  328.     label.Font = TEXTFONT
  329.     label.BorderSizePixel = BORDERSIZEPIXEL
  330.     label.TextScaled = false
  331.     label.Text = TEXT
  332.     label.Name = NAME
  333.     label.Parent = PARENT
  334.     return label
  335. end
  336.  
  337. function NoOutlines(PART)
  338.     PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  339. end
  340.  
  341. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  342.     local NEWWELD = IT(TYPE)
  343.     NEWWELD.Part0 = PART0
  344.     NEWWELD.Part1 = PART1
  345.     NEWWELD.C0 = C0
  346.     NEWWELD.C1 = C1
  347.     NEWWELD.Parent = PARENT
  348.     return NEWWELD
  349. end
  350.  
  351. local S = IT("Sound")
  352. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  353.     local NEWSOUND = nil
  354.     coroutine.resume(coroutine.create(function()
  355.         NEWSOUND = S:Clone()
  356.         NEWSOUND.Parent = PARENT
  357.         NEWSOUND.Volume = VOLUME
  358.         NEWSOUND.Pitch = PITCH
  359.         NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  360.         NEWSOUND:play()
  361.         if DOESLOOP == true then
  362.             NEWSOUND.Looped = true
  363.         else
  364.             repeat wait(1) until NEWSOUND.Playing == false
  365.             NEWSOUND:remove()
  366.         end
  367.     end))
  368.     return NEWSOUND
  369. end
  370.  
  371. function CFrameFromTopBack(at, top, back)
  372.     local right = top:Cross(back)
  373.     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)
  374. end
  375.  
  376. --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})
  377. function WACKYEFFECT(Table)
  378.     local TYPE = (Table.EffectType or "Sphere")
  379.     local SIZE = (Table.Size or VT(1,1,1))
  380.     local ENDSIZE = (Table.Size2 or VT(0,0,0))
  381.     local TRANSPARENCY = (Table.Transparency or 0)
  382.     local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  383.     local CFRAME = (Table.CFrame or Torso.CFrame)
  384.     local MOVEDIRECTION = (Table.MoveToPos or nil)
  385.     local ROTATION1 = (Table.RotationX or 0)
  386.     local ROTATION2 = (Table.RotationY or 0)
  387.     local ROTATION3 = (Table.RotationZ or 0)
  388.     local MATERIAL = (Table.Material or "Neon")
  389.     local COLOR = (Table.Color or C3(1,1,1))
  390.     local TIME = (Table.Time or 45)
  391.     local SOUNDID = (Table.SoundID or nil)
  392.     local SOUNDPITCH = (Table.SoundPitch or nil)
  393.     local SOUNDVOLUME = (Table.SoundVolume or nil)
  394.     coroutine.resume(coroutine.create(function()
  395.         local PLAYSSOUND = false
  396.         local SOUND = nil
  397.         local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  398.         if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  399.             PLAYSSOUND = true
  400.             SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  401.         end
  402.         EFFECT.Color = COLOR
  403.         local MSH = nil
  404.         if TYPE == "Sphere" then
  405.             MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  406.         elseif TYPE == "Block" then
  407.             MSH = IT("BlockMesh",EFFECT)
  408.             MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  409.         elseif TYPE == "Wave" then
  410.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  411.         elseif TYPE == "Ring" then
  412.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  413.         elseif TYPE == "Slash" then
  414.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  415.         elseif TYPE == "Round Slash" then
  416.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  417.         elseif TYPE == "Swirl" then
  418.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  419.         elseif TYPE == "Skull" then
  420.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  421.         elseif TYPE == "Crystal" then
  422.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  423.         end
  424.         if MSH ~= nil then
  425.             local MOVESPEED = nil
  426.             if MOVEDIRECTION ~= nil then
  427.                 MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  428.             end
  429.             local GROWTH = SIZE - ENDSIZE
  430.             local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  431.             if TYPE == "Block" then
  432.                 EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  433.             else
  434.                 EFFECT.CFrame = CFRAME
  435.             end
  436.             for LOOP = 1, TIME+1 do
  437.                 Swait()
  438.                 MSH.Scale = MSH.Scale - GROWTH/TIME
  439.                 if TYPE == "Wave" then
  440.                     MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  441.                 end
  442.                 EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  443.                 if TYPE == "Block" then
  444.                     EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  445.                 else
  446.                     EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  447.                 end
  448.                 if MOVEDIRECTION ~= nil then
  449.                     local ORI = EFFECT.Orientation
  450.                     EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  451.                     EFFECT.Orientation = ORI
  452.                 end
  453.             end
  454.             if PLAYSSOUND == false then
  455.                 EFFECT:remove()
  456.             else
  457.                 SOUND.Stopped:Connect(function()
  458.                     EFFECT:remove()
  459.                 end)
  460.             end
  461.         else
  462.             if PLAYSSOUND == false then
  463.                 EFFECT:remove()
  464.             else
  465.                 repeat Swait() until SOUND.Playing == false
  466.                 EFFECT:remove()
  467.             end
  468.         end
  469.     end))
  470. end
  471.  
  472. function MakeForm(PART,TYPE)
  473.     if TYPE == "Cyl" then
  474.         local MSH = IT("CylinderMesh",PART)
  475.     elseif TYPE == "Ball" then
  476.         local MSH = IT("SpecialMesh",PART)
  477.         MSH.MeshType = "Sphere"
  478.     elseif TYPE == "Wedge" then
  479.         local MSH = IT("SpecialMesh",PART)
  480.         MSH.MeshType = "Wedge"
  481.     end
  482. end
  483.  
  484. Debris = game:GetService("Debris")
  485.  
  486. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  487.     local DIRECTION = CF(StartPos,EndPos).lookVector
  488.     return Raycast(StartPos, DIRECTION, Distance, Ignore)
  489. end
  490.  
  491. function turnto(position)
  492.     RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  493. end
  494.  
  495. function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  496.     if FLOOR ~= nil then
  497.         coroutine.resume(coroutine.create(function()
  498.             local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
  499.             PART.CFrame = CF(POSITION)
  500.             for i = 1, 45 do
  501.                 local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  502.                 RingPiece.Material = FLOOR.Material
  503.                 RingPiece.Color = FLOOR.Color
  504.                 RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  505.                 Debris:AddItem(RingPiece,SWAIT)
  506.             end
  507.             PART:remove()
  508.         end))
  509.     end
  510. end
  511.  
  512. function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH,DOES360)
  513.     if FLOOR ~= nil then
  514.         for i = 1, AMOUNT do
  515.             local DEBREE = CreatePart(3, Effects, "Neon", 0, 0, "Peal", "Debree", BLOCKSIZE, false)
  516.             DEBREE.Material = FLOOR.Material
  517.             DEBREE.Color = FLOOR.Color
  518.             DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  519.             if DOES360 == true then
  520.                 DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH))
  521.             else
  522.                 DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),STRENGTH,MRANDOM(-STRENGTH,STRENGTH))
  523.             end
  524.             coroutine.resume(coroutine.create(function()
  525.                 Swait(15)
  526.                 DEBREE.Parent = workspace
  527.                 DEBREE.CanCollide = true
  528.                 Debris:AddItem(DEBREE,SWAIT)
  529.             end))
  530.         end
  531.     end
  532. end
  533.  
  534. function SpawnTrail(FROM,TO)
  535.     local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Pearl", "Arrow", VT(0,0,0))
  536.     MakeForm(TRAIL,"Cyl")
  537.     local DIST = (FROM - TO).Magnitude
  538.     TRAIL.Size = VT(0.1,DIST,0.1)
  539.     TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  540.     coroutine.resume(coroutine.create(function()
  541.         for i = 1, 5 do
  542.             Swait()
  543.             TRAIL.Transparency = TRAIL.Transparency + 0.1
  544.         end
  545.         TRAIL:remove()
  546.     end))
  547. end
  548.  
  549. local Decal = IT("Decal")
  550. function SpawnBulletHole(POSITION)
  551.     local O1 = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Bullet hole", VT(0.2,0,0.2))
  552.     local decal = Decal:Clone()
  553.     decal.Parent = O1
  554.     decal.Face = "Top"
  555.     decal.Texture = "http://www.roblox.com/asset/?id=130624105"
  556.     local decal2 = Decal:Clone()
  557.     decal2.Parent = O1
  558.     decal2.Face = "Bottom"
  559.     decal2.Texture = "http://www.roblox.com/asset/?id=130624105"
  560.     O1.CFrame = POSITION*ANGLES(RAD(0),RAD(MRANDOM(-180,180)),RAD(0))
  561.     Debris:AddItem(O1,5)
  562. end
  563.  
  564. local asd = Instance.new("ParticleEmitter")
  565. asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0))
  566. asd.LightEmission = .1
  567. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  568. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 2)})
  569. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  570. asd.Transparency = bbb
  571. asd.Size = aaa
  572. asd.ZOffset = .9
  573. asd.Acceleration = Vector3.new(0, -15, 0)
  574. asd.LockedToPart = false
  575. asd.EmissionDirection = "Back"
  576. asd.Lifetime = NumberRange.new(1, 2)
  577. asd.Rotation = NumberRange.new(-100, 100)
  578. asd.RotSpeed = NumberRange.new(-100, 100)
  579. asd.Speed = NumberRange.new(10)
  580. asd.Enabled = false
  581. asd.VelocitySpread = 999
  582.  
  583. function getbloody(victim,amount)
  584.     local PART = IT("Part",Effects)
  585.     PART.Transparency = 1
  586.     PART.Size = victim.Size
  587.     PART.Anchored = true
  588.     PART.CanCollide = false
  589.     PART.CFrame = CF(victim.Position)
  590.     local HITPLAYERSOUNDS = {"356551938","264486467"}
  591.     Debris:AddItem(PART,5)
  592.     CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  593.     CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  594.     CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  595.     local prtcl = asd:Clone()
  596.     prtcl.Parent = PART
  597.     prtcl:Emit(amount*10)
  598. end
  599.  
  600. function BulletDetection(FROM,TO)
  601.     local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Character)
  602.     coroutine.resume(coroutine.create(function()
  603.         if AIMHIT ~= nil then
  604.             if AIMHIT.Parent ~= Character then
  605.                 if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  606.                     if AIMHIT.Name ~= "Head" and AIMHIT.Parent.ClassName ~= "Accessory" then
  607.                         ApplyDamage(AIMHIT.Parent:FindFirstChildOfClass("Humanoid"),MRANDOM(15,25),AIMHIT)
  608.                     elseif AIMHIT.Name == "Head" or AIMHIT.Parent.ClassName == "Accessory" then
  609.                         if AIMHIT.Parent.ClassName == "Accessory" then
  610.                             if AIMHIT:FindFirstChild("HatAttachment") or AIMHIT:FindFirstChild("FaceFrontAttachment") or AIMHIT:FindFirstChild("HairAttachment") then
  611.                                 AIMHIT.Parent.Parent:BreakJoints()
  612.                                 if AIMHIT.Parent.Parent:FindFirstChild("Head") then
  613.                                     getbloody(AIMHIT.Parent.Parent.Head,15)
  614.                                     AIMHIT.Parent.Parent.Head:remove()
  615.                                     StatLabel(AIMHIT.CFrame * CF(0, 0 + (AIMHIT.Size.z - 1), 0), "Headshot!", C3(1,0,0))
  616.                                 end
  617.                             else
  618.                                 ApplyDamage(AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid"),MRANDOM(25,65),AIMHIT)
  619.                             end
  620.                         elseif AIMHIT.Name == "Head" then
  621.                             getbloody(AIMHIT,15)
  622.                             AIMHIT.Parent:BreakJoints()
  623.                             AIMHIT:remove()
  624.                             StatLabel(AIMHIT.CFrame * CF(0, 0 + (AIMHIT.Size.z - 1), 0), "Headshot!", C3(1,0,0))
  625.                         end
  626.                     end
  627.                 else
  628.                     CreateFlyingDebree(AIMHIT,CF(AIMPOS),7,VT(0.1,0.1,0.1),5,35,true)
  629.                     SpawnBulletHole(CF(AIMPOS,AIMPOS+NORMAL)*ANGLES(RAD(90),RAD(0),RAD(0)))
  630.                 end
  631.             end
  632.         end
  633.     end))
  634.     return AIMHIT,AIMPOS,NORMAL
  635. end
  636.  
  637. --//=================================\\
  638. --||         WEAPON CREATION
  639. --\\=================================//
  640.  
  641. for i = 1, 35 do
  642.     local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/35.2, "Dark stone grey", "FaceGradient", VT(1.01,0.5,1.01),false)
  643.     FACE.Color = C3(0,0,0)
  644.     Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  645.     CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
  646. end
  647. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eyeball", VT(0.15,0.15,0.15),false)
  648. MakeForm(EYE,"Ball")
  649. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15,0.26,-0.55), CF(0, 0, 0))
  650. local EYE2 = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eyeball", VT(0.15,0.15,0.15),false)
  651. MakeForm(EYE2,"Ball")
  652. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE2, CF(-0.15,0.26,-0.55), CF(0, 0, 0))
  653. local Gun = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Gun", VT(0, 0, 0),false)
  654. local HandleMesh = CreateMesh("SpecialMesh", Gun, "FileMesh", "468351345", "468351348", VT(0.06,0.06,0.06), VT(0,0, 0))
  655. local Weld = CreateWeldOrSnapOrMotor("Weld", Gun, RightArm, Gun, CF(0, -1.8, -0.2) * ANGLES(RAD(0), RAD(90), RAD(-90)), CF(0, 0, 0))
  656.  
  657. local BODY = {}
  658.  
  659. for _, c in pairs(Character:GetDescendants()) do
  660.     if c:IsA("BasePart") and c.Name ~= "Handle" then
  661.         if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  662.             c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  663.         end
  664.         table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  665.     elseif c:IsA("JointInstance") then
  666.         table.insert(BODY,{c,c.Parent,nil,nil,nil})
  667.     end
  668. end
  669.  
  670. for e = 1, #BODY do
  671.     if BODY[e] ~= nil then
  672.         local STUFF = BODY[e]
  673.         local PART = STUFF[1]
  674.         local PARENT = STUFF[2]
  675.         local MATERIAL = STUFF[3]
  676.         local COLOR = STUFF[4]
  677.         local TRANSPARENCY = STUFF[5]
  678.         if PART.ClassName == "Part" and PART ~= RootPart then
  679.             PART.Material = MATERIAL
  680.             PART.Color = COLOR
  681.             PART.Transparency = TRANSPARENCY
  682.         end
  683.         PART.AncestryChanged:Connect(function()
  684.             PART.Parent = PARENT
  685.         end)
  686.     end
  687. end
  688.  
  689. function refit()
  690.     Character.Parent = workspace
  691.     for e = 1, #BODY do
  692.         if BODY[e] ~= nil then
  693.             local STUFF = BODY[e]
  694.             local PART = STUFF[1]
  695.             local PARENT = STUFF[2]
  696.             local MATERIAL = STUFF[3]
  697.             local COLOR = STUFF[4]
  698.             local TRANSPARENCY = STUFF[5]
  699.             if PART.ClassName == "Part" and PART ~= RootPart then
  700.                 PART.Material = MATERIAL
  701.                 PART.Color = COLOR
  702.                 PART.Transparency = TRANSPARENCY
  703.             end
  704.             if PART.Parent ~= PARENT then
  705.                 Humanoid:remove()
  706.                 PART.Parent = PARENT
  707.                 Humanoid = IT("Humanoid",Character)
  708.             end
  709.         end
  710.     end
  711. end
  712.  
  713. local SKILLTEXTCOLOR = C3(0,0,0)
  714. local SKILLFONT = "SciFi"
  715. local SKILLTEXTSIZE = 7
  716.  
  717. Humanoid.Died:connect(function()
  718.     refit()
  719. end)
  720.  
  721. function Blink()
  722.     coroutine.resume(coroutine.create(function()
  723.         if EYE ~= nil then
  724.             for i = 1, 5 do
  725.                 Swait()
  726.                 EYE.Mesh.Scale = EYE.Mesh.Scale - VT(0,0.2,0)
  727.                 EYE2.Mesh.Scale = EYE.Mesh.Scale
  728.             end
  729.             for i = 1, 7 do
  730.                 Swait()
  731.                 EYE.Mesh.Scale = EYE.Mesh.Scale + VT(0,0.2,0)
  732.                 EYE2.Mesh.Scale = EYE.Mesh.Scale
  733.             end
  734.             EYE.Mesh.Scale = VT(1,1,1)
  735.             EYE2.Mesh.Scale = EYE.Mesh.Scale
  736.         end
  737.     end))
  738. end
  739.  
  740. local AMMO1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.80, 0), UD2(0.07, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Ammo 1 Frame")
  741. local AMMO2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50, 0, 0.80, 0), UD2(0.07, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Ammo 2 Frame")
  742. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  743. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  744.  
  745. local SKILL3TEXT = CreateLabel(SKILL1FRAME, "[Z] Shell", C3(0,0,0), 7, SKILLFONT, 0, 2, 1, "Text 3")
  746. local SKILL4TEXT = CreateLabel(SKILL2FRAME, "[X] Sinful Shell", C3(1,0,0), 8, "Antique", 0, 2, 1, "Text 4")
  747.  
  748. local AMMOIMAGE1 = IT("ImageLabel",AMMO1FRAME)
  749. AMMOIMAGE1.Size = UD2(1,0,1,0)
  750. AMMOIMAGE1.BackgroundTransparency = 1
  751. AMMOIMAGE1.BorderSizePixel = 0
  752. AMMOIMAGE1.Image = "http://www.roblox.com/asset/?id=1493961907"
  753. local AMMOIMAGE2 = IT("ImageLabel",AMMO2FRAME)
  754. AMMOIMAGE2.Size = UD2(1,0,1,0)
  755. AMMOIMAGE2.BackgroundTransparency = 1
  756. AMMOIMAGE2.BorderSizePixel = 0
  757. AMMOIMAGE2.Image = "http://www.roblox.com/asset/?id=1493962162"
  758.  
  759. --//=================================\\
  760. --||         DAMAGE FUNCTIONS
  761. --\\=================================//
  762.  
  763. function StatLabel(CFRAME, TEXT, COLOR)
  764.     local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  765.     STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
  766.     local BODYGYRO = IT("BodyGyro", STATPART)
  767.     game:GetService("Debris"):AddItem(STATPART ,5)
  768.     local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  769.     BILLBOARDGUI.Adornee = STATPART
  770.     BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  771.     BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  772.     BILLBOARDGUI.AlwaysOnTop = false
  773.     local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  774.     TEXTLABEL.BackgroundTransparency = 1
  775.     TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  776.     TEXTLABEL.Text = TEXT
  777.     TEXTLABEL.Font = SKILLFONT
  778.     TEXTLABEL.FontSize="Size42"
  779.     TEXTLABEL.TextColor3 = COLOR
  780.     TEXTLABEL.TextStrokeTransparency = 0
  781.     TEXTLABEL.TextScaled = true
  782.     TEXTLABEL.TextWrapped = true
  783.     coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  784.         for i = 1, 10 do
  785.             Swait()
  786.             STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
  787.             TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/10)
  788.             TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
  789.         end
  790.         THEPART.Parent = nil
  791.     end),STATPART, TEXTLABEL)
  792. end
  793.  
  794. --//=================================\\
  795. --||            DAMAGING
  796. --\\=================================//
  797.  
  798. function ApplyDamage(Humanoid,Damage,TorsoPart)
  799.     local defence = Instance.new("BoolValue",Humanoid.Parent)
  800.     defence.Name = ("HitBy"..Player.Name)
  801.     game:GetService("Debris"):AddItem(defence, 0.001)
  802.     Damage = Damage * DAMAGEMULTIPLIER
  803.     if Humanoid.Health ~= 0 then
  804.         local CritChance = MRANDOM(1,100)
  805.         if Damage > Humanoid.Health then
  806.             Damage = math.ceil(Humanoid.Health)
  807.             if Damage == 0 then
  808.                 Damage = 0.1
  809.             end
  810.         end
  811.         Humanoid.Health = Humanoid.Health - Damage
  812.         StatLabel(TorsoPart.CFrame * CF(0, 0 + (TorsoPart.Size.z - 1), 0), Damage, C3(0, 0, 0))
  813.     end
  814. end
  815.  
  816. function Ghostify(POSITION,RANGE)
  817.     local CHILDREN = workspace:GetDescendants()
  818.     for index, CHILD in pairs(CHILDREN) do
  819.         if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  820.             local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  821.             if HUM then
  822.                 local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  823.                 if TORSO then
  824.                     if HUM.Health > 0 and (TORSO.Position - POSITION).Magnitude <= RANGE then
  825.                         local GHOST = GHOSTBASE:Clone()
  826.                         GHOST.Parent = Effects
  827.                         GHOST.Torso.CFrame = TORSO.CFrame
  828.                         table.insert(GHOSTS,GHOST)
  829.                         CHILD:remove()
  830.                     end
  831.                 end
  832.             end
  833.         end
  834.     end
  835. end
  836.  
  837. --//=================================\\
  838. --||    ATTACK FUNCTIONS AND STUFF
  839. --\\=================================//
  840.  
  841. function Shell()
  842.     ATTACK = true
  843.     Rooted = false
  844.     local GYRO = IT("BodyGyro",RootPart)
  845.     GYRO.D = 750
  846.     GYRO.P = 20000
  847.     GYRO.MaxTorque = VT(0,40000000,0)
  848.     for i=0, 1, 0.1 / Animation_Speed do
  849.         Swait()
  850.         GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  851.         RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(35)), 0.75 / Animation_Speed)
  852.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 0.5 * SIN(SINE / 12)), RAD(15), RAD(-35)), 0.75 / Animation_Speed)
  853.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.7 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(115), RAD(0), RAD(35)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  854.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45, -0.1) * ANGLES(RAD(25), RAD(0), RAD(5)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  855.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(50), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(35)), 0.75 / Animation_Speed)
  856.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.3 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(-25)), 0.75 / Animation_Speed)
  857.     end
  858.     GYRO:remove()
  859.     CreateSound(696483710, Gun, 5, 1, false)
  860.     local AIMHIT,AIMPOS,NORMAL = BulletDetection(Gun.Position,Mouse.Hit.p)
  861.     SpawnTrail(Gun.CFrame*CF(1.5,0.5,0).p,AIMPOS)
  862.     WACKYEFFECT({Time = 3, EffectType = "Sphere", Size = VT(1,0.3,0.3), Size2 = VT(1,0,0), Transparency = 0, Transparency2 = 1, CFrame = Gun.CFrame*CF(1.5,0.5,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  863.     for i=0, 0.3, 0.1 / Animation_Speed do
  864.         Swait()
  865.         RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(35)), 0.75 / Animation_Speed)
  866.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 0.5 * SIN(SINE / 12)), RAD(15), RAD(-35)), 0.75 / Animation_Speed)
  867.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.7 - 0.1 * COS(SINE / 12), 0.3) * ANGLES(RAD(110), RAD(0), RAD(35)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  868.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45, -0.1) * ANGLES(RAD(25), RAD(0), RAD(5)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  869.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(50), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(35)), 0.75 / Animation_Speed)
  870.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.3 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(-25)), 0.75 / Animation_Speed)
  871.     end
  872.     ATTACK = false
  873.     Rooted = false
  874. end
  875.  
  876. function Taunt()
  877.     ATTACK = true
  878.     local LAUGH = nil
  879.     coroutine.resume(coroutine.create(function()
  880.         repeat
  881.             Swait()
  882.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  883.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 1 / Animation_Speed)
  884.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.15*SIZE, -0.5*SIZE) * ANGLES(RAD(170), RAD(-25), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  885.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  886.             RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  887.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  888.         until LAUGH ~= nil
  889.         repeat
  890.             Swait()
  891.             LAUGH.Parent = Head
  892.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0+(0.1*LAUGH.PlaybackLoudness/75) + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  893.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE+(0.1*LAUGH.PlaybackLoudness/75)) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 1 / Animation_Speed)
  894.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.15*SIZE+(0.1*LAUGH.PlaybackLoudness/75), -0.5*SIZE) * ANGLES(RAD(170), RAD(-25), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  895.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE+(0.1*LAUGH.PlaybackLoudness/75), 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  896.             RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE-(0.1*LAUGH.PlaybackLoudness/75) + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  897.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE-(0.1*LAUGH.PlaybackLoudness/75) - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  898.         until LAUGH.Playing == false
  899.     ATTACK = false
  900.     end))
  901.     wait(0.1)
  902.     sick:Stop()
  903.     LAUGH = CreateSound(525166232, Head, 10, 1, false)
  904.     sick:Resume()
  905. end
  906.  
  907. function SinfulShell()
  908.     ATTACK = true
  909.     Rooted = false
  910.     local GYRO = IT("BodyGyro",RootPart)
  911.     GYRO.D = 750
  912.     GYRO.P = 20000
  913.     GYRO.MaxTorque = VT(0,40000000,0)
  914.     for i=0, 1, 0.1 / Animation_Speed do
  915.         Swait()
  916.         GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  917.         RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(35)), 0.75 / Animation_Speed)
  918.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 0.5 * SIN(SINE / 12)), RAD(15), RAD(-35)), 0.75 / Animation_Speed)
  919.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.7 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(115), RAD(0), RAD(35)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  920.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45, -0.1) * ANGLES(RAD(25), RAD(0), RAD(5)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  921.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(50), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(35)), 0.75 / Animation_Speed)
  922.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.3 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(-25)), 0.75 / Animation_Speed)
  923.     end
  924.     GYRO:remove()
  925.     CreateSound(696483710, Gun, 5, 1, false)
  926.     WACKYEFFECT({Time = 3, EffectType = "Sphere", Size = VT(1,0.3,0.3), Size2 = VT(1,0,0), Transparency = 0, Transparency2 = 1, CFrame = Gun.CFrame*CF(1.5,0.5,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  927.     coroutine.resume(coroutine.create(function()
  928.         local Bullet = CreatePart(3, Effects, "SmoothPlastic", 0, 0, "Really red", "Sinful bullet", VT(0,0,0))
  929.         CreateMesh("SpecialMesh", Bullet, "FileMesh", "94295100", "", VT(6, 6, 7), VT(0,0, 0))
  930.         Bullet.CFrame = Gun.CFrame*CF(1.5,0.5,0)
  931.         local AIMPOINT = Mouse.Hit.p
  932.         local STARTPOS = Gun.CFrame*CF(1.5,0.5,0).p
  933.         local VECTOR = CF(STARTPOS,AIMPOINT)
  934.         local IMPACTED = false
  935.         CreateSound(1393698948, Bullet, 10, 1, true)
  936.         for E = 1, 50 do
  937.             if IMPACTED == true then
  938.                 break
  939.             end
  940.             local TARGETPOINT = VECTOR*CF(0,0,-E*5)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,1,0).p
  941.             Bullet.CFrame = CF(Bullet.Position,TARGETPOINT)
  942.             for i = 1, 5 do
  943.                 Swait()
  944.                 WACKYEFFECT({Time = 15, EffectType = "Swirl", Size = VT(1,1,1), Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = Bullet.CFrame * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i+E, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  945.                 Bullet.CFrame = Bullet.CFrame*CF(0,0,-1)
  946.                 local AIMHIT,AIMPOS,NORMAL = Raycast(Bullet.Position,Bullet.CFrame.lookVector,1.3,Character)
  947.                 if AIMHIT ~= nil then
  948.                     IMPACTED = true
  949.                     break
  950.                 end
  951.             end
  952.         end
  953.         WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(10,10,10), Size2 = VT(9,9,9), Transparency = 0, Transparency2 = 1, CFrame = Bullet.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 182765513, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 7})
  954.         for i = 1, 7 do
  955.             WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(1,15,1), Size2 = VT(0,25,0), Transparency = 0, Transparency2 = 1, CFrame = Bullet.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  956.         end
  957.         Ghostify(Bullet.Position,10)
  958.         Bullet:remove()
  959.     end))
  960.     for i=0, 0.3, 0.1 / Animation_Speed do
  961.         Swait()
  962.         RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(35)), 0.75 / Animation_Speed)
  963.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 0.5 * SIN(SINE / 12)), RAD(15), RAD(-35)), 0.75 / Animation_Speed)
  964.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.7 - 0.1 * COS(SINE / 12), 0.3) * ANGLES(RAD(110), RAD(0), RAD(35)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  965.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45, -0.1) * ANGLES(RAD(25), RAD(0), RAD(5)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  966.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(50), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(35)), 0.75 / Animation_Speed)
  967.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.3 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(-25)), 0.75 / Animation_Speed)
  968.     end
  969.     ATTACK = false
  970.     Rooted = false
  971. end
  972.  
  973. --//=================================\\
  974. --||      ASSIGN THINGS TO KEYS
  975. --\\=================================//
  976.  
  977. function MouseDown(Mouse)
  978.     if ATTACK == false then
  979.     end
  980. end
  981.  
  982. function MouseUp(Mouse)
  983. HOLD = false
  984. end
  985.  
  986. function KeyDown(Key)
  987.     KEYHOLD = true
  988.     if Key == "z" and ATTACK == false then
  989.         Shell()
  990.     end
  991.  
  992.     if Key == "t" and ATTACK == false then
  993.         Taunt()
  994.     end
  995.  
  996.     if Key == "x" and ATTACK == false then
  997.         SinfulShell()
  998.     end
  999. end
  1000.  
  1001. function KeyUp(Key)
  1002.     KEYHOLD = false
  1003. end
  1004.  
  1005.     Mouse.Button1Down:connect(function(NEWKEY)
  1006.         MouseDown(NEWKEY)
  1007.     end)
  1008.     Mouse.Button1Up:connect(function(NEWKEY)
  1009.         MouseUp(NEWKEY)
  1010.     end)
  1011.     Mouse.KeyDown:connect(function(NEWKEY)
  1012.         KeyDown(NEWKEY)
  1013.     end)
  1014.     Mouse.KeyUp:connect(function(NEWKEY)
  1015.         KeyUp(NEWKEY)
  1016.     end)
  1017.  
  1018. --//=================================\\
  1019. --\\=================================//
  1020.  
  1021.  
  1022. function unanchor()
  1023.     if UNANCHOR == true then
  1024.         g = Character:GetChildren()
  1025.         for i = 1, #g do
  1026.             if g[i].ClassName == "Part" then
  1027.                 g[i].Anchored = false
  1028.             end
  1029.         end
  1030.     end
  1031. end
  1032.  
  1033.  
  1034. --//=================================\\
  1035. --||    WRAP THE WHOLE SCRIPT UP
  1036. --\\=================================//
  1037.  
  1038. Humanoid.Changed:connect(function(Jump)
  1039.     if Jump == "Jump" and (Disable_Jump == true) then
  1040.         Humanoid.Jump = false
  1041.     end
  1042. end)
  1043.  
  1044. local BLINKLOOP = 0
  1045.  
  1046. while true do
  1047.     Swait()
  1048.     script.Parent = WEAPONGUI
  1049.     ANIMATE.Parent = nil
  1050.     Humanoid.Parent = Character
  1051.     if Humanoid then
  1052.         local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1053.         IDLEANIMATION:Play()
  1054.     end
  1055.     SINE = SINE + CHANGE
  1056.     local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1057.     local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1058.     local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1059.     local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1060.     if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1061.         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)
  1062.         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)
  1063.         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.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1064.         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.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1065.     elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1066.         RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1067.         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)
  1068.         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)
  1069.         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)
  1070.     end
  1071.     if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1072.         ANIM = "Jump"
  1073.         if ATTACK == false then
  1074.             RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1075.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1076.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1077.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1078.             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)
  1079.             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)
  1080.         end
  1081.     elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1082.         ANIM = "Fall"
  1083.         if ATTACK == false then
  1084.             RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1085.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1086.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1087.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1088.             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)
  1089.             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)
  1090.         end
  1091.     elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1092.         ANIM = "Idle"
  1093.         if ATTACK == false then
  1094.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(15)), 0.15 / Animation_Speed)
  1095.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 0.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), 0.15 / Animation_Speed)
  1096.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.7 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1097.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45, -0.1) * ANGLES(RAD(25), RAD(0), RAD(5)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1098.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(45)), 0.15 / Animation_Speed)
  1099.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(-15)), 0.15 / Animation_Speed)
  1100.         end
  1101.     elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1102.         ANIM = "Walk"
  1103.         if ATTACK == false then
  1104.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2) * ANGLES(RAD(30), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1105.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 3 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1106.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.7 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(30), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.35 / Animation_Speed)
  1107.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(30-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  1108.             RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(30), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1109.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(30), RAD(-75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1110.         end
  1111.     end
  1112.     unanchor()
  1113.     Humanoid.MaxHealth = "inf"
  1114.     Humanoid.Health = "inf"
  1115.     if Rooted == false then
  1116.         Disable_Jump = false
  1117.         Humanoid.WalkSpeed = Speed
  1118.     elseif Rooted == true then
  1119.         Disable_Jump = true
  1120.         Humanoid.WalkSpeed = 0
  1121.     end
  1122.     sick.SoundId = "rbxassetid://1472374501"
  1123.     sick.Looped = true
  1124.     sick.Pitch = 0.7
  1125.     sick.Volume = 3
  1126.     sick.Playing = true
  1127.     sick.Parent = Torso
  1128.     if Head:FindFirstChild("face") then
  1129.         Head.face.Texture = "rbxassetid://403870689"
  1130.     end
  1131.     BLINKLOOP = BLINKLOOP + 1
  1132.     if BLINKLOOP >=650 then
  1133.         BLINKLOOP = 0
  1134.         Blink()
  1135.     end
  1136.     if #GHOSTS>0 then
  1137.         for e=1,#GHOSTS do
  1138.             if GHOSTS[e]~=nil then
  1139.                 local Thing=GHOSTS[e]
  1140.                 if Thing~=nil then
  1141.                     if Thing:FindFirstChild("Head") then
  1142.                         if Thing:FindFirstChild("Head"):FindFirstChild("face") then
  1143.                             Thing:FindFirstChild("Head").face.Texture = "rbxassetid://479674570"
  1144.                         end
  1145.                         if Thing:FindFirstChild("Head"):FindFirstChildOfClass("Sound") then
  1146.                             Thing:FindFirstChild("Head"):FindFirstChildOfClass("Sound"):remove()
  1147.                         end
  1148.                     end
  1149.                     local TORSO = Thing:FindFirstChild("Torso")
  1150.                     if TORSO then
  1151.                         TORSO.Anchored = false
  1152.                         local ROOT = Thing.HumanoidRootPart
  1153.                         local RootJoint1 = ROOT:FindFirstChild("RootJoint")
  1154.                         local Neck1 = TORSO:FindFirstChild("Neck")
  1155.                         local RightShoulder1 = TORSO:FindFirstChild("Right Shoulder")
  1156.                         local LeftShoulder1 = TORSO:FindFirstChild("Left Shoulder")
  1157.                         local RightHip1 = TORSO:FindFirstChild("Right Hip")
  1158.                         local LeftHip1 = TORSO:FindFirstChild("Left Hip")
  1159.                         if ROOT and RootJoint1 then
  1160.                             local VELOCITY = (ROOT.Velocity * VT(1, 0, 1)).magnitude
  1161.                             if VELOCITY < 1 then
  1162.                                 RootJoint1.C0 = ROOTC0 * CF(0, 0, 0 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(2.5 * SIN(SINE / 12)))
  1163.                                 Neck1.C0 = NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD( - 2.5 * SIN(SINE / 12)))
  1164.                                 RightShoulder1.C0 = CF(1.5, 0.5 + 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 1.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0
  1165.                                 LeftShoulder1.C0 = CF(-1.5, 0.5 + 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 1.5 * SIN(SINE / 12))) * LEFTSHOULDERC0
  1166.                                 RightHip1.C0 = CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0))
  1167.                                 LeftHip1.C0 = CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0))
  1168.                             elseif VELOCITY > 1 then
  1169.                                 RootJoint1.C0 = ROOTC0 * CF(0, 0, 0 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(2.5 * SIN(SINE / 12)))
  1170.                                 Neck1.C0 = NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD( - 2.5 * SIN(SINE / 12)))
  1171.                                 RightShoulder1.C0 = CF(1.5, 0.5 + 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(15 + 1.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0
  1172.                                 LeftShoulder1.C0 = CF(-1.5, 0.5 + 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 1.5 * SIN(SINE / 12))) * LEFTSHOULDERC0
  1173.                                 RightHip1.C0 = CF(1, -1, -0.01) * ANGLES(RAD(-25-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0))
  1174.                                 LeftHip1.C0 = CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0))
  1175.                             end
  1176.                         end
  1177.                         local Human = Thing.Humanoid
  1178.                         if Human then
  1179.                             Human.HipHeight = 0.3
  1180.                             for _, c in pairs(Thing:GetChildren()) do
  1181.                                 if c.ClassName == "Part" and c.Transparency < 1 then
  1182.                                     c.Color = C3(0,0,0)
  1183.                                     c.Transparency = 0.65 + 0.15 * COS(SINE / 25)
  1184.                                 elseif c.ClassName == "Accessory" or c.ClassName == "Hat" or c.ClassName == "CharacterMesh" or c.ClassName == "Shirt" or c.ClassName == "Pants" then
  1185.                                     c:remove()
  1186.                                 end
  1187.                             end
  1188.                             if Human then
  1189.                                 local IDLEANIMATION = Human:LoadAnimation(ROBLOXIDLEANIMATION)
  1190.                                 IDLEANIMATION:Play()
  1191.                             end
  1192.                             local list = game.Workspace:children()
  1193.                             local torso = nil
  1194.                             local dist = 50
  1195.                             local temp = nil
  1196.                             local human = nil
  1197.                             local temp2 = nil
  1198.                             local OwnerInDanger = false
  1199.                             for x = 1, #list do
  1200.                                 temp2 = list[x]
  1201.                                 if (temp2.className == "Model") and (temp2 ~= Character) and (temp2 ~= Thing) then
  1202.                                     temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso")
  1203.                                     human = temp2:findFirstChildOfClass("Humanoid")
  1204.                                     if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1205.                                         if (temp.Position - Torso.Position).magnitude < 15 then
  1206.                                             OwnerInDanger = true
  1207.                                             newdist = (temp.Position - TORSO.Position).magnitude
  1208.                                             dist = (Torso.Position - temp.Position).magnitude
  1209.                                             Human:MoveTo(temp.Position)
  1210.                                             torso = temp
  1211.                                             if newdist < 7 then
  1212.                                                 torso.CFrame = CF(torso.Position,TORSO.Position)*CF(0,0,5)
  1213.                                                 CreateSound(814168787, temp, 1, 2, false)
  1214.                                                 ApplyDamage(human,MRANDOM(15,35),temp)
  1215.                                                 WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(1,1,1), Size2 = VT(3,1,3), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position,torso.Position)*CF(0,0,-2) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  1216.                                                 WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(1,1,1), Size2 = VT(3,1,3), Transparency = 0, Transparency2 = 1, CFrame = torso.CFrame*CF(0,-4*torso.Size.Y/2,0), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  1217.                                             end
  1218.                                         end
  1219.                                     end
  1220.                                 end
  1221.                             end
  1222.                             if OwnerInDanger == false then
  1223.                                 for x = 1, #list do
  1224.                                     temp2 = list[x]
  1225.                                     if (temp2.className == "Model") and (temp2 ~= Character) and (temp2 ~= Thing) then
  1226.                                         temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso")
  1227.                                         human = temp2:findFirstChildOfClass("Humanoid")
  1228.                                         if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1229.                                             if (temp.Position - Torso.Position).magnitude < dist then
  1230.                                                 newdist = (temp.Position - TORSO.Position).magnitude
  1231.                                                 Human:MoveTo(temp.Position)
  1232.                                                 torso = temp
  1233.                                                 if newdist < 15 then
  1234.                                                     if MRANDOM(1,35) == 1 then
  1235.                                                         CreateSound(438665935, temp, 1, 3, false)
  1236.                                                         ApplyDamage(human,MRANDOM(2,20),temp)
  1237.                                                         WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(1,1,1), Size2 = VT(3,1,3), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position,torso.Position)*CF(0,0,-2) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  1238.                                                     end
  1239.                                                 end
  1240.                                             end
  1241.                                         end
  1242.                                     end
  1243.                                 end
  1244.                             end
  1245.                             if torso == nil then
  1246.                                 Human.WalkSpeed = Speed -0.2
  1247.                                 if (Torso.Position - TORSO.Position).magnitude < 12 and (Torso.Position - TORSO.Position).magnitude >= 11 then
  1248.                                     Human:MoveTo(TORSO.Position)
  1249.                                 elseif (Torso.Position - TORSO.Position).magnitude > 15 then
  1250.                                     Human:MoveTo(Torso.Position)
  1251.                                 elseif (Torso.Position - TORSO.Position).magnitude < 11 then
  1252.                                     Human:MoveTo(CF(Torso.Position,TORSO.Position)*CF(0,0,-5).p)
  1253.                                 end
  1254.                             else
  1255.                                 if OwnerInDanger == false then
  1256.                                     Human.WalkSpeed = Speed*1.2
  1257.                                 else
  1258.                                     Human.WalkSpeed = Speed*5
  1259.                                 end
  1260.                             end
  1261.                             if Human.Health == 0 then
  1262.                                 Thing:remove()
  1263.                                 table.remove(GHOSTS,e)
  1264.                             else
  1265.                                 Human.Health = Human.Health + 0.5
  1266.                             end
  1267.                         else
  1268.                             Thing:remove()
  1269.                             table.remove(GHOSTS,e)
  1270.                         end
  1271.                     else
  1272.                         Thing:remove()
  1273.                         table.remove(GHOSTS,e)
  1274.                     end
  1275.                 end
  1276.             end
  1277.         end
  1278.     end
  1279.     refit()
  1280. end
  1281.  
  1282. --//=================================\\
  1283. --\\=================================//
  1284.  
  1285.  
  1286.  
  1287.  
  1288.  
  1289. --//====================================================\\--
  1290. --||                     END OF SCRIPT
  1291. --\\====================================================//--
Add Comment
Please, Sign In to add comment