Advertisement
yabagaba

Untitled

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