memberhero

fe test

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