SHARE
TWEET

work script

Basykung7845 Apr 16th, 2019 98 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4.     print("FE Compatibility code by Basykung7845")
  5.     script.Parent = Player.Character
  6.  
  7.     --RemoteEvent for communicating
  8.     local Event = Instance.new("RemoteEvent")
  9.     Event.Name = "UserInput_Event"
  10.  
  11.     --Fake event to make stuff like Mouse.KeyDown work
  12.     local function fakeEvent()
  13.         local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14.         t.connect = t.Connect
  15.         return t
  16.     end
  17.  
  18.     --Creating fake input objects with fake variables
  19.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23.     end}
  24.     --Merged 2 functions into one by checking amount of arguments
  25.     CAS.UnbindAction = CAS.BindAction
  26.  
  27.     --This function will trigger the events that have been :Connect()'ed
  28.     local function te(self,ev,...)
  29.         local t = m[ev]
  30.         if t and t._fakeEvent and t.Function then
  31.             t.Function(...)
  32.         end
  33.     end
  34.     m.TrigEvent = te
  35.     UIS.TrigEvent = te
  36.  
  37.     Event.OnServerEvent:Connect(function(plr,io)
  38.         if plr~=Player then return end
  39.         if io.isMouse then
  40.             m.Target = io.Target
  41.             m.Hit = io.Hit
  42.         else
  43.             local b = io.UserInputState == Enum.UserInputState.Begin
  44.             if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45.                 return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46.             end
  47.             for _,t in pairs(CAS.Actions) do
  48.                 for _,k in pairs(t.Keys) do
  49.                     if k==io.KeyCode then
  50.                         t.Function(t.Name,io.UserInputState,io)
  51.                     end
  52.                 end
  53.             end
  54.             m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55.             UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56.         end
  57.     end)
  58.     Event.Parent = NLS([==[
  59.     local Player = game:GetService("Players").LocalPlayer
  60.     local Event = script:WaitForChild("UserInput_Event")
  61.  
  62.     local UIS = game:GetService("UserInputService")
  63.     local input = function(io,a)
  64.         if a then return end
  65.         --Since InputObject is a client-side instance, we create and pass table instead
  66.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67.     end
  68.     UIS.InputBegan:Connect(input)
  69.     UIS.InputEnded:Connect(input)
  70.  
  71.     local Mouse = Player:GetMouse()
  72.     local h,t
  73.     --Give the server mouse data 30 times every second, but only if the values changed
  74.     --If player is not moving their mouse, client won't fire events
  75.     while wait(1/30) do
  76.         if h~=Mouse.Hit or t~=Mouse.Target then
  77.             h,t=Mouse.Hit,Mouse.Target
  78.             Event:FireServer({isMouse=true,Target=t,Hit=h})
  79.         end
  80.     end]==],Player.Character)
  81.     Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83.  
  84. wait(0.2)
  85.  
  86. Player = owner
  87. PlayerGui = Player.PlayerGui
  88. Cam = workspace.CurrentCamera
  89. Backpack = Player.Backpack
  90. Character = Player.Character
  91. Humanoid = Character.Humanoid
  92. RootPart = Character["HumanoidRootPart"]
  93. Torso = Character["Torso"]
  94. Head = Character["Head"]
  95. RightArm = Character["Right Arm"]
  96. LeftArm = Character["Left Arm"]
  97. RightLeg = Character["Right Leg"]
  98. LeftLeg = Character["Left Leg"]
  99. RootJoint = RootPart["RootJoint"]
  100. Neck = Torso["Neck"]
  101. RightShoulder = Torso["Right Shoulder"]
  102. LeftShoulder = Torso["Left Shoulder"]
  103. RightHip = Torso["Right Hip"]
  104. LeftHip = Torso["Left Hip"]
  105. local sick = Instance.new("Sound",Character)
  106. sick.SoundId = "rbxassetid://1392883147"
  107. sick.Looped = true
  108. sick.Pitch = 1
  109. sick.Volume = 1
  110. sick:Play()
  111.  
  112. IT = Instance.new
  113. CF = CFrame.new
  114. VT = Vector3.new
  115. RAD = math.rad
  116. C3 = Color3.new
  117. UD2 = UDim2.new
  118. BRICKC = BrickColor.new
  119. ANGLES = CFrame.Angles
  120. EULER = CFrame.fromEulerAnglesXYZ
  121. COS = math.cos
  122. ACOS = math.acos
  123. SIN = math.sin
  124. ASIN = math.asin
  125. ABS = math.abs
  126. MRANDOM = math.random
  127. FLOOR = math.floor
  128.  
  129. --//=================================\\
  130. --||          USEFUL VALUES
  131. --\\=================================//
  132.  
  133. Animation_Speed = 3
  134. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  135. local Speed = 16
  136. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  137. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  138. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  139. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  140. local DAMAGEMULTIPLIER = 1
  141. local ANIM = "Idle"
  142. local ATTACK = false
  143. local EQUIPPED = false
  144. local HOLD = false
  145. local COMBO = 1
  146. local Rooted = false
  147. local SINE = 0
  148. local KEYHOLD = false
  149. local CHANGE = 2 / Animation_Speed
  150. local WALKINGANIM = false
  151. local VALUE1 = false
  152. local VALUE2 = 0
  153. local ROBLOXIDLEANIMATION = IT("Animation")
  154. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  155. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  156. --ROBLOXIDLEANIMATION.Parent = Humanoid
  157. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  158. WEAPONGUI.Name = "Weapon GUI"
  159. local Weapon = IT("Model")
  160. Weapon.Name = "Adds"
  161. local Effects = IT("Folder", Character)
  162. Effects.Name = "Effects"
  163. local ANIMATOR = Humanoid.Animator
  164. local ANIMATE = Character.Animate
  165. local UNANCHOR = true
  166. local HITFLOOR = nil
  167. local HITPOS = nil
  168. local DED = false
  169. local SOULWELL = 666
  170. local HITPLAYERSOUNDS = {"199149137", "199149186", "199149221", "199149235", "199149269", "199149297"}
  171. local SLASHSOUNDS = {"28144268","28144277","28144291"}
  172.  
  173. --//=================================\\
  174. --\\=================================//
  175.  
  176.  
  177. --//=================================\\
  178. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  179. --\\=================================//
  180.  
  181. ArtificialHB = Instance.new("BindableEvent", script)
  182. ArtificialHB.Name = "ArtificialHB"
  183.  
  184. script:WaitForChild("ArtificialHB")
  185.  
  186. frame = Frame_Speed
  187. tf = 0
  188. allowframeloss = false
  189. tossremainder = false
  190. lastframe = tick()
  191. script.ArtificialHB:Fire()
  192.  
  193. game:GetService("RunService").Heartbeat:connect(function(s, p)
  194.     tf = tf + s
  195.     if tf >= frame then
  196.         if allowframeloss then
  197.             script.ArtificialHB:Fire()
  198.             lastframe = tick()
  199.         else
  200.             for i = 1, math.floor(tf / frame) do
  201.                 script.ArtificialHB:Fire()
  202.             end
  203.         lastframe = tick()
  204.         end
  205.         if tossremainder then
  206.             tf = 0
  207.         else
  208.             tf = tf - frame * math.floor(tf / frame)
  209.         end
  210.     end
  211. end)
  212.  
  213. --//=================================\\
  214. --\\=================================//
  215.  
  216. --//=================================\\
  217. --||          SOME FUNCTIONS
  218. --\\=================================//
  219.  
  220. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  221.     return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  222. end
  223.  
  224. function PositiveAngle(NUMBER)
  225.     if NUMBER >= 0 then
  226.         NUMBER = 0
  227.     end
  228.     return NUMBER
  229. end
  230.  
  231. function NegativeAngle(NUMBER)
  232.     if NUMBER <= 0 then
  233.         NUMBER = 0
  234.     end
  235.     return NUMBER
  236. end
  237.  
  238. function Swait(NUMBER)
  239.     if NUMBER == 0 or NUMBER == nil then
  240.         ArtificialHB.Event:wait()
  241.     else
  242.         for i = 1, NUMBER do
  243.             ArtificialHB.Event:wait()
  244.         end
  245.     end
  246. end
  247.  
  248. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  249.     local NEWMESH = IT(MESH)
  250.     if MESH == "SpecialMesh" then
  251.         NEWMESH.MeshType = MESHTYPE
  252.         if MESHID ~= "nil" and MESHID ~= "" then
  253.             NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  254.         end
  255.         if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  256.             NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  257.         end
  258.     end
  259.     NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  260.     NEWMESH.Scale = SCALE
  261.     NEWMESH.Parent = PARENT
  262.     return NEWMESH
  263. end
  264.  
  265. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  266.     local NEWPART = IT("Part")
  267.     NEWPART.formFactor = FORMFACTOR
  268.     NEWPART.Reflectance = REFLECTANCE
  269.     NEWPART.Transparency = TRANSPARENCY
  270.     NEWPART.CanCollide = false
  271.     NEWPART.Locked = true
  272.     NEWPART.Anchored = true
  273.     if ANCHOR == false then
  274.         NEWPART.Anchored = false
  275.     end
  276.     NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  277.     NEWPART.Name = NAME
  278.     NEWPART.Size = SIZE
  279.     NEWPART.Position = Torso.Position
  280.     NEWPART.Material = MATERIAL
  281.     NEWPART:BreakJoints()
  282.     NEWPART.Parent = PARENT
  283.     return NEWPART
  284. end
  285.  
  286.     local function weldBetween(a, b)
  287.         local weldd = Instance.new("ManualWeld")
  288.         weldd.Part0 = a
  289.         weldd.Part1 = b
  290.         weldd.C0 = CFrame.new()
  291.         weldd.C1 = b.CFrame:inverse() * a.CFrame
  292.         weldd.Parent = a
  293.         return weldd
  294.     end
  295.  
  296.  
  297. function QuaternionFromCFrame(cf)
  298.     local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  299.     local trace = m00 + m11 + m22
  300.     if trace > 0 then
  301.         local s = math.sqrt(1 + trace)
  302.         local recip = 0.5 / s
  303.         return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  304.     else
  305.         local i = 0
  306.         if m11 > m00 then
  307.             i = 1
  308.         end
  309.         if m22 > (i == 0 and m00 or m11) then
  310.             i = 2
  311.         end
  312.         if i == 0 then
  313.             local s = math.sqrt(m00 - m11 - m22 + 1)
  314.             local recip = 0.5 / s
  315.             return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  316.         elseif i == 1 then
  317.             local s = math.sqrt(m11 - m22 - m00 + 1)
  318.             local recip = 0.5 / s
  319.             return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  320.         elseif i == 2 then
  321.             local s = math.sqrt(m22 - m00 - m11 + 1)
  322.             local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  323.         end
  324.     end
  325. end
  326.  
  327. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  328.     local xs, ys, zs = x + x, y + y, z + z
  329.     local wx, wy, wz = w * xs, w * ys, w * zs
  330.     local xx = x * xs
  331.     local xy = x * ys
  332.     local xz = x * zs
  333.     local yy = y * ys
  334.     local yz = y * zs
  335.     local zz = z * zs
  336.     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))
  337. end
  338.  
  339. function QuaternionSlerp(a, b, t)
  340.     local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  341.     local startInterp, finishInterp;
  342.     if cosTheta >= 0.0001 then
  343.         if (1 - cosTheta) > 0.0001 then
  344.             local theta = ACOS(cosTheta)
  345.             local invSinTheta = 1 / SIN(theta)
  346.             startInterp = SIN((1 - t) * theta) * invSinTheta
  347.             finishInterp = SIN(t * theta) * invSinTheta
  348.         else
  349.             startInterp = 1 - t
  350.             finishInterp = t
  351.         end
  352.     else
  353.         if (1 + cosTheta) > 0.0001 then
  354.             local theta = ACOS(-cosTheta)
  355.             local invSinTheta = 1 / SIN(theta)
  356.             startInterp = SIN((t - 1) * theta) * invSinTheta
  357.             finishInterp = SIN(t * theta) * invSinTheta
  358.         else
  359.             startInterp = t - 1
  360.             finishInterp = t
  361.         end
  362.     end
  363.     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
  364. end
  365.  
  366. function Clerp(a, b, t)
  367.     local qa = {QuaternionFromCFrame(a)}
  368.     local qb = {QuaternionFromCFrame(b)}
  369.     local ax, ay, az = a.x, a.y, a.z
  370.     local bx, by, bz = b.x, b.y, b.z
  371.     local _t = 1 - t
  372.     return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  373. end
  374.  
  375. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  376.     local frame = IT("Frame")
  377.     frame.BackgroundTransparency = TRANSPARENCY
  378.     frame.BorderSizePixel = BORDERSIZEPIXEL
  379.     frame.Position = POSITION
  380.     frame.Size = SIZE
  381.     frame.BackgroundColor3 = COLOR
  382.     frame.BorderColor3 = BORDERCOLOR
  383.     frame.Name = NAME
  384.     frame.Parent = PARENT
  385.     return frame
  386. end
  387.  
  388. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  389.     local label = IT("TextLabel")
  390.     label.BackgroundTransparency = 1
  391.     label.Size = UD2(1, 0, 1, 0)
  392.     label.Position = UD2(0, 0, 0, 0)
  393.     label.TextColor3 = TEXTCOLOR
  394.     label.TextStrokeTransparency = STROKETRANSPARENCY
  395.     label.TextTransparency = TRANSPARENCY
  396.     label.FontSize = TEXTFONTSIZE
  397.     label.Font = TEXTFONT
  398.     label.BorderSizePixel = BORDERSIZEPIXEL
  399.     label.TextScaled = false
  400.     label.Text = TEXT
  401.     label.Name = NAME
  402.     label.Parent = PARENT
  403.     return label
  404. end
  405.  
  406. function NoOutlines(PART)
  407.     PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  408. end
  409.  
  410. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  411.     local NEWWELD = IT(TYPE)
  412.     NEWWELD.Part0 = PART0
  413.     NEWWELD.Part1 = PART1
  414.     NEWWELD.C0 = C0
  415.     NEWWELD.C1 = C1
  416.     NEWWELD.Parent = PARENT
  417.     return NEWWELD
  418. end
  419.  
  420. local S = IT("Sound")
  421. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  422.     local NEWSOUND = nil
  423.     coroutine.resume(coroutine.create(function()
  424.         NEWSOUND = S:Clone()
  425.         NEWSOUND.Parent = PARENT
  426.         NEWSOUND.Volume = VOLUME
  427.         NEWSOUND.Pitch = PITCH
  428.         NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  429.         NEWSOUND:play()
  430.         if DOESLOOP == true then
  431.             NEWSOUND.Looped = true
  432.         else
  433.             repeat Swait() until NEWSOUND.Playing == false
  434.             NEWSOUND:remove()
  435.         end
  436.     end))
  437.     return NEWSOUND
  438. end
  439.  
  440. function CFrameFromTopBack(at, top, back)
  441.     local right = top:Cross(back)
  442.     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)
  443. end
  444.  
  445. --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})
  446. function WACKYEFFECT(Table)
  447.     local TYPE = (Table.EffectType or "Sphere")
  448.     local SIZE = (Table.Size or VT(1,1,1))
  449.     local ENDSIZE = (Table.Size2 or VT(0,0,0))
  450.     local TRANSPARENCY = (Table.Transparency or 0)
  451.     local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  452.     local CFRAME = (Table.CFrame or Torso.CFrame)
  453.     local MOVEDIRECTION = (Table.MoveToPos or nil)
  454.     local ROTATION1 = (Table.RotationX or 0)
  455.     local ROTATION2 = (Table.RotationY or 0)
  456.     local ROTATION3 = (Table.RotationZ or 0)
  457.     local MATERIAL = (Table.Material or "Neon")
  458.     local COLOR = (Table.Color or C3(1,1,1))
  459.     local TIME = (Table.Time or 45)
  460.     local SOUNDID = (Table.SoundID or nil)
  461.     local SOUNDPITCH = (Table.SoundPitch or nil)
  462.     local SOUNDVOLUME = (Table.SoundVolume or nil)
  463.     coroutine.resume(coroutine.create(function()
  464.         local PLAYSSOUND = false
  465.         local SOUND = nil
  466.         local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  467.         if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  468.             PLAYSSOUND = true
  469.             SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  470.         end
  471.         EFFECT.Color = COLOR
  472.         local MSH = nil
  473.         if TYPE == "Sphere" then
  474.             MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  475.         elseif TYPE == "Block" then
  476.             MSH = IT("BlockMesh",EFFECT)
  477.             MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  478.         elseif TYPE == "Wave" then
  479.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  480.         elseif TYPE == "Ring" then
  481.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  482.         elseif TYPE == "Slash" then
  483.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  484.         elseif TYPE == "Round Slash" then
  485.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  486.         elseif TYPE == "Swirl" then
  487.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  488.         elseif TYPE == "Skull" then
  489.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  490.         elseif TYPE == "Crystal" then
  491.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  492.         end
  493.         if MSH ~= nil then
  494.             local MOVESPEED = nil
  495.             if MOVEDIRECTION ~= nil then
  496.                 MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  497.             end
  498.             local GROWTH = SIZE - ENDSIZE
  499.             local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  500.             if TYPE == "Block" then
  501.                 EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  502.             else
  503.                 EFFECT.CFrame = CFRAME
  504.             end
  505.             for LOOP = 1, TIME do
  506.                 Swait()
  507.                 MSH.Scale = MSH.Scale - GROWTH/TIME
  508.                 if TYPE == "Wave" then
  509.                     MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  510.                 end
  511.                 EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  512.                 if TYPE == "Block" then
  513.                     EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  514.                 else
  515.                     EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  516.                 end
  517.                 if MOVEDIRECTION ~= nil then
  518.                     local ORI = EFFECT.Orientation
  519.                     EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  520.                     EFFECT.Orientation = ORI
  521.                 end
  522.             end
  523.             if PLAYSSOUND == false then
  524.                 EFFECT:remove()
  525.             else
  526.                 repeat Swait() until SOUND.Playing == false
  527.                 EFFECT:remove()
  528.             end
  529.         else
  530.             if PLAYSSOUND == false then
  531.                 EFFECT:remove()
  532.             else
  533.                 repeat Swait() until SOUND.Playing == false
  534.                 EFFECT:remove()
  535.             end
  536.         end
  537.     end))
  538. end
  539.  
  540. Debris = game:GetService("Debris")
  541.  
  542. function SpawnSoul(Humanoid)
  543.     coroutine.resume(coroutine.create(function()
  544.         local TORSO = Humanoid.Parent:FindFirstChild("Torso") or Humanoid.Parent:FindFirstChild("UpperTorso")
  545.         local SOULMODEL = IT("Model",Effects)
  546.         SOULMODEL.Name = Humanoid.Parent.Name.."'s Soul"
  547.         local SOUL = CreatePart(3, SOULMODEL, "Neon", 0, 0, "Really red", "Head", VT(0.5,0.5,0.5))
  548.         SOUL.CFrame = CF(TORSO.Position)
  549.         local A1 = IT("Attachment",SOUL)
  550.         A1.Position = Vector3.new(0, 0.25, 0)
  551.         local A2 = IT("Attachment",SOUL)
  552.         A2.Position = Vector3.new(0, -0.25, 0)
  553.         local Trail = IT("Trail",SOUL)
  554.         Trail.LightEmission = 0.3
  555.         Trail.FaceCamera = true
  556.         Trail.Texture = "rbxassetid://945758042"
  557.         Trail.Attachment0 = A1
  558.         Trail.Attachment1 = A2
  559.         Trail.Lifetime = 0.5
  560.         Trail.MinLength = 0
  561.         Trail.Transparency = NumberSequence.new(0)
  562.         Trail.Color = ColorSequence.new(SOUL.Color)
  563.         MakeForm(SOUL,"Ball")
  564.         local DISTANCE = nil
  565.         local HUM = IT("Humanoid",SOULMODEL)
  566.         repeat
  567.             Swait()
  568.             SOUL.CFrame = CF(SOUL.Position,Torso.Position)*CF(0,0,-0.2)
  569.             DISTANCE = (SOUL.Position - Torso.Position).Magnitude
  570.         until DISTANCE < 0.4
  571.         WACKYEFFECT({EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(6,6,6), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = "444667859", SoundPitch = 2, SoundVolume = 2})
  572.         SOUL.Transparency = 1
  573.         A1.Parent = Torso
  574.         A2.Parent = Torso
  575.         Trail.Parent = Torso
  576.         Debris:AddItem(SOULMODEL,10)
  577.         SOULWELL = SOULWELL + 1
  578.         for i = 1, 100 do
  579.             Swait()
  580.             Trail.Transparency = NumberSequence.new(i/100)
  581.         end
  582.         A1:remove()
  583.         A2:remove()
  584.         Trail:remove()
  585.     end))
  586. end
  587.  
  588. function Shatter(Part)
  589.     if Part.Transparency == 0 then
  590.         local SOUNDPART = CreatePart(3, Effects, "Glass", 0, 1, Part.BrickColor, "OOF", VT(0,0,0))
  591.         Debris:AddItem(SOUNDPART,5)
  592.         CreateSound("626807593", SOUNDPART, 3, MRANDOM(8,12)/10, false)
  593.         local SIZE = Part.Size.X + Part.Size.Y + Part.Size.Z
  594.         local SIZESET = SIZE/4
  595.         local XOffset = Part.Size.X*1.5/SIZESET
  596.         local YOffset = Part.Size.Y*1.5/SIZESET
  597.         local ZOffset = Part.Size.Z*1.5/SIZESET
  598.         for x = 1, math.ceil(XOffset) do
  599.             for y = 1, math.ceil(YOffset) do
  600.                 for z = 1, math.ceil(ZOffset) do
  601.                     local SHARD = CreatePart(3, Effects, "Glass", 0, 0.15, Part.BrickColor, "Shard", VT(SIZE,SIZE,SIZE)/10, false)
  602.                     SHARD.CanCollide = true
  603.                     SHARD.CFrame = Part.CFrame*CF((Part.Size.X/2-Part.Size.X/4),(Part.Size.Y/2-Part.Size.Y/4),(Part.Size.Z/2-Part.Size.Z/4))
  604.                     SHARD.Velocity = VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))*3
  605.                     Debris:AddItem(SHARD,MRANDOM(10,25)/10)
  606.                     for _, c in pairs(Part:GetChildren()) do
  607.                         if c.ClassName == "ParticleEmitter" or c.ClassName == "PointLight" or c.ClassName == "Fire" then
  608.                             c:Clone().Parent = SHARD
  609.                         end
  610.                     end
  611.                 end
  612.             end
  613.         end
  614.     end
  615.     Part:remove()
  616. end
  617.  
  618. function MakeForm(PART,TYPE)
  619.     if TYPE == "Cyl" then
  620.         local MSH = IT("CylinderMesh",PART)
  621.     elseif TYPE == "Ball" then
  622.         local MSH = IT("SpecialMesh",PART)
  623.         MSH.MeshType = "Sphere"
  624.     elseif TYPE == "Wedge" then
  625.         local MSH = IT("SpecialMesh",PART)
  626.         MSH.MeshType = "Wedge"
  627.     end
  628. end
  629.  
  630. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  631.     local DIRECTION = CF(StartPos,EndPos).lookVector
  632.     return Raycast(StartPos, DIRECTION, Distance, Ignore)
  633. end
  634.  
  635. function turnto(position)
  636.     RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  637. end
  638.  
  639. --//=================================\\
  640. --||         WEAPON CREATION
  641. --\\=================================//
  642.  
  643. local HAT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Tophat", VT(1,1,1),false)
  644. local Hatweld = CreateWeldOrSnapOrMotor("Weld", Head, Head, HAT, CF(0,1,0), CF(0, 0, 0))
  645. CreateMesh("SpecialMesh", HAT, "FileMesh", "97094619", "97094572", VT(1,1,1), VT(0,0,0))
  646.  
  647. local HandlePart = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Tophat", VT(1,1,1),false)
  648. local HandleWeld = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, HandlePart, CF(0, -2, -5.5) * ANGLES(RAD(-90), RAD(-90), RAD(0)), CF(0, 0, 0))
  649. CreateMesh("SpecialMesh", HandlePart, "FileMesh", "95891318", "95891299", VT(1,1,1), VT(0,0,0))
  650.  
  651. for _, c in pairs(Weapon:GetChildren()) do
  652.     if c.ClassName == "Part" then
  653.         c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  654.     end
  655. end
  656.  
  657. local EyeSizes={
  658.     NumberSequenceKeypoint.new(0,1,0),
  659.     NumberSequenceKeypoint.new(1,0,0)
  660. }
  661. local Trans={
  662.     NumberSequenceKeypoint.new(0,0.5,0),
  663.     NumberSequenceKeypoint.new(1,1,0)
  664. }
  665. local PE=Instance.new("ParticleEmitter")
  666. PE.LightEmission=.8
  667. PE.Color = ColorSequence.new(BRICKC("Really red").Color)
  668. PE.Size=NumberSequence.new(EyeSizes)
  669. PE.Lifetime=NumberRange.new(0.35,0.35,0.35)
  670. PE.Rotation=NumberRange.new(0,360)
  671. PE.Transparency = NumberSequence.new(Trans)
  672. PE.Rate=999
  673. PE.VelocitySpread = 10000
  674. PE.Acceleration = Vector3.new(0,75,0)
  675. PE.Drag = 5
  676. PE.Speed = NumberRange.new(6,6)
  677. PE.Texture="http://www.roblox.com/asset/?id=241936182"
  678. PE.ZOffset = -1.5
  679. PE.Name = "Rage"
  680. PE.Enabled = false
  681.  
  682. function particles(art)
  683.     PE:Clone().Parent = art
  684. end
  685.  
  686. for _, c in pairs(Character:GetChildren()) do
  687.     if c.ClassName == "Part" and c ~= RootPart then
  688.         particles(c)
  689.     end
  690. end
  691.  
  692. local SKILLTEXTCOLOR = C3(0,0,0)
  693. local SKILLFONT = "Antique"
  694. local SKILLTEXTSIZE = 7
  695.  
  696. Weapon.Parent = Character
  697.  
  698. Humanoid.Died:connect(function()
  699.     if SOULWELL > 0 then
  700.         SOULWELL = SOULWELL - 1
  701.         Humanoid.Parent = nil
  702.         Humanoid.MaxHealth = "inf"
  703.         Humanoid.Health = "inf"
  704.         refit()
  705.         Humanoid.Parent = Character
  706.     else
  707.         DED = true
  708.         sick:Destroy()
  709.         ATTACK = true
  710.         wait(2)
  711.         for _, c in pairs(Character:GetChildren()) do
  712.             if c.ClassName == "Part" then
  713.                 c.Velocity = VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))
  714.             end
  715.         end
  716.         for _, c in pairs(Character:GetChildren()) do
  717.             if c.ClassName == "Part" then
  718.                 Shatter(c)
  719.             end
  720.         end
  721.     end
  722. end)
  723.  
  724. function refit()
  725.     Character.Parent = nil
  726.     Weapon.Parent = Character
  727.     HandlePart.Parent = Weapon
  728.     HandleWeld.Parent = RightArm
  729.     HAT.Parent = Character
  730.     Hatweld.Parent = Character
  731.     RootJoint.Parent = RootPart
  732.     Neck.Parent = Torso
  733.     RightShoulder.Parent = Torso
  734.     LeftShoulder.Parent = Torso
  735.     RightHip.Parent = Torso
  736.     LeftHip.Parent = Torso
  737.     RootPart.Parent = Character
  738.     LeftArm.Parent = Character
  739.     RightArm.Parent = Character
  740.     RightLeg.Parent = Character
  741.     LeftLeg.Parent = Character
  742.     Torso.Parent = Character
  743.     Head.Parent = Character
  744.     Character.Parent = workspace
  745. end
  746.  
  747. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.100, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  748. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.365, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  749. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.631, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  750.  
  751. local SOULFRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.365, 0, 0.815, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Soul Frame")
  752.  
  753. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Spire Wave", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 1")
  754. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Soul Bomb", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 2")
  755. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Soul Rage", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 3")
  756.  
  757. local SOULTEXT = CreateLabel(SOULFRAME, "Souls : [0]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Souls")
  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 = 1
  781.     TEXTLABEL.TextScaled = true
  782.     TEXTLABEL.TextWrapped = true
  783.     coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  784.         for i = 1, 50 do
  785.             Swait()
  786.             STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
  787.             TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50)
  788.         end
  789.         THEPART.Parent = nil
  790.     end),STATPART, TEXTLABEL)
  791. end
  792.  
  793. --//=================================\\
  794. --||            DAMAGING
  795. --\\=================================//
  796.  
  797. function ApplyDamage(Humanoid,Damage,CritRate,CritMultiplier,DoesOneShot)
  798.     coroutine.resume(coroutine.create(function()
  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 CritChance < CritRate + 1 then
  806.                 Damage = Damage*CritMultiplier
  807.             end
  808.             if Damage > Humanoid.Health then
  809.                 Damage = math.ceil(Humanoid.Health)
  810.                 if Damage == 0 then
  811.                     Damage = 0.1
  812.                 end
  813.             end
  814.             if DoesOneShot == false then
  815.                 for _, c in pairs(Humanoid.Parent:GetChildren()) do
  816.                     if c.Name ~= "HumanoidRootPart" and c.Name ~= "Torso" and c.Name ~= "Head" and c.Name ~= "UpperTorso" and c.Name ~= "LowerTorso" then
  817.                         if c.ClassName == "Part" or c.ClassName == "MeshPart" then
  818.                             if MRANDOM(1,20) == 1 then
  819.                                 Shatter(c)
  820.                             end
  821.                         end
  822.                     end
  823.                 end
  824.                 Humanoid.Health = Humanoid.Health - Damage
  825.                 if Humanoid.Parent:FindFirstChild("Head") then
  826.                     CreateSound(HITPLAYERSOUNDS[MRANDOM(1,#HITPLAYERSOUNDS)], Humanoid.Parent.Head, 5, 1)
  827.                     if CritChance < CritRate + 1 then
  828.                         StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), "CRIT//"..Damage, C3(1, 0, 0))
  829.                     else
  830.                         StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), Damage, C3(0, 0, 0))
  831.                     end
  832.                 end
  833.             elseif DoesOneShot == true then
  834.                 --print("["..Humanoid.Parent.Name.."]: One shot!? Really!?!?")
  835.                 Humanoid.Parent:BreakJoints()
  836.                 if Humanoid.Parent:FindFirstChild("Head") then
  837.                     StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), "INF", C3(1, 0, 0))
  838.                 end
  839.                 for _, c in pairs(Humanoid.Parent:GetChildren()) do
  840.                     if c.ClassName == "Part" or c.ClassName == "MeshPart" then
  841.                         Shatter(c)
  842.                     end
  843.                 end
  844.             end
  845.             if Humanoid.Health == 0 then
  846.                 --print("["..Humanoid.Parent.Name.."]: It's like stepping on glass, but worse!")
  847.                 SpawnSoul(Humanoid)
  848.                 for _, c in pairs(Humanoid.Parent:GetChildren()) do
  849.                     if c.ClassName == "Part" or c.ClassName == "MeshPart" then
  850.                         Shatter(c)
  851.                     end
  852.                 end
  853.             end
  854.         end
  855.     end))
  856. end
  857.  
  858. function AoEDamage(position,radius,min,max,maxstrength,critrate,critmultiplier,BESERK)
  859.     local dmg = math.random(10000,100000)
  860.     for i,v in ipairs(workspace:GetChildren()) do
  861.     if v:FindFirstChild("HitBy"..Player.Name) == nil then
  862.         local body = v:GetChildren()
  863.             for part = 1, #body do
  864.                 if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  865.                     if(body[part].Position - position).Magnitude < radius then
  866.                         if v.ClassName == "Model" then
  867.                             if v:FindFirstChildOfClass("Humanoid") then
  868.                                 ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier,BESERK)
  869.                                 local bv = Instance.new("BodyVelocity")
  870.                                 bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  871.                                 bv.velocity = CF(position,body[part].Position).lookVector*maxstrength
  872.                                 bv.Parent = body[part]
  873.                                 Debris:AddItem(bv,0.2)
  874.                             end
  875.                         end
  876.                     end
  877.                 end
  878.             end
  879.         end
  880.         if v:FindFirstChild("HitBy"..Player.Name) then
  881.             v:FindFirstChild("HitBy"..Player.Name):remove()
  882.         end
  883.     end
  884. end
  885.  
  886. --//=================================\\
  887. --||    ATTACK FUNCTIONS AND STUFF
  888. --\\=================================//
  889.  
  890. function Slash()
  891.     ATTACK = true
  892.     Rooted = false
  893.     for i=0, 0.2, 0.1 / Animation_Speed do
  894.         Swait()
  895.         RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 2 / Animation_Speed)
  896.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 2 / Animation_Speed)
  897.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  898.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  899.  
  900.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.3) * ANGLES(RAD(40), RAD(65), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  901.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(120), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  902.         HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  903.     end
  904.     CreateSound(SLASHSOUNDS[MRANDOM(1,#SLASHSOUNDS)], HandlePart, 5, 1)
  905.     if COMBO == 1 then
  906.         COMBO = 2
  907.         for i=0, 0.1, 0.1 / Animation_Speed do
  908.             RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.1)
  909.             Swait()
  910.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-65)), 1 / Animation_Speed)
  911.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(65)), 1 / Animation_Speed)
  912.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  913.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  914.    
  915.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.3) * ANGLES(RAD(40), RAD(65), RAD(62)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  916.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -1.5) * ANGLES(RAD(120), RAD(0), RAD(30)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  917.             HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  918.         end
  919.         AoEDamage(HandlePart.Position,5,5,15,5,2,2,VALUE1)
  920.         for i=0, 0.15, 0.1 / Animation_Speed do
  921.             RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.12)
  922.             Swait()
  923.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 2 / Animation_Speed)
  924.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(75)), 2 / Animation_Speed)
  925.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  926.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  927.    
  928.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.3) * ANGLES(RAD(40), RAD(65), RAD(62)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  929.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -1.5) * ANGLES(RAD(120), RAD(0), RAD(30)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  930.             HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  931.         end
  932.     elseif COMBO == 2 then
  933.         COMBO = 1
  934.         for i=0, 0.2, 0.1 / Animation_Speed do
  935.             Swait()
  936.             RootPart.CFrame = RootPart.CFrame*CF(0,0,0.1)
  937.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(90)), 2 / Animation_Speed)
  938.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-90)), 2 / Animation_Speed)
  939.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  940.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  941.    
  942.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.3) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  943.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(-25), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  944.             HandleWeld.C1 = Clerp(HandleWeld.C1, CF(7, -6, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 2 / Animation_Speed)
  945.         end
  946.         AoEDamage(HandlePart.Position,5,5,15,5,2,2,VALUE1)
  947.         for i=0, 0.1, 0.1 / Animation_Speed do
  948.             Swait()
  949.             RootPart.CFrame = RootPart.CFrame*CF(0,0,0.15)
  950.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(90)), 2 / Animation_Speed)
  951.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-90)), 2 / Animation_Speed)
  952.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  953.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  954.    
  955.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.3) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  956.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(-25), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  957.             HandleWeld.C1 = Clerp(HandleWeld.C1, CF(7, -6, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 2 / Animation_Speed)
  958.         end
  959.     end
  960.     ATTACK = false
  961.     Rooted = false
  962. end
  963.  
  964. function SpireWave()
  965.     if HITFLOOR ~= nil then
  966.         ATTACK = true
  967.         Rooted = false
  968.         local GYRO = IT("BodyGyro",RootPart)
  969.         GYRO.D = 100
  970.         GYRO.P = 2000
  971.         GYRO.MaxTorque = VT(0,4000000,0)
  972.         GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  973.         for i=0, 1, 0.1 / Animation_Speed do
  974.             Swait()
  975.             WACKYEFFECT({Time = 100, EffectType = "Skull", Size = VT(5,5,5), Size2 = VT(1.8,1.8,1.8), Transparency = 0.8, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(90),RAD(0),RAD(90))*ANGLES(RAD(0),RAD(180),RAD(0)), MoveToPos = LeftArm.CFrame*CF(0,-1,0)*CF(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15)).p, RotationX = MRANDOM(-25,25)/15, RotationY = MRANDOM(-25,25)/15, RotationZ = MRANDOM(-25,25)/15, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  976.             GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  977.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  978.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  979.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  980.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  981.    
  982.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.3) * ANGLES(RAD(0), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  983.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  984.             HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  985.         end
  986.         WACKYEFFECT({Time = 100, EffectType = "Skull", Size = VT(0,0,0), Size2 = VT(15,15,15), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(90),RAD(0),RAD(90))*ANGLES(RAD(0),RAD(180),RAD(0)), MoveToPos = nil, RotationX = 0.2, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = "305685800", SoundPitch = 1, SoundVolume = 3})
  987.         GYRO:remove()
  988.         coroutine.resume(coroutine.create(function()
  989.             local PITS = {}
  990.             local FRAME = RootPart.CFrame
  991.             for i = 1, 120 do
  992.                 Swait()
  993.                 local CFRAME = FRAME*CF(MRANDOM(-10,10)/10,0,5-(i)).p
  994.                 local HITFLOOR,HITPOS,NORMAL = Raycast(CFRAME, (CF(CFRAME, CFRAME + VT(0, -1, 0))).lookVector, 25, Character)
  995.                 if HITFLOOR ~= nil then
  996.                     if MRANDOM(1, 2) == 1 then
  997.                         local ICICLE = IT("CornerWedgePart",Effects)
  998.                         ICICLE.Locked = true
  999.                         ICICLE.CanCollide = false
  1000.                         ICICLE.Anchored = true
  1001.                         ICICLE.BrickColor = BRICKC"Brick yellow"
  1002.                         ICICLE.Material = "Marble"
  1003.                         ICICLE.Size = VT(i/10,i/2,i/10)
  1004.                         ICICLE.CFrame = CF(HITPOS)*CF(MRANDOM(-i/10,i/10),0,MRANDOM(-i/10,i/10))*ANGLES(RAD(MRANDOM(-25,25)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-25,25)))
  1005.                         table.insert(PITS,ICICLE)
  1006.                         --CreateSound("588693156", ICICLE, 3, MRANDOM(8,12)/10, false)
  1007.                         AoEDamage(ICICLE.Position,ICICLE.Size.X,5,15,5,2,2,VALUE1)
  1008.                         WACKYEFFECT({EffectType = "Wave", Size = VT(ICICLE.Size.X*3,2,ICICLE.Size.X*3), Size2 = VT(0,6,0), Transparency = 1, Transparency2 = 0, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Fabric", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1009.                     end
  1010.                 else
  1011.                     break
  1012.                 end
  1013.             end
  1014.             wait(2)
  1015.             coroutine.resume(coroutine.create(function()
  1016.                 for i = 1, 10 do
  1017.                     Swait()
  1018.                     for e=1,#PITS do
  1019.                         if PITS[e]~=nil then
  1020.                             local E = PITS[e]
  1021.                             E.Transparency = E.Transparency + 0.1
  1022.                         end
  1023.                     end
  1024.                 end
  1025.                 for e=1,#PITS do
  1026.                     if PITS[e]~=nil then
  1027.                         local E = PITS[e]
  1028.                         E:remove()
  1029.                     end
  1030.                 end
  1031.             end))
  1032.         end))
  1033.         ATTACK = false
  1034.         Rooted = false
  1035.     end
  1036. end
  1037.  
  1038. function SoulBomb()
  1039.     ATTACK = true
  1040.     Rooted = false
  1041.     local GYRO = IT("BodyGyro",RootPart)
  1042.     GYRO.D = 100
  1043.     GYRO.P = 2000
  1044.     GYRO.MaxTorque = VT(0,4000000,0)
  1045.     GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1046.     local BOMB = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "SkullBomb", VT(0,0,0))
  1047.     for i=0, 2, 0.1 / Animation_Speed do
  1048.         BOMB.CFrame = RootPart.CFrame*CF(0,5,0)
  1049.         Swait()
  1050.         WACKYEFFECT({EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(0,3,0), Transparency = 0, Transparency2 = 1, CFrame = CF(BOMB.Position+VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))), MoveToPos = BOMB.Position, RotationX = MRANDOM(-15,15), RotationY = MRANDOM(-15,15), RotationZ = MRANDOM(-15,15), Material = "Neon", Color = C3(1,0,0), SoundID = "444667859", SoundPitch = 2, SoundVolume = nil})
  1051.         WACKYEFFECT({Time = 100, EffectType = "Skull", Size = VT(6,6,6), Size2 = VT(8,8,8), Transparency = 0, Transparency2 = 1, CFrame = BOMB.CFrame, MoveToPos = BOMB.Position+VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5))/10, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = "305685800", SoundPitch = 1, SoundVolume = nil})
  1052.         GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1053.         RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1054.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1055.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1056.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1057.    
  1058.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.3) * ANGLES(RAD(0), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1059.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 1, 0) * ANGLES(RAD(160), RAD(0), RAD(15)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1060.         HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1061.     end
  1062.     GYRO:remove()
  1063.     coroutine.resume(coroutine.create(function()
  1064.         BOMB.CFrame = CF(BOMB.Position,Mouse.Hit.p)
  1065.         local IMPACT = false
  1066.         for i = 1,150 do
  1067.             Swait()
  1068.             if MRANDOM(1,5) == 1 then
  1069.                 WACKYEFFECT({Time = 50, EffectType = "Skull", Size = VT(5,5,5), Size2 = VT(1.8,1.8,1.8), Transparency = 0.8, Transparency2 = 1, CFrame = BOMB.CFrame, MoveToPos = BOMB.CFrame*CF(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15)).p, RotationX = MRANDOM(-25,25)/15, RotationY = MRANDOM(-25,25)/15, RotationZ = MRANDOM(-25,25)/15, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1070.             end
  1071.             WACKYEFFECT({Time = 10, EffectType = "Skull", Size = VT(5,5,5), Size2 = VT(8,8,8), Transparency = 0, Transparency2 = 1, CFrame = BOMB.CFrame, MoveToPos = BOMB.Position+VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5))/10, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = "305685800", SoundPitch = 1, SoundVolume = nil})
  1072.             BOMB.CFrame = BOMB.CFrame*CF(0,0,-1)
  1073.             local HIT = Raycast(BOMB.Position, BOMB.CFrame.lookVector, 2, Character)
  1074.             if HIT ~= nil then
  1075.                 IMPACT = true
  1076.                 break
  1077.             end
  1078.         end
  1079.         if IMPACT == true then
  1080.             AoEDamage(BOMB.Position,15,15,25,5,2,2,VALUE1)
  1081.             WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = CF(BOMB.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1082.             WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(10,10,10), Transparency = 0, Transparency2 = 1, CFrame = CF(BOMB.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1083.             WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(15,15,15), Transparency = 0, Transparency2 = 1, CFrame = CF(BOMB.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1084.         else
  1085.             BOMB:remove()
  1086.         end
  1087.     end))
  1088.     ATTACK = false
  1089.     Rooted = false
  1090. end
  1091.  
  1092. function SoulRage()
  1093.     ATTACK = true
  1094.     Rooted = true
  1095.     for i=0, 1, 0.1 / Animation_Speed do
  1096.         Swait()
  1097.         RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1098.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1099.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1100.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1101.  
  1102.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1103.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1104.         HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, 2, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1105.     end
  1106.     local WELL = math.ceil(SOULWELL/2)
  1107.     for i=1, SOULWELL do
  1108.         Swait()
  1109.         SOULWELL = SOULWELL - 1
  1110.         WACKYEFFECT({EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(0,3,0), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = Torso.Position+VT(MRANDOM(-15,15),MRANDOM(-2,15),MRANDOM(-15,15)), RotationX = MRANDOM(-15,15), RotationY = MRANDOM(-15,15), RotationZ = MRANDOM(-15,15), Material = "Neon", Color = C3(1,0,0), SoundID = "444667859", SoundPitch = 2, SoundVolume = 2})
  1111.         RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1112.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1113.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1114.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1115.  
  1116.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1117.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1118.         HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, 2, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1119.     end
  1120.     ATTACK = false
  1121.     Rooted = false
  1122.     VALUE1 = true
  1123.     VALUE2 = WELL
  1124.     for i = 1, WELL do
  1125.         wait(1)
  1126.         VALUE2 = VALUE2 - 1
  1127.     end
  1128.     VALUE1 = false
  1129. end
  1130.  
  1131.  
  1132. --//=================================\\
  1133. --||      ASSIGN THINGS TO KEYS
  1134. --\\=================================//
  1135.  
  1136. function MouseDown(Mouse)
  1137.     if ATTACK == false then
  1138.         Slash()
  1139.     end
  1140. end
  1141.  
  1142. function MouseUp(Mouse)
  1143. HOLD = false
  1144. end
  1145.  
  1146. function KeyDown(Key)
  1147.     KEYHOLD = true
  1148.     if Key == "z" and ATTACK == false then
  1149.         SpireWave()
  1150.     end
  1151.  
  1152.     if Key == "b" and ATTACK == false then
  1153.         SoulBomb()
  1154.     end
  1155.  
  1156.     if Key == "c" and ATTACK == false and VALUE1 == false then
  1157.         if SOULWELL > 1 then
  1158.             SoulRage()
  1159.         end
  1160.     end
  1161. end
  1162.  
  1163. function KeyUp(Key)
  1164.     KEYHOLD = false
  1165. end
  1166.  
  1167.     Mouse.Button1Down:connect(function(NEWKEY)
  1168.         MouseDown(NEWKEY)
  1169.     end)
  1170.     Mouse.Button1Up:connect(function(NEWKEY)
  1171.         MouseUp(NEWKEY)
  1172.     end)
  1173.     Mouse.KeyDown:connect(function(NEWKEY)
  1174.         KeyDown(NEWKEY)
  1175.     end)
  1176.     Mouse.KeyUp:connect(function(NEWKEY)
  1177.         KeyUp(NEWKEY)
  1178.     end)
  1179.  
  1180. --//=================================\\
  1181. --\\=================================//
  1182.  
  1183.  
  1184. function unanchor()
  1185.     if UNANCHOR == true then
  1186.         g = Character:GetChildren()
  1187.         for i = 1, #g do
  1188.             if g[i].ClassName == "Part" then
  1189.                 g[i].Anchored = false
  1190.             end
  1191.         end
  1192.     end
  1193. end
  1194.  
  1195.  
  1196. --//=================================\\
  1197. --||    WRAP THE WHOLE SCRIPT UP
  1198. --\\=================================//
  1199.  
  1200. Humanoid.Changed:connect(function(Jump)
  1201.     if Jump == "Jump" and (Disable_Jump == true) then
  1202.         Humanoid.Jump = false
  1203.     end
  1204. end)
  1205.  
  1206. while true do
  1207.     Swait()
  1208.     if DED == false then
  1209.         Character.Parent = workspace
  1210.         Humanoid.Parent = Character
  1211.         ANIMATE.Parent = nil
  1212.         local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1213.         IDLEANIMATION:Play()
  1214.         SINE = SINE + CHANGE
  1215.         local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1216.         local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1217.         HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1218.         local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1219.         if ATTACK == false then
  1220.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.3) * ANGLES(RAD(40), RAD(65), RAD(32)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1221.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(120), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1222.             HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1223.         end
  1224.         if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1225.             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)
  1226.             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)
  1227.             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)
  1228.             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)
  1229.         elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1230.             RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1231.             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)
  1232.             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)
  1233.             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)
  1234.         end
  1235.         if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1236.             ANIM = "Jump"
  1237.             if ATTACK == false then
  1238.                 RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1239.                 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1240.                 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)
  1241.                 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)
  1242.             end
  1243.         elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1244.             ANIM = "Fall"
  1245.             if ATTACK == false then
  1246.                 RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1247.                 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1248.                 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)
  1249.                 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)
  1250.             end
  1251.         elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1252.             ANIM = "Idle"
  1253.             if ATTACK == false then
  1254.                 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1255.                 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1256.                 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1257.                 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1258.             end
  1259.         elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1260.             ANIM = "Walk"
  1261.             if ATTACK == false then
  1262.                 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1263.                 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1264.                 RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1265.                 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1266.             end
  1267.         end
  1268.         unanchor()
  1269.         Humanoid.MaxHealth = "inf"
  1270.         Humanoid.Health = "inf"
  1271.         if Rooted == false then
  1272.             Disable_Jump = false
  1273.             Humanoid.WalkSpeed = Speed
  1274.         elseif Rooted == true then
  1275.             Disable_Jump = true
  1276.             Humanoid.WalkSpeed = 0
  1277.         end
  1278.         for _, c in pairs(Character:GetChildren()) do
  1279.             if c.ClassName == "Part" then
  1280.                 for _, q in pairs(c:GetChildren()) do
  1281.                     if q.ClassName == "ParticleEmitter" and q.Name ~= "Rage" then
  1282.                         q:remove()
  1283.                     elseif q.ClassName == "ParticleEmitter" and q.Name == "Rage" then
  1284.                         q.Enabled = VALUE1
  1285.                     end
  1286.                 end
  1287.                 if c:FindFirstChildOfClass("Fire") then
  1288.                     c:FindFirstChildOfClass("Fire"):remove()
  1289.                 end
  1290.                 if c == Head then
  1291.                     if c:FindFirstChild("Hood") == nil then
  1292.                         local M = CreateMesh("SpecialMesh", Head, "FileMesh", "181343290", "181343313", VT(1,1,1), VT(0,0,0))
  1293.                         M.VertexColor = VT(1, 0.85, 0.62)
  1294.                         M.Name = "Hood"
  1295.                     end
  1296.                     if c:FindFirstChild("face") then
  1297.                         c.face:remove()
  1298.                     end
  1299.                 end
  1300.             elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  1301.                 c:remove()
  1302.             end
  1303.         end
  1304.         script.Parent = WEAPONGUI
  1305.         SOULTEXT.Text = "Souls : ["..SOULWELL.."]"
  1306.         if VALUE1 == false then
  1307.             SKILL3TEXT.Text = "[C] Soul Rage"
  1308.         else
  1309.             SKILL3TEXT.Text = "["..VALUE2.."] Soul Rage"
  1310.         end
  1311.         Humanoid.DisplayDistanceType = "None"
  1312.         Humanoid.Name = "Reaper"
  1313.     end
  1314. end
  1315.  
  1316. --//=================================\\
  1317. --\\=================================//
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323. --//====================================================\\--
  1324. --||                     END OF SCRIPT
  1325. --\\====================================================//--
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top