SilentWraith

Bye bye script

May 18th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 58.35 KB | None | 0 0
  1. -----------------------
  2. --Bye Bye--
  3. -------------------------------------------------------
  4. --A script By makhail07
  5.  
  6. --Probably my most brutal script yet :joy:
  7.  
  8. -------------------------------------------------------
  9.  
  10. local FavIDs = {
  11.     340106355, --Nefl Crystals
  12.     927529620, --Dimension
  13.     876981900, --Fantasy
  14.     398987889, --Ordinary Days
  15.     1117396305, --Oh wait, it's you.
  16.     885996042, --Action Winter Journey
  17.     919231299, --Sprawling Idiot Effigy
  18.     743466274, --Good Day Sunshine
  19.     727411183, --Knife Fight
  20.     1402748531, --The Earth Is Counting On You!
  21.     595230126 --Robot Language
  22.     }
  23.  
  24.  
  25.  
  26. --The reality of my life isn't real but a Universe -makhail07
  27. wait()
  28. local plr = game:service'Players'.LocalPlayer
  29. print('Local User is '..plr.Name)
  30. local char = plr.Character
  31. local hum = char.Humanoid
  32. local ra = char["Right Arm"]
  33. local la= char["Left Arm"]
  34. local rl= char["Right Leg"]
  35. local ll = char["Left Leg"]
  36. local hed = char.Head
  37. local root = char.HumanoidRootPart
  38. local rootj = root.RootJoint
  39. local tors = char.Torso
  40. local mouse = plr:GetMouse()
  41. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  42. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  43. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  44.  
  45.  
  46. -------------------------------------------------------
  47. --Start Good Stuff--
  48. -------------------------------------------------------
  49. CF = CFrame.new
  50. angles = CFrame.Angles
  51. attack = false
  52. Euler = CFrame.fromEulerAnglesXYZ
  53. Rad = math.rad
  54. IT = Instance.new
  55. BrickC = BrickColor.new
  56. Cos = math.cos
  57. Acos = math.acos
  58. Sin = math.sin
  59. Asin = math.asin
  60. Abs = math.abs
  61. Mrandom = math.random
  62. Floor = math.floor
  63. -------------------------------------------------------
  64. --End Good Stuff--
  65. -------------------------------------------------------
  66. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  67. RSH, LSH = nil, nil
  68. RW = Instance.new("Weld")
  69. LW = Instance.new("Weld")
  70. RH = tors["Right Hip"]
  71. LH = tors["Left Hip"]
  72. RSH = tors["Right Shoulder"]
  73. LSH = tors["Left Shoulder"]
  74. RSH.Parent = nil
  75. LSH.Parent = nil
  76. RW.Name = "RW"
  77. RW.Part0 = tors
  78. RW.C0 = CF(1.5, 0.5, 0)
  79. RW.C1 = CF(0, 0.5, 0)
  80. RW.Part1 = ra
  81. RW.Parent = tors
  82. LW.Name = "LW"
  83. LW.Part0 = tors
  84. LW.C0 = CF(-1.5, 0.5, 0)
  85. LW.C1 = CF(0, 0.5, 0)
  86. LW.Part1 = la
  87. LW.Parent = tors
  88. Effects = {}
  89.  
  90. -------------------------------------------------------
  91. --Start HeartBeat--
  92. -------------------------------------------------------
  93. ArtificialHB = Instance.new("BindableEvent", script)
  94. ArtificialHB.Name = "Heartbeat"
  95. script:WaitForChild("Heartbeat")
  96.  
  97. frame = 1 / 60
  98. tf = 0
  99. allowframeloss = false
  100. tossremainder = false
  101.  
  102.  
  103. lastframe = tick()
  104. script.Heartbeat:Fire()
  105.  
  106.  
  107. game:GetService("RunService").Heartbeat:connect(function(s, p)
  108.     tf = tf + s
  109.     if tf >= frame then
  110.         if allowframeloss then
  111.             script.Heartbeat:Fire()
  112.             lastframe = tick()
  113.         else
  114.             for i = 1, math.floor(tf / frame) do
  115.                 script.Heartbeat:Fire()
  116.             end
  117.             lastframe = tick()
  118.         end
  119.         if tossremainder then
  120.             tf = 0
  121.         else
  122.             tf = tf - frame * math.floor(tf / frame)
  123.         end
  124.     end
  125. end)
  126. -------------------------------------------------------
  127. --End HeartBeat--
  128. -------------------------------------------------------
  129.  
  130. -------------------------------------------------------
  131. --Start Important Functions--
  132. -------------------------------------------------------
  133. function swait(num)
  134.     if num == 0 or num == nil then
  135.         game:service("RunService").Stepped:wait(0)
  136.     else
  137.         for i = 0, num do
  138.             game:service("RunService").Stepped:wait(0)
  139.         end
  140.     end
  141. end
  142. function thread(f)
  143.     coroutine.resume(coroutine.create(f))
  144. end
  145. function clerp(a, b, t)
  146.     local qa = {
  147.         QuaternionFromCFrame(a)
  148.     }
  149.     local qb = {
  150.         QuaternionFromCFrame(b)
  151.     }
  152.     local ax, ay, az = a.x, a.y, a.z
  153.     local bx, by, bz = b.x, b.y, b.z
  154.     local _t = 1 - t
  155.     return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  156. end
  157. function QuaternionFromCFrame(cf)
  158.     local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  159.     local trace = m00 + m11 + m22
  160.     if trace > 0 then
  161.         local s = math.sqrt(1 + trace)
  162.         local recip = 0.5 / s
  163.         return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  164.     else
  165.         local i = 0
  166.         if m00 < m11 then
  167.             i = 1
  168.         end
  169.         if m22 > (i == 0 and m00 or m11) then
  170.             i = 2
  171.         end
  172.         if i == 0 then
  173.             local s = math.sqrt(m00 - m11 - m22 + 1)
  174.             local recip = 0.5 / s
  175.             return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  176.         elseif i == 1 then
  177.             local s = math.sqrt(m11 - m22 - m00 + 1)
  178.             local recip = 0.5 / s
  179.             return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  180.         elseif i == 2 then
  181.             local s = math.sqrt(m22 - m00 - m11 + 1)
  182.             local recip = 0.5 / s
  183.             return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  184.         end
  185.     end
  186. end
  187. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  188.     local xs, ys, zs = x + x, y + y, z + z
  189.     local wx, wy, wz = w * xs, w * ys, w * zs
  190.     local xx = x * xs
  191.     local xy = x * ys
  192.     local xz = x * zs
  193.     local yy = y * ys
  194.     local yz = y * zs
  195.     local zz = z * zs
  196.     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))
  197. end
  198. function QuaternionSlerp(a, b, t)
  199.     local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  200.     local startInterp, finishInterp
  201.     if cosTheta >= 1.0E-4 then
  202.         if 1 - cosTheta > 1.0E-4 then
  203.             local theta = math.acos(cosTheta)
  204.             local invSinTheta = 1 / Sin(theta)
  205.             startInterp = Sin((1 - t) * theta) * invSinTheta
  206.             finishInterp = Sin(t * theta) * invSinTheta
  207.         else
  208.             startInterp = 1 - t
  209.             finishInterp = t
  210.         end
  211.     elseif 1 + cosTheta > 1.0E-4 then
  212.         local theta = math.acos(-cosTheta)
  213.         local invSinTheta = 1 / Sin(theta)
  214.         startInterp = Sin((t - 1) * theta) * invSinTheta
  215.         finishInterp = Sin(t * theta) * invSinTheta
  216.     else
  217.         startInterp = t - 1
  218.         finishInterp = t
  219.     end
  220.     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
  221. end
  222. function rayCast(Position, Direction, Range, Ignore)
  223.     return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  224. end
  225. local RbxUtility = LoadLibrary("RbxUtility")
  226. local Create = RbxUtility.Create
  227.  
  228. -------------------------------------------------------
  229. --Start Damage Function--
  230. -------------------------------------------------------
  231. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  232.     if hit.Parent == nil then
  233.         return
  234.     end
  235.     local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  236.     for _, v in pairs(hit.Parent:children()) do
  237.         if v:IsA("Humanoid") then
  238.             h = v
  239.         end
  240.     end
  241.          if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  242.    
  243.          hit.Parent:FindFirstChild("Head"):BreakJoints()
  244.          end
  245.  
  246.     if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  247.         if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  248.             if hit.Parent.DebounceHit.Value == true then
  249.                 return
  250.             end
  251.         end
  252.          if insta == true then
  253.          hit.Parent:FindFirstChild("Head"):BreakJoints()
  254.          end
  255.         local c = Create("ObjectValue"){
  256.             Name = "creator",
  257.             Value = game:service("Players").LocalPlayer,
  258.             Parent = h,
  259.         }
  260.         game:GetService("Debris"):AddItem(c, .5)
  261.         if HitSound ~= nil and HitPitch ~= nil then
  262.             CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  263.         end
  264.         local Damage = math.random(minim, maxim)
  265.         local blocked = false
  266.         local block = hit.Parent:findFirstChild("Block")
  267.         if block ~= nil then
  268.             if block.className == "IntValue" then
  269.                 if block.Value > 0 then
  270.                     blocked = true
  271.                     block.Value = block.Value - 1
  272.                     print(block.Value)
  273.                 end
  274.             end
  275.         end
  276.         if blocked == false then
  277.             h.Health = h.Health - Damage
  278.             ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  279.         else
  280.             h.Health = h.Health - (Damage / 2)
  281.             ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  282.         end
  283.         if Type == "Knockdown" then
  284.             local hum = hit.Parent.Humanoid
  285.             hum.PlatformStand = true
  286.             coroutine.resume(coroutine.create(function(HHumanoid)
  287.                 swait(1)
  288.                 HHumanoid.PlatformStand = false
  289.             end), hum)
  290.             local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  291.             local bodvol = Create("BodyVelocity"){
  292.                 velocity = angle * knockback,
  293.                 P = 5000,
  294.                 maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  295.                 Parent = hit,
  296.             }
  297.             local rl = Create("BodyAngularVelocity"){
  298.                 P = 3000,
  299.                 maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  300.                 angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  301.                 Parent = hit,
  302.             }
  303.             game:GetService("Debris"):AddItem(bodvol, .5)
  304.             game:GetService("Debris"):AddItem(rl, .5)
  305.         elseif Type == "Normal" then
  306.             local vp = Create("BodyVelocity"){
  307.                 P = 500,
  308.                 maxForce = Vector3.new(math.huge, 0, math.huge),
  309.                 velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  310.             }
  311.             if knockback > 0 then
  312.                 vp.Parent = hit.Parent.Torso
  313.             end
  314.             game:GetService("Debris"):AddItem(vp, .5)
  315.         elseif Type == "Up" then
  316.             local bodyVelocity = Create("BodyVelocity"){
  317.                 velocity = Vector3.new(0, 20, 0),
  318.                 P = 5000,
  319.                 maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  320.                 Parent = hit,
  321.             }
  322.             game:GetService("Debris"):AddItem(bodyVelocity, .5)
  323.         elseif Type == "DarkUp" then
  324.             coroutine.resume(coroutine.create(function()
  325.                 for i = 0, 1, 0.1 do
  326.                     swait()
  327.                     Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  328.                 end
  329.             end))
  330.             local bodyVelocity = Create("BodyVelocity"){
  331.                 velocity = Vector3.new(0, 20, 0),
  332.                 P = 5000,
  333.                 maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  334.                 Parent = hit,
  335.             }
  336.             game:GetService("Debris"):AddItem(bodyVelocity, 1)
  337.         elseif Type == "Snare" then
  338.             local bp = Create("BodyPosition"){
  339.                 P = 2000,
  340.                 D = 100,
  341.                 maxForce = Vector3.new(math.huge, math.huge, math.huge),
  342.                 position = hit.Parent.Torso.Position,
  343.                 Parent = hit.Parent.Torso,
  344.             }
  345.             game:GetService("Debris"):AddItem(bp, 1)
  346.         elseif Type == "Freeze" then
  347.             local BodPos = Create("BodyPosition"){
  348.                 P = 50000,
  349.                 D = 1000,
  350.                 maxForce = Vector3.new(math.huge, math.huge, math.huge),
  351.                 position = hit.Parent.Torso.Position,
  352.                 Parent = hit.Parent.Torso,
  353.             }
  354.             local BodGy = Create("BodyGyro") {
  355.                 maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  356.                 P = 20e+003,
  357.                 Parent = hit.Parent.Torso,
  358.                 cframe = hit.Parent.Torso.CFrame,
  359.             }
  360.             hit.Parent.Torso.Anchored = true
  361.             coroutine.resume(coroutine.create(function(Part)
  362.                 swait(1.5)
  363.                 Part.Anchored = false
  364.             end), hit.Parent.Torso)
  365.             game:GetService("Debris"):AddItem(BodPos, 3)
  366.             game:GetService("Debris"):AddItem(BodGy, 3)
  367.         end
  368.         local debounce = Create("BoolValue"){
  369.             Name = "DebounceHit",
  370.             Parent = hit.Parent,
  371.             Value = true,
  372.         }
  373.         game:GetService("Debris"):AddItem(debounce, Delay)
  374.         c = Create("ObjectValue"){
  375.             Name = "creator",
  376.             Value = Player,
  377.             Parent = h,
  378.         }
  379.         game:GetService("Debris"):AddItem(c, .5)
  380.     end
  381. end
  382. -------------------------------------------------------
  383. --End Damage Function--
  384. -------------------------------------------------------
  385.  
  386. -------------------------------------------------------
  387. --Start Damage Function Customization--
  388. -------------------------------------------------------
  389. function ShowDamage(Pos, Text, Time, Color)
  390.     local Rate = (1 / 30)
  391.     local Pos = (Pos or Vector3.new(0, 0, 0))
  392.     local Text = (Text or "")
  393.     local Time = (Time or 2)
  394.     local Color = (Color or Color3.new(1, 0, 1))
  395.     local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  396.     EffectPart.Anchored = true
  397.     local BillboardGui = Create("BillboardGui"){
  398.         Size = UDim2.new(3, 0, 3, 0),
  399.         Adornee = EffectPart,
  400.         Parent = EffectPart,
  401.     }
  402.     local TextLabel = Create("TextLabel"){
  403.         BackgroundTransparency = 1,
  404.         Size = UDim2.new(1, 0, 1, 0),
  405.         Text = Text,
  406.         Font = "Bodoni",
  407.         TextColor3 = Color,
  408.         TextScaled = true,
  409.         TextStrokeColor3 = Color3.fromRGB(0,0,0),
  410.         Parent = BillboardGui,
  411.     }
  412.     game.Debris:AddItem(EffectPart, (Time))
  413.     EffectPart.Parent = game:GetService("Workspace")
  414.     delay(0, function()
  415.         local Frames = (Time / Rate)
  416.         for Frame = 1, Frames do
  417.             wait(Rate)
  418.             local Percent = (Frame / Frames)
  419.             EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  420.             TextLabel.TextTransparency = Percent
  421.         end
  422.         if EffectPart and EffectPart.Parent then
  423.             EffectPart:Destroy()
  424.         end
  425.     end)
  426. end
  427. -------------------------------------------------------
  428. --End Damage Function Customization--
  429. -------------------------------------------------------
  430.  
  431. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  432.   for _, c in pairs(workspace:children()) do
  433.     local hum = c:findFirstChild("Humanoid")
  434.     if hum ~= nil then
  435.       local head = c:findFirstChild("Head")
  436.       if head ~= nil then
  437.         local targ = head.Position - Part.Position
  438.         local mag = targ.magnitude
  439.         if magni >= mag and c.Name ~= plr.Name then
  440.           Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  441.         end
  442.       end
  443.     end
  444.   end
  445. end
  446.  
  447.  
  448. CFuncs = {
  449.     Part = {
  450.         Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  451.             local Part = Create("Part")({
  452.                 Parent = Parent,
  453.                 Reflectance = Reflectance,
  454.                 Transparency = Transparency,
  455.                 CanCollide = false,
  456.                 Locked = true,
  457.                 BrickColor = BrickColor.new(tostring(BColor)),
  458.                 Name = Name,
  459.                 Size = Size,
  460.                 Material = Material
  461.             })
  462.             RemoveOutlines(Part)
  463.             return Part
  464.         end
  465.     },
  466.     Mesh = {
  467.         Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  468.             local Msh = Create(Mesh)({
  469.                 Parent = Part,
  470.                 Offset = OffSet,
  471.                 Scale = Scale
  472.             })
  473.             if Mesh == "SpecialMesh" then
  474.                 Msh.MeshType = MeshType
  475.                 Msh.MeshId = MeshId
  476.             end
  477.             return Msh
  478.         end
  479.     },
  480.     Mesh = {
  481.         Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  482.             local Msh = Create(Mesh)({
  483.                 Parent = Part,
  484.                 Offset = OffSet,
  485.                 Scale = Scale
  486.             })
  487.             if Mesh == "SpecialMesh" then
  488.                 Msh.MeshType = MeshType
  489.                 Msh.MeshId = MeshId
  490.             end
  491.             return Msh
  492.         end
  493.     },
  494.     Weld = {
  495.         Create = function(Parent, Part0, Part1, C0, C1)
  496.             local Weld = Create("Weld")({
  497.                 Parent = Parent,
  498.                 Part0 = Part0,
  499.                 Part1 = Part1,
  500.                 C0 = C0,
  501.                 C1 = C1
  502.             })
  503.             return Weld
  504.         end
  505.     },
  506.     Sound = {
  507.         Create = function(id, par, vol, pit)
  508.             coroutine.resume(coroutine.create(function()
  509.                 local S = Create("Sound")({
  510.                     Volume = vol,
  511.                     Pitch = pit or 1,
  512.                     SoundId = id,
  513.                     Parent = par or workspace
  514.                 })
  515.                 wait()
  516.                 S:play()
  517.                 game:GetService("Debris"):AddItem(S, 6)
  518.             end))
  519.         end
  520.     },
  521.     ParticleEmitter = {
  522.         Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  523.             local fp = Create("ParticleEmitter")({
  524.                 Parent = Parent,
  525.                 Color = ColorSequence.new(Color1, Color2),
  526.                 LightEmission = LightEmission,
  527.                 Size = Size,
  528.                 Texture = Texture,
  529.                 Transparency = Transparency,
  530.                 ZOffset = ZOffset,
  531.                 Acceleration = Accel,
  532.                 Drag = Drag,
  533.                 LockedToPart = LockedToPart,
  534.                 VelocityInheritance = VelocityInheritance,
  535.                 EmissionDirection = EmissionDirection,
  536.                 Enabled = Enabled,
  537.                 Lifetime = LifeTime,
  538.                 Rate = Rate,
  539.                 Rotation = Rotation,
  540.                 RotSpeed = RotSpeed,
  541.                 Speed = Speed,
  542.                 VelocitySpread = VelocitySpread
  543.             })
  544.             return fp
  545.         end
  546.     }
  547. }
  548. function RemoveOutlines(part)
  549.     part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  550. end
  551. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  552.     local Part = Create("Part")({
  553.         formFactor = FormFactor,
  554.         Parent = Parent,
  555.         Reflectance = Reflectance,
  556.         Transparency = Transparency,
  557.         CanCollide = false,
  558.         Locked = true,
  559.         BrickColor = BrickColor.new(tostring(BColor)),
  560.         Name = Name,
  561.         Size = Size,
  562.         Material = Material
  563.     })
  564.     RemoveOutlines(Part)
  565.     return Part
  566. end
  567. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  568.     local Msh = Create(Mesh)({
  569.         Parent = Part,
  570.         Offset = OffSet,
  571.         Scale = Scale
  572.     })
  573.     if Mesh == "SpecialMesh" then
  574.         Msh.MeshType = MeshType
  575.         Msh.MeshId = MeshId
  576.     end
  577.     return Msh
  578. end
  579. function CreateWeld(Parent, Part0, Part1, C0, C1)
  580.     local Weld = Create("Weld")({
  581.         Parent = Parent,
  582.         Part0 = Part0,
  583.         Part1 = Part1,
  584.         C0 = C0,
  585.         C1 = C1
  586.     })
  587.     return Weld
  588. end
  589.  
  590.  
  591. -------------------------------------------------------
  592. --Start Effect Function--
  593. -------------------------------------------------------
  594. EffectModel = Instance.new("Model", char)
  595. Effects = {
  596.   Block = {
  597.     Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  598.       local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  599.       prt.Anchored = true
  600.       prt.CFrame = cframe
  601.       local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  602.       game:GetService("Debris"):AddItem(prt, 10)
  603.       if Type == 1 or Type == nil then
  604.         table.insert(Effects, {
  605.           prt,
  606.           "Block1",
  607.           delay,
  608.           x3,
  609.           y3,
  610.           z3,
  611.           msh
  612.         })
  613.       elseif Type == 2 then
  614.         table.insert(Effects, {
  615.           prt,
  616.           "Block2",
  617.           delay,
  618.           x3,
  619.           y3,
  620.           z3,
  621.           msh
  622.         })
  623.       else
  624.         table.insert(Effects, {
  625.           prt,
  626.           "Block3",
  627.           delay,
  628.           x3,
  629.           y3,
  630.           z3,
  631.           msh
  632.         })
  633.       end
  634.     end
  635.   },
  636.   Sphere = {
  637.     Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  638.       local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  639.       prt.Anchored = true
  640.       prt.CFrame = cframe
  641.       local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  642.       game:GetService("Debris"):AddItem(prt, 10)
  643.       table.insert(Effects, {
  644.         prt,
  645.         "Cylinder",
  646.         delay,
  647.         x3,
  648.         y3,
  649.         z3,
  650.         msh
  651.       })
  652.     end
  653.   },
  654.   Cylinder = {
  655.     Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  656.       local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  657.       prt.Anchored = true
  658.       prt.CFrame = cframe
  659.       local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  660.       game:GetService("Debris"):AddItem(prt, 10)
  661.       table.insert(Effects, {
  662.         prt,
  663.         "Cylinder",
  664.         delay,
  665.         x3,
  666.         y3,
  667.         z3,
  668.         msh
  669.       })
  670.     end
  671.   },
  672.   Wave = {
  673.     Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  674.       local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  675.       prt.Anchored = true
  676.       prt.CFrame = cframe
  677.       local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  678.       game:GetService("Debris"):AddItem(prt, 10)
  679.       table.insert(Effects, {
  680.         prt,
  681.         "Cylinder",
  682.         delay,
  683.         x3 / 60,
  684.         y3 / 60,
  685.         z3 / 60,
  686.         msh
  687.       })
  688.     end
  689.   },
  690.   Ring = {
  691.     Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  692.       local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  693.       prt.Anchored = true
  694.       prt.CFrame = cframe
  695.       local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  696.       game:GetService("Debris"):AddItem(prt, 10)
  697.       table.insert(Effects, {
  698.         prt,
  699.         "Cylinder",
  700.         delay,
  701.         x3,
  702.         y3,
  703.         z3,
  704.         msh
  705.       })
  706.     end
  707.   },
  708.   Break = {
  709.     Create = function(brickcolor, cframe, x1, y1, z1)
  710.       local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  711.       prt.Anchored = true
  712.       prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  713.       local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  714.       local num = math.random(10, 50) / 1000
  715.       game:GetService("Debris"):AddItem(prt, 10)
  716.       table.insert(Effects, {
  717.         prt,
  718.         "Shatter",
  719.         num,
  720.         prt.CFrame,
  721.         math.random() - math.random(),
  722.         0,
  723.         math.random(50, 100) / 100
  724.       })
  725.     end
  726.   },
  727. Spiral = {
  728.     Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  729.       local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  730.       prt.Anchored = true
  731.       prt.CFrame = cframe
  732.       local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  733.       game:GetService("Debris"):AddItem(prt, 10)
  734.       table.insert(Effects, {
  735.         prt,
  736.         "Cylinder",
  737.         delay,
  738.         x3,
  739.         y3,
  740.         z3,
  741.         msh
  742.       })
  743.     end
  744.   },
  745. Push = {
  746.     Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  747.       local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  748.       prt.Anchored = true
  749.       prt.CFrame = cframe
  750.       local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  751.       game:GetService("Debris"):AddItem(prt, 10)
  752.       table.insert(Effects, {
  753.         prt,
  754.         "Cylinder",
  755.         delay,
  756.         x3,
  757.         y3,
  758.         z3,
  759.         msh
  760.       })
  761.     end
  762.   }
  763. }
  764. -------------------------------------------------------
  765. --End Effect Function--
  766. -------------------------------------------------------
  767.  
  768. function CreateSound(ID, PARENT, VOLUME, PITCH)
  769.     local NSound = nil
  770.     coroutine.resume(coroutine.create(function()
  771.         NSound = Instance.new("Sound", PARENT)
  772.         NSound.Volume = VOLUME
  773.         NSound.Pitch = PITCH
  774.         NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  775.         swait()
  776.         NSound:play()
  777.         game:GetService("Debris"):AddItem(NSound, 10)
  778.     end))
  779.     return NSound
  780. end
  781.  
  782. -------------------------------------------------------
  783. --Start Kyu's shitty stuff--
  784. -------------------------------------------------------
  785.  
  786. function ragdoll(model)
  787.     local char = model
  788.     torso = char.HumanoidRootPart
  789.     torso2 = char.Torso
  790.     LW.Parent = nil
  791.     RW.Parent = nil
  792.     LH.Parent = nil
  793.     RH.Parent = nil
  794.         if hum ~= nil then
  795.         hum.PlatformStand = true
  796.         end
  797.  
  798.         local Head = char:FindFirstChild("Head")
  799.         if Head then
  800.             local Neck = Instance.new("Weld")
  801.             Neck.Name = "Neck"
  802.             Neck.Part0 = torso
  803.             Neck.Part1 = Head
  804.             Neck.C0 = CFrame.new(0, 1.5, 0)
  805.             Neck.C1 = CFrame.new()
  806.             Neck.Parent = torso
  807.         end
  808.         local Limb = char:FindFirstChild("Right Arm")
  809.         if Limb then
  810.  
  811.             Limb.CFrame = torso.CFrame * CFrame.new(1.5, 0, 0)
  812.             local Joint = Instance.new("Glue")
  813.             Joint.Name = "RightShoulder"
  814.             Joint.Part0 = torso
  815.             Joint.Part1 = Limb
  816.             Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  817.             Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  818.             Joint.Parent = torso
  819.  
  820.             local B = Instance.new("Part")
  821.             B.TopSurface = 0
  822.             B.BottomSurface = 0
  823.             B.formFactor = "Symmetric"
  824.             B.Size = Vector3.new(1, 1, 1)
  825.             B.Transparency = 1
  826.             B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  827.             B.Parent = char
  828.             local W = Instance.new("Weld")
  829.             W.Part0 = Limb
  830.             W.Part1 = B
  831.             W.C0 = CFrame.new(0, -0.5, 0)
  832.             W.Parent = Limb
  833.  
  834.         end
  835.         local Limb = char:FindFirstChild("Left Arm")
  836.         if Limb then
  837.  
  838.             Limb.CFrame = torso.CFrame * CFrame.new(-1.5, 0, 0)
  839.             local Joint = Instance.new("Glue")
  840.             Joint.Name = "LeftShoulder"
  841.             Joint.Part0 = torso
  842.             Joint.Part1 = Limb
  843.             Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  844.             Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  845.             Joint.Parent = torso
  846.  
  847.             local B = Instance.new("Part")
  848.             B.TopSurface = 0
  849.             B.BottomSurface = 0
  850.             B.formFactor = "Symmetric"
  851.             B.Size = Vector3.new(1, 1, 1)
  852.             B.Transparency = 1
  853.             B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  854.             B.Parent = char
  855.             local W = Instance.new("Weld")
  856.             W.Part0 = Limb
  857.             W.Part1 = B
  858.             W.C0 = CFrame.new(0, -0.5, 0)
  859.             W.Parent = Limb
  860.  
  861.         end
  862.         local Limb = char:FindFirstChild("Right Leg")
  863.         if Limb then
  864.  
  865.             Limb.CFrame = torso.CFrame * CFrame.new(0.5, -2, 0)
  866.             local Joint = Instance.new("Glue")
  867.             Joint.Name = "RightHip"
  868.             Joint.Part0 = torso
  869.             Joint.Part1 = Limb
  870.             Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  871.             Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  872.             Joint.Parent = torso
  873.  
  874.             local B = Instance.new("Part")
  875.             B.TopSurface = 0
  876.             B.BottomSurface = 0
  877.             B.formFactor = "Symmetric"
  878.             B.Size = Vector3.new(1, 1, 1)
  879.             B.Transparency = 1
  880.             B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  881.             B.Parent = char
  882.             local W = Instance.new("Weld")
  883.             W.Part0 = Limb
  884.             W.Part1 = B
  885.             W.C0 = CFrame.new(0, -0.5, 0)
  886.             W.Parent = Limb
  887.  
  888.         end
  889.         local Limb = char:FindFirstChild("Left Leg")
  890.         if Limb then
  891.  
  892.             Limb.CFrame = torso.CFrame * CFrame.new(-0.5, -2, 0)
  893.             local Joint = Instance.new("Glue")
  894.             Joint.Name = "LeftHip"
  895.             Joint.Part0 = torso
  896.             Joint.Part1 = Limb
  897.             Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  898.             Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  899.             Joint.Parent = torso
  900.  
  901.             local B = Instance.new("Part")
  902.             B.TopSurface = 0
  903.             B.BottomSurface = 0
  904.             B.formFactor = "Symmetric"
  905.             B.Size = Vector3.new(1, 1, 1)
  906.             B.Transparency = 1
  907.             B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  908.             B.Parent = char
  909.             local W = Instance.new("Weld")
  910.             W.Part0 = Limb
  911.             W.Part1 = B
  912.             W.C0 = CFrame.new(0, -0.5, 0)
  913.             W.Parent = Limb
  914.  
  915.         end
  916.         --[
  917.         local Bar = Instance.new("Part")
  918.         Bar.TopSurface = 0
  919.         Bar.BottomSurface = 0
  920.         Bar.formFactor = "Symmetric"
  921.         Bar.Size = Vector3.new(1, 1, 1)
  922.         Bar.Transparency = 1
  923.         Bar.CFrame = torso.CFrame * CFrame.new(0, 0.5, 0)
  924.         Bar.Parent = char
  925.         local Weld = Instance.new("Weld")
  926.         Weld.Part0 = torso
  927.         Weld.Part1 = Bar
  928.         Weld.C0 = CFrame.new(0, 0.5, 0)
  929.         Weld.Parent = torso
  930.         --]]
  931.  
  932. torso.CFrame = CFrame.new(torso.Position)*CFrame.Angles(math.rad(20),math.rad(torso.Orientation.Y),math.rad(torso.Orientation.Z))
  933.  
  934. end
  935.  
  936. -------------------------------------------------------
  937. --End Kyu's shitty stuff--
  938. -------------------------------------------------------
  939.  
  940. function New(Object, Parent, Name, Data)
  941.   local Object = Instance.new(Object)
  942.   for Index, Value in pairs(Data or {}) do
  943.     Object[Index] = Value
  944.   end
  945.   Object.Parent = Parent
  946.   Object.Name = Name
  947.   return Object
  948. end
  949.  
  950. local Blood1 = Create("ParticleEmitter")({
  951.   Color = ColorSequence.new(Color3.new(0.7, 0, 0), Color3.new(0.1, 0, 0)),
  952.   Transparency = NumberSequence.new(0.1, 1),
  953.   Size = NumberSequence.new(0.5, 0),
  954.   Texture = "rbxassetid://602578593",
  955.   Lifetime = NumberRange.new(0.8),
  956.   Rate = 255,
  957.   VelocitySpread = 40,
  958.   Rotation = NumberRange.new(100),
  959.   Speed = NumberRange.new(5),
  960.   LightEmission = 0,
  961.   LockedToPart = false,
  962.   Acceleration = Vector3.new(0, -10, 0),
  963.   EmissionDirection = "Bottom"
  964. })
  965.  
  966. FHead = New("Part",char,"FHead",{CanCollide = false,BrickColor = BrickColor.new("Really black"),Size = Vector3.new(1.20000005, 0.600000024, 1),CFrame = CFrame.new(68.5999985, 0.700013041, 9.89999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  967. Mesh = New("SpecialMesh",FHead,"Mesh",{Scale = Vector3.new(1.25999999, 1.5, 1.25999999),})
  968. Weld = New("Weld",FHead,"mot",{Part0 = FHead,Part1 = char.Head,C1 = CFrame.new(0, 0.200000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  969. FHead.CanCollide = false
  970.  
  971. -------------------------------------------------------
  972. --End Important Functions--
  973. -------------------------------------------------------
  974.  
  975.  
  976. -------------------------------------------------------
  977. --Start Music Option--
  978. -------------------------------------------------------
  979. local Music = Instance.new("Sound",tors)
  980. Music.Volume = 2.5
  981. Music.SoundId = "rbxassetid://643172198"
  982. Music.Looped = true
  983. Music.Pitch = 1 --Pitcher
  984. Music:Play()
  985. -------------------------------------------------------
  986. --End Music Option--
  987. -------------------------------------------------------
  988.  
  989.  
  990. -------------------------------------------------------
  991. --Start Attacks N Stuff--
  992. -------------------------------------------------------
  993.  
  994.  
  995.  
  996.  
  997. local sine=0
  998. function ByeBye()
  999.     local target = nil
  1000.     local targettorso = nil
  1001.     if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  1002.         if mouse.Target.Parent.Humanoid.PlatformStand == false then
  1003.             target = mouse.Target.Parent.Humanoid
  1004.             targettorso = mouse.Target.Parent:FindFirstChild("Torso") or mouse.Target.Parent:FindFirstChild("UpperTorso")
  1005.             targethead = mouse.Target.Parent:FindFirstChild("Head")
  1006.         end
  1007.     end
  1008.     if target ~= nil then
  1009.         targettorso.Anchored = true
  1010.         attack = true
  1011.         hum.WalkSpeed = 0
  1012.         root.CFrame = targettorso.CFrame * CF(0,0,2)
  1013.         for i = 0,4.2,0.1 do
  1014.             swait()
  1015.         rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  1016.         tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1017.         RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
  1018.         LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
  1019.         RW.C0 = clerp(RW.C0, CF(1.1, 0.7 + 0.05 * Sin(sine / 30), -.6 + 0.025 * Cos(sine / 20)) * angles(Rad(115), Rad(0), Rad(-15)), 0.1)
  1020.         LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(-25)), 0.1)
  1021.         end
  1022.         local bloody = Instance.new("ParticleEmitter",targettorso)
  1023.         bloody.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0))
  1024.         bloody.LightEmission = .1
  1025.         bloody.Size = NumberSequence.new(0.5, 0)
  1026.         bloody.Texture = "http://www.roblox.com/asset/?ID=602578593"
  1027.         aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  1028.         bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  1029.         bloody.Transparency = bbb
  1030.         bloody.Size = aaa
  1031.         bloody.ZOffset = -.9
  1032.         bloody.Acceleration = Vector3.new(0, -5, 0)
  1033.         bloody.LockedToPart = false
  1034.         bloody.Lifetime = NumberRange.new(0.8)
  1035.         bloody.Rate = 255
  1036.         bloody.Rotation = NumberRange.new(-100, 100)
  1037.         bloody.RotSpeed = NumberRange.new(-100, 100)
  1038.         bloody.Speed = NumberRange.new(6)
  1039.         bloody.VelocitySpread = 0
  1040.         bloody.Enabled=true
  1041.         targethead:Remove()
  1042.         CreateSound("429400881", targettorso, 5, .8)
  1043.         CreateSound("1093102664", targettorso, 10, 1)
  1044.         for i = 0,6.2,0.1 do
  1045.             swait()
  1046.         rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(110)), 0.15)
  1047.         tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-110)), 0.3)
  1048.         RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
  1049.         LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
  1050.         RW.C0 = clerp(RW.C0, CF(1.3, 0.7 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(100), Rad(0), Rad(-15)), 0.1)
  1051.         LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1)
  1052.         end
  1053.         targettorso.Anchored = false
  1054.         attack = false
  1055.         hum.WalkSpeed = 16
  1056.         root.CFrame = targettorso.CFrame * CF(0,0,3)
  1057.     end
  1058. end
  1059.  
  1060.  
  1061. function Sayonara()
  1062.     local target = nil
  1063.     local targettorso = nil
  1064.     if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  1065.         if mouse.Target.Parent.Humanoid.PlatformStand == false then
  1066.             target = mouse.Target.Parent.Humanoid
  1067.             targettorso = mouse.Target.Parent:FindFirstChild("Torso") or mouse.Target.Parent:FindFirstChild("UpperTorso")
  1068.             targethead = mouse.Target.Parent:FindFirstChild("Head")
  1069.             targetrightarm = mouse.Target.Parent:FindFirstChild("Right Arm")
  1070.             targetleftarm = mouse.Target.Parent:FindFirstChild("Left Arm")
  1071.         end
  1072.     end
  1073.     if target ~= nil then
  1074.         targettorso.Anchored = true
  1075.         attack = true
  1076.         hum.WalkSpeed = 0
  1077.         root.CFrame = targettorso.CFrame * CF(0,0,2.4)
  1078.         for i = 0,6.2,0.1 do
  1079.             swait()
  1080.         rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(10), Rad(0), Rad(0)), 0.15)
  1081.         tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(10), Rad(0)), 0.3)
  1082.         RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(10)), 0.15)
  1083.         LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-10)), 0.15)
  1084.         RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(10)), 0.1)
  1085.         LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(-10)), 0.1)
  1086.         end
  1087.         do
  1088.         CreateSound("429400881", targettorso, 5, 1)
  1089.         local ModelArm02 = New("Model", char, "Arm", {})
  1090.         local ModelArm03 = New("Model", char, "Arm", {})
  1091.         local Humanoid02 = New("Humanoid", ModelArm02, "Humanoid", {})
  1092.         local Humanoid03 = New("Humanoid", ModelArm03, "Humanoid", {})
  1093.         local Arm02 = targetleftarm:Clone()
  1094.         local Arm03 = targetrightarm:Clone()
  1095.         targetleftarm.Transparency = 1
  1096.         targetrightarm.Transparency = 1
  1097.         Arm02.Parent = ModelArm02
  1098.         Arm03.Parent = ModelArm03
  1099.         for i, v in pairs(Arm02:GetChildren()) do
  1100.           v:Destroy()
  1101.         end
  1102.         for i, v in pairs(Arm03:GetChildren()) do
  1103.           v:Destroy()
  1104.         end
  1105.         local weldArm02 = Instance.new("Weld")
  1106.         weldArm02.Parent = Arm02
  1107.         weldArm02.Part0 = targetleftarm
  1108.         weldArm02.Part1 = Arm02
  1109.         weldArm02.C1 = CFrame.new(0, 0, 0)
  1110.         local weldArm03 = Instance.new("Weld")
  1111.         weldArm03.Parent = Arm03
  1112.         weldArm03.Part0 = targetrightarm
  1113.         weldArm03.Part1 = Arm03
  1114.         weldArm03.C1 = CFrame.new(0, 0, 0)
  1115.         for i, v in pairs(target:GetChildren()) do
  1116.           if v:IsA("Shirt") then
  1117.             v:clone().Parent = ModelArm02
  1118.           end
  1119.         end
  1120.         for i, v in pairs(target:GetChildren()) do
  1121.           if v:IsA("Shirt") then
  1122.             v:clone().Parent = ModelArm03
  1123.           end
  1124.         end
  1125.         weldArm02.Part0 = la
  1126.         weldArm02.C1 = CFrame.new(0, 0, 1.2) * angles(math.rad(90), math.rad(0), math.rad(0))
  1127.         weldArm03.Part0 = ra
  1128.         weldArm03.C1 = CFrame.new(0, 0, 1.2) * angles(math.rad(90), math.rad(0), math.rad(0))
  1129.         local BE1 = Blood1:Clone()
  1130.         BE1.Parent = targetleftarm
  1131.         game:GetService("Debris"):AddItem(BE1, 3)
  1132.         BE1.Rate = 255
  1133.         local BE2 = Blood1:Clone()
  1134.         BE2.Parent = targetrightarm
  1135.         game:GetService("Debris"):AddItem(BE2, 3)
  1136.         BE2.Rate = 255
  1137.         for i = 0,6.2,0.1 do
  1138.             swait()
  1139.         rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-10), Rad(0), Rad(0)), 0.15)
  1140.         tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1141.         RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(-10)), 0.15)
  1142.         LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(10)), 0.15)
  1143.         RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), .6 + 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(15)), 0.1)
  1144.         LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), .6 + 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(-15)), 0.1)
  1145.         end
  1146.         for i = 0,6.2,0.1 do
  1147.             swait()
  1148.         rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.15)
  1149.         tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1150.         RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(-20)), 0.15)
  1151.         LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(20)), 0.15)
  1152.         RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(180), Rad(0), Rad(15)), 0.1)
  1153.         LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(180), Rad(0), Rad(-15)), 0.1)
  1154.         end
  1155.         CreateSound("541909763", targettorso, 5, .8)
  1156.         weldArm02:Destroy()
  1157.         Arm02.CanCollide = true
  1158.         weldArm03:Destroy()
  1159.         Arm03.CanCollide = true
  1160.         local bodyVelocity2 = Create("BodyVelocity")({
  1161.           velocity = Vector3.new(0, 10, 0) + root.CFrame.lookVector * 50,
  1162.           P = 5000,
  1163.           maxForce = Vector3.new(8000, 8000, 8000),
  1164.           Parent = Arm02
  1165.         })
  1166.         local bodyVelocity3 = Create("BodyVelocity")({
  1167.           velocity = Vector3.new(0, 10, 0) + root.CFrame.lookVector * 50,
  1168.           P = 5000,
  1169.           maxForce = Vector3.new(8000, 8000, 8000),
  1170.           Parent = Arm03
  1171.         })
  1172.         game:GetService("Debris"):AddItem(bodyVelocity2, 0.05)
  1173.         game:GetService("Debris"):AddItem(bodyVelocity3, 0.05)
  1174.         for i = 0,6.2,0.1 do
  1175.             swait()
  1176.         rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.15)
  1177.         tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1178.         RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(35)), 0.15)
  1179.         LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-20)), 0.15)
  1180.         RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(95), Rad(0), Rad(15)), 0.1)
  1181.         LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(95), Rad(0), Rad(-15)), 0.1)
  1182.         end
  1183.         for i = 0,6.2,0.1 do
  1184.             swait()
  1185.         rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.15)
  1186.         tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1187.         RH.C0 = clerp(RH.C0, CF(1, -0.3 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(90)), 0.15)
  1188.         LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(20)), 0.15)
  1189.         RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-30), Rad(0), Rad(15)), 0.1)
  1190.         LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-30), Rad(0), Rad(-15)), 0.1)
  1191.         end
  1192.         targettorso:Remove()
  1193.         for i = 0,6.2,0.1 do
  1194.             swait()
  1195.         rootj.C0 = clerp(rootj.C0, RootCF * CF(0, -2.5, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(35), Rad(0), Rad(0)), 0.15)
  1196.         tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1197.         RH.C0 = clerp(RH.C0, CF(1, -0.2 - 0.1 * Cos(sine / 20), -.5 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(90)), 0.15)
  1198.         LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-35)), 0.15)
  1199.         RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-55), Rad(0), Rad(15)), 0.1)
  1200.         LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-55), Rad(0), Rad(-15)), 0.1)
  1201.         end
  1202.         end
  1203.         targettorso.Anchored = false
  1204.         attack = false
  1205.         hum.WalkSpeed = 16
  1206.         root.CFrame = targettorso.CFrame * CF(0,0,3.4)
  1207.     end
  1208. end
  1209.  
  1210. function AlohaMyFriend()
  1211.     local target = nil
  1212.     local targettorso = nil
  1213.     if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  1214.         if mouse.Target.Parent.Humanoid.PlatformStand == false then
  1215.             target = mouse.Target.Parent.Humanoid
  1216.             targettorso = mouse.Target.Parent:FindFirstChild("Torso") or mouse.Target.Parent:FindFirstChild("UpperTorso")
  1217.             targethead = mouse.Target.Parent:FindFirstChild("Head")
  1218.         end
  1219.     end
  1220.     if target ~= nil then
  1221.         targettorso.Anchored = true
  1222.         attack = true
  1223.         hum.WalkSpeed = 0
  1224.         root.CFrame = targettorso.CFrame * CF(0,0,2.6)
  1225.         for i = 0,6.2,0.1 do
  1226.             swait()
  1227.         rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(20)), 0.15)
  1228.         tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-20)), 0.3)
  1229.         RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
  1230.         LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
  1231.         RW.C0 = clerp(RW.C0, CF(1.1, 0.7 + 0.05 * Sin(sine / 30), -.6 + 0.025 * Cos(sine / 20)) * angles(Rad(115), Rad(0), Rad(-15)), 0.1)
  1232.         LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.1)
  1233.         end
  1234.         local ModelHead01 = New("Model", char, "Head of Decapitated", {})
  1235.         local Humanoid01 = New("Humanoid", ModelHead01, "Humanoid", {})
  1236.         local Head01 = targethead:Clone()
  1237.         targethead.Transparency = 1
  1238.         Head01.Parent = ModelHead01
  1239.         local weldHead01 = Instance.new("Weld")
  1240.         weldHead01.Parent = Head01
  1241.         weldHead01.Part0 = targethead
  1242.         weldHead01.Part1 = Head01
  1243.         weldHead01.C1 = CFrame.new(0, 0, 0)
  1244.         targethead.face:Remove()
  1245.         weldHead01.Part0 = ra
  1246.         weldHead01.C1 = CFrame.new(0, 0, 1.2) * angles(math.rad(90), math.rad(0), math.rad(0))
  1247.         local BE1 = Blood1:Clone()
  1248.         BE1.Parent = targethead
  1249.         game:GetService("Debris"):AddItem(BE1, 3)
  1250.         BE1.Rate = 255
  1251.         targettorso:BreakJoints()
  1252.         CreateSound("314390675", targettorso, 5, .7)
  1253.         for i = 0,4.2,0.1 do
  1254.             swait()
  1255.         rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(20)), 0.15)
  1256.         tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-20)), 0.3)
  1257.         RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
  1258.         LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
  1259.         RW.C0 = clerp(RW.C0, CF(1.1, 0.7 + 0.05 * Sin(sine / 30), -.6 + 0.025 * Cos(sine / 20)) * angles(Rad(145), Rad(0), Rad(-15)), 0.1)
  1260.         LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.1)
  1261.         end
  1262.         for i = 0,6.2,0.1 do
  1263.             swait()
  1264.         rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-40)), 0.15)
  1265.         tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(40)), 0.3)
  1266.         RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
  1267.         LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
  1268.         RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(185), Rad(0), Rad(15)), 0.1)
  1269.         LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(-15)), 0.1)
  1270.         end
  1271.         CreateSound("541909763", targettorso, 5, .8)
  1272.         weldHead01:Destroy()
  1273.         Head01.CanCollide = true
  1274.         local bodyVelocity2 = Create("BodyVelocity")({
  1275.           velocity = Vector3.new(0, 10, 0) + root.CFrame.lookVector * 50,
  1276.           P = 5000,
  1277.           maxForce = Vector3.new(8000, 8000, 8000),
  1278.           Parent = Head01
  1279.         })
  1280.         game:GetService("Debris"):AddItem(bodyVelocity2, 0.05)
  1281.         for i = 0,6.2,0.1 do
  1282.             swait()
  1283.         rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(40)), 0.15)
  1284.         tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-40)), 0.3)
  1285.         RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
  1286.         LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
  1287.         RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(-15)), 0.1)
  1288.         LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(-15)), 0.1)
  1289.         end
  1290.         targettorso.Anchored = false
  1291.         attack = false
  1292.         hum.WalkSpeed = 16
  1293.         root.CFrame = targettorso.CFrame * CF(0,0,3.4)
  1294.     end
  1295. end
  1296.  
  1297. function Good_Bye()
  1298.     local target = nil
  1299.     local targettorso = nil
  1300.     if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  1301.         if mouse.Target.Parent.Humanoid.PlatformStand == false then
  1302.             target = mouse.Target.Parent.Humanoid
  1303.             targettorso = mouse.Target.Parent:FindFirstChild("Torso") or mouse.Target.Parent:FindFirstChild("UpperTorso")
  1304.             targethead = mouse.Target.Parent:FindFirstChild("Head")
  1305.         end
  1306.     end
  1307.     if target ~= nil then
  1308.         targettorso.Anchored = true
  1309.         attack = true
  1310.         hum.WalkSpeed = 0
  1311.         root.CFrame = targettorso.CFrame * CF(0,0,3)
  1312.         for i = 0,6.2,0.1 do
  1313.             swait()
  1314.         rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-45)), 0.15)
  1315.         tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(45)), 0.3)
  1316.         RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
  1317.         LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
  1318.         RW.C0 = clerp(RW.C0, CF(1.3, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(25)), 0.1)
  1319.         LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.1)
  1320.         end
  1321.         local BloodColor = Color3.new(1, 0, 0)
  1322.         local PE1 = Blood1:Clone()
  1323.         local PE2 = Blood1:Clone()
  1324.         local Heart = Instance.new("Part")
  1325.         Heart.Parent = workspace
  1326.         Heart.Size = Vector3.new(1, 1, 1)
  1327.         Heart.Archivable = true
  1328.         Heart.Transparency = 0
  1329.         Heart.CanCollide = false
  1330.         Heart.BrickColor = BrickColor.new("Really red")
  1331.         Heart.Material = "Granite"
  1332.         Heart.CanCollide = true
  1333.         local weld1Heart = Instance.new("Weld")
  1334.         weld1Heart.Parent = ra
  1335.         weld1Heart.Part0 = ra
  1336.         weld1Heart.Part1 = Heart
  1337.         weld1Heart.C1 = CFrame.new(0, 1.3, 0)
  1338.         CreateSound("429400881", targettorso, 5, 1)
  1339.         CreateSound("131038747", targettorso, 7, 1)
  1340.         PE1.Parent = ra
  1341.         PE2.Parent = Heart
  1342.         game:GetService("Debris"):AddItem(PE1, 3)
  1343.         game:GetService("Debris"):AddItem(weld1Heart, 1.5)
  1344.         game:GetService("Debris"):AddItem(Heart, 8)
  1345.         for i = 0,8,0.1 do
  1346.             swait()
  1347.         rootj.C0 = clerp(rootj.C0, RootCF * CF(1.2, -2.5, -0.2) * angles(Rad(0), Rad(0), Rad(40)), 0.15)
  1348.         tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(10), Rad(-45)), 0.3)
  1349.         RH.C0 = clerp(RH.C0, CF(1, -0.8, -0.4) * RHCF * angles(Rad(-5), Rad(0), Rad(-20)), 0.15)
  1350.         LH.C0 = clerp(LH.C0, CF(-1, -0.8, -0.2) * LHCF * angles(Rad(-5), Rad(0), Rad(56)), 0.15)
  1351.         RW.C0 = clerp(RW.C0, CF(1.5, 0.51 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(40)), 0.1)
  1352.         LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.1)
  1353.         end
  1354.         targettorso:BreakJoints()
  1355.         for i = 0,9,0.1 do
  1356.             swait()
  1357.         rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  1358.         tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(-20)), 0.3)
  1359.         RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
  1360.         LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
  1361.         RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(15)), 0.1)
  1362.         LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.1)
  1363.         end
  1364.         targettorso.Anchored = false
  1365.         attack = false
  1366.         hum.WalkSpeed = 16
  1367.         root.CFrame = targettorso.CFrame * CF(0,0,3.4)
  1368.     end
  1369. end
  1370.  
  1371. function Taunt()
  1372.     attack = true
  1373.     hum.WalkSpeed = 0
  1374.     CreateSound("290084602", tors, 10, 1)
  1375.     for i = 0,6.2,0.1 do
  1376.             swait()
  1377.         rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  1378.         tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-30), Rad(0), Rad(0)), 0.3)
  1379.         RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
  1380.         LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
  1381.         RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-0), Rad(0), Rad(145)), 0.1)
  1382.         LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-0), Rad(0), Rad(-145)), 0.1)
  1383.     end
  1384.     for i = 0,6.2,0.1 do
  1385.             swait()
  1386.         rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.15)
  1387.         tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1388.         RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(20)), 0.15)
  1389.         LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-20)), 0.15)
  1390.         RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-30), Rad(0), Rad(15)), 0.1)
  1391.         LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-30), Rad(0), Rad(-15)), 0.1)
  1392.     end
  1393.     attack = false
  1394.     hum.WalkSpeed = 16
  1395. end
  1396. -------------------------------------------------------
  1397. --End Attacks N Stuff--
  1398. -------------------------------------------------------
  1399. mouse.KeyDown:connect(function(key)
  1400.     if attack == false then
  1401.         if key == 'e' then
  1402.             ByeBye()
  1403.         elseif key == 'q' then
  1404.             Sayonara()
  1405.         elseif key == 'r' then
  1406.             AlohaMyFriend()
  1407.         elseif key == 'f' then
  1408.             Good_Bye()
  1409.         elseif key == 't' then
  1410.             Taunt()
  1411.         end
  1412.     end
  1413.  end)
  1414.  
  1415.  
  1416.  
  1417.  
  1418.  
  1419.  
  1420. -------------------------------------------------------
  1421. --Start Animations--
  1422. -------------------------------------------------------
  1423. local equipped = false
  1424. local idle = 0
  1425. local change = 1
  1426. local val = 0
  1427. local toim = 0
  1428. local idleanim = 0.4
  1429. hum.Animator.Parent = nil
  1430. while true do
  1431.     swait()
  1432.     sine = sine + change
  1433.    
  1434.     Music.Parent = char
  1435.     local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1436.     local velderp = root.Velocity.y
  1437.     hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char)
  1438.     if equipped == true or equipped == false then
  1439.         if attack == false then
  1440.             idle = idle + 1
  1441.         else
  1442.             idle = 0
  1443.         end
  1444.         if 1 < root.Velocity.y and hitfloor == nil then
  1445.             Anim = "Jump"
  1446.             if attack == false then
  1447.                 rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-10), Rad(0), Rad(0)), 0.3)
  1448.                 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-10), Rad(0), Rad(0)), 0.3)
  1449.                 RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(Rad(30), Rad(0), Rad(20)), 0.3)
  1450.                 LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(Rad(-20), Rad(0), Rad(-30)), 0.3)
  1451.                 LH.C0=clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15)
  1452.                 RH.C0=clerp(RH.C0, CF(1,-1-0.1 * Cos(sine / 20), -.3) * angles(Rad(0), Rad(90), Rad(0)), .3)
  1453.             end
  1454.         elseif -1 > root.Velocity.y and hitfloor == nil then
  1455.             Anim = "Fall"
  1456.             if attack == false then
  1457.                 rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(5), Rad(0), Rad(0)), 0.3)
  1458.                 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(10), Rad(0), Rad(0)), 0.3)
  1459.                 RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(Rad(30), Rad(0), Rad(20)), 0.3)
  1460.                 LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(Rad(-20), Rad(0), Rad(-30)), 0.3)
  1461.                 LH.C0 = clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15)
  1462.                 RH.C0 = clerp(RH.C0, CF(1,-1-0.1 * Cos(sine / 20), -.3) * angles(Rad(0), Rad(90), Rad(0)), .3)
  1463.             end
  1464.         elseif torvel < 1 and hitfloor ~= nil then
  1465.             Anim = "Idle"
  1466.             change = 1
  1467.             if attack == false then
  1468.                 rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(5), Rad(0), Rad(0)), 0.15)
  1469.                 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(-10 - 2.5 * Sin(sine/ 20)), Rad(20 * Cos(sine / 20))), 0.3)
  1470.                 RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), -.2 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-3.5), Rad(0), Rad(5)), 0.15)
  1471.                 LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-7), Rad(0), Rad(-5)), 0.15)
  1472.                 RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.10 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(10 + 5 * Sin(sine/ 20))), 0.1)
  1473.                 LW.C0 = clerp(LW.C0, CF(-1.4, 0.5 + 0.10 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-10 - 5 * Sin(sine/ 20))), 0.1)
  1474.             end
  1475.         elseif tors.Velocity.magnitude < 50 and hitfloor ~= nil then
  1476.             Anim = "Walk"
  1477.             change = 1
  1478.             if attack == false then
  1479.                 rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(9-2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(10 * Cos(sine / 7))), 0.15)
  1480.                 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  1481.                 RH.C0 = clerp(RH.C0, CF(1, -0.925 - 0.5 * Cos(sine / 7) / 2, 0.5 * Cos(sine / 7) / 2) * angles(Rad(-15 - 35 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1482.                 LH.C0 = clerp(LH.C0, CF(-1, -0.925 + 0.5 * Cos(sine / 7) / 2, -0.5 * Cos(sine / 7) / 2) * angles(Rad(-15 + 35 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1483.                 RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(70)  * Cos(sine / 7) , Rad(0), Rad(10) - ra.RotVelocity.Y / 75), 0.1)
  1484.                 LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-70)  * Cos(sine / 7) , Rad(0) ,    Rad(-10) + la.RotVelocity.Y / 75), 0.1)
  1485.             end
  1486.         end
  1487.     end
  1488.     if 0 < #Effects then
  1489.         for e = 1, #Effects do
  1490.             if Effects[e] ~= nil then
  1491.                 local Thing = Effects[e]
  1492.                 if Thing ~= nil then
  1493.                     local Part = Thing[1]
  1494.                     local Mode = Thing[2]
  1495.                     local Delay = Thing[3]
  1496.                     local IncX = Thing[4]
  1497.                     local IncY = Thing[5]
  1498.                     local IncZ = Thing[6]
  1499.                     if 1 >= Thing[1].Transparency then
  1500.                         if Thing[2] == "Block1" then
  1501.                             Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1502.                             local Mesh = Thing[1].Mesh
  1503.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1504.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1505.                         elseif Thing[2] == "Block2" then
  1506.                             Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1507.                             local Mesh = Thing[7]
  1508.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1509.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1510.                         elseif Thing[2] == "Block3" then
  1511.                             Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
  1512.                             local Mesh = Thing[7]
  1513.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1514.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1515.                         elseif Thing[2] == "Cylinder" then
  1516.                             local Mesh = Thing[1].Mesh
  1517.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1518.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1519.                         elseif Thing[2] == "Blood" then
  1520.                             local Mesh = Thing[7]
  1521.                             Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1522.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1523.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1524.                         elseif Thing[2] == "Elec" then
  1525.                             local Mesh = Thing[1].Mesh
  1526.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1527.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1528.                         elseif Thing[2] == "Disappear" then
  1529.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1530.                         elseif Thing[2] == "Shatter" then
  1531.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1532.                             Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1533.                             Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1534.                             Thing[6] = Thing[6] + Thing[5]
  1535.                         end
  1536.                     else
  1537.                         Part.Parent = nil
  1538.                         table.remove(Effects, e)
  1539.                     end
  1540.                 end
  1541.             end
  1542.         end
  1543.     end
  1544. end
  1545. -------------------------------------------------------
  1546. --End Animations And Script--
  1547. -------------------------------------------------------
Add Comment
Please, Sign In to add comment