Advertisement
Mz_TH_edit

Untitled

May 28th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. --//====================================================\\--
  3. --|| CREATED BY SHACKLUSTER
  4. --\\====================================================//--
  5.  
  6.  
  7.  
  8. wait(0.2)
  9.  
  10.  
  11.  
  12. Player = game:GetService("Players").LocalPlayer
  13. PlayerGui = Player.PlayerGui
  14. Cam = workspace.CurrentCamera
  15. Backpack = Player.Backpack
  16. Character = Player.Character
  17. Humanoid = Character.Humanoid
  18. Mouse = Player:GetMouse()
  19. RootPart = Character["HumanoidRootPart"]
  20. Torso = Character["Torso"]
  21. Head = Character["Head"]
  22. RightArm = Character["Right Arm"]
  23. LeftArm = Character["Left Arm"]
  24. RightLeg = Character["Right Leg"]
  25. LeftLeg = Character["Left Leg"]
  26. RootJoint = RootPart["RootJoint"]
  27. Neck = Torso["Neck"]
  28. RightShoulder = Torso["Right Shoulder"]
  29. LeftShoulder = Torso["Left Shoulder"]
  30. RightHip = Torso["Right Hip"]
  31. LeftHip = Torso["Left Hip"]
  32. local sick = Instance.new("Sound",Character)
  33. sick.SoundId = "rbxassetid://342929664"
  34. sick.Looped = true
  35. sick.Pitch = 1
  36. sick.Volume = 1
  37. sick:Play()
  38. Humanoid.DisplayDistanceType = "None"
  39.  
  40. local naeeym2 = Instance.new("BillboardGui",Character)
  41. naeeym2.AlwaysOnTop = true
  42. naeeym2.Size = UDim2.new(5,35,2,35)
  43. naeeym2.StudsOffset = Vector3.new(0,1,0)
  44. naeeym2.Adornee = Character.Head
  45. naeeym2.Name = "Name"
  46. naeeym2.PlayerToHideFrom = Player
  47. local tecks2 = Instance.new("TextLabel",naeeym2)
  48. tecks2.BackgroundTransparency = 1
  49. tecks2.TextScaled = true
  50. tecks2.BorderSizePixel = 0
  51. tecks2.Text = "Duosis"
  52. tecks2.Font = "SciFi"
  53. tecks2.TextSize = 30
  54. tecks2.TextStrokeTransparency = 0
  55. tecks2.TextColor3 = Color3.new(0,0,0)
  56. tecks2.TextStrokeColor3 = Color3.new(1,1,1)
  57. tecks2.Size = UDim2.new(1,0,0.5,0)
  58. tecks2.Parent = naeeym2
  59.  
  60.  
  61. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  62. local NEWMESH = IT(MESH)
  63. if MESH == "SpecialMesh" then
  64. NEWMESH.MeshType = MESHTYPE
  65. if MESHID ~= "nil" and MESHID ~= "" then
  66. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  67. end
  68. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  69. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  70. end
  71. end
  72. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  73. NEWMESH.Scale = SCALE
  74. NEWMESH.Parent = PARENT
  75. return NEWMESH
  76. end
  77.  
  78. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  79. local NEWPART = IT("Part")
  80. NEWPART.formFactor = FORMFACTOR
  81. NEWPART.Reflectance = REFLECTANCE
  82. NEWPART.Transparency = TRANSPARENCY
  83. NEWPART.CanCollide = false
  84. NEWPART.Locked = true
  85. NEWPART.Anchored = true
  86. if ANCHOR == false then
  87. NEWPART.Anchored = false
  88. end
  89. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  90. NEWPART.Name = NAME
  91. NEWPART.Size = SIZE
  92. NEWPART.Position = Torso.Position
  93. NEWPART.Material = MATERIAL
  94. NEWPART:BreakJoints()
  95. NEWPART.Parent = PARENT
  96. return NEWPART
  97. end
  98.  
  99. --//=================================\\
  100. --|| CUSTOMIZATION
  101. --\\=================================//
  102.  
  103. Player_Size = 1 --Size of the player.
  104. Animation_Speed = 3
  105. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  106.  
  107. local Speed = 16
  108. local Effects2 = {}
  109.  
  110. --//=================================\\
  111. --|| END OF CUSTOMIZATION
  112. --\\=================================//
  113.  
  114. local function weldBetween(a, b)
  115. local weldd = Instance.new("ManualWeld")
  116. weldd.Part0 = a
  117. weldd.Part1 = b
  118. weldd.C0 = CFrame.new()
  119. weldd.C1 = b.CFrame:inverse() * a.CFrame
  120. weldd.Parent = a
  121. return weldd
  122. end
  123.  
  124. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  125. local acs = Instance.new("Part")
  126. acs.CanCollide = false
  127. acs.Anchored = false
  128. acs.Size = Vector3.new(0,0,0)
  129. acs.CFrame = attachmentpart.CFrame
  130. acs.Parent = Character
  131. acs.BrickColor = color
  132. local meshs = Instance.new("SpecialMesh")
  133. meshs.MeshId = mesh
  134. meshs.TextureId = texture
  135. meshs.Parent = acs
  136. meshs.Scale = scale
  137. meshs.Offset = offset
  138. weldBetween(attachmentpart,acs)
  139. end
  140.  
  141. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  142. if TYPE == "Gem" then
  143. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  144. acs.Anchored = false
  145. acs.CanCollide = false
  146. acs.CFrame = PART.CFrame
  147. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  148. weldBetween(PART,acs)
  149. elseif TYPE == "Skull" then
  150. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  151. acs.Anchored = false
  152. acs.CanCollide = false
  153. acs.CFrame = PART.CFrame
  154. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  155. weldBetween(PART,acs)
  156. elseif TYPE == "Eye" then
  157. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  158. acs.Anchored = false
  159. acs.CanCollide = false
  160. acs.CFrame = PART.CFrame
  161. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  162. weldBetween(PART,acs)
  163. end
  164. end
  165.  
  166. --//=================================\\
  167. --|| USEFUL VALUES
  168. --\\=================================//
  169.  
  170. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  171. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  172. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  173. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  174. local CHANGEDEFENSE = 0
  175. local CHANGEDAMAGE = 0
  176. local CHANGEMOVEMENT = 0
  177. local ANIM = "Idle"
  178. local ATTACK = false
  179. local EQUIPPED = false
  180. local HOLD = false
  181. local COMBO = 1
  182. local Rooted = false
  183. local SINE = 0
  184. local KEYHOLD = false
  185. local CHANGE = 2 / Animation_Speed
  186. local WALKINGANIM = false
  187. local WALK = 0
  188. local VALUE1 = false
  189. local VALUE2 = false
  190. local ROBLOXIDLEANIMATION = IT("Animation")
  191. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  192. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  193. --ROBLOXIDLEANIMATION.Parent = Humanoid
  194. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  195. WEAPONGUI.Name = "Weapon GUI"
  196. local Weapon = IT("Model")
  197. Weapon.Name = "Adds"
  198. local Effects = IT("Folder", Weapon)
  199. Effects.Name = "Effects"
  200. local ANIMATOR = Humanoid.Animator
  201. local ANIMATE = Character.Animate
  202. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  203. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  204. local LIGHTHITSOUNDS = {"1177780949","1177781153","1177784554"}
  205. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  206. local UNANCHOR = true
  207.  
  208. local SKILLTEXTCOLOR = C3(0,0,0)
  209.  
  210. --//=================================\\
  211. --\\=================================//
  212.  
  213.  
  214. --//=================================\\
  215. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  216. --\\=================================//
  217.  
  218. ArtificialHB = Instance.new("BindableEvent", script)
  219. ArtificialHB.Name = "ArtificialHB"
  220.  
  221. script:WaitForChild("ArtificialHB")
  222.  
  223. frame = Frame_Speed
  224. tf = 0
  225. allowframeloss = false
  226. tossremainder = false
  227. lastframe = tick()
  228. script.ArtificialHB:Fire()
  229.  
  230. game:GetService("RunService").Heartbeat:connect(function(s, p)
  231. tf = tf + s
  232. if tf >= frame then
  233. if allowframeloss then
  234. script.ArtificialHB:Fire()
  235. lastframe = tick()
  236. else
  237. for i = 1, math.floor(tf / frame) do
  238. script.ArtificialHB:Fire()
  239. end
  240. lastframe = tick()
  241. end
  242. if tossremainder then
  243. tf = 0
  244. else
  245. tf = tf - frame * math.floor(tf / frame)
  246. end
  247. end
  248. end)
  249.  
  250. --//=================================\\
  251. --\\=================================//
  252.  
  253.  
  254.  
  255.  
  256.  
  257. --//=================================\\
  258. --|| SOME FUNCTIONS
  259. --\\=================================//
  260.  
  261. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  262. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  263. end
  264.  
  265. function PositiveAngle(NUMBER)
  266. if NUMBER >= 0 then
  267. NUMBER = 0
  268. end
  269. return NUMBER
  270. end
  271.  
  272. function NegativeAngle(NUMBER)
  273. if NUMBER <= 0 then
  274. NUMBER = 0
  275. end
  276. return NUMBER
  277. end
  278.  
  279. function Swait(NUMBER)
  280. if NUMBER == 0 or NUMBER == nil then
  281. ArtificialHB.Event:wait()
  282. else
  283. for i = 1, NUMBER do
  284. ArtificialHB.Event:wait()
  285. end
  286. end
  287. end
  288.  
  289. function QuaternionFromCFrame(cf)
  290. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  291. local trace = m00 + m11 + m22
  292. if trace > 0 then
  293. local s = math.sqrt(1 + trace)
  294. local recip = 0.5 / s
  295. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  296. else
  297. local i = 0
  298. if m11 > m00 then
  299. i = 1
  300. end
  301. if m22 > (i == 0 and m00 or m11) then
  302. i = 2
  303. end
  304. if i == 0 then
  305. local s = math.sqrt(m00 - m11 - m22 + 1)
  306. local recip = 0.5 / s
  307. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  308. elseif i == 1 then
  309. local s = math.sqrt(m11 - m22 - m00 + 1)
  310. local recip = 0.5 / s
  311. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  312. elseif i == 2 then
  313. local s = math.sqrt(m22 - m00 - m11 + 1)
  314. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  315. end
  316. end
  317. end
  318.  
  319. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  320. local xs, ys, zs = x + x, y + y, z + z
  321. local wx, wy, wz = w * xs, w * ys, w * zs
  322. local xx = x * xs
  323. local xy = x * ys
  324. local xz = x * zs
  325. local yy = y * ys
  326. local yz = y * zs
  327. local zz = z * zs
  328. 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))
  329. end
  330.  
  331. function QuaternionSlerp(a, b, t)
  332. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  333. local startInterp, finishInterp;
  334. if cosTheta >= 0.0001 then
  335. if (1 - cosTheta) > 0.0001 then
  336. local theta = ACOS(cosTheta)
  337. local invSinTheta = 1 / SIN(theta)
  338. startInterp = SIN((1 - t) * theta) * invSinTheta
  339. finishInterp = SIN(t * theta) * invSinTheta
  340. else
  341. startInterp = 1 - t
  342. finishInterp = t
  343. end
  344. else
  345. if (1 + cosTheta) > 0.0001 then
  346. local theta = ACOS(-cosTheta)
  347. local invSinTheta = 1 / SIN(theta)
  348. startInterp = SIN((t - 1) * theta) * invSinTheta
  349. finishInterp = SIN(t * theta) * invSinTheta
  350. else
  351. startInterp = t - 1
  352. finishInterp = t
  353. end
  354. end
  355. 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
  356. end
  357.  
  358. function Clerp(a, b, t)
  359. local qa = {QuaternionFromCFrame(a)}
  360. local qb = {QuaternionFromCFrame(b)}
  361. local ax, ay, az = a.x, a.y, a.z
  362. local bx, by, bz = b.x, b.y, b.z
  363. local _t = 1 - t
  364. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  365. end
  366.  
  367. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  368. local frame = IT("Frame")
  369. frame.BackgroundTransparency = TRANSPARENCY
  370. frame.BorderSizePixel = BORDERSIZEPIXEL
  371. frame.Position = POSITION
  372. frame.Size = SIZE
  373. frame.BackgroundColor3 = COLOR
  374. frame.BorderColor3 = BORDERCOLOR
  375. frame.Name = NAME
  376. frame.Parent = PARENT
  377. return frame
  378. end
  379.  
  380. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  381. local label = IT("TextLabel")
  382. label.BackgroundTransparency = 1
  383. label.Size = UD2(1, 0, 1, 0)
  384. label.Position = UD2(0, 0, 0, 0)
  385. label.TextColor3 = TEXTCOLOR
  386. label.TextStrokeTransparency = STROKETRANSPARENCY
  387. label.TextTransparency = TRANSPARENCY
  388. label.FontSize = TEXTFONTSIZE
  389. label.Font = TEXTFONT
  390. label.BorderSizePixel = BORDERSIZEPIXEL
  391. label.TextScaled = false
  392. label.Text = TEXT
  393. label.Name = NAME
  394. label.Parent = PARENT
  395. return label
  396. end
  397.  
  398. function NoOutlines(PART)
  399. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  400. end
  401.  
  402.  
  403. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  404. local NEWWELD = IT(TYPE)
  405. NEWWELD.Part0 = PART0
  406. NEWWELD.Part1 = PART1
  407. NEWWELD.C0 = C0
  408. NEWWELD.C1 = C1
  409. NEWWELD.Parent = PARENT
  410. return NEWWELD
  411. end
  412.  
  413. function CreateSound(ID, PARENT, VOLUME, PITCH)
  414. local NEWSOUND = nil
  415. coroutine.resume(coroutine.create(function()
  416. NEWSOUND = IT("Sound", PARENT)
  417. NEWSOUND.Volume = VOLUME
  418. NEWSOUND.Pitch = PITCH
  419. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  420. Swait()
  421. NEWSOUND:play()
  422. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  423. end))
  424. return NEWSOUND
  425. end
  426.  
  427. function CFrameFromTopBack(at, top, back)
  428. local right = top:Cross(back)
  429. 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)
  430. end
  431.  
  432. function CreateCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  433. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  434. local mesh = IT("SpecialMesh",wave)
  435. mesh.MeshType = "FileMesh"
  436. mesh.MeshId = "http://www.roblox.com/asset/?id=1078075"
  437. mesh.Scale = SIZE
  438. mesh.Offset = VT(0,0,-SIZE.X/8)
  439. wave.CFrame = CFRAME
  440. coroutine.resume(coroutine.create(function(PART)
  441. for i = 1, WAIT do
  442. Swait()
  443. mesh.Scale = mesh.Scale + GROW
  444. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  445. if DOESROT == true then
  446. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  447. end
  448. wave.Transparency = wave.Transparency + (0.5/WAIT)
  449. if wave.Transparency > 0.99 then
  450. wave:remove()
  451. end
  452. end
  453. end))
  454. end
  455.  
  456. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW,MATERIAL)
  457. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  458. local mesh = IT("SpecialMesh",wave)
  459. mesh.MeshType = "Sphere"
  460. mesh.Scale = SIZE
  461. mesh.Offset = VT(0,0,0)
  462. wave.CFrame = CFRAME
  463. coroutine.resume(coroutine.create(function(PART)
  464. for i = 1, WAIT do
  465. Swait()
  466. mesh.Scale = mesh.Scale + GROW
  467. wave.Transparency = wave.Transparency + (1/WAIT)
  468. if wave.Transparency > 0.99 then
  469. wave:remove()
  470. end
  471. end
  472. end))
  473. end
  474.  
  475. function MakeForm(PART,TYPE)
  476. if TYPE == "Cyl" then
  477. local MSH = IT("CylinderMesh",PART)
  478. elseif TYPE == "Ball" then
  479. local MSH = IT("SpecialMesh",PART)
  480. MSH.MeshType = "Sphere"
  481. elseif TYPE == "Wedge" then
  482. local MSH = IT("SpecialMesh",PART)
  483. MSH.MeshType = "Wedge"
  484. elseif TYPE == "Head" then
  485. local MSH = IT("SpecialMesh",PART)
  486. MSH.Scale = VT(1.25,1.25,1.25)
  487. end
  488. end
  489.  
  490. function CheckTableForString(Table, String)
  491. for i, v in pairs(Table) do
  492. if string.find(string.lower(String), string.lower(v)) then
  493. return true
  494. end
  495. end
  496. return false
  497. end
  498.  
  499. function CheckIntangible(Hit)
  500. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  501. if Hit and Hit.Parent then
  502. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  503. return true
  504. end
  505. end
  506. return false
  507. end
  508.  
  509. Debris = game:GetService("Debris")
  510.  
  511. function CreateGUICircle(TARGET)
  512. local GUI = Instance.new("BillboardGui",Character)
  513. GUI.Size = UDim2.new(15,0,15,0)
  514. GUI.Adornee = TARGET
  515. local GUI2 = IT("ImageLabel",GUI)
  516. GUI2.BackgroundTransparency = 1
  517. GUI2.BorderSizePixel = 0
  518. GUI2.Size = UDim2.new(1,0,0,0)
  519. GUI2.Position = UDim2.new(0,0,0.5,0)
  520. GUI2.SizeConstraint = "RelativeYY"
  521. GUI.AlwaysOnTop = true
  522. GUI2.Image = "http://www.roblox.com/asset/?id=74329608"
  523. return GUI,GUI2
  524. end
  525.  
  526. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  527. local Direction = CFrame.new(StartPos, Vec).lookVector
  528. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  529. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  530. if RayHit and CheckIntangible(RayHit) then
  531. if DelayIfHit then
  532. wait()
  533. end
  534. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  535. end
  536. return RayHit, RayPos, RayNormal
  537. end
  538.  
  539. function turnto(position)
  540. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  541. end
  542.  
  543. --//=================================\\
  544. --|| WEAPON CREATION
  545. --\\=================================//
  546.  
  547. local face = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Black side", VT(0.501,1.001,1.001),false)
  548. local weld = CreateWeldOrSnapOrMotor("Weld", face, Head, face, CF(0.25,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  549. local body = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Black side", VT(1.001,2.001,1.001),false)
  550. local weld = CreateWeldOrSnapOrMotor("Weld", body, Torso, body, CF(0.5,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  551. local body = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Black side", VT(1.001,2.001,1.001),false)
  552. local weld = CreateWeldOrSnapOrMotor("Weld", body, RightArm, body, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  553. local body = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Black side", VT(1.001,2.001,1.001),false)
  554. local weld = CreateWeldOrSnapOrMotor("Weld", body, RightLeg, body, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  555.  
  556.  
  557. for _, c in pairs(Weapon:GetChildren()) do
  558. if c.ClassName == "Part" then
  559. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  560. end
  561. end
  562.  
  563. Weapon.Parent = Character
  564.  
  565. Humanoid.Died:connect(function()
  566. ATTACK = true
  567. end)
  568.  
  569. 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")
  570. 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")
  571. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.23, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  572. local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  573. --local SKILL5FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.7, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  574.  
  575. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Light array", C3(1,1,1), 6, "Fantasy", 0, 2, 1, "Text 1")
  576. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Shadow field", C3(0,0,0), 7, "Antique", 0, 2, 1, "Text 2")
  577. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Oblivion", C3(1,1,1), 6, "Fantasy", 0, 2, 1, "Text 3")
  578. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Shadow eye", C3(0,0,0), 7, "Antique", 0, 2, 1, "Text 4")
  579. --local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Ability 5", C3(), 6, "Legacy", 0, 2, 1, "Text 5")
  580.  
  581. --//=================================\\
  582. --|| DAMAGE FUNCTIONS
  583. --\\=================================//
  584.  
  585. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  586. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  587. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  588. local BODYGYRO = IT("BodyGyro", STATPART)
  589. local BODYPOSITION = IT("BodyPosition", STATPART)
  590. BODYPOSITION.P = 2000
  591. BODYPOSITION.D = 100
  592. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  593. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  594. game:GetService("Debris"):AddItem(STATPART ,5)
  595. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  596. BILLBOARDGUI.Adornee = STATPART
  597. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  598. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  599. BILLBOARDGUI.AlwaysOnTop = true
  600. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  601. TEXTLABEL.BackgroundTransparency = 1
  602. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  603. TEXTLABEL.Text = TEXT
  604. TEXTLABEL.Font = "SciFi"
  605. TEXTLABEL.FontSize="Size42"
  606. TEXTLABEL.TextColor3 = COLOR
  607. TEXTLABEL.TextStrokeTransparency = 1
  608. TEXTLABEL.TextScaled = true
  609. TEXTLABEL.TextWrapped = true
  610. Debris:AddItem(STATPART,10)
  611. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  612. if LABELTYPE == "Normal" then
  613. for i = 1, 10 do
  614. wait()
  615. STATPART.Position = STATPART.Position + VT(0, (5-i)/10 ,0)
  616. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/10)
  617. end
  618. elseif LABELTYPE == "Debuff" then
  619. for i = 1, 10 do
  620. wait()
  621. STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
  622. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/10)
  623. end
  624. elseif LABELTYPE == "Shock" then
  625. local ORIGIN = STATPART.Position
  626. for i = 1, 10 do
  627. wait()
  628. STATPART.Position = ORIGIN + VT(MRANDOM(-1,1),MRANDOM(-1,1),MRANDOM(-1,1))
  629. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/10)
  630. end
  631. end
  632. end),STATPART, BODYPOSITION, TEXTLABEL)
  633. end
  634.  
  635. --//=================================\\
  636. --|| DAMAGING
  637. --\\=================================//
  638.  
  639. function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier)
  640. if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then
  641. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  642. local dmg = math.random(min,max)
  643. if humanoid.Health > 0 then
  644. if beserk == true then
  645. humanoid.Health = 0
  646. else
  647. CreateSound("260430060", hit, 1.2, MRANDOM(7, 12) / 10)
  648. hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength
  649. if math.random(1,100) < critrate+1 then
  650. humanoid.Health = humanoid.Health - dmg*critmultiplier
  651. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  652. else
  653. humanoid.Health = humanoid.Health - dmg
  654. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(0, 0, 0))
  655. end
  656. local defence = Instance.new("BoolValue",hit.Parent)
  657. defence.Name = ("HitBy"..Player.Name)
  658. game:GetService("Debris"):AddItem(defence, 0.5)
  659. end
  660. end
  661. end
  662. end
  663.  
  664. function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping,doespoison)
  665. local dmg = math.random(min,max)
  666. for i,v in ipairs(workspace:GetChildren()) do
  667. if v:FindFirstChild("HitBy"..Player.Name) == nil and v ~= Character then
  668. local body = v:GetChildren()
  669. for part = 1, #body do
  670. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  671. if(body[part].Position - position).Magnitude < radius then
  672. if v.ClassName == "Model" then
  673. if v:FindFirstChildOfClass("Humanoid") then
  674. if v.Humanoid.Health ~= 0 then
  675. if CanBeDodgedByJumping == true then
  676. if body[part].Position.Y < position.Y+5 then
  677. if math.random(1,100) < critrate+1 then
  678. v:FindFirstChildOfClass("Humanoid").Health = v:FindFirstChildOfClass("Humanoid").Health - dmg*critmultiplier
  679. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  680. else
  681. v:FindFirstChildOfClass("Humanoid").Health = v:FindFirstChildOfClass("Humanoid").Health - dmg
  682. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  683. end
  684. local defence = Instance.new("BoolValue",v)
  685. defence.Name = ("HitBy"..Player.Name)
  686. game:GetService("Debris"):AddItem(defence, 0.005)
  687. end
  688. else
  689. if beserk == true then
  690. v.Humanoid.Health = 0
  691. end
  692. if math.random(1,100) < critrate+1 then
  693. v:FindFirstChildOfClass("Humanoid").Health = v:FindFirstChildOfClass("Humanoid").Health - dmg*critmultiplier
  694. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  695. else
  696. v:FindFirstChildOfClass("Humanoid").Health = v:FindFirstChildOfClass("Humanoid").Health - dmg
  697. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  698. end
  699. local defence = Instance.new("BoolValue",v)
  700. defence.Name = ("HitBy"..Player.Name)
  701. game:GetService("Debris"):AddItem(defence, 0.005)
  702. end
  703. end
  704. end
  705. end
  706. if doespoison == true and v:FindFirstChildOfClass("Humanoid") then
  707. Poison(v:FindFirstChildOfClass("Humanoid"),MRANDOM(5,15)*2,MRANDOM(4,7))
  708. end
  709. if maxstrength < 0 then
  710. local bv = Instance.new("BodyVelocity")
  711. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  712. bv.velocity = CF(position,body[part].Position).lookVector*maxstrength
  713. bv.Parent = body[part]
  714. bv.Name = "PROJECTILEVELOCITY"
  715. Debris:AddItem(bv,0.2)
  716. else
  717. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  718. end
  719. end
  720. end
  721. end
  722. end
  723. end
  724. end
  725.  
  726. function AoEStun(POS,RANGE,LAST)
  727. for i,v in ipairs(workspace:GetChildren()) do
  728. if v:FindFirstChild("StunnedBy"..Player.Name) == nil then
  729. local body = v:GetChildren()
  730. for part = 1, #body do
  731. if(v:FindFirstChild("StunnedBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  732. if(body[part].Position - POS).Magnitude < RANGE then
  733. if v.ClassName == "Model" then
  734. if v:FindFirstChild("Humanoid") then
  735. if v.Humanoid.Health ~= 0 then
  736. Stun(v.Humanoid,LAST)
  737. local defence = Instance.new("BoolValue",v)
  738. defence.Name = ("StunnedBy"..Player.Name)
  739. game:GetService("Debris"):AddItem(defence, 0.1)
  740. end
  741. end
  742. end
  743. end
  744. end
  745. end
  746. end
  747. end
  748. end
  749.  
  750. function Stun(HUMANOID,LAST)
  751. if HUMANOID.Parent:FindFirstChild("StunnedBy"..Player.Name) == nil then
  752. HUMANOID.PlatformStand = true
  753. local defence = Instance.new("BoolValue",HUMANOID.Parent)
  754. defence.Name = ("StunnedBy"..Player.Name)
  755. game:GetService("Debris"):AddItem(defence, LAST)
  756. if HUMANOID.Parent:FindFirstChild("Head") then
  757. StatLabel("Normal", HUMANOID.Parent.Head.CFrame * CF(0, 0 + (HUMANOID.Parent.Head.Size.z - 1), 0), "Stunned!", C3(0.3, 0.3, 0.3))
  758. end
  759. coroutine.resume(coroutine.create(function()
  760. Swait(LAST*50)
  761. HUMANOID.PlatformStand = false
  762. end))
  763. end
  764. end
  765.  
  766. function Poison(HUMANOID,LAST,DAMAGE)
  767. if HUMANOID.Parent:FindFirstChild("PoisonedBy"..Player.Name) == nil then
  768. local defence = Instance.new("BoolValue",HUMANOID.Parent)
  769. defence.Name = ("PoisonedBy"..Player.Name)
  770. game:GetService("Debris"):AddItem(defence, LAST)
  771. coroutine.resume(coroutine.create(function()
  772. for i = 1, LAST/2 do
  773. if HUMANOID then
  774. if HUMANOID.Health == 0 then
  775. break
  776. end
  777. if HUMANOID.Parent:FindFirstChild("Head") then
  778. StatLabel("Normal", HUMANOID.Parent.Head.CFrame * CF(0, 0, 0), DAMAGE, C3(1,1,1))
  779. end
  780. Swait(50)
  781. HUMANOID.Health = HUMANOID.Health - DAMAGE
  782. end
  783. end
  784. end))
  785. end
  786. end
  787.  
  788. function killnearest(position,range,maxstrength)
  789. for i,v in ipairs(workspace:GetChildren()) do
  790. local body = v:GetChildren()
  791. for part = 1, #body do
  792. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  793. if(body[part].Position - position).Magnitude < range then
  794. if v.ClassName == "Model" then
  795. v:BreakJoints()
  796. end
  797. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  798. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  799. end
  800. end
  801. end
  802. if v.ClassName == "Part" then
  803. if v.Anchored == false and (v.Position - position).Magnitude < range then
  804. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  805. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  806. end
  807. end
  808. end
  809. end
  810.  
  811. --//=================================\\
  812. --|| ATTACK FUNCTIONS AND STUFF
  813. --\\=================================//
  814.  
  815. function AttackTemplate()
  816. ATTACK = true
  817. Rooted = false
  818. for i=0, 1, 0.1 / Animation_Speed do
  819. Swait()
  820. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  821. 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)
  822. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  823. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  824. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  825. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  826. end
  827. ATTACK = false
  828. Rooted = false
  829. end
  830.  
  831. function clerp(a, b, t)
  832. return a:lerp(b, t)
  833. end
  834.  
  835. function newBezier(startpos, pos2, pos3, endpos, t)
  836. local A = clerp(startpos, pos2, t)
  837. local B = clerp(pos2, pos3, t)
  838. local C = clerp(pos3, endpos, t)
  839. local lerp1 = clerp(A, B, t)
  840. local lerp2 = clerp(B, C, t)
  841. local cubic = clerp(lerp1, lerp2, t)
  842. return cubic
  843. end
  844.  
  845. function Mortar(Target)
  846. local newball = Instance.new("Part", workspace)
  847. newball.Anchored = true
  848. newball.Shape = "Ball"
  849. newball.Material = "Neon"
  850. newball.Size = Vector3.new(0,0,0)
  851. newball.CanCollide = false
  852. newball.CFrame = CF(Target)
  853. newball.Color = C3(1,1,1)
  854. newball.Transparency = 1
  855. local POS = Mouse.Hit.p
  856. local onefourth = Target:Lerp(POS, 0.25) + Vector3.new(math.random(-25, 25), math.random(0, 25), math.random(-25, 25))
  857. local threefourths = Target:Lerp(POS, 0.75) + Vector3.new(math.random(-25, 25), math.random(0, 25), math.random(-25, 25))
  858. local A1 = IT("Attachment",newball)
  859. A1.Position = Vector3.new(0, 2.5, 0)
  860. local A2 = IT("Attachment",newball)
  861. A2.Position = Vector3.new(0, -2.5, 0)
  862. local Trail = IT("Trail",newball)
  863. Trail.LightEmission = 1
  864. Trail.FaceCamera = true
  865. Trail.Texture = "rbxassetid://945758042"
  866. Trail.Attachment0 = A1
  867. Trail.Attachment1 = A2
  868. Trail.Lifetime = 1
  869. Trail.MinLength = 0
  870. Trail.Transparency = NumberSequence.new(0, 1)
  871. Trail.Color = ColorSequence.new(newball.Color)
  872. coroutine.resume(coroutine.create(function()
  873. for i = 0, 1, 0.07 do
  874. Swait()
  875. MagicSphere(VT(2,2,2),50,newball.CFrame,"Pearl",VT(-0.01,-0.01,-0.01))
  876. newball.CFrame = CFrame.new(newBezier(Target, onefourth, threefourths, POS, i))
  877. end
  878. AoEDamage(newball.Position,5,5,8,0,false,2,2,false,true)
  879. CreateSound(LIGHTHITSOUNDS[MRANDOM(1,#LIGHTHITSOUNDS)], newball, 10, 1)
  880. MagicSphere(VT(0,0,0),55,newball.CFrame,"Pearl",VT(0.06,0.5,0.06))
  881. for i = 1, 10 do
  882. MagicSphere(VT(0.5,0.5,3),50,CF(newball.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,newball.Position),"Pearl",VT(-0.005,-0.005,0.03),0)
  883. end
  884. game:GetService("Debris"):AddItem(newball, 5)
  885. end))
  886. end
  887.  
  888. function LightArray()
  889. ATTACK = true
  890. Rooted = false
  891. for i=0, 1, 0.1 / Animation_Speed do
  892. Swait()
  893. turnto(Mouse.Hit.p)
  894. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-85)), 0.5 / Animation_Speed)
  895. 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.25 / Animation_Speed)
  896. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  897. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  898. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  899. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  900. end
  901. local LOOP = 0
  902. for i = 1, 30 do
  903. Swait()
  904. turnto(Mouse.Hit.p)
  905. LOOP = LOOP + 1
  906. if LOOP == 10 then
  907. LOOP = 0
  908. Mortar(LeftArm.CFrame*CF(0,-1,0).p)
  909. end
  910. end
  911. ATTACK = false
  912. Rooted = false
  913. end
  914.  
  915. function ShadowField()
  916. ATTACK = true
  917. Rooted = true
  918. for i=0, 2, 0.1 / Animation_Speed do
  919. Swait()
  920. turnto(Mouse.Hit.p)
  921. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.4 / Animation_Speed)
  922. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(-75)), 0.2 / Animation_Speed)
  923. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(140)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  924. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(25), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  925. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  926. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  927. end
  928. for i=0, 0.5, 0.1 / Animation_Speed do
  929. Swait()
  930. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-15)), 0.5 / Animation_Speed)
  931. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(10)), 0.5 / Animation_Speed)
  932. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  933. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(25), RAD(-25)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  934. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  935. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  936. end
  937. local Target = RightArm.CFrame*CF(0,-1,0).p
  938. local newball = Instance.new("Part", workspace)
  939. newball.Anchored = true
  940. newball.Shape = "Ball"
  941. newball.Material = "Neon"
  942. newball.Size = Vector3.new(0,0,0)
  943. newball.CanCollide = false
  944. newball.CFrame = CF(Target)
  945. newball.BrickColor = BRICKC"Really black"
  946. newball.Transparency = 1
  947. local POS = Mouse.Hit.p
  948. local onefourth = Target:Lerp(POS, 0.25) + Vector3.new(math.random(-25, 25), math.random(0, 25), math.random(-25, 25))
  949. local threefourths = Target:Lerp(POS, 0.75) + Vector3.new(math.random(-25, 25), math.random(0, 25), math.random(-25, 25))
  950. local A1 = IT("Attachment",newball)
  951. A1.Position = Vector3.new(0, 2.5, 0)
  952. local A2 = IT("Attachment",newball)
  953. A2.Position = Vector3.new(0, -2.5, 0)
  954. local Trail = IT("Trail",newball)
  955. Trail.LightEmission = 0
  956. Trail.FaceCamera = true
  957. Trail.Texture = "rbxassetid://945758042"
  958. Trail.Attachment0 = A1
  959. Trail.Attachment1 = A2
  960. Trail.Lifetime = 1
  961. Trail.MinLength = 0
  962. Trail.Transparency = NumberSequence.new(0, 1)
  963. Trail.Color = ColorSequence.new(C3(0,0,0))
  964. for i = 0, 1, 0.07 do
  965. Swait()
  966. newball.CFrame = CFrame.new(newBezier(Target, onefourth, threefourths, POS, i))
  967. end
  968. MagicSphere(VT(25,25,25),55,Torso.CFrame,"Really black",VT(-0.5,-0.5,-0.5))
  969. UNANCHOR = false
  970. RootPart.Anchored = true
  971. RootPart.CFrame = CF(newball.Position,Mouse.Hit.p)
  972. for i=0, 0.5, 0.1 / Animation_Speed do
  973. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  974. 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)
  975. --PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.27,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  976. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75,0) * ANGLES(RAD(0), RAD(0), RAD(85)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  977. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  978. 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)
  979. 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)
  980. end
  981. CreateSound("1021477796", newball, 10, 0.6)
  982. for i = 1, 100 do
  983. Swait(5)
  984. MagicSphere(VT(75,75,75),15,newball.CFrame,"Really black",VT(-5,-5,-5))
  985. MagicSphere(VT(5,5,85),15,CF(newball.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,newball.Position),"Really black",VT(-0.005,-0.005,0.03),0)
  986. AoEDamage(newball.Position,25,1,1,-15,false,2,2,false,false)
  987. end
  988. game:GetService("Debris"):AddItem(newball, 15)
  989. UNANCHOR = true
  990. ATTACK = false
  991. Rooted = false
  992. end
  993.  
  994. function Oblivion()
  995. ATTACK = true
  996. Rooted = true
  997. for i=0, 2, 0.1 / Animation_Speed do
  998. Swait()
  999. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1000. 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)
  1001. --PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.24,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1002. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.5) * ANGLES(RAD(35), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1003. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.75, -0.5) * ANGLES(RAD(35), RAD(0), RAD(65)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1004. 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)
  1005. 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)
  1006. end
  1007. for i=0, 0.5, 0.1 / Animation_Speed do
  1008. Swait()
  1009. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / 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.5 / Animation_Speed)
  1011. --PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.27,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1012. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75,0) * ANGLES(RAD(0), RAD(0), RAD(85)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1013. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1014. 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)
  1015. 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)
  1016. end
  1017. for i = 1, 75 do
  1018. Swait()
  1019. MagicSphere(VT(0.5,0.5,5),50,CF(Torso.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,Torso.Position),"Pearl",VT(-0.005,-0.005,0.03),0)
  1020. end
  1021. CreateSound(LIGHTHITSOUNDS[MRANDOM(1,#LIGHTHITSOUNDS)], Torso, 10, 0.5)
  1022. CreateSound(LIGHTHITSOUNDS[MRANDOM(1,#LIGHTHITSOUNDS)], Torso, 10, 0.5)
  1023. AoEDamage(Torso.Position,45,45,58,0,false,2,2,false,true)
  1024. MagicSphere(VT(0,0,0),25,Torso.CFrame,"Pearl",VT(5,5,5))
  1025. MagicSphere(VT(0,0,0),50,Torso.CFrame,"Pearl",VT(2.5,2.5,2.5))
  1026. MagicSphere(VT(0,0.2,0),30,Torso.CFrame*ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))),"Pearl",VT(6,0,6))
  1027. MagicSphere(VT(0,0.2,0),30,Torso.CFrame*ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))),"Pearl",VT(6,0,6))
  1028. ATTACK = false
  1029. Rooted = false
  1030. end
  1031.  
  1032. function ShadowEye()
  1033. ATTACK = true
  1034. Rooted = true
  1035. for i=0, 2, 0.1 / Animation_Speed do
  1036. Swait()
  1037. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1038. 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)
  1039. --PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.24,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1040. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.5) * ANGLES(RAD(35), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1041. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.75, -0.5) * ANGLES(RAD(35), RAD(0), RAD(65)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1042. 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)
  1043. 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)
  1044. end
  1045. for i=0, 0.5, 0.1 / Animation_Speed do
  1046. Swait()
  1047. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1048. 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)
  1049. --PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.27,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1050. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75,0) * ANGLES(RAD(0), RAD(0), RAD(85)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1051. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1052. 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)
  1053. 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)
  1054. end
  1055. local POS = CreatePart(3, Weapon, "Neon", 0, 1, "Really black", "Black side", VT(0,0,0))
  1056. POS.CFrame = CF(Mouse.Hit.p)
  1057. local GUI,GUI2 = CreateGUICircle(Torso)
  1058. local GUI3,GUI4 = CreateGUICircle(POS)
  1059. CreateSound("1021477796", POS, 10, 0.6)
  1060. for i = 1, 75 do
  1061. Swait()
  1062. GUI2.Size = UDim2.new(1,0,i/75,0)
  1063. GUI2.Position = GUI2.Position - UDim2.new(0,0,0.5/75,0)
  1064. GUI4.Size = UDim2.new(1,0,i/75,0)
  1065. GUI4.Position = GUI4.Position - UDim2.new(0,0,0.5/75,0)
  1066. end
  1067. for i = 1, 90 do
  1068. Swait(5)
  1069. MagicSphere(VT(75,75,75),5,POS.CFrame,"Really black",VT(-15,-15,-15))
  1070. AoEDamage(POS.Position,35,1,1,-15,false,0,2,false,false)
  1071. --MagicSphere(VT(0.5,0.5,15),50,CF(Torso.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,Torso.Position),"Really black",VT(-0.005,-0.005,0.03),0)
  1072. MagicSphere(VT(0.5,0.5,15),50,CF(POS.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,POS.Position),"Really black",VT(-0.005,-0.005,0.03),0)
  1073. end
  1074. for i = 1, 25 do
  1075. Swait()
  1076. GUI2.Size = UDim2.new(1,0,1-(i/25),0)
  1077. GUI2.Position = GUI2.Position + UDim2.new(0,0,0.5/25,0)
  1078. GUI4.Size = UDim2.new(1,0,1-(i/25),0)
  1079. GUI4.Position = GUI4.Position + UDim2.new(0,0,0.5/25,0)
  1080. end
  1081. GUI:remove()
  1082. GUI3:remove()
  1083. ATTACK = false
  1084. Rooted = false
  1085. end
  1086.  
  1087. function Taunt()
  1088. ATTACK = true
  1089. Rooted = true
  1090. for i = 1, 3 do
  1091. for i=0, 0.7, 0.1 / Animation_Speed do
  1092. Swait()
  1093. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1094. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 0.5 / Animation_Speed)
  1095. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(145)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.5)
  1096. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-145)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, 0.5)
  1097. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1098. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1099. end
  1100. for i=0, 0.7, 0.1 / Animation_Speed do
  1101. Swait()
  1102. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1103. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), 0.5 / Animation_Speed)
  1104. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(145)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.5)
  1105. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-145)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, 0.5)
  1106. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1107. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1108. end
  1109. end
  1110. ATTACK = false
  1111. Rooted = false
  1112. end
  1113.  
  1114. --//=================================\\
  1115. --|| ASSIGN THINGS TO KEYS
  1116. --\\=================================//
  1117.  
  1118. function MouseDown(Mouse)
  1119. if ATTACK == false then
  1120. end
  1121. end
  1122.  
  1123. function MouseUp(Mouse)
  1124. HOLD = false
  1125. end
  1126.  
  1127. function KeyDown(Key)
  1128. KEYHOLD = true
  1129. if Key == "z" and ATTACK == false then
  1130. LightArray()
  1131. end
  1132.  
  1133. if Key == "b" and ATTACK == false then
  1134. ShadowField()
  1135. end
  1136.  
  1137. if Key == "c" and ATTACK == false then
  1138. Oblivion()
  1139. end
  1140.  
  1141. if Key == "v" and ATTACK == false then
  1142. ShadowEye()
  1143. end
  1144.  
  1145. if Key == "t" and ATTACK == false then
  1146. Taunt()
  1147. end
  1148. end
  1149.  
  1150. function KeyUp(Key)
  1151. KEYHOLD = false
  1152. end
  1153.  
  1154. Mouse.Button1Down:connect(function(NEWKEY)
  1155. MouseDown(NEWKEY)
  1156. end)
  1157. Mouse.Button1Up:connect(function(NEWKEY)
  1158. MouseUp(NEWKEY)
  1159. end)
  1160. Mouse.KeyDown:connect(function(NEWKEY)
  1161. KeyDown(NEWKEY)
  1162. end)
  1163. Mouse.KeyUp:connect(function(NEWKEY)
  1164. KeyUp(NEWKEY)
  1165. end)
  1166.  
  1167. --//=================================\\
  1168. --\\=================================//
  1169.  
  1170.  
  1171. function unanchor()
  1172. if UNANCHOR == true then
  1173. g = Character:GetChildren()
  1174. for i = 1, #g do
  1175. if g[i].ClassName == "Part" then
  1176. g[i].Anchored = false
  1177. end
  1178. end
  1179. end
  1180. end
  1181.  
  1182.  
  1183. --//=================================\\
  1184. --|| WRAP THE WHOLE SCRIPT UP
  1185. --\\=================================//
  1186.  
  1187. Humanoid.Changed:connect(function(Jump)
  1188. if Jump == "Jump" and (Disable_Jump == true) then
  1189. Humanoid.Jump = false
  1190. end
  1191. end)
  1192.  
  1193. Speed = 65
  1194.  
  1195. while true do
  1196. Swait()
  1197. ANIMATE.Parent = nil
  1198. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1199. IDLEANIMATION:Play()
  1200. SINE = SINE + CHANGE
  1201. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1202. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1203. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1204. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1205. local WALKSPEEDVALUE = 3
  1206. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1207. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1208. 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)
  1209. 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)
  1210. 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)
  1211. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1212. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1213. 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)
  1214. 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)
  1215. 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)
  1216. end
  1217. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1218. ANIM = "Jump"
  1219. if ATTACK == false then
  1220. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1221. 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)
  1222. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1223. 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)
  1224. 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)
  1225. 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)
  1226. end
  1227. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1228. ANIM = "Fall"
  1229. if ATTACK == false then
  1230. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1231. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1232. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1233. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1234. 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)
  1235. 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)
  1236. end
  1237. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1238. ANIM = "Idle"
  1239. if ATTACK == false then
  1240.  
  1241. end
  1242. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1243. ANIM = "Walk"
  1244. WALK = WALK + 1 / Animation_Speed
  1245. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1246. WALK = 0
  1247. if WALKINGANIM == true then
  1248. WALKINGANIM = false
  1249. elseif WALKINGANIM == false then
  1250. WALKINGANIM = true
  1251. end
  1252. end
  1253.  
  1254. if #Effects2>0 then
  1255. for e=1,#Effects2 do
  1256. if Effects2[e]~=nil then
  1257. local Thing=Effects2[e]
  1258. if Thing~=nil then
  1259. local Part=Thing[1]
  1260. local Mode=Thing[2]
  1261. local Delay=Thing[3]
  1262. local IncX=Thing[4]
  1263. local IncY=Thing[5]
  1264. local IncZ=Thing[6]
  1265. local Part2=Thing[8]
  1266. if Thing[1].Transparency<=1 then
  1267. if Thing[2]=="Block1" then
  1268. Thing[1].CFrame=Thing[1].CFrame
  1269. Mesh=Thing[1].Mesh
  1270. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1271. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1272. elseif Thing[2]=="Cylinder" then
  1273. Mesh=Thing[1].Mesh
  1274. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1275. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1276. elseif Thing[2]=="Blood" then
  1277. Mesh=Thing[7]
  1278. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  1279. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1280. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1281. elseif Thing[2]=="Elec" then
  1282. Mesh=Thing[1].Mesh
  1283. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  1284. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1285. elseif Thing[2]=="Disappear" then
  1286. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1287. end
  1288. else
  1289. Part.Parent=nil
  1290. table.remove(Effects2,e)
  1291. end
  1292. end
  1293. end
  1294. end
  1295. end
  1296. unanchor()
  1297. Humanoid.MaxHealth = "inf"
  1298. Humanoid.Health = "inf"
  1299. if Rooted == false then
  1300. Disable_Jump = false
  1301. Humanoid.WalkSpeed = Speed
  1302. elseif Rooted == true then
  1303. Disable_Jump = true
  1304. Humanoid.WalkSpeed = 0
  1305. end
  1306. if Head:FindFirstChild("face") then
  1307. Head.face:remove()
  1308. end
  1309. q = Character:GetChildren()
  1310. for u = 1, #q do
  1311. if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then
  1312. q[u]:remove()
  1313. elseif q[u].ClassName == "Shirt" then
  1314. q[u]:Destroy()
  1315. elseif q[u].ClassName == "Pants" then
  1316. q[u]:Destroy()
  1317. elseif q[u].ClassName == "CharacterMesh" then
  1318. q[u]:remove()
  1319. elseif q[u].ClassName == "ShirtGraphic" then
  1320. q[u]:remove()
  1321. elseif q[u].ClassName == "Part" and q[u].Name ~= "HumanoidRootPart" then
  1322. q[u].Color = Color3.new(0.6,0.6,0.6)
  1323. q[u].Material = "Neon"
  1324. end
  1325. end
  1326. if Head:FindFirstChild("Mesh") then
  1327. local mesh = Head.Mesh
  1328. if mesh.ClassName == "SpecialMesh" then
  1329. mesh:remove()
  1330. local m = IT("BlockMesh",Head)
  1331. m.Scale = VT(0.5,1,1)
  1332. end
  1333. end
  1334. end
  1335.  
  1336. --//=================================\\
  1337. --\\=================================//
  1338.  
  1339.  
  1340.  
  1341.  
  1342.  
  1343. --//====================================================\\--
  1344. --|| END OF SCRIPT
  1345. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement