Advertisement
tntmyles

Galacta

Jun 29th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 63.67 KB | None | 0 0
  1. wait(0.2)
  2. Player = game:GetService("Players").LocalPlayer
  3. PlayerGui = Player.PlayerGui
  4. Cam = workspace.CurrentCamera
  5. Backpack = Player.Backpack
  6. Character = Player.Character
  7. Humanoid = Character.Humanoid
  8. Mouse = Player:GetMouse()
  9. RootPart = Character.HumanoidRootPart
  10. Torso = Character.Torso
  11. Head = Character.Head
  12. RightArm = Character["Right Arm"]
  13. LeftArm = Character["Left Arm"]
  14. RightLeg = Character["Right Leg"]
  15. LeftLeg = Character["Left Leg"]
  16. RootJoint = RootPart.RootJoint
  17. Neck = Torso.Neck
  18. RightShoulder = Torso["Right Shoulder"]
  19. LeftShoulder = Torso["Left Shoulder"]
  20. RightHip = Torso["Right Hip"]
  21. LeftHip = Torso["Left Hip"]
  22. local sick = Instance.new("Sound", Torso)
  23. sick.SoundId = "rbxassetid://152000442"
  24. sick.Looped = true
  25. sick.Pitch = 1
  26. sick.Volume = 1
  27. sick:Play()
  28. IT = Instance.new
  29. CF = CFrame.new
  30. VT = Vector3.new
  31. RAD = math.rad
  32. C3 = Color3.new
  33. UD2 = UDim2.new
  34. BRICKC = BrickColor.new
  35. ANGLES = CFrame.Angles
  36. EULER = CFrame.fromEulerAnglesXYZ
  37. COS = math.cos
  38. ACOS = math.acos
  39. SIN = math.sin
  40. ASIN = math.asin
  41. ABS = math.abs
  42. MRANDOM = math.random
  43. FLOOR = math.floor
  44. Animation_Speed = 3
  45. Humanoid.HipHeight = 1
  46. Frame_Speed = 0.016666666666666666
  47. local Speed = 75
  48. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  49. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  50. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  51. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  52. local DAMAGEMULTIPLIER = 1
  53. local ANIM = "Idle"
  54. local ATTACK = false
  55. local EQUIPPED = false
  56. local HOLD = false
  57. local COMBO = 1
  58. local Rooted = false
  59. local SINE = 0
  60. local KEYHOLD = false
  61. local CHANGE = 2 / Animation_Speed
  62. local WALKINGANIM = false
  63. local VALUE1 = false
  64. local VALUE2 = false
  65. local ROBLOXIDLEANIMATION = IT("Animation")
  66. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  67. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  68. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  69. WEAPONGUI.Name = "Weapon GUI"
  70. local Weapon = IT("Model")
  71. Weapon.Name = "Adds"
  72. local Effects = IT("Folder", Weapon)
  73. Effects.Name = "Effects"
  74. local ANIMATOR = Humanoid.Animator
  75. local ANIMATE = Character.Animate
  76. local UNANCHOR = true
  77. local FORCEWINGS = false
  78. local GYRO, FLIGHTFORCE
  79. local INTRO = false
  80. ArtificialHB = Instance.new("BindableEvent", script)
  81. ArtificialHB.Name = "ArtificialHB"
  82. script:WaitForChild("ArtificialHB")
  83. frame = Frame_Speed
  84. tf = 0
  85. allowframeloss = false
  86. tossremainder = false
  87. lastframe = tick()
  88. script.ArtificialHB:Fire()
  89. game:GetService("RunService").Heartbeat:connect(function(s, p)
  90. tf = tf + s
  91. if tf >= frame then
  92. if allowframeloss then
  93. script.ArtificialHB:Fire()
  94. lastframe = tick()
  95. else
  96. for i = 1, math.floor(tf / frame) do
  97. script.ArtificialHB:Fire()
  98. end
  99. lastframe = tick()
  100. end
  101. if tossremainder then
  102. tf = 0
  103. else
  104. tf = tf - frame * math.floor(tf / frame)
  105. end
  106. end
  107. end)
  108. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  109. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  110. end
  111. function PositiveAngle(NUMBER)
  112. if NUMBER >= 0 then
  113. NUMBER = 0
  114. end
  115. return NUMBER
  116. end
  117. function NegativeAngle(NUMBER)
  118. if NUMBER <= 0 then
  119. NUMBER = 0
  120. end
  121. return NUMBER
  122. end
  123. function Swait(NUMBER)
  124. if NUMBER == 0 or NUMBER == nil then
  125. ArtificialHB.Event:wait()
  126. else
  127. for i = 1, NUMBER do
  128. ArtificialHB.Event:wait()
  129. end
  130. end
  131. end
  132. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  133. local NEWMESH = IT(MESH)
  134. if MESH == "SpecialMesh" then
  135. NEWMESH.MeshType = MESHTYPE
  136. if MESHID ~= "nil" and MESHID ~= "" then
  137. NEWMESH.MeshId = "http://www.roblox.com/asset/?id=" .. MESHID
  138. end
  139. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  140. NEWMESH.TextureId = "http://www.roblox.com/asset/?id=" .. TEXTUREID
  141. end
  142. end
  143. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  144. NEWMESH.Scale = SCALE
  145. NEWMESH.Parent = PARENT
  146. return NEWMESH
  147. end
  148. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  149. local NEWPART = IT("Part")
  150. NEWPART.formFactor = FORMFACTOR
  151. NEWPART.Reflectance = REFLECTANCE
  152. NEWPART.Transparency = TRANSPARENCY
  153. NEWPART.CanCollide = false
  154. NEWPART.Locked = true
  155. NEWPART.Anchored = true
  156. if ANCHOR == false then
  157. NEWPART.Anchored = false
  158. end
  159. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  160. NEWPART.Name = NAME
  161. NEWPART.Size = SIZE
  162. NEWPART.Position = Torso.Position
  163. NEWPART.Material = MATERIAL
  164. NEWPART:BreakJoints()
  165. NEWPART.Parent = PARENT
  166. return NEWPART
  167. end
  168. function QuaternionFromCFrame(cf)
  169. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  170. local trace = m00 + m11 + m22
  171. if trace > 0 then
  172. local s = math.sqrt(1 + trace)
  173. local recip = 0.5 / s
  174. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  175. else
  176. local i = 0
  177. if m00 < m11 then
  178. i = 1
  179. end
  180. if m22 > (i == 0 and m00 or m11) then
  181. i = 2
  182. end
  183. if i == 0 then
  184. local s = math.sqrt(m00 - m11 - m22 + 1)
  185. local recip = 0.5 / s
  186. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  187. elseif i == 1 then
  188. local s = math.sqrt(m11 - m22 - m00 + 1)
  189. local recip = 0.5 / s
  190. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  191. elseif i == 2 then
  192. local s = math.sqrt(m22 - m00 - m11 + 1)
  193. local recip = 0.5 / s
  194. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  195. end
  196. end
  197. end
  198. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  199. local xs, ys, zs = x + x, y + y, z + z
  200. local wx, wy, wz = w * xs, w * ys, w * zs
  201. local xx = x * xs
  202. local xy = x * ys
  203. local xz = x * zs
  204. local yy = y * ys
  205. local yz = y * zs
  206. local zz = z * zs
  207. 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))
  208. end
  209. function QuaternionSlerp(a, b, t)
  210. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  211. local startInterp, finishInterp
  212. if cosTheta >= 1.0E-4 then
  213. if 1 - cosTheta > 1.0E-4 then
  214. local theta = ACOS(cosTheta)
  215. local invSinTheta = 1 / SIN(theta)
  216. startInterp = SIN((1 - t) * theta) * invSinTheta
  217. finishInterp = SIN(t * theta) * invSinTheta
  218. else
  219. startInterp = 1 - t
  220. finishInterp = t
  221. end
  222. elseif 1 + cosTheta > 1.0E-4 then
  223. local theta = ACOS(-cosTheta)
  224. local invSinTheta = 1 / SIN(theta)
  225. startInterp = SIN((t - 1) * theta) * invSinTheta
  226. finishInterp = SIN(t * theta) * invSinTheta
  227. else
  228. startInterp = t - 1
  229. finishInterp = t
  230. end
  231. 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
  232. end
  233. function Clerp(a, b, t)
  234. local qa = {
  235. QuaternionFromCFrame(a)
  236. }
  237. local qb = {
  238. QuaternionFromCFrame(b)
  239. }
  240. local ax, ay, az = a.x, a.y, a.z
  241. local bx, by, bz = b.x, b.y, b.z
  242. local _t = 1 - t
  243. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  244. end
  245. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  246. local frame = IT("Frame")
  247. frame.BackgroundTransparency = TRANSPARENCY
  248. frame.BorderSizePixel = BORDERSIZEPIXEL
  249. frame.Position = POSITION
  250. frame.Size = SIZE
  251. frame.BackgroundColor3 = COLOR
  252. frame.BorderColor3 = BORDERCOLOR
  253. frame.Name = NAME
  254. frame.Parent = PARENT
  255. return frame
  256. end
  257. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  258. local label = IT("TextLabel")
  259. label.BackgroundTransparency = 1
  260. label.Size = UD2(1, 0, 1, 0)
  261. label.Position = UD2(0, 0, 0, 0)
  262. label.TextColor3 = TEXTCOLOR
  263. label.TextStrokeTransparency = STROKETRANSPARENCY
  264. label.TextTransparency = TRANSPARENCY
  265. label.FontSize = TEXTFONTSIZE
  266. label.Font = TEXTFONT
  267. label.BorderSizePixel = BORDERSIZEPIXEL
  268. label.TextScaled = false
  269. label.Text = TEXT
  270. label.Name = NAME
  271. label.Parent = PARENT
  272. return label
  273. end
  274. function NoOutlines(PART)
  275. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  276. end
  277. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  278. local NEWWELD = IT(TYPE)
  279. NEWWELD.Part0 = PART0
  280. NEWWELD.Part1 = PART1
  281. NEWWELD.C0 = C0
  282. NEWWELD.C1 = C1
  283. NEWWELD.Parent = PARENT
  284. return NEWWELD
  285. end
  286. local S = IT("Sound")
  287. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  288. local NEWSOUND
  289. coroutine.resume(coroutine.create(function()
  290. NEWSOUND = S:Clone()
  291. NEWSOUND.Parent = PARENT
  292. NEWSOUND.Volume = VOLUME
  293. NEWSOUND.Pitch = PITCH
  294. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID
  295. NEWSOUND:play()
  296. if DOESLOOP == true then
  297. NEWSOUND.Looped = true
  298. else
  299. repeat
  300. wait(1)
  301. until NEWSOUND.Playing == false
  302. NEWSOUND:remove()
  303. end
  304. end))
  305. return NEWSOUND
  306. end
  307. function CFrameFromTopBack(at, top, back)
  308. local right = top:Cross(back)
  309. 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)
  310. end
  311. function WACKYEFFECT(Table)
  312. local TYPE = Table.EffectType or "Sphere"
  313. local SIZE = Table.Size or VT(1, 1, 1)
  314. local ENDSIZE = Table.Size2 or VT(0, 0, 0)
  315. local TRANSPARENCY = Table.Transparency or 0
  316. local ENDTRANSPARENCY = Table.Transparency2 or 1
  317. local CFRAME = Table.CFrame or Torso.CFrame
  318. local MOVEDIRECTION = Table.MoveToPos or nil
  319. local ROTATION1 = Table.RotationX or 0
  320. local ROTATION2 = Table.RotationY or 0
  321. local ROTATION3 = Table.RotationZ or 0
  322. local MATERIAL = Table.Material or "Neon"
  323. local COLOR = Table.Color or C3(1, 1, 1)
  324. local TIME = Table.Time or 45
  325. local SOUNDID = Table.SoundID or nil
  326. local SOUNDPITCH = Table.SoundPitch or nil
  327. local SOUNDVOLUME = Table.SoundVolume or nil
  328. coroutine.resume(coroutine.create(function()
  329. local PLAYSSOUND = false
  330. local SOUND
  331. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1, 1, 1), true)
  332. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  333. PLAYSSOUND = true
  334. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  335. end
  336. EFFECT.Color = COLOR
  337. local MSH
  338. if TYPE == "Sphere" then
  339. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0, 0, 0))
  340. elseif TYPE == "Block" then
  341. MSH = IT("BlockMesh", EFFECT)
  342. MSH.Scale = VT(SIZE.X, SIZE.X, SIZE.X)
  343. elseif TYPE == "Wave" then
  344. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8))
  345. elseif TYPE == "Ring" then
  346. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X, SIZE.X, 0.1), VT(0, 0, 0))
  347. elseif TYPE == "Slash" then
  348. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0))
  349. elseif TYPE == "Round Slash" then
  350. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0))
  351. elseif TYPE == "Swirl" then
  352. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0, 0, 0))
  353. elseif TYPE == "Skull" then
  354. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0, 0, 0))
  355. elseif TYPE == "Crystal" then
  356. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0, 0, 0))
  357. end
  358. if MSH ~= nil then
  359. local MOVESPEED
  360. if MOVEDIRECTION ~= nil then
  361. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude / TIME
  362. end
  363. local GROWTH = SIZE - ENDSIZE
  364. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  365. if TYPE == "Block" then
  366. EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
  367. else
  368. EFFECT.CFrame = CFRAME
  369. end
  370. for LOOP = 1, TIME + 1 do
  371. Swait()
  372. MSH.Scale = MSH.Scale - GROWTH / TIME
  373. if TYPE == "Wave" then
  374. MSH.Offset = VT(0, 0, -MSH.Scale.X / 8)
  375. end
  376. EFFECT.Transparency = EFFECT.Transparency - TRANS / TIME
  377. if TYPE == "Block" then
  378. EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
  379. else
  380. EFFECT.CFrame = EFFECT.CFrame * ANGLES(RAD(ROTATION1), RAD(ROTATION2), RAD(ROTATION3))
  381. end
  382. if MOVEDIRECTION ~= nil then
  383. local ORI = EFFECT.Orientation
  384. EFFECT.CFrame = CF(EFFECT.Position, MOVEDIRECTION) * CF(0, 0, -MOVESPEED)
  385. EFFECT.Orientation = ORI
  386. end
  387. end
  388. if PLAYSSOUND == false then
  389. EFFECT:remove()
  390. else
  391. SOUND.Stopped:Connect(function()
  392. EFFECT:remove()
  393. end)
  394. end
  395. elseif PLAYSSOUND == false then
  396. EFFECT:remove()
  397. else
  398. repeat
  399. Swait()
  400. until SOUND.Playing == false
  401. EFFECT:remove()
  402. end
  403. end))
  404. end
  405. function MakeForm(PART, TYPE)
  406. if TYPE == "Cyl" then
  407. local MSH = IT("CylinderMesh", PART)
  408. elseif TYPE == "Ball" then
  409. local MSH = IT("SpecialMesh", PART)
  410. MSH.MeshType = "Sphere"
  411. elseif TYPE == "Pine" then
  412. CreateMesh("SpecialMesh", PART, "FileMesh", "1033714", "", PART.Size, VT(0, 0, 0))
  413. end
  414. end
  415. Debris = game:GetService("Debris")
  416. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  417. local DIRECTION = CF(StartPos, EndPos).lookVector
  418. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  419. end
  420. function turnto(position)
  421. RootPart.CFrame = CFrame.new(RootPart.CFrame.p, VT(position.X, RootPart.Position.Y, position.Z)) * CFrame.new(0, 0, 0)
  422. end
  423. function Lightning(Table)
  424. local Color = Table.Color or C3(1, 1, 1)
  425. local StartPos = Table.Start or Torso.Position
  426. local EndPos = Table.End or Mouse.Hit.p
  427. local SegmentLength = Table.SegmentL or 2
  428. local Thickness = Table.Thickness or 0.1
  429. local Dissapear = Table.DoesFade or false
  430. local Parent = Table.Ignore or Character
  431. local MaxDist = Table.MaxDist or 400
  432. local Branches = Table.Branches or false
  433. local HIT, HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
  434. local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude / SegmentLength)
  435. local LIGHTNINGMODEL = IT("Model", Effects)
  436. LIGHTNINGMODEL.Name = "Lightning"
  437. local LastBolt
  438. for E = 1, DISTANCE do
  439. local ExtraSize = (DISTANCE - E) / 15
  440. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "LightningPart" .. E, VT(Thickness + ExtraSize, SegmentLength, Thickness + ExtraSize))
  441. PART.Color = Color
  442. MakeForm(PART, "Cyl")
  443. if LastBolt == nil then
  444. PART.CFrame = CF(StartPos, HITPOS) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0, -PART.Size.Y / 2, 0)
  445. else
  446. PART.CFrame = CF(LastBolt.CFrame * CF(0, -LastBolt.Size.Y / 2, 0).p, CF(HITPOS) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) * CF(0, 0, SegmentLength / 3 + (DISTANCE - E)).p) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0, -PART.Size.Y / 2, 0)
  447. end
  448. LastBolt = PART
  449. if Branches == true then
  450. local CHOICE = MRANDOM(1, 7 + (DISTANCE - E) * 2)
  451. if CHOICE == 1 then
  452. local LASTBRANCH
  453. for i = 1, MRANDOM(2, 5) do
  454. local ExtraSize2 = (DISTANCE - E) / 25 / i
  455. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "Branch" .. E .. "-" .. i, VT(Thickness + ExtraSize2, SegmentLength, Thickness + ExtraSize2))
  456. PART.Color = Color
  457. MakeForm(PART, "Cyl")
  458. if LASTBRANCH == nil then
  459. PART.CFrame = CF(LastBolt.CFrame * CF(0, -LastBolt.Size.Y / 2, 0).p, LastBolt.CFrame * CF(0, -LastBolt.Size.Y / 2, 0) * ANGLES(RAD(0), RAD(0), RAD(MRANDOM(0, 360))) * CF(0, Thickness * 7, 0) * CF(0, 0, -1).p) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0, -PART.Size.Y / 2, 0)
  460. else
  461. PART.CFrame = CF(LASTBRANCH.CFrame * CF(0, -LASTBRANCH.Size.Y / 2, 0).p, LASTBRANCH.CFrame * CF(0, -LASTBRANCH.Size.Y / 2, 0) * ANGLES(RAD(0), RAD(0), RAD(MRANDOM(0, 360))) * CF(0, Thickness * 3, 0) * CF(0, 0, -1).p) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0, -PART.Size.Y / 2, 0)
  462. end
  463. LASTBRANCH = PART
  464. end
  465. end
  466. end
  467. end
  468. if Dissapear == true then
  469. coroutine.resume(coroutine.create(function()
  470. for i = 1, 30 do
  471. Swait()
  472. for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
  473. if c.ClassName == "Part" then
  474. c.Transparency = i / 30
  475. end
  476. end
  477. end
  478. LIGHTNINGMODEL:remove()
  479. end))
  480. elseif Dissapear == false then
  481. Debris:AddItem(LIGHTNINGMODEL, 0.1)
  482. end
  483. return {
  484. End = LastBolt.CFrame * CF(0, 0, -LastBolt.Size.Z / 2).p,
  485. LastBolt = LastBolt,
  486. Model = LIGHTNINGMODEL
  487. }
  488. end
  489. local Particle = IT("ParticleEmitter", nil)
  490. Particle.Enabled = false
  491. Particle.Transparency = NumberSequence.new({
  492. NumberSequenceKeypoint.new(0, 0),
  493. NumberSequenceKeypoint.new(0.7, 0),
  494. NumberSequenceKeypoint.new(1, 1)
  495. })
  496. Particle.LightEmission = 0.5
  497. Particle.Rate = 500
  498. Particle.Rotation = NumberRange.new(-180, 180)
  499. Particle.RotSpeed = NumberRange.new(-180, 180)
  500. Particle.Texture = "http://www.roblox.com/asset/?id=51349099"
  501. Particle.Color = ColorSequence.new(C3(1, 1, 1))
  502. function ParticleEmitter(Table)
  503. local PRTCL = Particle:Clone()
  504. local Speed = Table.Speed or 5
  505. local Drag = Table.Drag or 0
  506. local Size1 = Table.Size1 or 1
  507. local Size2 = Table.Size2 or 5
  508. local Lifetime1 = Table.Lifetime1 or 1
  509. local Lifetime2 = Table.Lifetime2 or 1.5
  510. local Parent = Table.Parent or Torso
  511. local Emit = Table.Emit or 100
  512. local Offset = Table.Offset or 360
  513. local Enabled = Table.Enabled or false
  514. PRTCL.Parent = Parent
  515. PRTCL.Size = NumberSequence.new(Size1, Size2)
  516. PRTCL.Lifetime = NumberRange.new(Lifetime1, Lifetime2)
  517. PRTCL.Speed = NumberRange.new(Speed)
  518. PRTCL.VelocitySpread = Offset
  519. PRTCL.Drag = Drag
  520. if Enabled == false then
  521. PRTCL:Emit(Emit)
  522. Debris:AddItem(PRTCL, Lifetime2)
  523. else
  524. PRTCL.Enabled = true
  525. end
  526. return PRTCL
  527. end
  528. local RWING = CreatePart(3, Weapon, "Neon", 0, 1, "Pearl", "Right Wing", VT(2, 3, 2) * 1.5, false)
  529. RWING.Color = C3(0.807843137254902, 0.6392156862745098, 0.8549019607843137)
  530. local RWELD = CreateWeldOrSnapOrMotor("Weld", Torso, Torso, RWING, CF(1, 2, 0.5), CF(-1.5, 0, 0))
  531. local LWING = CreatePart(3, Weapon, "Neon", 0, 1, "Pearl", "Left Wing", VT(2, 3, 2) * 1.5, false)
  532. LWING.Color = C3(0.807843137254902, 0.6392156862745098, 0.8549019607843137)
  533. local LWELD = CreateWeldOrSnapOrMotor("Weld", Torso, Torso, LWING, CF(-1, 2, 0.5), CF(1.6, 0, 0))
  534. CreateMesh("SpecialMesh", RWING, "FileMesh", "90615661", "", VT(1.5, 1.5, 1.5) * 0.8, VT(0, 0, 0))
  535. CreateMesh("SpecialMesh", LWING, "FileMesh", "90615581", "", VT(1.5, 1.5, 1.5) * 0.8, VT(0, 0, 0))
  536. local Mask = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Pearl", "Mask", VT(1, 1, 1), false)
  537. CreateMesh("SpecialMesh", Mask, "FileMesh", "395088733", "", VT(0.5, 0.5, 1), VT(0, 0, 0))
  538. CreateWeldOrSnapOrMotor("Weld", Head, Head, Mask, CF(0, 0, -0.5), CF(0, 0, 0))
  539. local Mask = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "New Yeller", "Mask", VT(1.3, 0.1, 1.3), false)
  540. MakeForm(Mask, "Cyl")
  541. CreateWeldOrSnapOrMotor("Weld", Head, Head, Mask, CF(0, 0.2, 0), CF(0, 0, 0))
  542. local Black = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Pearl", "Mask", VT(0.2, 0.7, 0.3), false)
  543. Black.Color = C3(0, 0, 0)
  544. MakeForm(Black, "Ball")
  545. CreateWeldOrSnapOrMotor("Weld", Head, Head, Black, CF(0, 0.05, -0.6), CF(0, 0, 0))
  546. local Black = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Pearl", "Mask", VT(1, 0.2, 0.3), false)
  547. Black.Color = C3(0, 0, 0)
  548. MakeForm(Black, "Ball")
  549. CreateWeldOrSnapOrMotor("Weld", Head, Head, Black, CF(0, 0.1, -0.6), CF(0, 0, 0))
  550. local Eye = CreatePart(3, Weapon, "Neon", 0, 0, "Magenta", "Mask", VT(0.1, 0.1, 0.1), false)
  551. MakeForm(Eye, "Ball")
  552. CreateWeldOrSnapOrMotor("Weld", Head, Head, Eye, CF(0.22, 0.1, -0.7), CF(0, 0, 0))
  553. local Eye = CreatePart(3, Weapon, "Neon", 0, 0, "Magenta", "Mask", VT(0.1, 0.1, 0.1), false)
  554. MakeForm(Eye, "Ball")
  555. CreateWeldOrSnapOrMotor("Weld", Head, Head, Eye, CF(-0.22, 0.1, -0.7), CF(0, 0, 0))
  556. local Horns = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "New Yeller", "Horns", VT(1, 1, 1), false)
  557. CreateWeldOrSnapOrMotor("Weld", Head, Head, Horns, CF(0, 0.6, 0.1), CF(0, 0, 0))
  558. local MSH = CreateMesh("SpecialMesh", Horns, "FileMesh", "704130637", "", VT(0.17, 0.17, 0.17), VT(0, 0, 0))
  559. MSH.VertexColor = VT(1, 1, 0.5)
  560. local MaskPart = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Pearl", "Mask", VT(0.4, 0.4, 0.4), false)
  561. MakeForm(MaskPart, "Ball")
  562. CreateWeldOrSnapOrMotor("Weld", Head, Head, MaskPart, CF(-0.35, 0.35, -0.5), CF(0, 0, 0))
  563. local MaskPart = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Pearl", "Mask", VT(0.4, 0.4, 0.4), false)
  564. MakeForm(MaskPart, "Ball")
  565. CreateWeldOrSnapOrMotor("Weld", Head, Head, MaskPart, CF(0.35, 0.35, -0.5), CF(0, 0, 0))
  566. local Handle = CreatePart(3, Weapon, "Glass", 0, 0, "New Yeller", "Handle", VT(0.2, 1, 0.2), false)
  567. MakeForm(Handle, "Cyl")
  568. local Grasp = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Handle, CF(0, -1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  569. local Bop = CreatePart(3, Weapon, "Glass", 0, 0, "New Yeller", "Bop", VT(0.5, 0.5, 0.5), false)
  570. MakeForm(Bop, "Ball")
  571. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Bop, CF(0, 0.7, 0), CF(0, 0, 0))
  572. local Part = CreatePart(3, Weapon, "Glass", 0, 0, "Black", "Shield", VT(0.5, 0.2, 0.5), false)
  573. MakeForm(Part, "Pine")
  574. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  575. local Part = CreatePart(3, Weapon, "Glass", 0, 0, "Dark blue", "Shield", VT(0.6, 0.3, 0.6), false)
  576. MakeForm(Part, "Pine")
  577. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  578. local Blade = CreatePart(3, Weapon, "Glass", 0, 0, "Magenta", "Blade", VT(0.3, 5, 0.3), false)
  579. MakeForm(Blade, "Pine")
  580. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Blade, CF(0, -2.5, 0) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  581. local Shield = CreatePart(3, Weapon, "Glass", 0, 0, "New Yeller", "Shield", VT(1.05, 0.1, 1.05), false)
  582. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Shield, CF(0, -0.3, 0), CF(0, 0, 0))
  583. local ShieldBase = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Pearl", "Shield", VT(2, 2, 1), false)
  584. CreateMesh("SpecialMesh", ShieldBase, "FileMesh", "395088733", "", VT(1, 1, 1), VT(0, 0, 0))
  585. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, ShieldBase, CF(-0.5, -0.3, 0) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0))
  586. local Shield = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Pearl", "Shield", VT(0, 0, 0), false)
  587. CreateMesh("SpecialMesh", Shield, "FileMesh", "395088733", "", VT(0.95, 0.95, 1), VT(0, 0, 0))
  588. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Shield, CF(-0.4, -0.3, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)), CF(0, 0, 0))
  589. local Shield = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Magenta", "Shield", VT(0, 0, 0), false)
  590. CreateMesh("SpecialMesh", Shield, "FileMesh", "395088733", "", VT(0.95, 0.95, 1), VT(0, 0, 0))
  591. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Shield, CF(-0.515, -0.3, 0) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0))
  592. local Shield = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Pearl", "Shield", VT(0, 0, 0), false)
  593. CreateMesh("SpecialMesh", Shield, "FileMesh", "395088733", "", VT(0.7, 0.7, 1), VT(0, 0, 0))
  594. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Shield, CF(-0.6, -0.3, 0) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0))
  595. local Shield = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Magenta", "Shield", VT(0, 0, 0), false)
  596. CreateMesh("SpecialMesh", Shield, "FileMesh", "395088733", "", VT(0.5, 0.5, 1), VT(0, 0, 0))
  597. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Shield, CF(-0.65, -0.3, 0) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0))
  598. local Shield = CreatePart(3, Weapon, "Glass", 0, 0, "New Yeller", "Shield", VT(0.8, 2, 0.2), false)
  599. MakeForm(Shield, "Ball")
  600. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Shield, CF(-0.65, -0.3, 0), CF(0, 0, 0))
  601. local Shield = CreatePart(3, Weapon, "Glass", 0, 0, "New Yeller", "Shield", VT(0.8, 0.2, 2), false)
  602. MakeForm(Shield, "Ball")
  603. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Shield, CF(-0.65, -0.3, 0), CF(0, 0, 0))
  604. local Shield = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Magenta", "Shield", VT(0.8, 2, 0.3), false)
  605. MakeForm(Shield, "Ball")
  606. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Shield, CF(-0.6, -0.3, 0), CF(0, 0, 0))
  607. local Shield = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Magenta", "Shield", VT(0.8, 0.3, 2), false)
  608. MakeForm(Shield, "Ball")
  609. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Shield, CF(-0.6, -0.3, 0), CF(0, 0, 0))
  610. local SKILLTEXTCOLOR = BRICKC("Magenta").Color
  611. local SKILLFONT = "SciFi"
  612. local SKILLTEXTSIZE = 12
  613. Humanoid.DisplayDistanceType = "None"
  614. local naeeym2 = IT("BillboardGui", Character)
  615. naeeym2.AlwaysOnTop = true
  616. naeeym2.Size = UDim2.new(5, 35, 2, 15)
  617. naeeym2.StudsOffset = Vector3.new(0, 1.3, 0)
  618. naeeym2.MaxDistance = 75
  619. naeeym2.Adornee = Character.Head
  620. naeeym2.Name = "Name"
  621. naeeym2.PlayerToHideFrom = Player
  622. local tecks2 = IT("TextLabel", naeeym2)
  623. tecks2.BackgroundTransparency = 1
  624. tecks2.TextScaled = true
  625. tecks2.BorderSizePixel = 0
  626. tecks2.Text = Player.Name
  627. tecks2.Font = "SciFi"
  628. tecks2.TextSize = 30
  629. tecks2.TextStrokeTransparency = 0
  630. tecks2.TextColor3 = C3(1, 1, 1)
  631. tecks2.TextStrokeColor3 = SKILLTEXTCOLOR
  632. tecks2.Size = UDim2.new(1, 0, 0.5, 0)
  633. tecks2.Parent = naeeym2
  634. for _, c in pairs(Weapon:GetChildren()) do
  635. if c.ClassName == "Part" then
  636. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  637. end
  638. end
  639. Weapon.Parent = Character
  640. Humanoid.Died:connect(function()
  641. ATTACK = true
  642. end)
  643. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Frame")
  644. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[ Z - B - C - V - G - X - Q ]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text")
  645. function ApplyDamage(Humanoid, Damage, TorsoPart)
  646. local defence = Instance.new("BoolValue", Humanoid.Parent)
  647. defence.Name = "HitBy" .. Player.Name
  648. game:GetService("Debris"):AddItem(defence, 0.001)
  649. Damage = Damage * DAMAGEMULTIPLIER
  650. if Humanoid.Health ~= 0 then
  651. local CritChance = MRANDOM(1, 100)
  652. if Damage > Humanoid.Health then
  653. Damage = math.ceil(Humanoid.Health)
  654. if Damage == 0 then
  655. Damage = 0.1
  656. end
  657. end
  658. Humanoid.Health = Humanoid.Health - Damage
  659. end
  660. end
  661. function ApplyAoE(POSITION, RANGE, MINDMG, MAXDMG, FLING, FRAME)
  662. local CHILDREN = workspace:GetDescendants()
  663. for index, CHILD in pairs(CHILDREN) do
  664. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD:FindFirstChild(Player.Name .. "Frames") == nil then
  665. do
  666. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  667. if HUM then
  668. do
  669. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  670. if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude and HUM.Health > 0 then
  671. do
  672. local FRAMES = IT("Folder", CHILD)
  673. FRAMES.Name = Player.Name .. "Frames"
  674. local DMG = 0
  675. if MINDMG > 1 then
  676. DMG = MRANDOM(MINDMG, MAXDMG)
  677. else
  678. DMG = MINDMG
  679. end
  680. ApplyDamage(HUM, DMG, TORSO)
  681. CreateSound(12222242, TORSO, 5, 1, false)
  682. coroutine.resume(coroutine.create(function()
  683. for _, c in pairs(CHILD:GetDescendants()) do
  684. if c:IsA("BasePart") then
  685. local bv = Instance.new("BodyVelocity")
  686. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  687. if POSITION.Y < TORSO.Position.Y then
  688. bv.velocity = CF(POSITION, TORSO.Position + VT(0, TORSO.Position.Y - POSITION.Y, 0)).lookVector * FLING
  689. else
  690. bv.velocity = CF(POSITION, TORSO.Position + VT(0, 5, 0)).lookVector * FLING
  691. end
  692. bv.Parent = c
  693. c.Reflectance = c.Transparency
  694. c.Transparency = 1
  695. Debris:AddItem(bv, 0.05)
  696. end
  697. end
  698. if 0 < HUM.Health then
  699. if FRAME > 0 then
  700. for i = 1, FRAME do
  701. for _, c in pairs(CHILD:GetDescendants()) do
  702. if c:IsA("BasePart") then
  703. c.Transparency = c.Reflectance
  704. c.Reflectance = 0
  705. end
  706. end
  707. wait()
  708. for _, c in pairs(CHILD:GetDescendants()) do
  709. if c:IsA("BasePart") then
  710. c.Reflectance = c.Transparency
  711. c.Transparency = 1
  712. end
  713. end
  714. wait()
  715. end
  716. else
  717. coroutine.resume(coroutine.create(function()
  718. HUM.CameraOffset = VT(MRANDOM(-35, 35) / 65, MRANDOM(-35, 35) / 65, MRANDOM(-35, 35) / 65)
  719. end))
  720. TORSO.CFrame = TORSO.CFrame * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
  721. end
  722. for _, c in pairs(CHILD:GetDescendants()) do
  723. if c:IsA("BasePart") then
  724. c.Transparency = c.Reflectance
  725. c.Reflectance = 0
  726. end
  727. end
  728. else
  729. for _, c in pairs(CHILD:GetDescendants()) do
  730. if c:IsA("BasePart") then
  731. c.Transparency = c.Reflectance
  732. c.Reflectance = 0
  733. end
  734. end
  735. end
  736. coroutine.resume(coroutine.create(function()
  737. HUM.CameraOffset = VT(0, 0, 0)
  738. end))
  739. FRAMES:remove()
  740. end))
  741. end
  742. end
  743. end
  744. end
  745. end
  746. end
  747. end
  748. end
  749. function X()
  750. ATTACK = true
  751. Rooted = true
  752. local TOAIM = Mouse.Hit.p
  753. turnto(Mouse.Hit.p)
  754. local DONE = false
  755. Humanoid.HipHeight = 5
  756. for i = 0, 0.2, 0.1 / Animation_Speed do
  757. Swait()
  758. Grasp.C1 = Clerp(Grasp.C1, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 3 / Animation_Speed)
  759. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), 0.75 / Animation_Speed)
  760. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  761. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-35), RAD(12)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  762. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(35), RAD(-12)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  763. end
  764. for i = 0, 1.3, 0.1 / Animation_Speed do
  765. Swait()
  766. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.5 * COS(SINE), 0) * ANGLES(RAD(0), RAD(0), RAD(230)), 0.75 / Animation_Speed)
  767. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(35), RAD(0), RAD(-50)), 0.75 / Animation_Speed)
  768. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(75), RAD(35), RAD(-35)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  769. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  770. end
  771. CreateSound(1537955136, Blade, 5, 1, false)
  772. local SLICE = CreatePart(3, Effects, "Neon", 0, 0, "Magenta", "Slash", VT(0, 16, 0))
  773. MakeForm(SLICE, "Ball")
  774. CreateSound(342793847, SLICE, 5, 3, false)
  775. SLICE.CFrame = CF(RootPart.CFrame * CF(0, 0, 4).p, TOAIM) * ANGLES(RAD(0), RAD(0), RAD(-45))
  776. ParticleEmitter({
  777. Speed = 2,
  778. Drag = 3,
  779. Size1 = 0.2,
  780. Size2 = 1,
  781. Lifetime1 = 1,
  782. Lifetime2 = 3,
  783. Parent = SLICE,
  784. Emit = 15,
  785. Offset = 360,
  786. Enabled = false
  787. })
  788. coroutine.resume(coroutine.create(function()
  789. Swait(35)
  790. SLICE.Transparency = 0
  791. for i = 1, 45 do
  792. Swait()
  793. SLICE.Size = SLICE.Size + VT(1 + i / 45, 0, 0) / 5
  794. end
  795. wait(0.3)
  796. local BEAM = CreatePart(3, Effects, "Neon", 0, 0, "Magenta", "SlashBeam", VT(0, 0, 0))
  797. MakeForm(BEAM, "Cyl")
  798. BEAM.Color = SLICE.Color
  799. local AIMHIT, AIMPOS = CastProperRay(SLICE.Position, TOAIM, 750, Character)
  800. local DISTANCE = (SLICE.Position - AIMPOS).Magnitude
  801. BEAM.CFrame = CF(SLICE.Position, AIMPOS) * CF(0, 0, -(DISTANCE / 2) - 7.5) * ANGLES(RAD(90), RAD(0), RAD(0))
  802. BEAM.Size = VT(0, DISTANCE + 15, 0)
  803. BEAM.Mesh.Scale = VT(1.8, 1, 1.8)
  804. local BOP = CreatePart(3, Effects, "Neon", 0, 0, "Magenta", "Bop", VT(0, 0, 0))
  805. MakeForm(BOP, "Ball")
  806. BOP.Color = SLICE.Color
  807. BOP.CFrame = BEAM.CFrame * CF(0, -BEAM.Size.Y / 2, 0)
  808. wait(0.1)
  809. local SIZE = SLICE.Size.X
  810. local SOUND = CreateSound(415700134, SLICE, 10, 1, false)
  811. local PRT = ParticleEmitter({
  812. Speed = 0,
  813. Drag = 0,
  814. Size1 = 0.3,
  815. Size2 = 0.7,
  816. Lifetime1 = 1,
  817. Lifetime2 = 1.5,
  818. Parent = BEAM,
  819. Emit = 100,
  820. Offset = 360,
  821. Enabled = true
  822. })
  823. PRT.ZOffset = 12
  824. for i = 1, 25 do
  825. Swait()
  826. for i = 1, math.ceil(BEAM.Size.Y / 5) do
  827. ApplyAoE(BEAM.CFrame * CF(0, BEAM.Size.Y / 2 - i * 5, 0).p, BEAM.Size.X / 1.5, 1, 1, 5, 0)
  828. end
  829. BEAM.Size = BEAM.Size + VT(SIZE / 25, 0, SIZE / 25) / 1.8
  830. BOP.Size = BOP.Size + VT(SIZE / 25, SIZE / 25, SIZE / 25)
  831. Humanoid.CameraOffset = VT(MRANDOM(-35, 35) / 65, MRANDOM(-35, 35) / 65, MRANDOM(-35, 35) / 65)
  832. end
  833. repeat
  834. Swait()
  835. BOP.CFrame = BEAM.CFrame * CF(0, -BEAM.Size.Y / 2, 0)
  836. SOUND.Parent = SLICE
  837. for i = 1, math.ceil(BEAM.Size.Y / 5) do
  838. ApplyAoE(BEAM.CFrame * CF(0, BEAM.Size.Y / 2 - i * 5, 0).p, BEAM.Size.X, 1, 1, 5, 0)
  839. end
  840. Humanoid.CameraOffset = VT(MRANDOM(-35, 35) / 65, MRANDOM(-35, 35) / 65, MRANDOM(-35, 35) / 65)
  841. until SOUND.Playing == false
  842. BOP:remove()
  843. BEAM:remove()
  844. DONE = true
  845. Humanoid.CameraOffset = VT(0, 0, 0)
  846. for i = 1, 45 do
  847. Swait()
  848. SLICE.Size = SLICE.Size - VT(1 + i / 45, 0, 0) / 5
  849. end
  850. SLICE:remove()
  851. end))
  852. for i = 0, 1, 0.1 / Animation_Speed do
  853. Swait()
  854. Grasp.C1 = Clerp(Grasp.C1, CF(0, 0, 0) * ANGLES(RAD(40), RAD(0), RAD(0)), 3 / Animation_Speed)
  855. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(130)), 3 / Animation_Speed)
  856. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(35), RAD(0), RAD(0)), 3 / Animation_Speed)
  857. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(-75), RAD(45)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  858. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 3 / Animation_Speed)
  859. end
  860. FORCEWINGS = true
  861. for i = 1, 200 do
  862. Swait()
  863. Grasp.C1 = Clerp(Grasp.C1, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 3 / Animation_Speed)
  864. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(180 + i)) * ANGLES(RAD(15), RAD(0), RAD(0)) * CF(i, -i, i * 5), 0.75 / Animation_Speed)
  865. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  866. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-35), RAD(12)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  867. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(35), RAD(-12)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  868. end
  869. repeat
  870. wait()
  871. until DONE == true
  872. RootJoint.C0 = CF(0, 300, 0)
  873. Humanoid.HipHeight = 1
  874. for i = 1, 50 do
  875. Swait()
  876. Grasp.C1 = Clerp(Grasp.C1, CF(0, 0, 0) * ANGLES(RAD(40), RAD(0), RAD(0)), 3 / Animation_Speed)
  877. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0), 0.25 / Animation_Speed)
  878. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  879. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-35), RAD(32)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  880. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(35), RAD(-32)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  881. end
  882. ATTACK = false
  883. Rooted = false
  884. FORCEWINGS = false
  885. end
  886. function Intro()
  887. ATTACK = true
  888. Rooted = true
  889. for i = 0, 0.2, 0.1 / Animation_Speed do
  890. Swait()
  891. LWELD.C0 = Clerp(LWELD.C0, CF(-1, 1.7, 0.85) * ANGLES(RAD(0), RAD(-15), RAD(0)), 0.75 / Animation_Speed)
  892. RWELD.C0 = Clerp(RWELD.C0, CF(1, 1.7, 0.85) * ANGLES(RAD(0), RAD(15), RAD(0)), 0.75 / Animation_Speed)
  893. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(50)), 0.75 / Animation_Speed)
  894. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(35), RAD(0), RAD(-50)), 0.75 / Animation_Speed)
  895. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(75), RAD(35), RAD(-35)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  896. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  897. end
  898. for i = 0, 3, 0.1 / Animation_Speed do
  899. Swait()
  900. LWELD.C0 = Clerp(LWELD.C0, CF(-1, 1.7, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  901. RWELD.C0 = Clerp(RWELD.C0, CF(1, 1.7, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  902. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 - 0.5 * COS(SINE), 0, 0) * ANGLES(RAD(0), RAD(0), RAD(50)), 0.75 / Animation_Speed)
  903. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(35), RAD(0), RAD(-50)), 0.75 / Animation_Speed)
  904. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(75), RAD(35), RAD(-35)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  905. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  906. end
  907. CreateSound(1537955136, Blade, 5, 1, false)
  908. RWING.Transparency = 0
  909. LWING.Transparency = 0
  910. for i = 1, 15 do
  911. Swait()
  912. LWELD.C0 = Clerp(LWELD.C0, CF(-1, 1.7, 0.55) * ANGLES(RAD(0), RAD(15), RAD(0)), 0.75 / Animation_Speed)
  913. RWELD.C0 = Clerp(RWELD.C0, CF(1, 1.7, 0.55) * ANGLES(RAD(0), RAD(-15), RAD(0)), 0.75 / Animation_Speed)
  914. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-50 - i / 15 * 360)), 0.75 / Animation_Speed)
  915. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(35), RAD(0), RAD(50)), 0.75 / Animation_Speed)
  916. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  917. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(90), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  918. end
  919. for i = 1, 15 do
  920. Swait()
  921. LWELD.C0 = Clerp(LWELD.C0, CF(-1, 1.7, 0.55) * ANGLES(RAD(0), RAD(15), RAD(0)), 0.75 / Animation_Speed)
  922. RWELD.C0 = Clerp(RWELD.C0, CF(1, 1.7, 0.55) * ANGLES(RAD(0), RAD(-15), RAD(0)), 0.75 / Animation_Speed)
  923. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-50)), 0.75 / Animation_Speed)
  924. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(35), RAD(0), RAD(50)), 0.75 / Animation_Speed)
  925. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  926. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(90), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  927. end
  928. for i = 0, 1, 0.1 / Animation_Speed do
  929. Swait()
  930. LWELD.C0 = Clerp(LWELD.C0, CF(-1, 1.5, 0.85) * ANGLES(RAD(-25), RAD(65), RAD(0)), 0.75 / Animation_Speed)
  931. RWELD.C0 = Clerp(RWELD.C0, CF(1, 1.5, 0.85) * ANGLES(RAD(-25), RAD(-65), RAD(0)), 0.75 / Animation_Speed)
  932. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  933. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  934. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  935. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  936. Grasp.C1 = Clerp(Grasp.C1, CF(0, 0, 0) * ANGLES(RAD(80), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  937. end
  938. ATTACK = false
  939. Rooted = false
  940. end
  941. function Z()
  942. ATTACK = true
  943. Rooted = true
  944. CreateSound(1537955136, Torso, 5, 1, false)
  945. for i = 1, 15 do
  946. Swait()
  947. RootPart.CFrame = RootPart.CFrame * CF(0, 0, 0.5)
  948. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + i / 15 + 0.2 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.75 / Animation_Speed)
  949. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(75)), 0.75 / Animation_Speed)
  950. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(15 - 5 * COS(SINE / 12)), RAD(-35), RAD(35 - 3 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  951. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-35), RAD(-12 + 3 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  952. end
  953. for i = 0, 0.3, 0.1 / Animation_Speed do
  954. Swait()
  955. RootPart.CFrame = RootPart.CFrame * CF(0, 0, 0.015)
  956. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.2 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.75 / Animation_Speed)
  957. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(75)), 0.75 / Animation_Speed)
  958. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(15 - 5 * COS(SINE / 12)), RAD(-35), RAD(35 - 3 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  959. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-35), RAD(-12 + 3 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  960. end
  961. FORCEWINGS = true
  962. for i = 1, 10 do
  963. for i = 0, 0.02, 0.1 / Animation_Speed do
  964. Swait()
  965. Grasp.C1 = Clerp(Grasp.C1, CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), 2 / Animation_Speed)
  966. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(85)), 2 / Animation_Speed)
  967. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-85)), 2 / Animation_Speed)
  968. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(85)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  969. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  970. end
  971. do
  972. local RANDOM = MRANDOM(-7, 7) / 5
  973. local RANDOM2 = MRANDOM(-7, 7) / 5
  974. for i = 0, 0.01, 0.1 / Animation_Speed do
  975. Swait()
  976. RootPart.CFrame = RootPart.CFrame * CF(0, 0, -0.2)
  977. Grasp.C1 = Clerp(Grasp.C1, CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), 3 / Animation_Speed)
  978. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 3 / Animation_Speed)
  979. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 3 / Animation_Speed)
  980. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.75, 0.5 + RANDOM, 0 + RANDOM2) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  981. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 3 / Animation_Speed)
  982. end
  983. local WAVES = {}
  984. coroutine.resume(coroutine.create(function()
  985. repeat
  986. Swait()
  987. for E = 1, #WAVES do
  988. if WAVES[E] ~= nil then
  989. ApplyAoE(WAVES[E].Position, 3, 25, 35, 35, 3)
  990. if WAVES[E].Transparency > 0.99 then
  991. WAVES[E]:remove()
  992. table.remove(WAVES, E)
  993. else
  994. WAVES[E].CFrame = WAVES[E].CFrame * CF(0, 1.2, 0)
  995. WAVES[E].Transparency = WAVES[E].Transparency + 0.03
  996. end
  997. end
  998. end
  999. until #WAVES == 0
  1000. end))
  1001. local Wave = CreatePart(3, Effects, "Glass", 0, 0.25, "New Yeller", "Wave", VT(1, 3, 1))
  1002. MakeForm(Wave, "Pine")
  1003. Wave.CFrame = Blade.CFrame
  1004. table.insert(WAVES, Wave)
  1005. CreateSound(1537955679, Wave, 7, 1, true)
  1006. end
  1007. end
  1008. ATTACK = false
  1009. Rooted = false
  1010. FORCEWINGS = false
  1011. end
  1012. function B()
  1013. ATTACK = true
  1014. Rooted = false
  1015. FORCEWINGS = true
  1016. for i = 0, 1, 0.1 / Animation_Speed do
  1017. Swait()
  1018. Grasp.C1 = Clerp(Grasp.C1, CF(0, 0, 0) * ANGLES(RAD(170), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1019. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.5 * COS(SINE), 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1020. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1021. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.3) * ANGLES(RAD(140), RAD(0), RAD(-42)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1022. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.3) * ANGLES(RAD(140), RAD(0), RAD(42)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1023. end
  1024. CreateSound(1537955679, Blade, 7, 0.7, false)
  1025. Rooted = true
  1026. for i = 0, 0.4, 0.1 / Animation_Speed do
  1027. Swait()
  1028. Grasp.C1 = Clerp(Grasp.C1, CF(0, 0, 0) * ANGLES(RAD(115), RAD(-35), RAD(0)), 0.75 / Animation_Speed)
  1029. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1030. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1031. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(35), RAD(0), RAD(-42)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1032. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(35), RAD(0), RAD(42)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1033. end
  1034. coroutine.resume(coroutine.create(function()
  1035. local FRAME = RootPart.CFrame * CF(0, -5, -0.5)
  1036. for i = 1, 125 do
  1037. Swait()
  1038. FRAME = FRAME * CF(0, 0, -1)
  1039. ApplyAoE(FRAME.p, 5, 45, 55, 35, 15)
  1040. WACKYEFFECT({
  1041. Time = 25,
  1042. EffectType = "Sphere",
  1043. Size = VT(1, 18, 1),
  1044. Size2 = VT(1, 0, 1),
  1045. Transparency = 0,
  1046. Transparency2 = 1,
  1047. CFrame = FRAME,
  1048. MoveToPos = nil,
  1049. RotationX = 0,
  1050. RotationY = 0,
  1051. RotationZ = 0,
  1052. Material = "Neon",
  1053. Color = RWING.Color,
  1054. SoundID = nil,
  1055. SoundPitch = nil,
  1056. SoundVolume = nil
  1057. })
  1058. end
  1059. end))
  1060. for i = 0, 0.2, 0.1 / Animation_Speed do
  1061. Swait()
  1062. Grasp.C1 = Clerp(Grasp.C1, CF(0, 0, 0) * ANGLES(RAD(115), RAD(-35), RAD(0)), 0.75 / Animation_Speed)
  1063. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1064. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1065. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(35), RAD(0), RAD(-42)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1066. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(35), RAD(0), RAD(42)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1067. end
  1068. FORCEWINGS = false
  1069. ATTACK = false
  1070. Rooted = false
  1071. end
  1072. function C()
  1073. FORCEWINGS = true
  1074. ATTACK = true
  1075. for i = 0, 1, 0.1 / Animation_Speed do
  1076. Swait()
  1077. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1078. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1079. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1080. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1081. Grasp.C1 = Clerp(Grasp.C1, CF(0, 0, 0) * ANGLES(RAD(80), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1082. end
  1083. Rooted = true
  1084. local Orb = CreatePart(3, Effects, "Neon", 0, 0, "Pearl", "Orb", VT(0, 0, 0))
  1085. MakeForm(Orb, "Ball")
  1086. Orb.CFrame = Blade.CFrame * CF(0, 2.25, 0)
  1087. for i = 1, 35 do
  1088. Swait()
  1089. Orb.CFrame = Blade.CFrame * CF(0, 2.25, 0)
  1090. Orb.Size = Orb.Size + VT(0.05, 0.05, 0.05)
  1091. end
  1092. local MAIN = CreatePart(3, Effects, "Neon", 0, 0, "Pearl", "Beam", VT(0, 0, 0))
  1093. MakeForm(MAIN, "Cyl")
  1094. for i = 1, 200 do
  1095. Swait()
  1096. local AIMHIT, AIMPOS = CastProperRay(Orb.Position, Mouse.Hit.p, 750, Character)
  1097. local DISTANCE = (Orb.Position - AIMPOS).Magnitude
  1098. MAIN.CFrame = CF(Orb.Position, AIMPOS) * CF(0, 0, -DISTANCE / 2) * ANGLES(RAD(90), RAD(0), RAD(0))
  1099. MAIN.Size = VT(0.7, DISTANCE, 0.7)
  1100. ApplyAoE(AIMPOS, 3, 35, 65, 35, 20)
  1101. end
  1102. MAIN:remove()
  1103. ATTACK = false
  1104. Rooted = false
  1105. FORCEWINGS = false
  1106. for i = 1, 35 do
  1107. Swait()
  1108. Orb.Size = Orb.Size - VT(0.05, 0.05, 0.05)
  1109. end
  1110. Orb:remove()
  1111. end
  1112. function V()
  1113. FORCEWINGS = true
  1114. ATTACK = true
  1115. Rooted = true
  1116. local AREAS = {}
  1117. for i = 1, 15 do
  1118. local AREA = CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * CF(0, 0, MRANDOM(6, 35)).p
  1119. local HITFLOOR, HITPOS = CastProperRay(AREA + VT(0, 35, 0), AREA - VT(0, 35, 0), 65, Character)
  1120. if HITFLOOR then
  1121. table.insert(AREAS, HITPOS)
  1122. end
  1123. end
  1124. for E = 1, 35 do
  1125. Swait()
  1126. for i = 1, #AREAS do
  1127. WACKYEFFECT({
  1128. Time = 5,
  1129. EffectType = "Wave",
  1130. Size = VT(5, 1, 5),
  1131. Size2 = VT(5, 1, 5),
  1132. Transparency = 0.5,
  1133. Transparency2 = 1,
  1134. CFrame = CF(AREAS[i]) * ANGLES(RAD(0), RAD(E), RAD(0)),
  1135. MoveToPos = nil,
  1136. RotationX = 0,
  1137. RotationY = 0,
  1138. RotationZ = 0,
  1139. Material = "Neon",
  1140. Color = RWING.Color,
  1141. SoundID = nil,
  1142. SoundPitch = nil,
  1143. SoundVolume = nil
  1144. })
  1145. end
  1146. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.5 * COS(SINE), 0) * ANGLES(RAD(0), RAD(0), RAD(-50)), 0.75 / Animation_Speed)
  1147. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(35), RAD(0), RAD(50)), 0.75 / Animation_Speed)
  1148. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1149. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(90), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1150. end
  1151. for E = 1, 12 do
  1152. Swait()
  1153. for i = 1, #AREAS do
  1154. WACKYEFFECT({
  1155. Time = 5,
  1156. EffectType = "Wave",
  1157. Size = VT(5, 1, 5),
  1158. Size2 = VT(5, 1, 5),
  1159. Transparency = 0.5,
  1160. Transparency2 = 1,
  1161. CFrame = CF(AREAS[i]) * ANGLES(RAD(0), RAD(E + 35), RAD(0)),
  1162. MoveToPos = nil,
  1163. RotationX = 0,
  1164. RotationY = 0,
  1165. RotationZ = 0,
  1166. Material = "Neon",
  1167. Color = RWING.Color,
  1168. SoundID = nil,
  1169. SoundPitch = nil,
  1170. SoundVolume = nil
  1171. })
  1172. end
  1173. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1174. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1175. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1176. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1177. Grasp.C1 = Clerp(Grasp.C1, CF(0, 0, 0) * ANGLES(RAD(80), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1178. end
  1179. for i = 1, #AREAS do
  1180. ApplyAoE(AREAS[i], 15, 45, 55, 35, 20)
  1181. Lightning({
  1182. Color = BRICKC("New Yeller").Color,
  1183. Start = AREAS[i],
  1184. End = AREAS[i] + VT(0, 100, 0),
  1185. SegmentL = 2,
  1186. Thickness = 0.2,
  1187. DoesFade = true,
  1188. Ignore = workspace,
  1189. MaxDist = 30,
  1190. Branches = false
  1191. })
  1192. Lightning({
  1193. Color = RWING.Color,
  1194. Start = AREAS[i],
  1195. End = AREAS[i] + VT(0, 100, 0),
  1196. SegmentL = 2,
  1197. Thickness = 0.3,
  1198. DoesFade = true,
  1199. Ignore = workspace,
  1200. MaxDist = 35,
  1201. Branches = false
  1202. })
  1203. WACKYEFFECT({
  1204. Time = 15,
  1205. EffectType = "Wave",
  1206. Size = VT(10, 0, 10),
  1207. Size2 = VT(9, 5, 9),
  1208. Transparency = 0,
  1209. Transparency2 = 1,
  1210. CFrame = CF(AREAS[i]),
  1211. MoveToPos = nil,
  1212. RotationX = 0,
  1213. RotationY = 5,
  1214. RotationZ = 0,
  1215. Material = "Neon",
  1216. Color = RWING.Color,
  1217. SoundID = 1537955136,
  1218. SoundPitch = MRANDOM(6, 8) / 10,
  1219. SoundVolume = 2
  1220. })
  1221. end
  1222. for i = 0, 0.5, 0.1 / Animation_Speed do
  1223. Swait()
  1224. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1225. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1226. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1227. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1228. Grasp.C1 = Clerp(Grasp.C1, CF(0, 0, 0) * ANGLES(RAD(80), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1229. end
  1230. FORCEWINGS = false
  1231. ATTACK = false
  1232. Rooted = false
  1233. end
  1234. function G()
  1235. ATTACK = true
  1236. Rooted = true
  1237. FORCEWINGS = true
  1238. CreateSound(1537955136, Torso, 5, 1, false)
  1239. for i = 1, 15 do
  1240. Swait()
  1241. RootPart.CFrame = RootPart.CFrame * CF(0, 0, 0.8)
  1242. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + i / 15 + 0.2 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.75 / Animation_Speed)
  1243. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(75)), 0.75 / Animation_Speed)
  1244. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(15 - 5 * COS(SINE / 12)), RAD(-35), RAD(35 - 3 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1245. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-35), RAD(-12 + 3 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1246. end
  1247. for i = 0, 0.3, 0.1 / Animation_Speed do
  1248. Swait()
  1249. RootPart.CFrame = RootPart.CFrame * CF(0, 0, 0.015)
  1250. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.2 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.75 / Animation_Speed)
  1251. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(75)), 0.75 / Animation_Speed)
  1252. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(15 - 5 * COS(SINE / 12)), RAD(-35), RAD(35 - 3 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1253. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-35), RAD(-12 + 3 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1254. end
  1255. for i = 0, 1, 0.1 / Animation_Speed do
  1256. Swait()
  1257. Grasp.C1 = Clerp(Grasp.C1, CF(0, 0, 0) * ANGLES(RAD(170), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1258. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.5 * COS(SINE), 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1259. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1260. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.3) * ANGLES(RAD(140), RAD(0), RAD(-42)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1261. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.3) * ANGLES(RAD(140), RAD(0), RAD(42)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1262. end
  1263. CreateSound(1537955679, Blade, 7, 0.7, false)
  1264. for i = 0, 0.4, 0.1 / Animation_Speed do
  1265. Swait()
  1266. Grasp.C1 = Clerp(Grasp.C1, CF(0, 0, 0) * ANGLES(RAD(115), RAD(-35), RAD(0)), 0.75 / Animation_Speed)
  1267. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1268. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1269. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(35), RAD(0), RAD(-42)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1270. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(35), RAD(0), RAD(42)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1271. end
  1272. local TORNADOBASE = CreatePart(3, Effects, "Neon", 0, 0, "Magenta", "Tornado", VT(5, 22.5, 5))
  1273. MakeForm(TORNADOBASE, "Ball")
  1274. TORNADOBASE.Mesh.Scale = VT(1, 8, 1)
  1275. local SWIRL = CreatePart(3, Effects, "Neon", 0, 0, "New Yeller", "Tornado", VT(0, 0, 0))
  1276. CreateMesh("SpecialMesh", SWIRL, "FileMesh", "1051557", "", VT(6, 135, 6), VT(0, 0, 0))
  1277. local SWIRL2 = CreatePart(3, Effects, "Neon", 0, 0, "New Yeller", "Tornado", VT(0, 0, 0))
  1278. CreateMesh("SpecialMesh", SWIRL2, "FileMesh", "1051557", "", VT(6, 135, 6), VT(0, 0, 0))
  1279. CreateSound(415700134, TORNADOBASE, 3, 0.5, true)
  1280. coroutine.resume(coroutine.create(function()
  1281. local FRAME = RootPart.CFrame * CF(0, -5, -0.5)
  1282. for E = 1, 185 do
  1283. Swait()
  1284. FRAME = FRAME * CF(0, 0, -0.8)
  1285. TORNADOBASE.CFrame = FRAME * CF(0, TORNADOBASE.Size.Y / 2, 0)
  1286. SWIRL.CFrame = TORNADOBASE.CFrame * ANGLES(RAD(0), RAD(E * 5), RAD(0))
  1287. SWIRL2.CFrame = TORNADOBASE.CFrame * ANGLES(RAD(0), RAD(-E * 15), RAD(0))
  1288. for i = 1, math.ceil(TORNADOBASE.Size.Y / 6) do
  1289. ApplyAoE(TORNADOBASE.CFrame * CF(0, TORNADOBASE.Size.Y / 2, 0) * CF(0, -i * 6, 0).p, 8, 2, 3, -35, 0)
  1290. end
  1291. WACKYEFFECT({
  1292. Time = 5,
  1293. EffectType = "Wave",
  1294. Size = VT(10, 8, 10),
  1295. Size2 = VT(0, 0, 0),
  1296. Transparency = 0,
  1297. Transparency2 = 1,
  1298. CFrame = CF(FRAME.p) * ANGLES(RAD(0), RAD(E * 5), RAD(0)),
  1299. MoveToPos = nil,
  1300. RotationX = 0,
  1301. RotationY = 5,
  1302. RotationZ = 0,
  1303. Material = "Neon",
  1304. Color = TORNADOBASE.Color,
  1305. SoundID = nil,
  1306. SoundPitch = MRANDOM(6, 8) / 10,
  1307. SoundVolume = 2
  1308. })
  1309. end
  1310. for i = 1, 15 do
  1311. Swait()
  1312. TORNADOBASE.Transparency = i / 15
  1313. SWIRL.Transparency = i / 15
  1314. SWIRL2.Transparency = i / 15
  1315. SWIRL.CFrame = SWIRL.CFrame * ANGLES(RAD(0), RAD(i * 5), RAD(0))
  1316. SWIRL2.CFrame = SWIRL2.CFrame * ANGLES(RAD(0), RAD(-i * 15), RAD(0))
  1317. end
  1318. TORNADOBASE:remove()
  1319. SWIRL:remove()
  1320. SWIRL2:remove()
  1321. end))
  1322. for i = 0, 0.2, 0.1 / Animation_Speed do
  1323. Swait()
  1324. Grasp.C1 = Clerp(Grasp.C1, CF(0, 0, 0) * ANGLES(RAD(115), RAD(-35), RAD(0)), 0.75 / Animation_Speed)
  1325. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1326. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1327. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(35), RAD(0), RAD(-42)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1328. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(35), RAD(0), RAD(42)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1329. end
  1330. FORCEWINGS = false
  1331. ATTACK = false
  1332. Rooted = false
  1333. end
  1334. function MouseDown(Mouse)
  1335. if ATTACK == false then
  1336. end
  1337. end
  1338. function MouseUp(Mouse)
  1339. HOLD = false
  1340. end
  1341. function KeyDown(Key)
  1342. KEYHOLD = true
  1343. if VALUE1 == false then
  1344. if Key == "z" and ATTACK == false then
  1345. Z()
  1346. end
  1347. if Key == "b" and ATTACK == false then
  1348. B()
  1349. end
  1350. if Key == "c" and ATTACK == false then
  1351. C()
  1352. end
  1353. if Key == "v" and ATTACK == false then
  1354. V()
  1355. end
  1356. if Key == "g" and ATTACK == false then
  1357. G()
  1358. end
  1359. if Key == "x" and ATTACK == false then
  1360. X()
  1361. end
  1362. if Key == "q" and ATTACK == false then
  1363. VALUE1 = true
  1364. GYRO = IT("BodyGyro", RootPart)
  1365. GYRO.D = 75
  1366. GYRO.P = 40000
  1367. GYRO.MaxTorque = VT(40000, 40000, 40000)
  1368. GYRO.cframe = CF(RootPart.Position, RootPart.CFrame * CF(0, 0, -1).p)
  1369. FLIGHTFORCE = Instance.new("BodyPosition", RootPart)
  1370. FLIGHTFORCE.D = 215
  1371. FLIGHTFORCE.P = 20000
  1372. FLIGHTFORCE.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1373. FLIGHTFORCE.position = RootPart.Position + VT(0, 1, 0)
  1374. end
  1375. elseif VALUE1 == true then
  1376. if Key == "q" and ATTACK == false then
  1377. VALUE1 = false
  1378. end
  1379. if Key == "w" and ATTACK == false then
  1380. CreateSound(1537955679, RWING, 7, 1.2, false)
  1381. CreateSound(1537955679, LWING, 7, 1.2, false)
  1382. repeat
  1383. VALUE2 = true
  1384. Swait()
  1385. FLIGHTFORCE.Position = RootPart.CFrame * CF(0, 0, -5).p
  1386. until KEYHOLD == false
  1387. VALUE2 = false
  1388. end
  1389. end
  1390. end
  1391. function KeyUp(Key)
  1392. KEYHOLD = false
  1393. end
  1394. Mouse.Button1Down:connect(function(NEWKEY)
  1395. MouseDown(NEWKEY)
  1396. end)
  1397. Mouse.Button1Up:connect(function(NEWKEY)
  1398. MouseUp(NEWKEY)
  1399. end)
  1400. Mouse.KeyDown:connect(function(NEWKEY)
  1401. KeyDown(NEWKEY)
  1402. end)
  1403. Mouse.KeyUp:connect(function(NEWKEY)
  1404. KeyUp(NEWKEY)
  1405. end)
  1406. function unanchor()
  1407. if UNANCHOR == true then
  1408. g = Character:GetChildren()
  1409. for i = 1, #g do
  1410. if g[i].ClassName == "Part" then
  1411. g[i].Anchored = false
  1412. end
  1413. end
  1414. end
  1415. end
  1416. Humanoid.Changed:connect(function(Jump)
  1417. if Jump == "Jump" and Disable_Jump == true then
  1418. Humanoid.Jump = false
  1419. end
  1420. end)
  1421. while true do
  1422. Swait()
  1423. script.Parent = WEAPONGUI
  1424. ANIMATE.Parent = nil
  1425. for _, v in next, Humanoid:GetPlayingAnimationTracks() do
  1426. v:Stop()
  1427. end
  1428. SINE = SINE + CHANGE * 2
  1429. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1430. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1431. if VALUE1 == false then
  1432. if GYRO ~= nil then
  1433. GYRO:remove()
  1434. end
  1435. if FLIGHTFORCE ~= nil then
  1436. FLIGHTFORCE:remove()
  1437. end
  1438. if ATTACK == false then
  1439. Grasp.C1 = Clerp(Grasp.C1, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1440. if TORSOVELOCITY < 1 then
  1441. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.2 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-35)), 0.75 / Animation_Speed)
  1442. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(35)), 0.75 / Animation_Speed)
  1443. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(5 - 5 * COS(SINE / 12)), RAD(-35), RAD(12 - 3 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1444. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-35), RAD(-12 + 3 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1445. elseif TORSOVELOCITY > 1 then
  1446. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 - 0.1 * SIN(SINE / 12)) * ANGLES(RAD(35), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1447. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1448. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-35), RAD(12)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1449. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(-35), RAD(-12)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1450. end
  1451. end
  1452. elseif VALUE1 == true then
  1453. if VALUE2 == false and ATTACK == false then
  1454. if GYRO ~= nil then
  1455. GYRO.MaxTorque = VT(0, 40000, 0)
  1456. GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p)
  1457. end
  1458. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.2 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-35)), 0.75 / Animation_Speed)
  1459. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(35)), 0.75 / Animation_Speed)
  1460. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(5 - 5 * COS(SINE / 12)), RAD(-35), RAD(12 - 3 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1461. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-35), RAD(-12 + 3 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1462. elseif VALUE2 == true and ATTACK == false then
  1463. if GYRO ~= nil then
  1464. GYRO.MaxTorque = VT(40000, 40000, 40000)
  1465. GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p)
  1466. end
  1467. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.2 * COS(SINE / 12)) * ANGLES(RAD(75), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1468. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-40), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1469. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-35), RAD(12)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1470. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(-35), RAD(-12)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1471. end
  1472. end
  1473. if FORCEWINGS == true or ATTACK == false then
  1474. LWELD.C0 = Clerp(LWELD.C0, CF(-1, 1.5, 0.7 + 0.2 * COS(SINE / 12)) * ANGLES(RAD(12 * COS(SINE / 12)), RAD(45), RAD(0)), 0.75 / Animation_Speed)
  1475. RWELD.C0 = Clerp(RWELD.C0, CF(1, 1.5, 0.7 + 0.2 * COS(SINE / 12)) * ANGLES(RAD(12 * COS(SINE / 12)), RAD(-45), RAD(0)), 0.75 / Animation_Speed)
  1476. end
  1477. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.7, -0.4) * ANGLES(RAD(-25), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1478. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.7, -0.4) * ANGLES(RAD(-15), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1479. unanchor()
  1480. Humanoid.MaxHealth = "inf"
  1481. Humanoid.Health = "inf"
  1482. if Rooted == false then
  1483. Disable_Jump = false
  1484. Humanoid.WalkSpeed = Speed
  1485. elseif Rooted == true then
  1486. Disable_Jump = true
  1487. Humanoid.WalkSpeed = 0
  1488. end
  1489. sick.SoundId = "rbxassetid://152000442"
  1490. sick.Looped = true
  1491. sick.Pitch = 1
  1492. sick.Volume = 3
  1493. sick.Parent = Torso
  1494. sick:Resume()
  1495. if INTRO == false then
  1496. INTRO = true
  1497. coroutine.resume(coroutine.create(function()
  1498. Intro()
  1499. end))
  1500. end
  1501. for _, c in pairs(Character:GetChildren()) do
  1502. if c.ClassName == "CharacterMesh" or c.Name == "Body Colors" then
  1503. c:remove()
  1504. elseif c.ClassName == "Accessory" and c.Handle:FindFirstChild("HairAttachment") == nil then
  1505. c:remove()
  1506. end
  1507. end
  1508. Humanoid.Name = "Galacta " .. Player.Name
  1509. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement