Advertisement
Axelpuff

purple thingy fe

Aug 14th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 70.15 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
  2. print("FE Compatibility: by WaverlyCole & Mokiros")
  3. InternalData = {}
  4. do
  5. script.Parent = owner.Character
  6. local Event = Instance.new("RemoteEvent")
  7. Event.Name = "UserInput"
  8. local function NewFakeEvent()
  9. local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
  10. return Fake
  11. end
  12. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  13. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  14. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  15. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  16. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  17. local function TriggerEvent(self,Event,...)
  18. local Trigger = Mouse[Event]
  19. if Trigger and Trigger.fakeEvent and Trigger.Function then
  20. Trigger.Function(...)
  21. end
  22. end
  23. Mouse.TrigEvent = TriggerEvent
  24. UserInputService.TrigEvent = TriggerEvent
  25. Event.OnServerEvent:Connect(function(FiredBy,Input)
  26. if FiredBy.Name ~= owner.Name then end
  27. if Input.MouseEvent then
  28. Mouse.Target = Input.Target
  29. Mouse.Hit = Input.Hit
  30. else
  31. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  32. if Input.UserInputType == Enum.UserInputType.MouseButton1 then
  33. return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
  34. end
  35. for _,Action in pairs(ContextActionService.Actions) do
  36. for _,Key in pairs(Action.Keys) do
  37. if Key==Input.KeyCode then
  38. Action.Function(Action.Name,Input.UserInputState,Input)
  39. end
  40. end
  41. end
  42. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  43. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  44. end
  45. end)
  46. InternalData["Mouse"] = Mouse
  47. InternalData["ContextActionService"] = ContextActionService
  48. InternalData["UserInputService"] = UserInputService
  49. Event.Parent = NLS([[
  50. local Player = owner
  51. local Event = script:WaitForChild("UserInput")
  52. local UserInputService = game:GetService("UserInputService")
  53. local Mouse = Player:GetMouse()
  54. local Input = function(Input,gameProcessedEvent)
  55. if gameProcessedEvent then return end
  56. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  57. end
  58. UserInputService.InputBegan:Connect(Input)
  59. UserInputService.InputEnded:Connect(Input)
  60. local Hit,Target
  61. while wait(1/30) do
  62. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  63. Hit,Target = Mouse.Hit,Mouse.Target
  64. Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  65. end
  66. end
  67. ]],owner.Character)
  68. end
  69. RealGame = game;game = setmetatable({},{
  70. __index = function (self,Index)
  71. local Sandbox = function (Thing)
  72. if Thing:IsA("Player") then
  73. local RealPlayer = Thing
  74. return setmetatable({},{
  75. __index = function (self,Index)
  76. local Type = type(RealPlayer[Index])
  77. if Type == "function" then
  78. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  79. return function (self)
  80. return InternalData["Mouse"]
  81. end
  82. end
  83. return function (self,...)
  84. return RealPlayer[Index](RealPlayer,...)
  85. end
  86. else
  87. if Index == "PlrObj" then
  88. return RealPlayer
  89. end
  90. return RealPlayer[Index]
  91. end
  92. end;
  93. __tostring = function(self)
  94. return RealPlayer.Name
  95. end
  96. })
  97. end
  98. end
  99. if RealGame[Index] then
  100. local Type = type(RealGame[Index])
  101. if Type == "function" then
  102. if Index:lower() == "getservice" or Index:lower() == "service" then
  103. return function (self,Service)
  104. if Service:lower() == "players" then
  105. return setmetatable({},{
  106. __index = function (self2,Index2)
  107. local RealService = RealGame:GetService(Service)
  108. local Type2 = type(Index2)
  109. if Type2 == "function" then
  110. return function (self,...)
  111. return RealService[Index2](RealService,...)
  112. end
  113. else
  114. if Index2:lower() == "localplayer" then
  115. return Sandbox(owner)
  116. end
  117. return RealService[Index2]
  118. end
  119. end;
  120. __tostring = function(self)
  121. return RealGame:GetService(Service).Name
  122. end
  123. })
  124. elseif Service:lower() == "contextactionservice" then
  125. return InternalData["ContextActionService"]
  126. elseif Service:lower() == "contextactionservice" then
  127. return InternalData["UserInputService"]
  128. elseif Service:lower() == "runservice" then
  129. return setmetatable({},{
  130. __index = function(self2,Index2)
  131. local RealService = RealGame:GetService(Service)
  132. local Type2 = type(Index2)
  133. if Type2 == "function" then
  134. return function (self,...)
  135. return RealService[Index2](RealService,...)
  136. end
  137. else
  138. if Index2:lower() == "bindtorenderstep" then
  139. return function (self,Name,Priority,Function)
  140. return RealGame:GetService("RunService").Stepped:Connect(Function)
  141. end
  142. end
  143. if Index2:lower() == "renderstepped" then
  144. return RealService["Stepped"]
  145. end
  146. return RealService[Index2]
  147. end
  148. end
  149. })
  150. else
  151. return RealGame:GetService(Service)
  152. end
  153. end
  154. end
  155. return function (self,...)
  156. return RealGame[Index](RealGame,...)
  157. end
  158. else
  159. if game:GetService(Index) then
  160. return game:GetService(Index)
  161. end
  162. return RealGame[Index]
  163. end
  164. else
  165. return nil
  166. end
  167. end
  168. });Game = game;owner = game:GetService("Players").LocalPlayer;script = {}
  169. print("Complete! Running...")
  170.  
  171.  
  172. --//Paste script below this line.
  173.  
  174. --//====================================================\\--
  175. --|| CREATED BY SHACKLUSTER
  176. --\\====================================================//--
  177.  
  178.  
  179.  
  180. wait(0.2)
  181.  
  182.  
  183.  
  184. Player = owner
  185. PlayerGui = Player.PlayerGui
  186. Cam = workspace.CurrentCamera
  187. Backpack = Player.Backpack
  188. Character = Player.Character
  189. Humanoid = Character.Humanoid
  190. Mouse = Player:GetMouse()
  191. RootPart = Character["HumanoidRootPart"]
  192. Torso = Character["Torso"]
  193. Head = Character["Head"]
  194. RightArm = Character["Right Arm"]
  195. LeftArm = Character["Left Arm"]
  196. RightLeg = Character["Right Leg"]
  197. LeftLeg = Character["Left Leg"]
  198. RootJoint = RootPart["RootJoint"]
  199. Neck = Torso["Neck"]
  200. RightShoulder = Torso["Right Shoulder"]
  201. LeftShoulder = Torso["Left Shoulder"]
  202. RightHip = Torso["Right Hip"]
  203. LeftHip = Torso["Left Hip"]
  204. local sick = Instance.new("Sound",Character)
  205. sick.SoundId = "rbxassetid://965804171"
  206. sick.Looped = true
  207. sick.Pitch = 1
  208. sick.Volume = 1
  209. sick:Play()
  210. local sick2 = Instance.new("Sound",Character)
  211. sick2.SoundId = "rbxassetid://590156873"
  212. sick2.Looped = true
  213. sick2.Pitch = 1
  214. sick2.Volume = 3
  215. Humanoid.DisplayDistanceType = "None"
  216.  
  217. IT = Instance.new
  218. CF = CFrame.new
  219. VT = Vector3.new
  220. RAD = math.rad
  221. C3 = Color3.new
  222. UD2 = UDim2.new
  223. BRICKC = BrickColor.new
  224. ANGLES = CFrame.Angles
  225. EULER = CFrame.fromEulerAnglesXYZ
  226. COS = math.cos
  227. ACOS = math.acos
  228. SIN = math.sin
  229. ASIN = math.asin
  230. ABS = math.abs
  231. MRANDOM = math.random
  232. FLOOR = math.floor
  233.  
  234. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  235. local NEWMESH = IT(MESH)
  236. if MESH == "SpecialMesh" then
  237. NEWMESH.MeshType = MESHTYPE
  238. if MESHID ~= "nil" and MESHID ~= "" then
  239. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  240. end
  241. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  242. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  243. end
  244. end
  245. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  246. NEWMESH.Scale = SCALE
  247. NEWMESH.Parent = PARENT
  248. return NEWMESH
  249. end
  250.  
  251. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  252. local NEWPART = IT("Part")
  253. NEWPART.formFactor = FORMFACTOR
  254. NEWPART.Reflectance = REFLECTANCE
  255. NEWPART.Transparency = TRANSPARENCY
  256. NEWPART.CanCollide = false
  257. NEWPART.Locked = true
  258. NEWPART.Anchored = true
  259. if ANCHOR == false then
  260. NEWPART.Anchored = false
  261. end
  262. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  263. NEWPART.Name = NAME
  264. NEWPART.Size = SIZE
  265. NEWPART.Position = Torso.Position
  266. NEWPART.Material = MATERIAL
  267. NEWPART:BreakJoints()
  268. NEWPART.Parent = PARENT
  269. return NEWPART
  270. end
  271.  
  272. --//=================================\\
  273. --|| CUSTOMIZATION
  274. --\\=================================//
  275.  
  276. Player_Size = 1 --Size of the player.
  277. Animation_Speed = 3
  278. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  279.  
  280. local Speed = 16
  281. local Effects2 = {}
  282.  
  283. --//=================================\\
  284. --|| END OF CUSTOMIZATION
  285. --\\=================================//
  286.  
  287. local function weldBetween(a, b)
  288. local weldd = Instance.new("ManualWeld")
  289. weldd.Part0 = a
  290. weldd.Part1 = b
  291. weldd.C0 = CFrame.new()
  292. weldd.C1 = b.CFrame:inverse() * a.CFrame
  293. weldd.Parent = a
  294. return weldd
  295. end
  296.  
  297. --//=================================\\
  298. --|| USEFUL VALUES
  299. --\\=================================//
  300.  
  301. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  302. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  303. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  304. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  305. local CHANGEDEFENSE = 0
  306. local CHANGEDAMAGE = 0
  307. local CHANGEMOVEMENT = 0
  308. local ANIM = "Idle"
  309. local ATTACK = false
  310. local EQUIPPED = false
  311. local HOLD = false
  312. local COMBO = 1
  313. local Rooted = false
  314. local SINE = 0
  315. local KEYHOLD = false
  316. local CHANGE = 2 / Animation_Speed
  317. local WALKINGANIM = false
  318. local WALK = 0
  319. local VALUE1 = false
  320. local VALUE2 = "Normal"
  321. local ROBLOXIDLEANIMATION = IT("Animation")
  322. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  323. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  324. --ROBLOXIDLEANIMATION.Parent = Humanoid
  325. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  326. WEAPONGUI.Name = "Weapon GUI"
  327. local Weapon = IT("Model")
  328. Weapon.Name = "Adds"
  329. local Effects = IT("Folder", Weapon)
  330. Effects.Name = "Effects"
  331. local ANIMATOR = Humanoid.Animator
  332. local ANIMATE = Character.Animate
  333. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  334. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  335. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  336. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  337. local UNANCHOR = true
  338.  
  339. local SKILLTEXTCOLOR = C3(0.3,0,0.4)
  340.  
  341. --//=================================\\
  342. --\\=================================//
  343.  
  344.  
  345. --//=================================\\
  346. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  347. --\\=================================//
  348.  
  349. ArtificialHB = Instance.new("BindableEvent", owner.Character)
  350. ArtificialHB.Name = "ArtificialHB"
  351.  
  352. owner.Character:WaitForChild("ArtificialHB")
  353.  
  354. frame = Frame_Speed
  355. tf = 0
  356. allowframeloss = false
  357. tossremainder = false
  358. lastframe = tick()
  359. owner.Character.ArtificialHB:Fire()
  360.  
  361. game:GetService("RunService").Heartbeat:connect(function(s, p)
  362. tf = tf + s
  363. if tf >= frame then
  364. if allowframeloss then
  365. owner.Character.ArtificialHB:Fire()
  366. lastframe = tick()
  367. else
  368. for i = 1, math.floor(tf / frame) do
  369. owner.Character.ArtificialHB:Fire()
  370. end
  371. lastframe = tick()
  372. end
  373. if tossremainder then
  374. tf = 0
  375. else
  376. tf = tf - frame * math.floor(tf / frame)
  377. end
  378. end
  379. end)
  380.  
  381. --//=================================\\
  382. --\\=================================//
  383.  
  384.  
  385.  
  386.  
  387.  
  388. --//=================================\\
  389. --|| SOME FUNCTIONS
  390. --\\=================================//
  391.  
  392. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  393. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  394. end
  395.  
  396. function PositiveAngle(NUMBER)
  397. if NUMBER >= 0 then
  398. NUMBER = 0
  399. end
  400. return NUMBER
  401. end
  402.  
  403. function NegativeAngle(NUMBER)
  404. if NUMBER <= 0 then
  405. NUMBER = 0
  406. end
  407. return NUMBER
  408. end
  409.  
  410. function Swait(NUMBER)
  411. if NUMBER == 0 or NUMBER == nil then
  412. ArtificialHB.Event:wait()
  413. else
  414. for i = 1, NUMBER do
  415. ArtificialHB.Event:wait()
  416. end
  417. end
  418. end
  419.  
  420. function QuaternionFromCFrame(cf)
  421. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  422. local trace = m00 + m11 + m22
  423. if trace > 0 then
  424. local s = math.sqrt(1 + trace)
  425. local recip = 0.5 / s
  426. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  427. else
  428. local i = 0
  429. if m11 > m00 then
  430. i = 1
  431. end
  432. if m22 > (i == 0 and m00 or m11) then
  433. i = 2
  434. end
  435. if i == 0 then
  436. local s = math.sqrt(m00 - m11 - m22 + 1)
  437. local recip = 0.5 / s
  438. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  439. elseif i == 1 then
  440. local s = math.sqrt(m11 - m22 - m00 + 1)
  441. local recip = 0.5 / s
  442. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  443. elseif i == 2 then
  444. local s = math.sqrt(m22 - m00 - m11 + 1)
  445. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  446. end
  447. end
  448. end
  449.  
  450. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  451. local xs, ys, zs = x + x, y + y, z + z
  452. local wx, wy, wz = w * xs, w * ys, w * zs
  453. local xx = x * xs
  454. local xy = x * ys
  455. local xz = x * zs
  456. local yy = y * ys
  457. local yz = y * zs
  458. local zz = z * zs
  459. 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))
  460. end
  461.  
  462. function QuaternionSlerp(a, b, t)
  463. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  464. local startInterp, finishInterp;
  465. if cosTheta >= 0.0001 then
  466. if (1 - cosTheta) > 0.0001 then
  467. local theta = ACOS(cosTheta)
  468. local invSinTheta = 1 / SIN(theta)
  469. startInterp = SIN((1 - t) * theta) * invSinTheta
  470. finishInterp = SIN(t * theta) * invSinTheta
  471. else
  472. startInterp = 1 - t
  473. finishInterp = t
  474. end
  475. else
  476. if (1 + cosTheta) > 0.0001 then
  477. local theta = ACOS(-cosTheta)
  478. local invSinTheta = 1 / SIN(theta)
  479. startInterp = SIN((t - 1) * theta) * invSinTheta
  480. finishInterp = SIN(t * theta) * invSinTheta
  481. else
  482. startInterp = t - 1
  483. finishInterp = t
  484. end
  485. end
  486. 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
  487. end
  488.  
  489. function Clerp(a, b, t)
  490. local qa = {QuaternionFromCFrame(a)}
  491. local qb = {QuaternionFromCFrame(b)}
  492. local ax, ay, az = a.x, a.y, a.z
  493. local bx, by, bz = b.x, b.y, b.z
  494. local _t = 1 - t
  495. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  496. end
  497.  
  498. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  499. local frame = IT("Frame")
  500. frame.BackgroundTransparency = TRANSPARENCY
  501. frame.BorderSizePixel = BORDERSIZEPIXEL
  502. frame.Position = POSITION
  503. frame.Size = SIZE
  504. frame.BackgroundColor3 = COLOR
  505. frame.BorderColor3 = BORDERCOLOR
  506. frame.Name = NAME
  507. frame.Parent = PARENT
  508. return frame
  509. end
  510.  
  511. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  512. local label = IT("TextLabel")
  513. label.BackgroundTransparency = 1
  514. label.Size = UD2(1, 0, 1, 0)
  515. label.Position = UD2(0, 0, 0, 0)
  516. label.TextColor3 = TEXTCOLOR
  517. label.TextStrokeTransparency = STROKETRANSPARENCY
  518. label.TextTransparency = TRANSPARENCY
  519. label.FontSize = TEXTFONTSIZE
  520. label.Font = TEXTFONT
  521. label.BorderSizePixel = BORDERSIZEPIXEL
  522. label.TextScaled = false
  523. label.Text = TEXT
  524. label.Name = NAME
  525. label.Parent = PARENT
  526. return label
  527. end
  528.  
  529. function NoOutlines(PART)
  530. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  531. end
  532.  
  533.  
  534. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  535. local NEWWELD = IT(TYPE)
  536. NEWWELD.Part0 = PART0
  537. NEWWELD.Part1 = PART1
  538. NEWWELD.C0 = C0
  539. NEWWELD.C1 = C1
  540. NEWWELD.Parent = PARENT
  541. return NEWWELD
  542. end
  543.  
  544. local SOUND = IT("Sound",nil)
  545.  
  546. function CreateSound(ID, PARENT, VOLUME, PITCH)
  547. local NEWSOUND = nil
  548. coroutine.resume(coroutine.create(function()
  549. NEWSOUND = SOUND:Clone()
  550. NEWSOUND.Parent = PARENT
  551. NEWSOUND.Volume = VOLUME
  552. NEWSOUND.Pitch = PITCH
  553. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  554. Swait()
  555. NEWSOUND:play()
  556. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  557. end))
  558. return NEWSOUND
  559. end
  560.  
  561. function CFrameFromTopBack(at, top, back)
  562. local right = top:Cross(back)
  563. 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)
  564. end
  565.  
  566. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  567. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  568. local mesh = IT("SpecialMesh",wave)
  569. mesh.MeshType = "FileMesh"
  570. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  571. mesh.Scale = SIZE
  572. mesh.Offset = VT(0,0,-SIZE.X/8)
  573. wave.CFrame = CFRAME
  574. coroutine.resume(coroutine.create(function(PART)
  575. for i = 1, WAIT do
  576. Swait()
  577. mesh.Scale = mesh.Scale + GROW
  578. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  579. if DOESROT == true then
  580. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  581. end
  582. wave.Transparency = wave.Transparency + (0.5/WAIT)
  583. if wave.Transparency > 0.99 then
  584. wave:remove()
  585. end
  586. end
  587. end))
  588. end
  589.  
  590. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW,DOESTRAIL)
  591. local wave = CreatePart(3, Effects, "Neon", 0, 0.8, BRICKC(COLOR), "Effect", VT(0,0,0))
  592. local mesh = IT("SpecialMesh",wave)
  593. mesh.MeshType = "FileMesh"
  594. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  595. mesh.Scale = SIZE
  596. wave.CFrame = CFRAME
  597. coroutine.resume(coroutine.create(function(PART)
  598. for i = 1, WAIT do
  599. Swait()
  600. if DOESTRAIL == true then
  601. Trail(wave)
  602. end
  603. mesh.Scale = mesh.Scale + GROW
  604. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  605. if DOESROT == true then
  606. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  607. end
  608. wave.Transparency = wave.Transparency + (0.2/WAIT)
  609. if wave.Transparency > 0.99 then
  610. wave:remove()
  611. end
  612. end
  613. end))
  614. end
  615.  
  616. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  617. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  618. local mesh = IT("SpecialMesh",wave)
  619. mesh.MeshType = "Sphere"
  620. mesh.Scale = SIZE
  621. mesh.Offset = VT(0,0,0)
  622. wave.CFrame = CFRAME
  623. coroutine.resume(coroutine.create(function(PART)
  624. for i = 1, WAIT do
  625. Swait()
  626. mesh.Scale = mesh.Scale + GROW
  627. wave.Transparency = wave.Transparency + (1/WAIT)
  628. if wave.Transparency > 0.99 then
  629. wave:remove()
  630. end
  631. end
  632. end))
  633. end
  634.  
  635. function MagicBlock(SIZE,WAIT,CFRAME,COLOR,GROW)
  636. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(SIZE,SIZE,SIZE), true)
  637. local mesh = IT("BlockMesh",wave)
  638. wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360)))
  639. coroutine.resume(coroutine.create(function(PART)
  640. for i = 1, WAIT do
  641. Swait()
  642. mesh.Scale = mesh.Scale + GROW
  643. wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360)))
  644. wave.Transparency = wave.Transparency + (0.5/WAIT)
  645. if wave.Transparency > 0.99 then
  646. wave:remove()
  647. end
  648. end
  649. end))
  650. end
  651.  
  652. function MakeForm(PART,TYPE)
  653. if TYPE == "Cyl" then
  654. local MSH = IT("CylinderMesh",PART)
  655. elseif TYPE == "Ball" then
  656. local MSH = IT("SpecialMesh",PART)
  657. MSH.MeshType = "Sphere"
  658. elseif TYPE == "Wedge" then
  659. local MSH = IT("SpecialMesh",PART)
  660. MSH.MeshType = "Wedge"
  661. end
  662. end
  663.  
  664. function CheckTableForString(Table, String)
  665. for i, v in pairs(Table) do
  666. if string.find(string.lower(String), string.lower(v)) then
  667. return true
  668. end
  669. end
  670. return false
  671. end
  672.  
  673. function CheckIntangible(Hit)
  674. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  675. if Hit and Hit.Parent then
  676. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  677. return true
  678. end
  679. end
  680. return false
  681. end
  682.  
  683. Debris = game:GetService("Debris")
  684.  
  685. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  686. local Direction = CFrame.new(StartPos, Vec).lookVector
  687. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  688. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  689. if RayHit and CheckIntangible(RayHit) then
  690. if DelayIfHit then
  691. wait()
  692. end
  693. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  694. end
  695. return RayHit, RayPos, RayNormal
  696. end
  697.  
  698. function turnto(position)
  699. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  700. end
  701.  
  702. --//=================================\\
  703. --|| WEAPON CREATION
  704. --\\=================================//
  705.  
  706. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Royal purple", "Wistband part", VT(1.015,0.15,1.015),false)
  707. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  708. local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", "Wistband part", VT(1.035,0.1,1.035),false)
  709. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0, -0.35, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  710. local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", "Wistband part", VT(1.035,0.1,1.035),false)
  711. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0, -0.45, 0) * ANGLES(RAD(0), RAD(180), RAD(180)) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0))
  712. MakeForm(part,"Wedge")
  713. local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", "Wistband part", VT(1.025,0.05,1.025),false)
  714. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0, -0.22, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  715. local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", "Wistband part", VT(1.025,0.1,1.025),false)
  716. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0, -0.15, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0))
  717. MakeForm(part,"Wedge")
  718. local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", "Wistband part", VT(0.8,0.05,0.8),false)
  719. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.5, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
  720. MakeForm(part,"Cyl")
  721. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Royal purple", "Wistband part", VT(0.81,0.05,0.81),false)
  722. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.49, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
  723. MakeForm(part,"Cyl")
  724. local part = CreatePart(3, Weapon, "Marble", 0, 0, "Pearl", "Wistband part", VT(0.5,0.05,0.5),false)
  725. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.51, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
  726. MakeForm(part,"Cyl")
  727. local blade = CreatePart(3, Weapon, "Marble", 0, 0, "Really black", "Wistband part", VT(0.5,0.05,0.5),false)
  728. local armweld = CreateWeldOrSnapOrMotor("Weld", blade, RightArm, blade, CF(0.52, -0.306, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
  729. CreateMesh("SpecialMesh", blade, "FileMesh", "340607397", "", VT(0.35,0.35,0.35), VT(-0.015, 0, -0.05))
  730. local part = CreatePart(3, Weapon, "Marble", 0, 0, "Pearl", "Wistband part", VT(0.2,0.05,0.2),false)
  731. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.52, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
  732. MakeForm(part,"Ball")
  733. local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", "Wistband part", VT(0.15,0.06,0.15),false)
  734. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.52, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
  735. MakeForm(part,"Ball")
  736. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Royal purple", "Wistband part", VT(0.1,0.07,0.1),false)
  737. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.52, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
  738. MakeForm(part,"Ball")
  739.  
  740. for _, c in pairs(Weapon:GetChildren()) do
  741. if c.ClassName == "Part" then
  742. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  743. end
  744. end
  745.  
  746. Weapon.Parent = Character
  747.  
  748. Humanoid.Died:connect(function()
  749. ATTACK = true
  750. end)
  751.  
  752. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  753. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  754. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.70, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  755. local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  756.  
  757. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Darkage Shurikens", SKILLTEXTCOLOR, 7, "Fantasy", 0, 2, 0, "Text 1")
  758. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Darkage Surge", SKILLTEXTCOLOR, 7, "Fantasy", 0, 2, 0, "Text 2")
  759. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Shadow Sneak", SKILLTEXTCOLOR, 7, "Fantasy", 0, 2, 0, "Text 3")
  760. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Rage of Darkage", SKILLTEXTCOLOR, 7, "Fantasy", 0, 2, 0, "Text 4")
  761.  
  762. --//=================================\\
  763. --|| DAMAGE FUNCTIONS
  764. --\\=================================//
  765.  
  766. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  767. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  768. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  769. local BODYGYRO = IT("BodyGyro", STATPART)
  770. local BODYPOSITION = IT("BodyPosition", STATPART)
  771. BODYPOSITION.P = 2000
  772. BODYPOSITION.D = 100
  773. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  774. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  775. game:GetService("Debris"):AddItem(STATPART ,5)
  776. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  777. BILLBOARDGUI.Adornee = STATPART
  778. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  779. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  780. BILLBOARDGUI.AlwaysOnTop = false
  781. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  782. TEXTLABEL.BackgroundTransparency = 1
  783. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  784. TEXTLABEL.Text = TEXT
  785. TEXTLABEL.Font = "Fantasy"
  786. TEXTLABEL.FontSize="Size42"
  787. TEXTLABEL.TextColor3 = COLOR
  788. TEXTLABEL.TextStrokeTransparency = 1
  789. TEXTLABEL.TextScaled = true
  790. TEXTLABEL.TextWrapped = true
  791. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  792. if LABELTYPE == "Normal" then
  793. for i = 1, 30 do
  794. Swait()
  795. STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0)
  796. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  797. end
  798. elseif LABELTYPE == "Debuff" then
  799. for i = 1, 30 do
  800. Swait()
  801. STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
  802. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  803. end
  804. elseif LABELTYPE == "Shock" then
  805. local ORIGIN = STATPART.Position
  806. for i = 1, 30 do
  807. Swait()
  808. STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
  809. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  810. end
  811. end
  812. THEPART.Parent = nil
  813. end),STATPART, BODYPOSITION, TEXTLABEL)
  814. end
  815.  
  816. --//=================================\\
  817. --|| DAMAGING
  818. --\\=================================//
  819.  
  820. function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier)
  821. if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then
  822. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  823. local dmg = math.random(min,max)
  824. if humanoid.Health > 0 then
  825. if beserk == true then
  826. humanoid.Health = 0
  827. else
  828. CreateSound("260430060", hit, 1.2, MRANDOM(7, 12) / 10)
  829. hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength
  830. if math.random(1,100) < critrate+1 then
  831. humanoid.Health = humanoid.Health - dmg*critmultiplier
  832. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  833. else
  834. humanoid.Health = humanoid.Health - dmg
  835. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(0, 0, 0))
  836. end
  837. local defence = Instance.new("BoolValue",hit.Parent)
  838. defence.Name = ("HitBy"..Player.Name)
  839. game:GetService("Debris"):AddItem(defence, 0.5)
  840. end
  841. end
  842. end
  843. end
  844.  
  845. function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping)
  846. local dmg = math.random(min,max)
  847. for i,v in ipairs(workspace:GetChildren()) do
  848. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  849. local body = v:GetChildren()
  850. for part = 1, #body do
  851. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  852. if(body[part].Position - position).Magnitude < radius then
  853. if v.ClassName == "Model" then
  854. if v:FindFirstChild("Humanoid") then
  855. if v.Humanoid.Health ~= 0 then
  856. if CanBeDodgedByJumping == true then
  857. if body[part].Position.Y < position.Y+5 then
  858. if math.random(1,100) < critrate+1 then
  859. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  860. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  861. else
  862. v.Humanoid.Health = v.Humanoid.Health - dmg
  863. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  864. end
  865. local defence = Instance.new("BoolValue",v)
  866. defence.Name = ("HitBy"..Player.Name)
  867. end
  868. else
  869. if beserk == true then
  870. v.Humanoid.Health = 0
  871. end
  872. if math.random(1,100) < critrate+1 then
  873. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  874. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  875. else
  876. v.Humanoid.Health = v.Humanoid.Health - dmg
  877. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  878. end
  879. local defence = Instance.new("BoolValue",v)
  880. defence.Name = ("HitBy"..Player.Name)
  881. end
  882. end
  883. end
  884. end
  885. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  886. end
  887. end
  888. end
  889. end
  890. if v:FindFirstChild("HitBy"..Player.Name) then
  891. v:FindFirstChild("HitBy"..Player.Name):remove()
  892. end
  893. end
  894. end
  895.  
  896. --//=================================\\
  897. --|| ATTACK FUNCTIONS AND STUFF
  898. --\\=================================//
  899.  
  900. local asd = Instance.new("ParticleEmitter")
  901. asd.Color = ColorSequence.new(Color3.new(0, 0, 0))
  902. asd.LightEmission = .1
  903. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  904. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 4),NumberSequenceKeypoint.new(1, 8)})
  905. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  906. asd.Transparency = bbb
  907. asd.Size = aaa
  908. asd.ZOffset = .9
  909. asd.Acceleration = Vector3.new(0, 0, 0)
  910. asd.LockedToPart = false
  911. asd.EmissionDirection = "Back"
  912. asd.Lifetime = NumberRange.new(1, 2)
  913. asd.Rotation = NumberRange.new(-100, 100)
  914. asd.RotSpeed = NumberRange.new(-100, 100)
  915. asd.Speed = NumberRange.new(6)
  916. asd.Enabled = false
  917. asd.Drag = 3
  918. asd.VelocitySpread = 10000
  919.  
  920. function poofcloud(pos,amount)
  921. local prt = CreatePart(3, Effects, "Neon", 0, 1, "Royal purple", "Poof", VT(0,0,0))
  922. prt.Anchored = true
  923. prt.CFrame = CF(pos)
  924. local prtcl = asd:Clone()
  925. prtcl.Parent = prt
  926. prtcl:Emit(amount)
  927. CreateSound("966888080", prt, 6, (math.random(12,16)/10))
  928. coroutine.resume(coroutine.create(function()
  929. wait(3)
  930. prt:remove()
  931. end))
  932. end
  933.  
  934. function Vanish()
  935. poofcloud(Torso.Position,50)
  936. g = Character:GetChildren()
  937. for i = 1, #g do
  938. if g[i].ClassName == "Part" and g[i].Name ~= "HumanoidRootPart" then
  939. g[i].Transparency = 1
  940. Head.face.Transparency = 1
  941. elseif g[i].ClassName == "Accessory" then
  942. g[i].Handle.Transparency = 1
  943. end
  944. end
  945. g = Weapon:GetChildren()
  946. for i = 1, #g do
  947. if g[i].ClassName == "Part" then
  948. g[i].Transparency = 1
  949. end
  950. end
  951. end
  952.  
  953. function Trail(Part)
  954. local TRAIL = Part:Clone()
  955. TRAIL.CanCollide = false
  956. TRAIL.Anchored = true
  957. TRAIL.Parent = Effects
  958. TRAIL.Name = "Trail"
  959. local TRANS = Part.Transparency
  960. coroutine.resume(coroutine.create(function()
  961. for i = 1, 20 do
  962. Swait()
  963. TRAIL.Transparency = TRAIL.Transparency + ((1-TRANS)/20)
  964. end
  965. TRAIL:remove()
  966. end))
  967. end
  968.  
  969. function Appear()
  970. poofcloud(Torso.Position,50)
  971. g = Character:GetChildren()
  972. for i = 1, #g do
  973. if g[i].ClassName == "Part" and g[i].Name ~= "HumanoidRootPart" then
  974. g[i].Transparency = 0
  975. Head.face.Transparency = 0
  976. elseif g[i].ClassName == "Accessory" then
  977. g[i].Handle.Transparency = 0
  978. end
  979. end
  980. g = Weapon:GetChildren()
  981. for i = 1, #g do
  982. if g[i].ClassName == "Part" then
  983. g[i].Transparency = 0
  984. end
  985. end
  986. end
  987.  
  988. function AttackTemplate()
  989. ATTACK = true
  990. Rooted = false
  991. for i=0, 1, 0.1 / Animation_Speed do
  992. Swait()
  993. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-25)), 0.15 / Animation_Speed)
  994. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 0.15 / Animation_Speed)
  995. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.8) * ANGLES(RAD(90), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  996. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  997. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.15 * COS(SINE / 12), -0.1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(15)), 0.15 / Animation_Speed)
  998. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1, -0.6 - 0.15 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(45)), 0.15 / Animation_Speed)
  999. end
  1000. ATTACK = false
  1001. Rooted = false
  1002. end
  1003.  
  1004. function DarkageShuriken()
  1005. ATTACK = true
  1006. Rooted = false
  1007. for i=0, 1, 0.1 / Animation_Speed do
  1008. Swait()
  1009. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1010. 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.25 / Animation_Speed)
  1011. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  1012. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  1013. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.15 * COS(SINE / 12), -0.1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(15)), 0.25 / Animation_Speed)
  1014. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1, -0.6 - 0.15 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(45)), 0.25 / Animation_Speed)
  1015. end
  1016. for i=0, 1.5, 0.1 / Animation_Speed do
  1017. Swait()
  1018. MagicBlock(3,10,blade.CFrame,"Royal purple",VT(-0.1,-0.1,-0.1))
  1019. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1020. 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.25 / Animation_Speed)
  1021. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  1022. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  1023. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.15 * COS(SINE / 12), -0.1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(15)), 0.25 / Animation_Speed)
  1024. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1, -0.6 - 0.15 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(45)), 0.25 / Animation_Speed)
  1025. end
  1026. local ANGLE = 15
  1027. for i = 1, 3 do
  1028. local SHURIKEN = CreatePart(3, Effects, "Marble", 0, 0.3, "Royal purple", "Shuriken", VT(0.5,0.05,0.5),false)
  1029. local MESH = CreateMesh("SpecialMesh", SHURIKEN, "FileMesh", "340607397", "", VT(0.35,0.35,0.35), VT(-0.015, 0, -0.05))
  1030. SHURIKEN.CFrame = CF(RootPart.Position,Mouse.Hit.p) * CF(0,0,-4) * ANGLES(RAD(0),RAD(ANGLE),RAD(0))
  1031. ANGLE = ANGLE - 15
  1032. SHURIKEN.Anchored = true
  1033. SHURIKEN.Parent = Effects
  1034. SHURIKEN.CanCollide = true
  1035. MESH.Scale = MESH.Scale * 5
  1036. MESH.Offset = MESH.Offset * 5
  1037. SHURIKEN.Size = SHURIKEN.Size * 5
  1038. coroutine.resume(coroutine.create(function()
  1039. local TOUCHED = false
  1040. local CFRAME = SHURIKEN.CFrame
  1041. local LOOP = 1
  1042. local HIT = SHURIKEN.Touched:Connect(function(hit)
  1043. if hit.Parent ~= Character and hit.Parent ~= Weapon and hit.Parent ~= Effects then
  1044. TOUCHED = true
  1045. end
  1046. end)
  1047. repeat
  1048. Swait()
  1049. Trail(SHURIKEN)
  1050. LOOP = LOOP + 1
  1051. SHURIKEN.CFrame = CFRAME * CF(0,0,-LOOP) * ANGLES(RAD(0),RAD(LOOP*15),RAD(0))
  1052. MESH.Scale = MESH.Scale * 1.01
  1053. MESH.Offset = MESH.Offset * 1.01
  1054. SHURIKEN.Size = SHURIKEN.Size * 1.01
  1055. until TOUCHED == true or LOOP >= 250
  1056. SHURIKEN.CanCollide = false
  1057. HIT:disconnect()
  1058. if LOOP >= 250 and TOUCHED == false then
  1059. for i = 1, 50 do
  1060. Swait()
  1061. MESH.Scale = MESH.Scale * 0.9
  1062. MESH.Offset = MESH.Offset * 0.9
  1063. SHURIKEN.Size = SHURIKEN.Size * 0.9
  1064. end
  1065. elseif TOUCHED == true then
  1066. AoEDamage(SHURIKEN.Position,SHURIKEN.Size.X,35,45,7,false,3,1.2,false)
  1067. CreateSound("444667859", SHURIKEN, 3, (math.random(12,16)/10))
  1068. for i = 1, 10 do
  1069. Swait()
  1070. MagicBlock(SHURIKEN.Size.Y*5,5,SHURIKEN.CFrame,"Royal purple",VT(SHURIKEN.Size.Y/15,SHURIKEN.Size.Y/15,SHURIKEN.Size.Y/15))
  1071. SHURIKEN.CFrame = SHURIKEN.CFrame * ANGLES(RAD(0),RAD(15),RAD(0))
  1072. MESH.Scale = MESH.Scale * 1.03
  1073. MESH.Offset = MESH.Offset * 1.03
  1074. SHURIKEN.Size = SHURIKEN.Size * 1.03
  1075. SHURIKEN.Transparency = SHURIKEN.Transparency + 0.1
  1076. end
  1077. end
  1078. wait(5)
  1079. SHURIKEN:remove()
  1080. end))
  1081. end
  1082. for i=0, 0.4, 0.1 / Animation_Speed do
  1083. Swait()
  1084. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.5 / Animation_Speed)
  1085. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.5 / Animation_Speed)
  1086. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1087. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1088. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.15 * COS(SINE / 12), -0.1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(15)), 0.5 / Animation_Speed)
  1089. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1, -0.6 - 0.15 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(45)), 0.5 / Animation_Speed)
  1090. end
  1091. ATTACK = false
  1092. Rooted = false
  1093. end
  1094.  
  1095. function DarkageStorm()
  1096. ATTACK = true
  1097. Rooted = false
  1098. for i=0, 1, 0.1 / Animation_Speed do
  1099. Swait()
  1100. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1101. 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.25 / Animation_Speed)
  1102. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  1103. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  1104. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.15 * COS(SINE / 12), -0.1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(15)), 0.25 / Animation_Speed)
  1105. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1, -0.6 - 0.15 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(45)), 0.25 / Animation_Speed)
  1106. end
  1107. for i=0, 1.5, 0.1 / Animation_Speed do
  1108. Swait()
  1109. CreateSwirl(VT(1,1,1),15,blade.CFrame,true,4,"Royal purple",VT(0.5,0.5,0.5))
  1110. MagicSphere(VT(0.2,0.2,0.2),15,CF(blade.CFrame*CF(MRANDOM(-5,5),MRANDOM(-10,0),MRANDOM(-5,5)).p,blade.Position),"Royal purple",VT(0.001,0.001,1),0)
  1111. MagicSphere(VT(0.2,0.2,0.2),15,CF(blade.CFrame*CF(MRANDOM(-5,5),MRANDOM(-10,0),MRANDOM(-5,5)).p,blade.Position),"Royal purple",VT(0.001,0.001,0.6),0)
  1112. MagicSphere(VT(0.2,0.2,0.2),15,CF(blade.CFrame*CF(MRANDOM(-5,5),MRANDOM(-10,0),MRANDOM(-5,5)).p,blade.Position),"Really black",VT(0.001,0.001,1),0)
  1113. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1114. 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.25 / Animation_Speed)
  1115. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  1116. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  1117. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.15 * COS(SINE / 12), -0.1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(15)), 0.25 / Animation_Speed)
  1118. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1, -0.6 - 0.15 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(45)), 0.25 / Animation_Speed)
  1119. end
  1120. CreateSound("444667859", blade, 3, (math.random(6,8)/10))
  1121. coroutine.resume(coroutine.create(function()
  1122. local FRAME = CF(RootPart.Position,Mouse.Hit.p)
  1123. for i = 1, 75 do
  1124. Swait(5)
  1125. FRAME = FRAME * CF(0,0,-6)
  1126. CreateSwirl(VT(i,i,i),15,FRAME*ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))),true,1,"Really black",VT(-0.1,-0.1,-0.1),true)
  1127. CreateSwirl(VT(i,i,i),15,FRAME*ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))),true,1,"Royal purple",VT(-0.1,-0.1,-0.1),true)
  1128. AoEDamage(FRAME.p,i*1.5,4,10,0,false,0,1.2,false)
  1129. end
  1130. end))
  1131. for i=0, 0.4, 0.1 / Animation_Speed do
  1132. Swait()
  1133. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.5 / Animation_Speed)
  1134. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.5 / Animation_Speed)
  1135. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1136. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1137. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.15 * COS(SINE / 12), -0.1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(15)), 0.5 / Animation_Speed)
  1138. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1, -0.6 - 0.15 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(45)), 0.5 / Animation_Speed)
  1139. end
  1140. ATTACK = false
  1141. Rooted = false
  1142. end
  1143.  
  1144. function DarkageSurge()
  1145. ATTACK = true
  1146. Rooted = true
  1147. for i=0, 1, 0.1 / Animation_Speed do
  1148. Swait()
  1149. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), 0.5 / Animation_Speed)
  1150. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), 0.5 / Animation_Speed)
  1151. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(-70), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1152. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1153. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.15 * COS(SINE / 12), -0.1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(15)), 0.5 / Animation_Speed)
  1154. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1, -0.6 - 0.15 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(45)), 0.5 / Animation_Speed)
  1155. end
  1156. for i=0, 3, 0.1 / Animation_Speed do
  1157. Swait()
  1158. MagicSphere(VT(0.2,0.2,0.2),15,CF(blade.CFrame*CF(MRANDOM(-5,5),MRANDOM(-10,0),MRANDOM(-5,5)).p,blade.Position),"Royal purple",VT(0.001,0.001,1),0)
  1159. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), 0.5 / Animation_Speed)
  1160. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), 0.5 / Animation_Speed)
  1161. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(-70), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1162. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1163. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.15 * COS(SINE / 12), -0.1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(15)), 0.5 / Animation_Speed)
  1164. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1, -0.6 - 0.15 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(45)), 0.5 / Animation_Speed)
  1165. end
  1166. coroutine.resume(coroutine.create(function()
  1167. local SHURIKEN = CreatePart(3, Effects, "Marble", 0, 0.8, "Royal purple", "Shuriken", VT(0.5,0.05,0.5))
  1168. local MESH = CreateMesh("SpecialMesh", SHURIKEN, "FileMesh", "340607397", "", VT(0.35,0.35,0.35), VT(-0.015, 0, -0.05))
  1169. SHURIKEN.CFrame = RootPart.CFrame*CF(0,-5,0)
  1170. SHURIKEN.Parent = Effects
  1171. MESH.Scale = MESH.Scale * 50
  1172. MESH.Offset = MESH.Offset * 50
  1173. SHURIKEN.Size = SHURIKEN.Size * 50
  1174. CreateSound("971126018", SHURIKEN, 7, 0.6)
  1175. for i = 1, 85 do
  1176. Swait()
  1177. AoEDamage(SHURIKEN.Position,SHURIKEN.Size.X/1.5,1,1,0,false,3,1.2,false)
  1178. local FRAME = CF(VT(SHURIKEN.Position.X+MRANDOM(-SHURIKEN.Size.X/2,SHURIKEN.Size.X/2),SHURIKEN.Position.Y,SHURIKEN.Position.Z+MRANDOM(-SHURIKEN.Size.X/2,SHURIKEN.Size.X/2)))
  1179. MagicSphere(VT(0.6,0.6,0.6),15,FRAME,"Royal purple",VT(SHURIKEN.Size.Y/4,SHURIKEN.Size.Y,SHURIKEN.Size.Y/4),0)
  1180. MagicSphere(VT(0.2,0.2,0.2),15,FRAME,"Really black",VT(SHURIKEN.Size.Y/4,SHURIKEN.Size.Y,SHURIKEN.Size.Y/4),0)
  1181. MagicSphere(VT(0.6,0.6,0.6),15,CF(SHURIKEN.Position),"Royal purple",VT(SHURIKEN.Size.Y/4,SHURIKEN.Size.Y*2,SHURIKEN.Size.Y/4),0)
  1182. MagicSphere(VT(0.2,0.2,0.2),15,CF(SHURIKEN.Position),"Really black",VT(SHURIKEN.Size.Y/4,SHURIKEN.Size.Y*2,SHURIKEN.Size.Y/4),0)
  1183. MESH.Scale = MESH.Scale * 1.01
  1184. MESH.Offset = MESH.Offset * 1.01
  1185. SHURIKEN.Size = SHURIKEN.Size * 1.01
  1186. Trail(SHURIKEN)
  1187. SHURIKEN.CFrame = SHURIKEN.CFrame * ANGLES(RAD(0),RAD(i),RAD(0))
  1188. end
  1189. for i = 1, 50 do
  1190. Swait()
  1191. MESH.Scale = MESH.Scale * 0.9
  1192. MESH.Offset = MESH.Offset * 0.9
  1193. SHURIKEN.Size = SHURIKEN.Size * 0.9
  1194. end
  1195. SHURIKEN:remove()
  1196. end))
  1197. ATTACK = false
  1198. Rooted = false
  1199. end
  1200.  
  1201. function DarkageBlades()
  1202. ATTACK = true
  1203. Rooted = true
  1204. local MESHID = "86297695"
  1205. local TEXTURE = "86290910"
  1206. for i=0, 1, 0.1 / Animation_Speed do
  1207. Swait()
  1208. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), 0.5 / Animation_Speed)
  1209. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), 0.5 / Animation_Speed)
  1210. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(-70), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1211. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1212. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.15 * COS(SINE / 12), -0.1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(15)), 0.5 / Animation_Speed)
  1213. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1, -0.6 - 0.15 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(45)), 0.5 / Animation_Speed)
  1214. end
  1215. local BLADEHOLDER = IT("Folder",Effects)
  1216. BLADEHOLDER.Name = "Blades"
  1217. local BLADE1 = CreatePart(3, BLADEHOLDER, "Marble", 0, 1, "Royal purple", "Katana", VT(0.5,4,0.5))
  1218. local MESH = CreateMesh("SpecialMesh", BLADE1, "FileMesh", MESHID, TEXTURE, VT(1,1,1), VT(0,0,0))
  1219. BLADE1.CanCollide = true
  1220. BLADE1.CFrame = RootPart.CFrame * CF(-5,3,0)*ANGLES(RAD(180),RAD(0),RAD(0))
  1221. local BLADE2 = CreatePart(3, BLADEHOLDER, "Marble", 0, 1, "Royal purple", "Katana", VT(0.5,4,0.5))
  1222. local MESH = CreateMesh("SpecialMesh", BLADE2, "FileMesh", MESHID, TEXTURE, VT(1,1,1), VT(0,0,0))
  1223. BLADE2.CanCollide = true
  1224. BLADE2.CFrame = RootPart.CFrame * CF(5,0,0)*ANGLES(RAD(180),RAD(0),RAD(180))
  1225. local BLADE3 = CreatePart(3, BLADEHOLDER, "Marble", 0, 1, "Royal purple", "Katana", VT(0.5,4,0.5))
  1226. local MESH = CreateMesh("SpecialMesh", BLADE3, "FileMesh", MESHID, TEXTURE, VT(1,1,1), VT(0,0,0))
  1227. BLADE3.CanCollide = true
  1228. BLADE3.CFrame = RootPart.CFrame * CF(-5,-3,0)*ANGLES(RAD(180),RAD(0),RAD(0))
  1229. coroutine.resume(coroutine.create(function()
  1230. for i = 1, 100 do
  1231. Swait()
  1232. BLADE1.Transparency = BLADE1.Transparency - 0.01
  1233. BLADE2.Transparency = BLADE1.Transparency
  1234. BLADE3.Transparency = BLADE1.Transparency
  1235. end
  1236. end))
  1237. for i=0, 3, 0.1 / Animation_Speed do
  1238. Swait()
  1239. BLADE1.CFrame = RootPart.CFrame * CF(-5,3,0)*ANGLES(RAD(180),RAD(0),RAD(0))
  1240. BLADE2.CFrame = RootPart.CFrame * CF(5,0,0)*ANGLES(RAD(180),RAD(0),RAD(180))
  1241. BLADE3.CFrame = RootPart.CFrame * CF(-5,-3,0)*ANGLES(RAD(180),RAD(0),RAD(0))
  1242. MagicSphere(VT(0.2,0.2,0.2),15,CF(blade.CFrame*CF(MRANDOM(-5,5),MRANDOM(-10,0),MRANDOM(-5,5)).p,blade.Position),"Royal purple",VT(0.001,0.001,1),0)
  1243. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), 0.5 / Animation_Speed)
  1244. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), 0.5 / Animation_Speed)
  1245. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(-70), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1246. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1247. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.15 * COS(SINE / 12), -0.1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(15)), 0.5 / Animation_Speed)
  1248. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1, -0.6 - 0.15 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(45)), 0.5 / Animation_Speed)
  1249. end
  1250. for i= 1, 15 do
  1251. Swait()
  1252. Trail(BLADE1)
  1253. Trail(BLADE2)
  1254. Trail(BLADE3)
  1255. BLADE1.CFrame = BLADE1.CFrame * CF(0,0,2)*ANGLES(RAD(0),RAD(-0.4),RAD(0))
  1256. BLADE2.CFrame = BLADE2.CFrame * CF(0,0,2)*ANGLES(RAD(0),RAD(-0.4),RAD(0))
  1257. BLADE3.CFrame = BLADE3.CFrame * CF(0,0,2)*ANGLES(RAD(0),RAD(-0.4),RAD(0))
  1258. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1259. 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)
  1260. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1261. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1262. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.15 * COS(SINE / 12), -0.1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(15)), 0.5 / Animation_Speed)
  1263. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1, -0.6 - 0.15 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(45)), 0.5 / Animation_Speed)
  1264. end
  1265. coroutine.resume(coroutine.create(function()
  1266. for i = 1, 25 do
  1267. CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], BLADE1, 2, MRANDOM(8,12)/10)
  1268. CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], BLADE2, 2, MRANDOM(8,12)/10)
  1269. CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], BLADE3, 2, MRANDOM(8,12)/10)
  1270. AoEDamage(BLADE1.Position,15,15,25,2,false,3,1.2,false)
  1271. AoEDamage(BLADE2.Position,15,15,25,2,false,3,1.2,false)
  1272. AoEDamage(BLADE3.Position,15,15,25,2,false,3,1.2,false)
  1273. CreateSwirl(VT(10,10,10),15,BLADE1.CFrame*ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))),true,1,"Pearl",VT(-0.1,-0.1,-0.1),false)
  1274. CreateSwirl(VT(10,10,10),15,BLADE2.CFrame*ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))),true,1,"Pearl",VT(-0.1,-0.1,-0.1),false)
  1275. CreateSwirl(VT(10,10,10),15,BLADE3.CFrame*ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))),true,1,"Pearl",VT(-0.1,-0.1,-0.1),false)
  1276. for i= 1, 5 do
  1277. BLADE1.CFrame = BLADE1.CFrame * ANGLES(RAD(MRANDOM(-150,150)),RAD(MRANDOM(-150,150)),RAD(MRANDOM(-150,150)))
  1278. BLADE2.CFrame = BLADE2.CFrame * ANGLES(RAD(MRANDOM(-150,150)),RAD(MRANDOM(-150,150)),RAD(MRANDOM(-150,150)))
  1279. BLADE3.CFrame = BLADE3.CFrame * ANGLES(RAD(MRANDOM(-150,150)),RAD(MRANDOM(-150,150)),RAD(MRANDOM(-150,150)))
  1280. end
  1281. Swait()
  1282. end
  1283. coroutine.resume(coroutine.create(function()
  1284. for i = 1, 100 do
  1285. Swait()
  1286. BLADE1.Transparency = BLADE1.Transparency + 0.01
  1287. BLADE2.Transparency = BLADE1.Transparency
  1288. BLADE3.Transparency = BLADE1.Transparency
  1289. end
  1290. end))
  1291. end))
  1292. for i=0, 0.4, 0.1 / Animation_Speed do
  1293. Swait()
  1294. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.5 / Animation_Speed)
  1295. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.5 / Animation_Speed)
  1296. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1297. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1298. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.15 * COS(SINE / 12), -0.1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(15)), 0.5 / Animation_Speed)
  1299. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1, -0.6 - 0.15 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(45)), 0.5 / Animation_Speed)
  1300. end
  1301. ATTACK = false
  1302. Rooted = false
  1303. end
  1304.  
  1305. function RageOfDarkage()
  1306. ATTACK = true
  1307. Rooted = true
  1308. for i=0, 4, 0.1 / Animation_Speed do
  1309. Swait()
  1310. MagicSphere(VT(0.2,0.2,0.2),15,CF(blade.CFrame*CF(MRANDOM(-5,5),MRANDOM(-10,0),MRANDOM(-5,5)).p,blade.Position),"Royal purple",VT(0.001,0.001,1),0)
  1311. MagicSphere(VT(0.2,0.2,0.2),15,CF(blade.CFrame*CF(MRANDOM(-5,5),MRANDOM(-10,0),MRANDOM(-5,5)).p,blade.Position),"Royal purple",VT(0.001,0.001,0.6),0)
  1312. MagicSphere(VT(0.2,0.2,0.2),15,CF(blade.CFrame*CF(MRANDOM(-5,5),MRANDOM(-10,0),MRANDOM(-5,5)).p,blade.Position),"Really black",VT(0.001,0.001,1),0)
  1313. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1314. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1315. --PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.24,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1316. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.5) * ANGLES(RAD(35), RAD(45), RAD(-25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1317. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.75, -0.5) * ANGLES(RAD(35), RAD(-45), RAD(25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1318. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1319. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1320. end
  1321. CreateSound("971126018", Torso, 7, 0.6)
  1322. sick:Stop()
  1323. MagicSphere(VT(0.6,0.6,0.6),155,CF(Torso.Position),"Royal purple",VT(0.4,0.4,0.4),0)
  1324. MagicSphere(VT(0.2,0.2,0.2),155,CF(Torso.Position),"Really black",VT(0.4,0.4,0.4),0)
  1325. for i=0, 4, 0.1 / Animation_Speed do
  1326. Swait()
  1327. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1328. 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)
  1329. --PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.27,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1330. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75,0) * ANGLES(RAD(0), RAD(0), RAD(85)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1331. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1332. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(-15)), 0.5 / Animation_Speed)
  1333. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(15)), 0.5 / Animation_Speed)
  1334. end
  1335. VALUE2 = "Rage"
  1336. SKILL1TEXT.Text = "[Z] Darkage Storm"
  1337. SKILL2TEXT.Text = "[B] Darkage Blades"
  1338. SKILL4TEXT.Text = "[V] Cool down"
  1339. sick2:Play()
  1340. ATTACK = false
  1341. Rooted = false
  1342. end
  1343.  
  1344. --//=================================\\
  1345. --|| ASSIGN THINGS TO KEYS
  1346. --\\=================================//
  1347.  
  1348. function MouseDown(Mouse)
  1349. if ATTACK == false then
  1350. end
  1351. end
  1352.  
  1353. function MouseUp(Mouse)
  1354. HOLD = false
  1355. end
  1356.  
  1357. function KeyDown(Key)
  1358. KEYHOLD = true
  1359. if Key == "z" and ATTACK == false then
  1360. if VALUE2 == "Normal" then
  1361. DarkageShuriken()
  1362. elseif VALUE2 == "Rage" then
  1363. DarkageStorm()
  1364. end
  1365. end
  1366.  
  1367. if Key == "b" and ATTACK == false then
  1368. if VALUE2 == "Normal" then
  1369. DarkageSurge()
  1370. elseif VALUE2 == "Rage" then
  1371. DarkageBlades()
  1372. end
  1373. end
  1374.  
  1375. if Key == "c" and ATTACK == false then
  1376. if VALUE1 == false then
  1377. Vanish()
  1378. VALUE1 = true
  1379. elseif VALUE1 == true then
  1380. Appear()
  1381. VALUE1 = false
  1382. end
  1383. end
  1384.  
  1385. if Key == "v" and ATTACK == false and VALUE1 == false then
  1386. if VALUE2 == "Normal" then
  1387. RageOfDarkage()
  1388. elseif VALUE2 == "Rage" then
  1389. VALUE2 = "Normal"
  1390. sick:Play()
  1391. sick2:Stop()
  1392. SKILL1TEXT.Text = "[Z] Darkage Shurikens"
  1393. SKILL2TEXT.Text = "[B] Darkage Surge"
  1394. SKILL4TEXT.Text = "[V] Rage of Darkage"
  1395. end
  1396. end
  1397.  
  1398. if Key == "x" and ATTACK == false then
  1399. end
  1400. end
  1401.  
  1402. function KeyUp(Key)
  1403. KEYHOLD = false
  1404. end
  1405.  
  1406. Mouse.Button1Down:connect(function(NEWKEY)
  1407. MouseDown(NEWKEY)
  1408. end)
  1409. Mouse.Button1Up:connect(function(NEWKEY)
  1410. MouseUp(NEWKEY)
  1411. end)
  1412. Mouse.KeyDown:connect(function(NEWKEY)
  1413. KeyDown(NEWKEY)
  1414. end)
  1415. Mouse.KeyUp:connect(function(NEWKEY)
  1416. KeyUp(NEWKEY)
  1417. end)
  1418.  
  1419. --//=================================\\
  1420. --\\=================================//
  1421.  
  1422.  
  1423. function unanchor()
  1424. if UNANCHOR == true then
  1425. g = Character:GetChildren()
  1426. for i = 1, #g do
  1427. if g[i].ClassName == "Part" then
  1428. g[i].Anchored = false
  1429. end
  1430. end
  1431. end
  1432. end
  1433.  
  1434.  
  1435. --//=================================\\
  1436. --|| WRAP THE WHOLE SCRIPT UP
  1437. --\\=================================//
  1438.  
  1439. Humanoid.Changed:connect(function(Jump)
  1440. if Jump == "Jump" and (Disable_Jump == true) then
  1441. Humanoid.Jump = false
  1442. end
  1443. end)
  1444.  
  1445. Humanoid.HipHeight = 2
  1446. Speed = 45
  1447. local FF = IT("ForceField",Character)
  1448. FF.Visible = false
  1449.  
  1450. while true do
  1451. Swait()
  1452. ANIMATE.Parent = nil
  1453. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1454. IDLEANIMATION:Play()
  1455. SINE = SINE + CHANGE
  1456. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1457. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1458. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1459. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -3, 0))).lookVector, 7 * Player_Size, Character)
  1460. local WALKSPEEDVALUE = 3
  1461. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1462. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1463. --Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * 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)
  1464. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1465. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1466. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1467. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1468. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1469. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1470. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1471. end
  1472. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1473. ANIM = "Jump"
  1474. if ATTACK == false then
  1475. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1476. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1477. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1478. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1479. 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)
  1480. 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)
  1481. end
  1482. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1483. ANIM = "Fall"
  1484. if ATTACK == false then
  1485. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1486. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1487. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1488. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1489. 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)
  1490. 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)
  1491. end
  1492. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1493. ANIM = "Idle"
  1494. if ATTACK == false then
  1495. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-25)), 0.15 / Animation_Speed)
  1496. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 0.15 / Animation_Speed)
  1497. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.8) * ANGLES(RAD(90), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1498. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1499. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.15 * COS(SINE / 12), -0.1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(15)), 0.15 / Animation_Speed)
  1500. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1, -0.6 - 0.15 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(45)), 0.15 / Animation_Speed)
  1501. end
  1502. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1503. ANIM = "Walk"
  1504. WALK = WALK + 1 / Animation_Speed
  1505. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1506. WALK = 0
  1507. if WALKINGANIM == true then
  1508. WALKINGANIM = false
  1509. elseif WALKINGANIM == false then
  1510. WALKINGANIM = true
  1511. end
  1512. end
  1513. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1514. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1515. if ATTACK == false then
  1516. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1517. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-10 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1518. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.8) * ANGLES(RAD(90), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1519. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1520. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.15 * COS(SINE / 12), -0.1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(-15)), 0.15 / Animation_Speed)
  1521. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1, -0.6 - 0.15 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(45)), 0.15 / Animation_Speed)
  1522. end
  1523. end
  1524. unanchor()
  1525. Humanoid.MaxHealth = "inf"
  1526. Humanoid.Health = "inf"
  1527. if Rooted == false then
  1528. Disable_Jump = false
  1529. Humanoid.WalkSpeed = Speed
  1530. elseif Rooted == true then
  1531. Disable_Jump = true
  1532. Humanoid.WalkSpeed = 0
  1533. end
  1534. local MATHS = {"0","1"}
  1535. Humanoid.Name = MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]
  1536. Humanoid.PlatformStand = false
  1537. if Head:FindFirstChildOfClass("Sound") then
  1538. Head:FindFirstChildOfClass("Sound"):remove()
  1539. end
  1540. armweld.C1 = Clerp(armweld.C1, CF(0, 0, 0) * ANGLES(RAD(0), RAD(SINE*10), RAD(0)), 0.15 / Animation_Speed)
  1541. if VALUE1 == true then
  1542. local HOLDER = IT("Folder",Cam)
  1543. HOLDER.Name = "Trail"
  1544. Debris:AddItem(HOLDER,0.05)
  1545. g = Character:GetChildren()
  1546. for i = 1, #g do
  1547. if g[i].ClassName == "Part" and g[i].Name ~= "HumanoidRootPart" then
  1548. local shadow = g[i]:Clone()
  1549. shadow.CFrame = g[i].CFrame
  1550. shadow.Transparency = 0.9
  1551. shadow.Color = C3(0,0,0)
  1552. shadow:ClearAllChildren()
  1553. if g[i].Name == "Head" then
  1554. local MESH = Head.Mesh:Clone()
  1555. MESH.Parent = shadow
  1556. end
  1557. shadow.Anchored = true
  1558. shadow.CanCollide = false
  1559. shadow.Material = "SmoothPlastic"
  1560. shadow.Parent = HOLDER
  1561. end
  1562. end
  1563. g = Weapon:GetChildren()
  1564. for i = 1, #g do
  1565. if g[i].ClassName == "Part" then
  1566. local shadow = g[i]:Clone()
  1567. shadow.CFrame = g[i].CFrame
  1568. shadow.Transparency = 0.9
  1569. shadow.Color = C3(0,0,0)
  1570. shadow:ClearAllChildren()
  1571. if g[i]:FindFirstChild("Mesh") then
  1572. local CLONE = g[i].Mesh:Clone()
  1573. CLONE.Parent = shadow
  1574. end
  1575. shadow.Parent = HOLDER
  1576. shadow.Anchored = true
  1577. shadow.CanCollide = false
  1578. shadow.Material = "SmoothPlastic"
  1579. end
  1580. end
  1581. else
  1582. MagicBlock(0.1,10,blade.CFrame*CF(MRANDOM(-20,20)/100,0,MRANDOM(-20,20)/100),"Royal purple",VT(0.1,0.1,0.1))
  1583. end
  1584. if VALUE2 == "Rage" and VALUE1 == false then
  1585. local FRAME = CF(VT(Torso.Position.X+MRANDOM(-15,15),Torso.Position.Y,Torso.Position.Z+MRANDOM(-15,15)))
  1586. AoEDamage(FRAME.p,4,3,6,0,false,3,1.2,false)
  1587. AoEDamage(blade.Position,5,35,35,25,false,3,1.2,false)
  1588. MagicSphere(VT(0.6,0.6,0.6),15,FRAME,"Royal purple",VT(0.1,6,0.1),0)
  1589. MagicSphere(VT(0.2,0.2,0.2),15,FRAME,"Really black",VT(0.1,6,0.1),0)
  1590. MagicSphere(VT(0.2,0.2,0.2),15,CF(blade.CFrame*CF(MRANDOM(-5,5),MRANDOM(-10,0),MRANDOM(-5,5)).p,blade.Position),"Royal purple",VT(0.001,0.001,0.6),0)
  1591. MagicSphere(VT(0.2,0.2,0.2),15,CF(blade.CFrame*CF(MRANDOM(-5,5),MRANDOM(-10,0),MRANDOM(-5,5)).p,blade.Position),"Really black",VT(0.001,0.001,1),0)
  1592. end
  1593. end
  1594.  
  1595. --//=================================\\
  1596. --\\=================================//
  1597.  
  1598.  
  1599.  
  1600.  
  1601.  
  1602. --//====================================================\\--
  1603. --|| END OF SCRIPT
  1604. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement