9Simplicity9

MOREPANDORATESTREEE

Jun 2nd, 2018
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 136.13 KB | None | 0 0
  1. --//====================================================\\--
  2. --|| CREATED BY SHACKLUSTER
  3. --\\====================================================//--
  4.  
  5. print'Pandora Edit By UndeniableInfinity.'
  6. print'Script name: "INSANITY PANDORA"'
  7. print'Insanity Pandora is an edit which makes it more op.'
  8. print'The Upgrades are:'
  9. warn'More Magic Bullets, which is now named Bullet Hell.'
  10. warn'Much Bigger Impact Of "Warp Meteor" which is now named "Warp Apocalypse"'
  11. warn'"Times up", which is now named "Game Over" has now Ultra-Fast Wave/Pulse Killing.'
  12. warn'WAVES ARE NOW INSANELY FAST. at this point i do not know if anyone can touch you. except Ghosts.'
  13. warn'Chained Punch was only SLIGHTLY buffed.'
  14. warn'"Pandoras Box", which is now named "Insanity Box", has now;'
  15. warn'More "Ghosts" Spawn.'
  16. warn'Bigger Black Hole And Gravity Orb...thing.'
  17. warn'Bigger Box Explosion.'
  18. warn'Added Two Moves that came from OTHER Shackluster Scripts.'
  19. print'MOVES BELOW'
  20. warn'[Z] Bullet Hell'
  21. warn'[B] Game Over'
  22. warn'[V] Warp Apocalypse'
  23. warn'[C] Chained Punch'
  24. warn'[X] Insanity Box'
  25. warn'[Q] Isolation (Warden Lock)'
  26. warn'[E] Void Blast (Ravager Beam)'
  27. print'Welp, Thats it all covered up.'
  28. print'Credits to Shackluster, as there are some moves from other scripts he did too. this may be a Minor Mix, and kind of major edit.'
  29.  
  30. wait(0.2)
  31.  
  32. Player = game:GetService("Players").LocalPlayer
  33. PlayerGui = Player.PlayerGui
  34. Cam = workspace.CurrentCamera
  35. Backpack = Player.Backpack
  36. Character = Player.Character
  37. Humanoid = Character.Humanoid
  38. Mouse = Player:GetMouse()
  39. RootPart = Character["HumanoidRootPart"]
  40. Torso = Character["Torso"]
  41. Head = Character["Head"]
  42. RightArm = Character["Right Arm"]
  43. LeftArm = Character["Left Arm"]
  44. RightLeg = Character["Right Leg"]
  45. LeftLeg = Character["Left Leg"]
  46. RootJoint = RootPart["RootJoint"]
  47. Neck = Torso["Neck"]
  48. RightShoulder = Torso["Right Shoulder"]
  49. LeftShoulder = Torso["Left Shoulder"]
  50. RightHip = Torso["Right Hip"]
  51. LeftHip = Torso["Left Hip"]
  52. Character.Archivable = true
  53. Player:ClearCharacterAppearance()
  54.  
  55. IT = Instance.new
  56. CF = CFrame.new
  57. VT = Vector3.new
  58. RAD = math.rad
  59. C3 = Color3.new
  60. UD2 = UDim2.new
  61. BRICKC = BrickColor.new
  62. ANGLES = CFrame.Angles
  63. EULER = CFrame.fromEulerAnglesXYZ
  64. COS = math.cos
  65. ACOS = math.acos
  66. SIN = math.sin
  67. ASIN = math.asin
  68. ABS = math.abs
  69. MRANDOM = math.random
  70. FLOOR = math.floor
  71.  
  72. --//=================================\\
  73. --|| USEFUL VALUES
  74. --\\=================================//
  75.  
  76. Animation_Speed = 3
  77. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  78. local Speed = 20
  79. local SIZE = 1.4
  80. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  81. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  82. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  83. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  84. local DAMAGEMULTIPLIER = 1
  85. local ANIM = "Idle"
  86. local ATTACK = false
  87. local EQUIPPED = false
  88. local HOLD = false
  89. local COMBO = 1
  90. local Rooted = false
  91. local SINE = 0
  92. local KEYHOLD = false
  93. local CHANGE = 2 / Animation_Speed
  94. local WALKINGANIM = false
  95. local VALUE1 = false
  96. local VALUE2 = false
  97. local ROBLOXIDLEANIMATION = IT("Animation")
  98. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  99. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  100. local ATANIM = IT("Animation")
  101. ATANIM.Name = "Attack Animation"
  102. ATANIM.AnimationId = "http://www.roblox.com/asset/?id=74894663"
  103. --ROBLOXIDLEANIMATION.Parent = Humanoid
  104. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  105. WEAPONGUI.Name = "Weapon GUI"
  106. local Weapon = IT("Model")
  107. Weapon.Name = "Adds"
  108. local Effects = IT("Folder", Weapon)
  109. Effects.Name = "Effects"
  110. local ANIMATOR = Humanoid.Animator
  111. local ANIMATE = Character.Animate
  112. local UNANCHOR = true
  113. local CLOCKLOOP = 0
  114. local SONG = 1382488262
  115. local CLOCKTARGET = nil
  116. local CLOCKSPEED = 50
  117. script.Parent = WEAPONGUI
  118. local CLONE = Character:Clone()
  119. CLONE.Parent = nil
  120. Character.Archivable = false
  121. local sick = Instance.new("Sound",Torso)
  122. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  123. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  124. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  125. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  126.  
  127. --//=================================\\
  128. --\\=================================//
  129.  
  130.  
  131. --//=================================\\
  132. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  133. --\\=================================//
  134.  
  135. ArtificialHB = Instance.new("BindableEvent", script)
  136. ArtificialHB.Name = "ArtificialHB"
  137.  
  138. script:WaitForChild("ArtificialHB")
  139.  
  140. frame = Frame_Speed
  141. tf = 0
  142. allowframeloss = false
  143. tossremainder = false
  144. lastframe = tick()
  145. script.ArtificialHB:Fire()
  146.  
  147. game:GetService("RunService").Heartbeat:connect(function(s, p)
  148. tf = tf + s
  149. if tf >= frame then
  150. if allowframeloss then
  151. script.ArtificialHB:Fire()
  152. lastframe = tick()
  153. else
  154. for i = 1, math.floor(tf / frame) do
  155. script.ArtificialHB:Fire()
  156. end
  157. lastframe = tick()
  158. end
  159. if tossremainder then
  160. tf = 0
  161. else
  162. tf = tf - frame * math.floor(tf / frame)
  163. end
  164. end
  165. end)
  166.  
  167. --//=================================\\
  168. --\\=================================//
  169.  
  170. --//=================================\\
  171. --|| SOME FUNCTIONS
  172. --\\=================================//
  173. function RemoveOutlines(part)
  174. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  175. end
  176.  
  177. local RbxUtility = LoadLibrary("RbxUtility")
  178. local Create = RbxUtility.Create
  179.  
  180. function RemoveOutlines(part)
  181. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  182. end
  183.  
  184. CFuncs = {
  185. Part = {
  186. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  187. local Part = Create("Part"){
  188. Parent = Parent,
  189. Reflectance = Reflectance,
  190. Transparency = Transparency,
  191. CanCollide = false,
  192. Locked = true,
  193. BrickColor = BrickColor.new(tostring(BColor)),
  194. Name = Name,
  195. Size = Size,
  196. Material = Material,
  197. }
  198. RemoveOutlines(Part)
  199. if Size == Vector3.new() then
  200. Part.Size = Vector3.new(0.2, 0.2, 0.2)
  201. else
  202. Part.Size = Size
  203. end
  204. return Part
  205. end;
  206. };
  207.  
  208. Mesh = {
  209. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  210. local Msh = Create(Mesh){
  211. Parent = Part,
  212. Offset = OffSet,
  213. Scale = Scale,
  214. }
  215. if Mesh == "SpecialMesh" then
  216. Msh.MeshType = MeshType
  217. Msh.MeshId = MeshId
  218. end
  219. return Msh
  220. end;
  221. };
  222.  
  223. Weld = {
  224. Create = function(Parent, Part0, Part1, C0, C1)
  225. local Weld = Create("Weld"){
  226. Parent = Parent,
  227. Part0 = Part0,
  228. Part1 = Part1,
  229. C0 = C0,
  230. C1 = C1,
  231. }
  232. return Weld
  233. end;
  234. };
  235.  
  236. Sound = {
  237. Create = function(id, par, vol, pit)
  238. local Sound = Create("Sound"){
  239. Volume = vol,
  240. Pitch = pit or 1,
  241. Name = "aa",
  242. SoundId = "rbxassetid://" .. id,
  243. Parent = par or workspace,
  244. }
  245. Sound:play()
  246. return Sound
  247. end;
  248. };
  249.  
  250. Decal = {
  251. Create = function(Color, Texture, Transparency, Name, Parent)
  252. local Decal = Create("Decal"){
  253. Color3 = Color,
  254. Texture = "rbxassetid://" .. Texture,
  255. Transparency = Transparency,
  256. Name = Name,
  257. Parent = Parent,
  258. }
  259. return Decal
  260. end;
  261. };
  262.  
  263. BillboardGui = {
  264. Create = function(Parent, Image, Position, Size)
  265. local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1))
  266. BillPar.CFrame = CFrame.new(Position)
  267. local Bill = Create("BillboardGui"){
  268. Parent = BillPar,
  269. Adornee = BillPar,
  270. Size = UDim2.new(1, 0, 1, 0),
  271. SizeOffset = Vector2.new(Size, Size),
  272. }
  273. local d = Create("ImageLabel", Bill){
  274. Parent = Bill,
  275. BackgroundTransparency = 1,
  276. Size = UDim2.new(1, 0, 1, 0),
  277. Image = "rbxassetid://" .. Image,
  278. }
  279. return BillPar
  280. end
  281. };
  282.  
  283. ParticleEmitter = {
  284. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  285. local Particle = Create("ParticleEmitter"){
  286. Parent = Parent,
  287. Colored = ColorSequence.new(Color1, Color2),
  288. LightEmission = LightEmission,
  289. Size = Size,
  290. Texture = Texture,
  291. Transparency = Transparency,
  292. ZOffset = ZOffset,
  293. Acceleration = Accel,
  294. Drag = Drag,
  295. LockedToPart = LockedToPart,
  296. VelocityInheritance = VelocityInheritance,
  297. EmissionDirection = EmissionDirection,
  298. Enabled = Enabled,
  299. Lifetime = LifeTime,
  300. Rate = Rate,
  301. Rotation = Rotation,
  302. RotSpeed = RotSpeed,
  303. Speed = Speed,
  304. VelocitySpread = VelocitySpread,
  305. }
  306. return Particle
  307. end;
  308. };
  309.  
  310. CreateTemplate = {
  311.  
  312. };
  313. }
  314.  
  315. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  316. for _, c in pairs(workspace:children()) do
  317. local hum = c:findFirstChildOfClass("Humanoid")
  318. if hum ~= nil then
  319. local head = c:findFirstChild("Torso")
  320. if head ~= nil then
  321. local targ = head.Position - Part.Position
  322. local mag = targ.magnitude
  323. if mag <= Magnitude and c.Name ~= Player.Name then
  324. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
  325. Effects.Lightning.Create(Part.Position, head.Position, 2, 5, "Really black", 1, 0, 3)
  326. end
  327. end
  328. end
  329. end
  330. end
  331.  
  332.  
  333. function PlayAnimationFromTable(table, speed, bool)
  334. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  335. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  336. RW.C0 = clerp(RW.C0, table[3], speed)
  337. LW.C0 = clerp(LW.C0, table[4], speed)
  338. RH.C0 = clerp(RH.C0, table[5], speed)
  339. LH.C0 = clerp(LH.C0, table[6], speed)
  340. if bool == true then
  341. if resetc1 == false then
  342. resetc1 = true
  343. RootJoint.C1 = RootJoint.C1
  344. Torso.Neck.C1 = Torso.Neck.C1
  345. RW.C1 = rarmc1
  346. LW.C1 = larmc1
  347. RH.C1 = rlegc1
  348. LH.C1 = llegc1
  349. end
  350. end
  351. end
  352.  
  353.  
  354. function Reappear()
  355. for _, c in pairs(Character:GetChildren()) do
  356. if c.ClassName == "Part" and c.Name ~= "HumanoidRootPart" then
  357. c.Transparency = 0
  358. if c:FindFirstChildOfClass("Decal") then
  359. c:FindFirstChildOfClass("Decal").Transparency = 0
  360. end
  361. if c:FindFirstChildOfClass("ParticleEmitter") then
  362. c:FindFirstChildOfClass("ParticleEmitter").Enabled = true
  363. end
  364. elseif c.ClassName == "Accessory" then
  365. c.Handle.Transparency = 0
  366. if c.Handle:FindFirstChildOfClass("ParticleEmitter") then
  367. c.Handle:FindFirstChildOfClass("ParticleEmitter").Enabled = true
  368. end
  369. end
  370. end
  371. end
  372.  
  373. function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  374. if FLOOR ~= nil then
  375. coroutine.resume(coroutine.create(function()
  376. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Really red", "DebreeCenter", VT(0,0,0))
  377. PART.CFrame = CF(POSITION)
  378. for i = 1, 45 do
  379. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Really red", "DebreePart", BLOCKSIZE)
  380. RingPiece.Material = FLOOR.Material
  381. RingPiece.Color = FLOOR.Color
  382. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  383. Debris:AddItem(RingPiece,SWAIT)
  384. end
  385. PART:remove()
  386. end))
  387. end
  388. end
  389.  
  390. function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  391. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  392. local mesh = IT("SpecialMesh",wave)
  393. mesh.MeshType = "FileMesh"
  394. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  395. mesh.Scale = SIZE
  396. mesh.Offset = VT(0,0,0)
  397. wave.CFrame = CFRAME
  398. coroutine.resume(coroutine.create(function(PART)
  399. for i = 1, WAIT do
  400. Swait()
  401. mesh.Scale = mesh.Scale + GROW
  402. if DOESROT == true then
  403. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  404. end
  405. wave.Transparency = wave.Transparency + (0.5/WAIT)
  406. if wave.Transparency > 0.99 then
  407. wave:remove()
  408. end
  409. end
  410. end))
  411. end
  412.  
  413. function VanishPlayer()
  414. for _, c in pairs(Character:GetChildren()) do
  415. if c.ClassName == "Part" then
  416. c.Transparency = 1
  417. if c:FindFirstChildOfClass("Decal") then
  418. c:FindFirstChildOfClass("Decal").Transparency = 1
  419. end
  420. if c:FindFirstChildOfClass("ParticleEmitter") then
  421. c:FindFirstChildOfClass("ParticleEmitter").Enabled = false
  422. end
  423. elseif c.ClassName == "Accessory" then
  424. c.Handle.Transparency = 1
  425. if c.Handle:FindFirstChildOfClass("ParticleEmitter") then
  426. c.Handle:FindFirstChildOfClass("ParticleEmitter").Enabled = false
  427. end
  428. end
  429. end
  430. end
  431.  
  432. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  433. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  434. end
  435.  
  436. function PositiveAngle(NUMBER)
  437. if NUMBER >= 0 then
  438. NUMBER = 0
  439. end
  440. return NUMBER
  441. end
  442.  
  443. function NegativeAngle(NUMBER)
  444. if NUMBER <= 0 then
  445. NUMBER = 0
  446. end
  447. return NUMBER
  448. end
  449.  
  450. function Swait(NUMBER)
  451. if NUMBER == 0 or NUMBER == nil then
  452. ArtificialHB.Event:wait()
  453. else
  454. for i = 1, NUMBER do
  455. ArtificialHB.Event:wait()
  456. end
  457. end
  458. end
  459.  
  460. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  461. local NEWMESH = IT(MESH)
  462. if MESH == "SpecialMesh" then
  463. NEWMESH.MeshType = MESHTYPE
  464. if MESHID ~= "nil" and MESHID ~= "" then
  465. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  466. end
  467. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  468. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  469. end
  470. end
  471. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  472. NEWMESH.Scale = SCALE
  473. NEWMESH.Parent = PARENT
  474. return NEWMESH
  475. end
  476.  
  477. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  478. local NEWPART = IT("Part")
  479. NEWPART.formFactor = FORMFACTOR
  480. NEWPART.Reflectance = REFLECTANCE
  481. NEWPART.Transparency = TRANSPARENCY
  482. NEWPART.CanCollide = false
  483. NEWPART.Locked = true
  484. NEWPART.Anchored = true
  485. if ANCHOR == false then
  486. NEWPART.Anchored = false
  487. end
  488. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  489. NEWPART.Name = NAME
  490. NEWPART.Size = SIZE
  491. NEWPART.Position = Torso.Position
  492. NEWPART.Material = MATERIAL
  493. NEWPART:BreakJoints()
  494. NEWPART.Parent = PARENT
  495. return NEWPART
  496. end
  497.  
  498. local function weldBetween(a, b)
  499. local weldd = Instance.new("ManualWeld")
  500. weldd.Part0 = a
  501. weldd.Part1 = b
  502. weldd.C0 = CFrame.new()
  503. weldd.C1 = b.CFrame:inverse() * a.CFrame
  504. weldd.Parent = a
  505. return weldd
  506. end
  507.  
  508.  
  509. function QuaternionFromCFrame(cf)
  510. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  511. local trace = m00 + m11 + m22
  512. if trace > 0 then
  513. local s = math.sqrt(1 + trace)
  514. local recip = 0.5 / s
  515. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  516. else
  517. local i = 0
  518. if m11 > m00 then
  519. i = 1
  520. end
  521. if m22 > (i == 0 and m00 or m11) then
  522. i = 2
  523. end
  524. if i == 0 then
  525. local s = math.sqrt(m00 - m11 - m22 + 1)
  526. local recip = 0.5 / s
  527. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  528. elseif i == 1 then
  529. local s = math.sqrt(m11 - m22 - m00 + 1)
  530. local recip = 0.5 / s
  531. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  532. elseif i == 2 then
  533. local s = math.sqrt(m22 - m00 - m11 + 1)
  534. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  535. end
  536. end
  537. end
  538.  
  539. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  540. local xs, ys, zs = x + x, y + y, z + z
  541. local wx, wy, wz = w * xs, w * ys, w * zs
  542. local xx = x * xs
  543. local xy = x * ys
  544. local xz = x * zs
  545. local yy = y * ys
  546. local yz = y * zs
  547. local zz = z * zs
  548. 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))
  549. end
  550.  
  551. function QuaternionSlerp(a, b, t)
  552. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  553. local startInterp, finishInterp;
  554. if cosTheta >= 0.0001 then
  555. if (1 - cosTheta) > 0.0001 then
  556. local theta = ACOS(cosTheta)
  557. local invSinTheta = 1 / SIN(theta)
  558. startInterp = SIN((1 - t) * theta) * invSinTheta
  559. finishInterp = SIN(t * theta) * invSinTheta
  560. else
  561. startInterp = 1 - t
  562. finishInterp = t
  563. end
  564. else
  565. if (1 + cosTheta) > 0.0001 then
  566. local theta = ACOS(-cosTheta)
  567. local invSinTheta = 1 / SIN(theta)
  568. startInterp = SIN((t - 1) * theta) * invSinTheta
  569. finishInterp = SIN(t * theta) * invSinTheta
  570. else
  571. startInterp = t - 1
  572. finishInterp = t
  573. end
  574. end
  575. 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
  576. end
  577.  
  578. function Clerp(a, b, t)
  579. local qa = {QuaternionFromCFrame(a)}
  580. local qb = {QuaternionFromCFrame(b)}
  581. local ax, ay, az = a.x, a.y, a.z
  582. local bx, by, bz = b.x, b.y, b.z
  583. local _t = 1 - t
  584. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  585. end
  586.  
  587. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  588. local frame = IT("Frame")
  589. frame.BackgroundTransparency = TRANSPARENCY
  590. frame.BorderSizePixel = BORDERSIZEPIXEL
  591. frame.Position = POSITION
  592. frame.Size = SIZE
  593. frame.BackgroundColor3 = COLOR
  594. frame.BorderColor3 = BORDERCOLOR
  595. frame.Name = NAME
  596. frame.Parent = PARENT
  597. return frame
  598. end
  599.  
  600. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  601. local label = IT("TextLabel")
  602. label.BackgroundTransparency = 1
  603. label.Size = UD2(1, 0, 1, 0)
  604. label.Position = UD2(0, 0, 0, 0)
  605. label.TextColor3 = TEXTCOLOR
  606. label.TextStrokeTransparency = STROKETRANSPARENCY
  607. label.TextTransparency = TRANSPARENCY
  608. label.FontSize = TEXTFONTSIZE
  609. label.Font = TEXTFONT
  610. label.BorderSizePixel = BORDERSIZEPIXEL
  611. label.TextStrokeColor3 = C3(1,1,1)
  612. label.TextScaled = false
  613. label.Text = TEXT
  614. label.Name = NAME
  615. label.Parent = PARENT
  616. return label
  617. end
  618.  
  619. function NoOutlines(PART)
  620. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  621. end
  622.  
  623. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  624. local NEWWELD = IT(TYPE)
  625. NEWWELD.Part0 = PART0
  626. NEWWELD.Part1 = PART1
  627. NEWWELD.C0 = C0
  628. NEWWELD.C1 = C1
  629. NEWWELD.Parent = PARENT
  630. return NEWWELD
  631. end
  632.  
  633. local S = IT("Sound")
  634. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  635. local NEWSOUND = nil
  636. coroutine.resume(coroutine.create(function()
  637. NEWSOUND = S:Clone()
  638. NEWSOUND.Parent = PARENT
  639. NEWSOUND.Volume = VOLUME
  640. NEWSOUND.Pitch = PITCH
  641. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  642. NEWSOUND:play()
  643. if DOESLOOP == true then
  644. NEWSOUND.Looped = true
  645. else
  646. repeat wait(1) until NEWSOUND.Playing == false
  647. NEWSOUND:remove()
  648. end
  649. end))
  650. return NEWSOUND
  651. end
  652.  
  653. function CFrameFromTopBack(at, top, back)
  654. local right = top:Cross(back)
  655. 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)
  656. end
  657.  
  658. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  659. function WACKYEFFECT(Table)
  660. local TYPE = (Table.EffectType or "Sphere")
  661. local SIZE = (Table.Size or VT(1,1,1))
  662. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  663. local TRANSPARENCY = (Table.Transparency or 0)
  664. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  665. local CFRAME = (Table.CFrame or Torso.CFrame)
  666. local MOVEDIRECTION = (Table.MoveToPos or nil)
  667. local ROTATION1 = (Table.RotationX or 0)
  668. local ROTATION2 = (Table.RotationY or 0)
  669. local ROTATION3 = (Table.RotationZ or 0)
  670. local MATERIAL = (Table.Material or "Neon")
  671. local COLOR = (Table.Color or C3(1,1,1))
  672. local TIME = (Table.Time or 45)
  673. local SOUNDID = (Table.SoundID or nil)
  674. local SOUNDPITCH = (Table.SoundPitch or nil)
  675. local SOUNDVOLUME = (Table.SoundVolume or nil)
  676. coroutine.resume(coroutine.create(function()
  677. local PLAYSSOUND = false
  678. local SOUND = nil
  679. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  680. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  681. PLAYSSOUND = true
  682. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  683. end
  684. EFFECT.Color = COLOR
  685. local MSH = nil
  686. if TYPE == "Sphere" then
  687. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  688. elseif TYPE == "Block" then
  689. MSH = IT("BlockMesh",EFFECT)
  690. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  691. elseif TYPE == "Wave" then
  692. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  693. elseif TYPE == "Ring" then
  694. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  695. elseif TYPE == "Slash" then
  696. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  697. elseif TYPE == "Round Slash" then
  698. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  699. elseif TYPE == "Swirl" then
  700. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  701. elseif TYPE == "Skull" then
  702. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  703. elseif TYPE == "Crystal" then
  704. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  705. end
  706. if MSH ~= nil then
  707. local MOVESPEED = nil
  708. if MOVEDIRECTION ~= nil then
  709. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  710. end
  711. local GROWTH = SIZE - ENDSIZE
  712. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  713. if TYPE == "Block" then
  714. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  715. else
  716. EFFECT.CFrame = CFRAME
  717. end
  718. for LOOP = 1, TIME+1 do
  719. Swait()
  720. MSH.Scale = MSH.Scale - GROWTH/TIME
  721. if TYPE == "Wave" then
  722. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  723. end
  724. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  725. if TYPE == "Block" then
  726. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  727. else
  728. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  729. end
  730. if MOVEDIRECTION ~= nil then
  731. local ORI = EFFECT.Orientation
  732. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  733. EFFECT.Orientation = ORI
  734. end
  735. end
  736. if PLAYSSOUND == false then
  737. EFFECT:remove()
  738. else
  739. repeat Swait() until SOUND.Playing == false
  740. EFFECT:remove()
  741. end
  742. else
  743. if PLAYSSOUND == false then
  744. EFFECT:remove()
  745. else
  746. repeat Swait() until SOUND.Playing == false
  747. EFFECT:remove()
  748. end
  749. end
  750. end))
  751. end
  752. function killnearest(position,range,maxstrength)
  753. for i,v in ipairs(workspace:GetChildren()) do
  754. local body = v:GetChildren()
  755. for part = 1, #body do
  756. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  757. if(body[part].Position - position).Magnitude < range then
  758. if v.ClassName == "Model" then
  759. v:BreakJoints()
  760. end
  761. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  762. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  763. end
  764. end
  765. end
  766. if v.ClassName == "Part" then
  767. if v.Anchored == false and (v.Position - position).Magnitude < range then
  768. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  769. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  770. end
  771. end
  772. end
  773. end
  774.  
  775. function CheckTableForString(Table, String)
  776. for i, v in pairs(Table) do
  777. if string.find(string.lower(String), string.lower(v)) then
  778. return true
  779. end
  780. end
  781. return false
  782. end
  783.  
  784. function CheckIntangible(Hit)
  785. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  786. if Hit and Hit.Parent then
  787. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  788. return true
  789. end
  790. end
  791. return false
  792. end
  793.  
  794. function MakeForm(PART,TYPE)
  795. if TYPE == "Cyl" then
  796. local MSH = IT("CylinderMesh",PART)
  797. elseif TYPE == "Ball" then
  798. local MSH = IT("SpecialMesh",PART)
  799. MSH.MeshType = "Sphere"
  800. elseif TYPE == "Wedge" then
  801. local MSH = IT("SpecialMesh",PART)
  802. MSH.MeshType = "Wedge"
  803. end
  804. end
  805.  
  806. Debris = game:GetService("Debris")
  807.  
  808. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  809. local DIRECTION = CF(StartPos,EndPos).lookVector
  810. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  811. end
  812.  
  813. function turnto(position)
  814. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  815. end
  816.  
  817. function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors)
  818. PLAYMAINANIM = false
  819. if WhichPose == "Cast1" then
  820. for i=0, Time, 0.1 / Animation_Speed do
  821. Swait()
  822. if Magic == true then
  823. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  824. end
  825. if Gyro ~= nil and Gyro ~= false then
  826. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  827. end
  828. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), Speed / Animation_Speed)
  829. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-35)), Speed / Animation_Speed)
  830. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(125), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  831. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  832. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  833. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  834. end
  835. elseif WhichPose == "Cast2" then
  836. for i=0, Time, 0.1 / Animation_Speed do
  837. Swait()
  838. if Magic == true then
  839. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  840. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  841. end
  842. if Gyro ~= nil and Gyro ~= false then
  843. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  844. end
  845. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  846. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  847. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(15)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  848. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  849. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  850. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  851. end
  852. elseif WhichPose == "RightArmUp" then
  853. for i=0, Time, 0.1 / Animation_Speed do
  854. Swait()
  855. if Magic == true then
  856. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  857. end
  858. if Gyro ~= nil and Gyro ~= false then
  859. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  860. end
  861. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), Speed / Animation_Speed)
  862. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), Speed / Animation_Speed)
  863. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(125), RAD(0), RAD(25)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  864. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  865. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  866. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  867. end
  868. elseif WhichPose == "Taunt" then
  869. for i=0, Time, 0.1 / Animation_Speed do
  870. Swait()
  871. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  872. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  873. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  874. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  875. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  876. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  877. end
  878. HATWELD.Part0 = RightArm
  879. HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
  880. CreateSound(221057812,Torso,10,1,false)
  881. for i=0, Time*2, 0.1 / Animation_Speed do
  882. Swait()
  883. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  884. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  885. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(145), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  886. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(5), RAD(25), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  887. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  888. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  889. end
  890. for i=0, Time, 0.1 / Animation_Speed do
  891. Swait()
  892. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  893. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
  894. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  895. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  896. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  897. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  898. HATWELD.C0 = Clerp(HATWELD.C0, CF(-0.5,-1.2,-0.3) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(35), RAD(0), RAD(35)), Speed / Animation_Speed)
  899. end
  900. HATWELD.Part0 = Head
  901. HATWELD.C0 = CF(0,0.35,0)
  902. elseif WhichPose == "Prepare key" then
  903. for i=0, Time, 0.1 / Animation_Speed do
  904. Swait()
  905. if Gyro ~= nil and Gyro ~= false then
  906. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  907. end
  908. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(65)), Speed / Animation_Speed)
  909. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-65)), Speed / Animation_Speed)
  910. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  911. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  912. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  913. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  914. end
  915. elseif WhichPose == "Turn key" then
  916. for i=0, Time, 0.1 / Animation_Speed do
  917. Swait()
  918. if Gyro ~= nil and Gyro ~= false then
  919. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  920. end
  921. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(75)), Speed / Animation_Speed)
  922. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), Speed / Animation_Speed)
  923. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(75)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  924. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  925. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  926. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  927. end
  928. end
  929. PLAYMAINANIM = true
  930. end
  931.  
  932. --Lightning({Color = C3(1,1,1), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 400, Branches = false})
  933. function Lightning(Table)
  934. local ColorR = Table.Color or C3(1,1,1)
  935. local StartPos = Table.Start or Torso.Position
  936. local EndPos = Table.End or Mouse.Hit.p
  937. local SegmentLength = Table.SegmentL or 2
  938. local Thickness = Table.Thickness or 0.1
  939. local Dissapear = Table.DoesFade or false
  940. local Parent = Table.Ignore or Character
  941. local MaxDist = Table.MaxDist or 400
  942. local Branches = Table.Branches or false
  943. local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
  944. local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/SegmentLength)
  945. local LIGHTNINGMODEL = IT("Model",Effects)
  946. LIGHTNINGMODEL.Name = "Lightning"
  947. local LastBolt = nil
  948. for E = 1, DISTANCE do
  949. local ExtraSize = (DISTANCE-E)/15
  950. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
  951. PART.Color = Color
  952. MakeForm(PART,"Cyl")
  953. if LastBolt == nil then
  954. PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  955. else
  956. 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)
  957. end
  958. LastBolt = PART
  959. if Branches == true then
  960. local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
  961. if CHOICE == 1 then
  962. local LASTBRANCH = nil
  963. for i = 1, MRANDOM(2,5) do
  964. local ExtraSize2 = ((DISTANCE-E)/25)/i
  965. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
  966. PART.Color = Color
  967. MakeForm(PART,"Cyl")
  968. if LASTBRANCH == nil then
  969. 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)
  970. else
  971. 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)
  972. end
  973. LASTBRANCH = PART
  974. end
  975. end
  976. end
  977. end
  978. if Dissapear == true then
  979. coroutine.resume(coroutine.create(function()
  980. for i = 1, 10 do
  981. Swait()
  982. for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
  983. if c.ClassName == "Part" then
  984. c.Transparency = i/10
  985. end
  986. end
  987. end
  988. LIGHTNINGMODEL:remove()
  989. end))
  990. elseif Dissapear == false then
  991. Debris:AddItem(LIGHTNINGMODEL,0.1)
  992. end
  993. return {End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z/2).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
  994. end
  995.  
  996. --//=================================\\
  997. --|| WEAPON CREATION
  998. --\\=================================//
  999.  
  1000. RootPart.Size = RootPart.Size*SIZE
  1001. Torso.Size = Torso.Size*SIZE
  1002. RightArm.Size = RightArm.Size*SIZE
  1003. RightLeg.Size = RightLeg.Size*SIZE
  1004. LeftArm.Size = LeftArm.Size*SIZE
  1005. LeftLeg.Size = LeftLeg.Size*SIZE
  1006. RootJoint.C0 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0))
  1007. RootJoint.C1 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0))
  1008. Neck.C0 = NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1 * SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1009. Neck.C1 = CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180))
  1010. RightShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE)
  1011. LeftShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE)
  1012. RightHip.C0 = CF(1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1013. LeftHip.C0 = CF(-1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1014. RightHip.C1 = CF(0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1015. LeftHip.C1 = CF(-0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1016. Head.Size = Head.Size*SIZE
  1017. RootJoint.Parent = RootPart
  1018. Neck.Parent = Torso
  1019. RightShoulder.Parent = Torso
  1020. LeftShoulder.Parent = Torso
  1021. RightHip.Parent = Torso
  1022. LeftHip.Parent = Torso
  1023.  
  1024. Humanoid.DisplayDistanceType = "None"
  1025. local naeeym2 = IT("BillboardGui",Character)
  1026. naeeym2.AlwaysOnTop = true
  1027. naeeym2.Size = UDim2.new(5,35,2,15)
  1028. naeeym2.StudsOffset = Vector3.new(0,2,0)
  1029. naeeym2.MaxDistance = 75
  1030. naeeym2.Adornee = Character.Head
  1031. naeeym2.Name = "Name"
  1032. local tecks2 = IT("TextLabel",naeeym2)
  1033. tecks2.BackgroundTransparency = 1
  1034. tecks2.TextScaled = true
  1035. tecks2.BorderSizePixel = 0
  1036. tecks2.Text = "!Insanity! Pandora"
  1037. tecks2.Font = "Fantasy"
  1038. tecks2.TextSize = 30
  1039. tecks2.TextStrokeTransparency = 0
  1040. tecks2.TextColor3 = C3(1,1,1)
  1041. tecks2.TextStrokeColor3 = C3(159/255, 111/255, 183/255)
  1042. tecks2.Size = UDim2.new(1,0,0.5,0)
  1043. tecks2.Parent = naeeym2
  1044. local top = Instance.new("Shirt")
  1045. top.ShirtTemplate = "rbxassetid://1533635803"
  1046. top.Parent = Character
  1047. top.Name = "Cloth"
  1048. local bottom = Instance.new("Pants")
  1049. bottom.PantsTemplate = "rbxassetid://1460022985"
  1050. bottom.Parent = Character
  1051. bottom.Name = "Cloth"
  1052. local PRT = CreatePart(3, Weapon, "Fabric", 0, 0, "Really black", "Hat", VT(1,1,1),false)
  1053. PRT.Color = C3(0,0,0)
  1054. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.72*SIZE,0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), CF(0, 0, 0))
  1055. CreateMesh("SpecialMesh", PRT, "FileMesh", "26768040", "", VT(1,1,1)*SIZE, VT(0,0,0))
  1056. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Detail", VT(1,1,1),false)
  1057. PRT.Color = C3(1,1,1)
  1058. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0))
  1059. CreateMesh("SpecialMesh", PRT, "FileMesh", "13520257", "", VT(1,1,1)*SIZE, VT(0,0,0))
  1060. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Detail", VT(1,1.2,0.2),false)
  1061. PRT.Color = C3(159/255, 111/255, 183/255)
  1062. MakeForm(PRT,"Ball")
  1063. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0))
  1064. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Detail", VT(0.5,0.4,0.5),false)
  1065. PRT.Color = C3(159/255, 111/255, 183/255)
  1066. MakeForm(PRT,"Ball")
  1067. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,-0.3,-.5*SIZE), CF(0, 0, 0))
  1068. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Detail", VT(0.5,0.3,0.3),false)
  1069. PRT.Color = C3(159/255, 111/255, 183/255)
  1070. MakeForm(PRT,"Ball")
  1071. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.25,0.25,-.5*SIZE), CF(0, 0, 0))
  1072. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Detail", VT(0.5,0.3,0.3),false)
  1073. PRT.Color = C3(159/255, 111/255, 183/255)
  1074. MakeForm(PRT,"Ball")
  1075. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.25,0.25,-.5*SIZE), CF(0, 0, 0))
  1076. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Detail", VT(0.4,0.4,0.3),false)
  1077. PRT.Color = C3(159/255, 111/255, 183/255)
  1078. MakeForm(PRT,"Ball")
  1079. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(15), RAD(0)), CF(0, 0, 0))
  1080. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Detail", VT(0.4,0.4,0.3),false)
  1081. PRT.Color = C3(159/255, 111/255, 183/255)
  1082. MakeForm(PRT,"Ball")
  1083. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(-15), RAD(0)), CF(0, 0, 0))
  1084.  
  1085. local LASTPART = Head
  1086. for i = 1, 24 do
  1087. local MATH = (1-(i/30))
  1088. if LASTPART == Head then
  1089. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  1090. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.8, 0.3, -0.4) * ANGLES(RAD(-25), RAD(220), RAD(90)), CF(0, 0, 0))
  1091. LASTPART = Horn
  1092. Horn.Color = C3(0,0,0)
  1093. else
  1094. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  1095. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(5), RAD(3), RAD(0)), CF(0, -Horn.Size.Y/2, 0))
  1096. LASTPART = Horn
  1097. Horn.Color = C3(0,0,0)
  1098. end
  1099. end
  1100. local LASTPART = Head
  1101. for i = 1, 24 do
  1102. local MATH = (1-(i/30))
  1103. if LASTPART == Head then
  1104. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  1105. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.8, 0.3, -0.4) * ANGLES(RAD(-25), RAD(-220), RAD(-90)), CF(0, 0, 0))
  1106. LASTPART = Horn
  1107. Horn.Color = C3(0,0,0)
  1108. else
  1109. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  1110. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(5), RAD(-3), RAD(0)), CF(0, -Horn.Size.Y/2, 0))
  1111. LASTPART = Horn
  1112. Horn.Color = C3(0,0,0)
  1113. end
  1114. end
  1115. local LASTPART = Head
  1116. for i = 1, 8 do
  1117. local MATH = (1-(i/14))
  1118. if LASTPART == Head then
  1119. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  1120. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.65, -0.3, -0.4) * ANGLES(RAD(-25), RAD(250), RAD(90)), CF(0, 0, 0))
  1121. LASTPART = Horn
  1122. Horn.Color = C3(0,0,0)
  1123. else
  1124. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  1125. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(10), RAD(3), RAD(0)), CF(0, -Horn.Size.Y/2, 0))
  1126. LASTPART = Horn
  1127. Horn.Color = C3(0,0,0)
  1128. end
  1129. end
  1130. local LASTPART = Head
  1131. for i = 1, 8 do
  1132. local MATH = (1-(i/14))
  1133. if LASTPART == Head then
  1134. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  1135. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.65, -0.3, -0.4) * ANGLES(RAD(-25), RAD(-250), RAD(-90)), CF(0, 0, 0))
  1136. LASTPART = Horn
  1137. Horn.Color = C3(0,0,0)
  1138. else
  1139. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  1140. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(10), RAD(-3), RAD(0)), CF(0, -Horn.Size.Y/2, 0))
  1141. LASTPART = Horn
  1142. Horn.Color = C3(0,0,0)
  1143. end
  1144. end
  1145. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Watch", VT(1.05,0.06,1.05)*SIZE,false)
  1146. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1147. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Watch", VT(0.5,0.1,0.5)*SIZE,false)
  1148. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
  1149. MakeForm(PRT,"Cyl")
  1150. local PRT = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Watch", VT(0.45,0.11,0.45)*SIZE,false)
  1151. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
  1152. MakeForm(PRT,"Cyl")
  1153. PRT.Color = C3(159/255, 111/255, 183/255)
  1154. local RING = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Watch", VT(0.055,0.15,0.055)*SIZE,false)
  1155. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RING, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
  1156. MakeForm(RING,"Cyl")
  1157. RING.Color = C3(0,0,0)
  1158. for i = 1, 12 do
  1159. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Watch", VT(0,0.15,0)*SIZE,false)
  1160. PRT.Color = C3(0,0,0)
  1161. local MSH = IT("BlockMesh",PRT)
  1162. MSH.Scale = VT(0.6,1,1)
  1163. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD((360/12)*i), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.2*SIZE))
  1164. end
  1165. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Watch", VT(0,0.15,0.15)*SIZE,false)
  1166. PRT.Color = C3(0,0,0)
  1167. local MSH = IT("BlockMesh",PRT)
  1168. MSH.Scale = VT(0.4,1,1)
  1169. local WATCH1 = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.075*SIZE))
  1170. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15/1.5)*SIZE,false)
  1171. PRT.Color = C3(0,0,0)
  1172. local MSH = IT("BlockMesh",PRT)
  1173. MSH.Scale = VT(0.4,1,1)
  1174. local WATCH2 = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -(0.075/1.5)*SIZE))
  1175. coroutine.resume(coroutine.create(function()
  1176. while true do
  1177. Swait()
  1178. CLOCKLOOP = CLOCKLOOP - 1*CLOCKSPEED
  1179. WATCH1.C0 = Clerp(WATCH1.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5), RAD(0)), 1 / Animation_Speed)
  1180. WATCH2.C0 = Clerp(WATCH2.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5/2), RAD(0)), 1 / Animation_Speed)
  1181. if CLOCKLOOP <= -150 then
  1182. if VALUE1 == false then
  1183. CLOCKLOOP = 0
  1184. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = RING.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = 743521450, SoundPitch = 1.2, SoundVolume = 4})
  1185. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25*SIZE, Character)
  1186. ApplyAoE(HITPOS,10,15,45,75,false)
  1187. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(15,2,15), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1188. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(12,3,12), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1189. if CLOCKTARGET ~= nil then
  1190. CLOCKTARGET.Health = CLOCKTARGET.Health - 20
  1191. if CLOCKTARGET.Torso ~= nil then
  1192. CLOCKTARGET.Torso.CFrame = CLOCKTARGET.Torso.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))
  1193. end
  1194. if CLOCKTARGET.Health == 0 then
  1195. CLOCKTARGET = nil
  1196. end
  1197. end
  1198. end
  1199. end
  1200. end
  1201. end))
  1202.  
  1203. for _, c in pairs(Weapon:GetChildren()) do
  1204. if c.ClassName == "Part" then
  1205. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1206. end
  1207. end
  1208.  
  1209. Neck.Name = "Weld"
  1210. RootJoint.Name = "Weld"
  1211. RightShoulder.Name = "Weld"
  1212. LeftShoulder.Name = "Weld"
  1213. RightHip.Name = "Weld"
  1214. LeftHip.Name = "Weld"
  1215.  
  1216. local SKILLTEXTCOLOR = C3(255/255, 0/255, 0/255)
  1217. local SKILLFONT = "Fantasy"
  1218. local SKILLTEXTSIZE = 7
  1219.  
  1220. Weapon.Parent = Character
  1221. Humanoid.Parent = Character
  1222.  
  1223. Humanoid.Died:connect(function()
  1224. ATTACK = true
  1225. end)
  1226.  
  1227. --//=================================\\
  1228. --|| DAMAGING
  1229. --\\=================================//
  1230.  
  1231. function ApplyDamage(Humanoid,Damage,TorsoPart)
  1232. local defence = Instance.new("BoolValue",Humanoid.Parent)
  1233. defence.Name = ("HitBy"..Player.Name)
  1234. game:GetService("Debris"):AddItem(defence, 0.001)
  1235. Damage = Damage * DAMAGEMULTIPLIER
  1236. if Humanoid.Health ~= 0 then
  1237. local CritChance = MRANDOM(1,100)
  1238. if Damage > Humanoid.Health then
  1239. Damage = math.ceil(Humanoid.Health)
  1240. if Damage == 0 then
  1241. Damage = 0.1
  1242. end
  1243. end
  1244. Humanoid.Health = Humanoid.Health - Damage
  1245. end
  1246. end
  1247.  
  1248. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  1249. local CHILDREN = workspace:GetDescendants()
  1250. for index, CHILD in pairs(CHILDREN) do
  1251. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1252. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1253. if HUM then
  1254. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1255. if TORSO then
  1256. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1257. if INSTAKILL == true then
  1258. CHILD:BreakJoints()
  1259. else
  1260. local DMG = MRANDOM(MINDMG,MAXDMG)
  1261. ApplyDamage(HUM,DMG,TORSO)
  1262. end
  1263. if FLING > 0 then
  1264. for _, c in pairs(CHILD:GetChildren()) do
  1265. if c:IsA("BasePart") then
  1266. local bv = Instance.new("BodyVelocity")
  1267. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1268. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1269. bv.Parent = c
  1270. Debris:AddItem(bv,0.05)
  1271. end
  1272. end
  1273. end
  1274. end
  1275. end
  1276. end
  1277. end
  1278. end
  1279. end
  1280.  
  1281. function MagicSphere2(size,waitt,cframe,color)
  1282. local wave = CreatePart(3, Effects, "Neon", 0, 1, BRICKC(color), "Effect", VT(1,1,1))
  1283. local mesh = IT("SpecialMesh",wave)
  1284. mesh.MeshType = "Sphere"
  1285. mesh.Scale = VT(size,size,size)
  1286. mesh.Offset = VT(0,0,0)
  1287. wave.CFrame = cframe
  1288. coroutine.resume(coroutine.create(function(PART)
  1289. for i = 1, waitt do
  1290. Swait()
  1291. mesh.Scale = mesh.Scale - VT(size/waitt,size/waitt,size/waitt)
  1292. wave.Transparency = wave.Transparency - (1/waitt)
  1293. end
  1294. wave:remove()
  1295. end))
  1296. end
  1297.  
  1298. function MagicSphere(size,waitt,cframe,color)
  1299. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(1,1,1))
  1300. local mesh = IT("SpecialMesh",wave)
  1301. mesh.MeshType = "Sphere"
  1302. mesh.Scale = VT(size,size,size)
  1303. mesh.Offset = VT(0,0,0)
  1304. wave.CFrame = cframe
  1305. coroutine.resume(coroutine.create(function(PART)
  1306. for i = 1, waitt do
  1307. Swait()
  1308. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  1309. wave.Transparency = wave.Transparency + (1/waitt)
  1310. if wave.Transparency > 0.99 then
  1311. wave:remove()
  1312. end
  1313. end
  1314. end))
  1315. end
  1316.  
  1317. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  1318. local Direction = CFrame.new(StartPos, Vec).lookVector
  1319. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  1320. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  1321. if RayHit and CheckIntangible(RayHit) then
  1322. if DelayIfHit then
  1323. wait()
  1324. end
  1325. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  1326. end
  1327. return RayHit, RayPos, RayNormal
  1328. end
  1329.  
  1330. function CreateSwirl(inair,size,doesrotate,rotatedirection,waitt,cframe,color)
  1331. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  1332. local mesh = IT("SpecialMesh",wave)
  1333. mesh.MeshType = "FileMesh"
  1334. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  1335. mesh.Scale = VT(size,size,size)
  1336. wave.CFrame = cframe
  1337. coroutine.resume(coroutine.create(function(PART)
  1338. for i = 1, waitt do
  1339. Swait()
  1340. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  1341. if doesrotate == true then
  1342. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  1343. end
  1344. wave.Transparency = wave.Transparency + (0.5/waitt)
  1345. if wave.Transparency > 0.99 then
  1346. wave:remove()
  1347. end
  1348. end
  1349. end))
  1350. end
  1351.  
  1352. --//=================================\\
  1353. --|| ATTACK FUNCTIONS AND STUFF
  1354. --\\=================================//
  1355.  
  1356. function MagicMissiles()
  1357. ATTACK = true
  1358. Rooted = true
  1359. local SELECTING = true
  1360. local SPOTS = {}
  1361. coroutine.resume(coroutine.create(function()
  1362. local LOOP = 0
  1363. repeat
  1364. LOOP = LOOP + 1
  1365. Swait()
  1366. if LOOP >= 20 then
  1367. LOOP = 0
  1368. for i = 1, #SPOTS do
  1369. if SPOTS[i] ~= nil then
  1370. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(8,2,8), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1371. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,3,6), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1372. end
  1373. end
  1374. end
  1375. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1376. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1377. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(115), RAD(45), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1378. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1379. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1380. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1381. until SELECTING == false
  1382. Rooted = false
  1383. repeat
  1384. LOOP = LOOP + 1
  1385. Swait()
  1386. if LOOP >= 20 then
  1387. LOOP = 0
  1388. for i = 1, #SPOTS do
  1389. if SPOTS[i] ~= nil then
  1390. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(8,2,8), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1391. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,3,6), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1392. end
  1393. end
  1394. end
  1395. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1396. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 4 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed)
  1397. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1398. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1399. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1400. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1401. until ATTACK == false
  1402. end))
  1403. repeat
  1404. repeat Swait() until HOLD == true
  1405. local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude
  1406. if DIST > 9999 then
  1407. DIST = 9999
  1408. end
  1409. local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace)
  1410. local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character)
  1411. if HITFLOOR ~= nil then
  1412. table.insert(SPOTS,CF(HITPOS,HITPOS+NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0)))
  1413. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,2,6), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.2,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = 90655239, SoundPitch = 1, SoundVolume = 6})
  1414. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(4,3,4), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.2,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1415. end
  1416. repeat Swait() until HOLD == false
  1417. until #SPOTS == 15
  1418. SELECTING = false
  1419. for i = 1, #SPOTS do
  1420. if SPOTS[i] ~= nil then
  1421. local POS = SPOTS[i]
  1422. coroutine.resume(coroutine.create(function()
  1423. local MISSILE = IT("Model",Effects)
  1424. MISSILE.Name = "Missile"
  1425. local BASEPART = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2,2,2))
  1426. MakeForm(BASEPART,"Cyl")
  1427. MISSILE.PrimaryPart = BASEPART
  1428. BASEPART.CFrame = POS*CF(0,-30*3,0)
  1429. local HEAD = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2,4,2))
  1430. MakeForm(HEAD,"Ball")
  1431. HEAD.CFrame = BASEPART.CFrame*CF(0,1,0)
  1432. local TAIL = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2.5,0.1,2.5))
  1433. MakeForm(TAIL,"Cyl")
  1434. TAIL.CFrame = BASEPART.CFrame*CF(0,-1,0)
  1435. for i = 1, 10 do
  1436. Swait()
  1437. for _, c in pairs(MISSILE:GetChildren()) do
  1438. if c.ClassName == "Part" then
  1439. c.Transparency = c.Transparency - 1/10
  1440. end
  1441. end
  1442. end
  1443. for i = 1, 15*1.5 do
  1444. Swait()
  1445. MISSILE:SetPrimaryPartCFrame(BASEPART.CFrame*CF(0,1.35*3,0))
  1446. end
  1447. ApplyAoE(BASEPART.CFrame.p,20,35,45,75,false)
  1448. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(75,1,75), Transparency = 0.5, Transparency2 = 1, CFrame = BASEPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4})
  1449. WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(35,35,35), Transparency = 0, Transparency2 = 1, CFrame = BASEPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = 165970126, SoundPitch = MRANDOM(13,15)/10, SoundVolume = 4})
  1450. WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(22,2,22), Transparency = 0, Transparency2 = 1, CFrame = POS * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1451. WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(20,3,20), Transparency = 0, Transparency2 = 1, CFrame = POS * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1452. MISSILE:remove()
  1453. end))
  1454. end
  1455. end
  1456. wait(0.6)
  1457. ATTACK = false
  1458. Rooted = false
  1459. end
  1460.  
  1461.  
  1462.  
  1463. function TimesUp()
  1464. CLOCKTARGET = nil
  1465. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1466. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1467. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  1468. if TORSO then
  1469. ATTACK = true
  1470. Rooted = false
  1471. coroutine.resume(coroutine.create(function()
  1472. repeat
  1473. Swait()
  1474. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1475. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1476. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.5*SIZE, -0.2*SIZE) * ANGLES(RAD(75), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1477. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1478. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1479. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1480. until ATTACK == false
  1481. end))
  1482. if Effects:FindFirstChild("NeonDoll") then
  1483. repeat Swait() until Effects:FindFirstChild("NeonDoll") == nil
  1484. end
  1485. wait(0.5)
  1486. local FAKECHARACTER = IT("Model",Effects)
  1487. FAKECHARACTER.Name = "NeonDoll"
  1488. local TORS = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.3,0.3,0.15),false)
  1489. CreateWeldOrSnapOrMotor("Weld", RING, RING, TORS, CF(0,0.6,0), CF(0,0,0))
  1490. local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.3,0.15),false)
  1491. CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0,0.15,0))
  1492. local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.3,0.15),false)
  1493. CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(-0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0,0.15,0))
  1494. local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.3,0.15),false)
  1495. CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0,0.15,0))
  1496. local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.3,0.15),false)
  1497. CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(-0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(-90)), CF(0,0.15,0))
  1498. local HEAD = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.15,0.15),false)
  1499. CreateWeldOrSnapOrMotor("Weld", TORS, TORS, HEAD, CF(0,0.225,0), CF(0,0,0))
  1500. CreateSound(201858045, TORS, 5, 0.4, false)
  1501. for i = 1, 150 do
  1502. Swait()
  1503. CLOCKSPEED = 100
  1504. for _, c in pairs(FAKECHARACTER:GetChildren()) do
  1505. if c.ClassName == "Part" then
  1506. c.Transparency = c.Transparency - 0.5/150
  1507. end
  1508. end
  1509. end
  1510. CLOCKTARGET = HUM
  1511. coroutine.resume(coroutine.create(function()
  1512. repeat Swait() CLOCKSPEED = 100 until CLOCKTARGET == nil
  1513. for i = 1, 25 do
  1514. Swait()
  1515. for _, c in pairs(FAKECHARACTER:GetChildren()) do
  1516. if c.ClassName == "Part" then
  1517. c.Transparency = c.Transparency + 0.5/25
  1518. end
  1519. end
  1520. end
  1521. CLOCKSPEED = 100
  1522. FAKECHARACTER:remove()
  1523. end))
  1524. wait(0.5)
  1525. ATTACK = false
  1526. Rooted = false
  1527. end
  1528. end
  1529. end
  1530.  
  1531. function ChainPunch()
  1532. ATTACK = true
  1533. Rooted = false
  1534. local GYRO = IT("BodyGyro",RootPart)
  1535. GYRO.D = 25
  1536. GYRO.P = 2000
  1537. GYRO.MaxTorque = VT(0,40000,0)
  1538. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1539. repeat
  1540. Swait()
  1541. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1542. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1543. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 4 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed)
  1544. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1545. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1546. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1547. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1548. until HOLD == true
  1549. local POS = Mouse.Hit.p
  1550. local CHAINS = false
  1551. local CHAINLINKS = {}
  1552. local A = IT("Attachment",RightArm)
  1553. A.Position = VT(1,-1,0)*SIZE
  1554. A.Orientation = VT(-90, -89.982, 0)
  1555. local B = IT("Attachment",RightArm)
  1556. B.Position = VT(-1,-1,0)*SIZE
  1557. B.Orientation = VT(-90, 89.988, 0)
  1558. local C = IT("Attachment",RightArm)
  1559. C.Position = VT(0.5,-1.3,0)*SIZE
  1560. C.Orientation = VT(-90, -89.982, 0)
  1561. local D = IT("Attachment",RightArm)
  1562. D.Position = VT(-0.5,-1.3,0)*SIZE
  1563. D.Orientation = VT(-90, 89.988, 0)
  1564. local LIGHT = IT("Attachment",RightArm)
  1565. LIGHT.Position = VT(0,-1,0)*SIZE
  1566. local LIGHT2 = IT("PointLight",LIGHT)
  1567. LIGHT2.Range = 7
  1568. LIGHT2.Brightness = 5
  1569. LIGHT2.Color = SKILLTEXTCOLOR
  1570. for i = 1, 2 do
  1571. local TWIST = -2
  1572. local START = A
  1573. local END = B
  1574. if i == 1 then
  1575. START = B
  1576. END = A
  1577. end
  1578. local ChainLink = IT("Beam",Torso)
  1579. ChainLink.Texture = "rbxassetid://73042633"
  1580. ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR)
  1581. ChainLink.TextureSpeed = 1
  1582. ChainLink.Width0 = 1
  1583. ChainLink.Width1 = 1
  1584. ChainLink.TextureLength = 2.5
  1585. ChainLink.Attachment0 = START
  1586. ChainLink.Attachment1 = END
  1587. ChainLink.CurveSize0 = TWIST
  1588. ChainLink.CurveSize1 = TWIST
  1589. --ChainLink.FaceCamera = true
  1590. ChainLink.Segments = 45
  1591. ChainLink.Transparency = NumberSequence.new(1)
  1592. table.insert(CHAINLINKS,ChainLink)
  1593. end
  1594. for i = 1, 2 do
  1595. local TWIST = -1
  1596. local START = C
  1597. local END = D
  1598. if i == 1 then
  1599. START = D
  1600. END = C
  1601. end
  1602. local ChainLink = IT("Beam",Torso)
  1603. ChainLink.Texture = "rbxassetid://73042633"
  1604. ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR)
  1605. ChainLink.TextureSpeed = 1
  1606. ChainLink.Width0 = 1
  1607. ChainLink.Width1 = 1
  1608. ChainLink.TextureLength = 5
  1609. ChainLink.Attachment0 = START
  1610. ChainLink.Attachment1 = END
  1611. ChainLink.CurveSize0 = TWIST
  1612. ChainLink.CurveSize1 = TWIST
  1613. --ChainLink.FaceCamera = true
  1614. ChainLink.Segments = 25
  1615. ChainLink.LightEmission = 0.5
  1616. ChainLink.Transparency = NumberSequence.new(1)
  1617. table.insert(CHAINLINKS,ChainLink)
  1618. end
  1619. coroutine.resume(coroutine.create(function()
  1620. repeat
  1621. Swait()
  1622. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
  1623. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.15 / Animation_Speed)
  1624. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0.2*SIZE) * ANGLES(RAD(60), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1625. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1626. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1627. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1628. until CHAINS == true
  1629. repeat
  1630. Swait()
  1631. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  1632. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 1 / Animation_Speed)
  1633. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, -0.2*SIZE) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1634. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1635. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1636. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1637. until ATTACK == false
  1638. for e = 1, 15 do
  1639. Swait()
  1640. for i = 1, #CHAINLINKS do
  1641. CHAINLINKS[i].Transparency = NumberSequence.new((e/15))
  1642. end
  1643. end
  1644. A:remove()
  1645. B:remove()
  1646. C:remove()
  1647. D:remove()
  1648. end))
  1649. CreateSound(233856115, RightArm, 5, 1.2, false)
  1650. for e = 1, 15 do
  1651. Swait()
  1652. for i = 1, #CHAINLINKS do
  1653. CHAINLINKS[i].Transparency = NumberSequence.new(1-(e/15))
  1654. end
  1655. end
  1656. CHAINS = true
  1657. Rooted = true
  1658. wait(0.25)
  1659. local FIST = CreatePart(3, Effects, "Neon", 0, 0.5, "Alder", "Part", VT(2,2,2))
  1660. FIST.Color = C3(1, 215/255, 1)
  1661. FIST.CFrame = CF(RightArm.CFrame*CF(0,-1.3*SIZE,0).p,POS) * ANGLES(RAD(90), RAD(0), RAD(0))
  1662. local LIGHT3 = IT("PointLight",FIST)
  1663. LIGHT3.Range = 7
  1664. LIGHT3.Brightness = 5
  1665. LIGHT3.Color = SKILLTEXTCOLOR
  1666. CreateMesh("SpecialMesh", FIST, "FileMesh", "90718752", "", VT(10,10,10), VT(0,0,0))
  1667. local FISTA = IT("Attachment",FIST)
  1668. FISTA.Position = VT(0.062, 0.977, 0)
  1669. local ChainLink = IT("Beam",Torso)
  1670. ChainLink.Texture = "rbxassetid://73042633"
  1671. ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR)
  1672. ChainLink.TextureSpeed = 0
  1673. ChainLink.Width0 = 3
  1674. ChainLink.Width1 = 3
  1675. ChainLink.TextureLength = 12
  1676. ChainLink.Attachment0 = LIGHT
  1677. ChainLink.Attachment1 = FISTA
  1678. ChainLink.FaceCamera = true
  1679. ChainLink.Segments = 45
  1680. ChainLink.LightEmission = 0.5
  1681. ChainLink.Transparency = NumberSequence.new(0.25)
  1682. local FISTSOUND = CreateSound(288641686, FIST, 5, 1.2, false)
  1683. for i = 1, 85 do
  1684. Swait()
  1685. FIST.CFrame = FIST.CFrame*CF(0,-2,0)
  1686. ChainLink.TextureLength = 12+(i*2)
  1687. ApplyAoE(FIST.Position,40,15,20,100,false)
  1688. WACKYEFFECT({Time = 5, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(20,0,20), Transparency = 0.5, Transparency2 = 1, CFrame = FIST.CFrame*CF(0,-1,0) * ANGLES(RAD(0), RAD(i*15), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1689. local HITFLOOR = Raycast(FIST.Position, (CF(FIST.Position, FIST.CFrame*CF(0,-1,0).p)).lookVector, 2.1, Character)
  1690. if HITFLOOR ~= nil then
  1691. HITFLOOR:BreakJoints()
  1692. coroutine.resume(coroutine.create(function()
  1693. for i = 1, 15 do
  1694. Swait()
  1695. FISTSOUND.Volume = FISTSOUND.Volume - 0.15
  1696. ApplyAoE(FIST.Position,10+(i*2),5,15,5,false)
  1697. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(60,3,60), Transparency = 0.5, Transparency2 = 1, CFrame = FIST.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1698. end
  1699. end))
  1700. break
  1701. end
  1702. end
  1703. coroutine.resume(coroutine.create(function()
  1704. for i = 1, 50 do
  1705. Swait()
  1706. FIST.Transparency = FIST.Transparency + 0.5/50
  1707. LIGHT3.Range = LIGHT3.Range - 7/50
  1708. end
  1709. FIST:remove()
  1710. end))
  1711. LIGHT:remove()
  1712. GYRO:remove()
  1713. ATTACK = false
  1714. Rooted = false
  1715. end
  1716.  
  1717. function WarpMeteor()
  1718. local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude
  1719. if DIST > 180 then
  1720. DIST = 180
  1721. end
  1722. local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace)
  1723. local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,45,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 75*SIZE, Character)
  1724. if HITFLOOR then
  1725. local POS = HITPOS
  1726. ATTACK = true
  1727. Rooted = true
  1728. local WARPED = false
  1729. local SMASHED = false
  1730. local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character)
  1731. coroutine.resume(coroutine.create(function()
  1732. repeat
  1733. Swait()
  1734. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1735. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1736. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(-55 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1737. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1738. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1739. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1740. until WARPED == true
  1741. repeat
  1742. Swait()
  1743. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1744. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1745. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(-55 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1746. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1747. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.5*SIZE + 0.06 * SIN(SINE / 24) - 0.1*SIZE * COS(SINE / 12), -0.5*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1748. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.1*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1749. until SMASHED == true
  1750. repeat
  1751. Swait()
  1752. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)), 1 / Animation_Speed)
  1753. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-40), RAD(0), RAD(0)), 1 / Animation_Speed)
  1754. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(170), RAD(-15), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1755. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(170), RAD(15), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1756. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed)
  1757. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1758. until ATTACK == false
  1759. end))
  1760. VALUE1 = true
  1761. CreateSound(233856115, Torso, 5, 1.6, false)
  1762. for i = 1, 25 do
  1763. Swait()
  1764. for _, c in pairs(Character:GetChildren()) do
  1765. if c.ClassName == "Part" then
  1766. c.Transparency = c.Transparency + 1/25
  1767. end
  1768. end
  1769. for _, c in pairs(Weapon:GetChildren()) do
  1770. if c.ClassName == "Part" then
  1771. c.Transparency = c.Transparency + 1/25
  1772. end
  1773. end
  1774. end
  1775. UNANCHOR = false
  1776. RootPart.Anchored = true
  1777. RootPart.Velocity = VT(0,0,0)
  1778. local ROOTPOS = RootPart.Position
  1779. RootPart.CFrame = CF(POS+VT(0,300,0),VT(ROOTPOS.X,POS.Y+300,ROOTPOS.Z))
  1780. WARPED = true
  1781. for i = 1, 25 do
  1782. Swait()
  1783. for _, c in pairs(Character:GetChildren()) do
  1784. if c.ClassName == "Part" then
  1785. c.Transparency = c.Transparency - 1/25
  1786. end
  1787. end
  1788. for _, c in pairs(Weapon:GetChildren()) do
  1789. if c.ClassName == "Part" then
  1790. c.Transparency = c.Transparency - 1/25
  1791. end
  1792. end
  1793. end
  1794. local SHELL = CreatePart(3, Effects, "Neon", 0, 1, "Alder", "Part", VT(0,0,0))
  1795. SHELL.CFrame = RootPart.CFrame
  1796. MakeForm(SHELL,"Ball")
  1797. CreateSound(402981977, SHELL, 5, 1.6, false)
  1798. for i = 1, 10 do
  1799. Swait()
  1800. SHELL.Transparency = SHELL.Transparency - 1/10
  1801. SHELL.Size = SHELL.Size + VT(2,2,2)*1.8
  1802. end
  1803. for i = 1, math.ceil(75/2) do
  1804. Swait()
  1805. RootPart.CFrame = RootPart.CFrame*CF(0,-3.5*2,0)
  1806. SHELL.CFrame = CF(RootPart.Position)
  1807. WACKYEFFECT({Time = 5, EffectType = "Sphere", Size = SHELL.Size, Size2 = VT(10,6,10), Transparency = 0.5, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = SHELL.Position+VT(0,15,0), RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6})
  1808. end
  1809. RootPart.CFrame = CF(POS+VT(0,1,0),VT(ROOTPOS.X,HITPOS.Y+1,ROOTPOS.Z))
  1810. SHELL.CFrame = CF(RootPart.Position)
  1811. WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = SHELL.Size, Size2 = VT(100,100,100)*4, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = 165970126, SoundPitch = 0.75, SoundVolume = 6})
  1812. WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(SHELL.Size.X,5,SHELL.Size.Z), Size2 = VT(60,6,60)*3.8, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6})
  1813. WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(SHELL.Size.X,5,SHELL.Size.Z), Size2 = VT(60,6,60)*4, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6})
  1814. for i = 1, 5 do
  1815. WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(50,5,50)*4, Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1816. end
  1817. SHELL:remove()
  1818. ApplyAoE(RootPart.Position,75,35,75,300,false)
  1819. SMASHED = true
  1820. wait(1)
  1821. VALUE1 = false
  1822. UNANCHOR = true
  1823. ATTACK = false
  1824. Rooted = false
  1825. end
  1826. end
  1827.  
  1828. function PandorasBox()
  1829. local HITFLOOR,HITPOS = Raycast(RootPart.CFrame*CF(0,0,-6.5).p, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
  1830. if HITFLOOR ~= nil then
  1831. ATTACK = true
  1832. Rooted = true
  1833. local RINGSPIN = true
  1834. local CONSTRUCTING = true
  1835. local RING = CreatePart(3, Effects, "Neon", 0, 1, "Alder", "Ring", VT(0,0,0))
  1836. RING.Color = C3(0,0,0)
  1837. MakeForm(RING,"Cyl")
  1838. RING.CFrame = CF(HITPOS)
  1839. CreateSound(402981977, RING, 5, 1.2, false)
  1840. coroutine.resume(coroutine.create(function()
  1841. repeat
  1842. Swait()
  1843. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
  1844. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1845. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1846. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(115), RAD(45), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1847. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1848. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1849. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1850. until CONSTRUCTING == false
  1851. repeat
  1852. Swait()
  1853. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
  1854. until RINGSPIN == false
  1855. for i = 1, 25 do
  1856. Swait()
  1857. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
  1858. RING.Size = RING.Size - VT(0.15,0,0.15)
  1859. --DECAL.Transparency = DECAL.Transparency + 1/25
  1860. RING.Transparency = RING.Transparency + 1/25
  1861. end
  1862. RING:remove()
  1863. end))
  1864. for i = 1, 15 do
  1865. Swait()
  1866. RING.Size = RING.Size + VT(0.75,0,0.75)
  1867. RING.Transparency = RING.Transparency - 1/15
  1868. end
  1869. local BOXSPIN = true
  1870. local PANDORASBOX = IT("Model",Effects)
  1871. PANDORASBOX.Name = "Pandora's Box"
  1872. local BOX = IT("Model",PANDORASBOX)
  1873. BOX.Name = "Body"
  1874. local LID = IT("Model",PANDORASBOX)
  1875. LID.Name = "Lid"
  1876. --BUILDING THE BOX--
  1877. local BASE = CreatePart(3, BOX, "Neon", 0, 0, "Alder", "Black", VT(2,1.8,2))
  1878. BASE.Color = C3(0,0,0)
  1879. PANDORASBOX.PrimaryPart = BASE
  1880. BASE.CFrame = CF(HITPOS+VT(0,-8,0),VT(RootPart.Position.X,HITPOS.Y-8,RootPart.Position.Z))
  1881. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2))
  1882. WOOD.CFrame = BASE.CFrame*CF(1,0,1)
  1883. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2))
  1884. WOOD.CFrame = BASE.CFrame*CF(1,0,-1)
  1885. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2))
  1886. WOOD.CFrame = BASE.CFrame*CF(-1,0,1)
  1887. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2))
  1888. WOOD.CFrame = BASE.CFrame*CF(-1,0,-1)
  1889. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
  1890. WOOD.CFrame = BASE.CFrame*CF(0,0.9,1)
  1891. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
  1892. WOOD.CFrame = BASE.CFrame*CF(0,0.9,-1)
  1893. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
  1894. WOOD.CFrame = BASE.CFrame*CF(1,0.9,0)
  1895. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
  1896. WOOD.CFrame = BASE.CFrame*CF(-1,0.9,0)
  1897. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
  1898. WOOD.CFrame = BASE.CFrame*CF(0,-0.9,1)
  1899. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
  1900. WOOD.CFrame = BASE.CFrame*CF(0,-0.9,-1)
  1901. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
  1902. WOOD.CFrame = BASE.CFrame*CF(1,-0.9,0)
  1903. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
  1904. WOOD.CFrame = BASE.CFrame*CF(-1,-0.9,0)
  1905. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,1.9,0.1))
  1906. WOOD.CFrame = BASE.CFrame*CF(0,0,1)
  1907. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,1.9,0.1))
  1908. WOOD.CFrame = BASE.CFrame*CF(0,0,-1)
  1909. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(0.1,1.9,2.1))
  1910. WOOD.CFrame = BASE.CFrame*CF(1,0,0)
  1911. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(0.1,1.9,2.1))
  1912. WOOD.CFrame = BASE.CFrame*CF(-1,0,0)
  1913. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,0.1,2.1))
  1914. WOOD.CFrame = BASE.CFrame*CF(0,-0.9,0)
  1915. -------------
  1916. local LIDPART = CreatePart(3, LID, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,0.1,2.1))
  1917. LIDPART.CFrame = BASE.CFrame*CF(0,1,0)
  1918. LID.PrimaryPart = LIDPART
  1919. local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
  1920. WOOD.CFrame = LIDPART.CFrame*CF(0,0,-1)
  1921. local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
  1922. WOOD.CFrame = LIDPART.CFrame*CF(0,0,1)
  1923. local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
  1924. WOOD.CFrame = LIDPART.CFrame*CF(1,0,0)
  1925. local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
  1926. WOOD.CFrame = LIDPART.CFrame*CF(-1,0,0)
  1927. local DECAL = IT("Decal",LIDPART)
  1928. DECAL.Face = "Top"
  1929. DECAL.Texture = "http://www.roblox.com/asset/?id=1501226061"
  1930. DECAL.Color3 = C3(0,0,0)
  1931. --BUILDING THE BOX--
  1932. coroutine.resume(coroutine.create(function()
  1933. repeat
  1934. Swait()
  1935. PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * ANGLES(RAD(0), RAD(2.45), RAD(0)))
  1936. until BOXSPIN == false
  1937. end))
  1938. for i = 1, 25 do
  1939. Swait()
  1940. PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,1.5-(i/12.5),0))
  1941. end
  1942. wait(0.5)
  1943. BOXSPIN = false
  1944. CONSTRUCTING = false
  1945. coroutine.resume(coroutine.create(function()
  1946. WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = LIDPART.Size, Size2 = VT(3,0,3)*4, Transparency = 0, Transparency2 = 1, CFrame = LIDPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 168586586, SoundPitch = 1.3, SoundVolume = 6})
  1947. --[[for i = 1, 45 do
  1948. Swait()
  1949. LID:SetPrimaryPartCFrame(LIDPART.CFrame * CF(0,1.5-(i/12.5),0.5) * ANGLES(RAD(0.7), RAD(0), RAD(0)))
  1950. end-
  1951. LID:remove()]]--
  1952. for _, c in pairs(LID:GetChildren()) do
  1953. if c.ClassName == "Part" then
  1954. c.Anchored = false
  1955. c.CanCollide = true
  1956. if c ~= LIDPART then
  1957. weldBetween(LIDPART,c)
  1958. end
  1959. end
  1960. end
  1961. LIDPART.Velocity = CF(LIDPART.Position,LIDPART.CFrame*CF(15,25,0).p).lookVector*65
  1962. Debris:AddItem(LID,15)
  1963. wait(0.5)
  1964. local RANDOMEFFECT = MRANDOM(1,4)
  1965. if RANDOMEFFECT == 1 then
  1966. for i = 1, 45 do
  1967. wait((2-(i/15))/15)
  1968. WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(0,MRANDOM(12,15),0) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,MRANDOM(1,5)), MoveToPos = BASE.Position, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.8, SoundVolume = 6})
  1969. end
  1970. wait(1)
  1971. WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(70,70,70)*12, Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 165970126, SoundPitch = 0.75, SoundVolume = 6})
  1972. WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(60,6,60)*10, Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 469345336, SoundPitch = 0.75, SoundVolume = 6})
  1973. WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(60,6,60)*9, Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6})
  1974. for i = 1, 5 do
  1975. WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(60,6,60)*12, Transparency = 0.5, Transparency2 = 1, CFrame = BASE.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1976. end
  1977. ApplyAoE(BASE.Position,50,1,200,375,false)
  1978. ApplyAoE(BASE.Position,250,35,75,475,false)
  1979. elseif RANDOMEFFECT == 2 then
  1980. local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Alder", "Field", VT(0.3,0.3,0.3))
  1981. FIELD.CFrame = BASE.CFrame
  1982. MakeForm(FIELD,"Ball")
  1983. for i = 1, 50 do
  1984. Swait()
  1985. FIELD.Size = FIELD.Size + VT(1,1,1)
  1986. FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0)
  1987. end
  1988. wait(0.2)
  1989. local LOOP = CreateSound(1393698948, FIELD, 0, 1.2, true)
  1990. coroutine.resume(coroutine.create(function()
  1991. for i = 1, 75 do
  1992. Swait()
  1993. LOOP.Volume = LOOP.Volume + 10/75
  1994. LOOP.Parent = FIELD
  1995. local CHILDREN = workspace:GetDescendants()
  1996. for index, CHILD in pairs(CHILDREN) do
  1997. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1998. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1999. if HUM then
  2000. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2001. if TORSO then
  2002. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then
  2003. HUM.Health = HUM.Health - 0.1
  2004. TORSO.Velocity = VT(0,5,0)
  2005. HUM.PlatformStand = true
  2006. if TORSO.RotVelocity.Magnitude < 15 then
  2007. TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))
  2008. end
  2009. end
  2010. end
  2011. end
  2012. end
  2013. end
  2014. FIELD.Size = FIELD.Size + VT(6,6,6)
  2015. FIELD.Transparency = FIELD.Transparency + 0.8/75
  2016. end
  2017. for i = 1, 500 do
  2018. Swait()
  2019. LOOP.Parent = FIELD
  2020. local CHILDREN = workspace:GetDescendants()
  2021. for index, CHILD in pairs(CHILDREN) do
  2022. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  2023. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2024. if HUM then
  2025. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2026. if TORSO then
  2027. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then
  2028. TORSO.Velocity = VT(0,5,0)
  2029. HUM.Health = HUM.Health - 0.1
  2030. HUM.PlatformStand = true
  2031. if TORSO.RotVelocity.Magnitude < 15 then
  2032. TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))
  2033. end
  2034. end
  2035. end
  2036. end
  2037. end
  2038. end
  2039. end
  2040. for i = 1, 25 do
  2041. Swait()
  2042. LOOP.Volume = LOOP.Volume + 10/25
  2043. LOOP.Parent = FIELD
  2044. local CHILDREN = workspace:GetDescendants()
  2045. for index, CHILD in pairs(CHILDREN) do
  2046. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  2047. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2048. if HUM then
  2049. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2050. if TORSO then
  2051. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/1.8 then
  2052. TORSO.Velocity = VT(0,5,0)
  2053. HUM.Health = HUM.Health - 0.1
  2054. HUM.PlatformStand = false
  2055. if TORSO.RotVelocity.Magnitude < 15 then
  2056. TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))
  2057. end
  2058. end
  2059. end
  2060. end
  2061. end
  2062. end
  2063. FIELD.Size = FIELD.Size - VT(9,9,9)
  2064. FIELD.Transparency = FIELD.Transparency + 0.2/25
  2065. end
  2066. FIELD:remove()
  2067. end))
  2068. elseif RANDOMEFFECT == 3 then
  2069. for i = 1, 20 do
  2070. wait(0.15)
  2071. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(3,8,3), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(0,0.3,0), MoveToPos = BASE.Position+VT(0,6,0), RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 90655239, SoundPitch = 0.8, SoundVolume = 6})
  2072. coroutine.resume(coroutine.create(function()
  2073. local MINION = CLONE:Clone()
  2074. MINION.Parent = Effects
  2075. MINION.Name = "Shadow"
  2076. MINION.HumanoidRootPart.CFrame = BASE.CFrame*CF(0,5,0) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))
  2077. MINION.HumanoidRootPart.Velocity = CF(MINION.HumanoidRootPart.Position,MINION.HumanoidRootPart.CFrame*CF(0,8,-15).p).lookVector*MRANDOM(55,100)
  2078. for _, c in pairs(MINION:GetChildren()) do
  2079. if c.ClassName == "Part" then
  2080. c.Material = "Neon"
  2081. c.Color = C3(0,0,0)
  2082. c.Transparency = 0.25
  2083. if c.Name == "Head" then
  2084. c:ClearAllChildren()
  2085. local MSH = IT("BlockMesh",c)
  2086. MSH.Scale = VT(0.5,1,1)
  2087. end
  2088. end
  2089. end
  2090. local TORSO = MINION.Torso
  2091. local HUMAN = MINION.Humanoid
  2092. HUMAN.WalkSpeed = 20
  2093. HUMAN.MaxHealth = math.huge
  2094. HUMAN.Health = math.huge
  2095. HUMAN.DisplayDistanceType = "None"
  2096. HUMAN.Died:connect(function()
  2097. MINION:remove()
  2098. --CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 3, 0.5, false)
  2099. end)
  2100. wait(1)
  2101. local findNearestTorso = function(POS)
  2102. local list = game.Workspace:GetDescendants()
  2103. local torso = nil
  2104. local dist = 500
  2105. local temp = nil
  2106. local human = nil
  2107. local temp2 = nil
  2108. for x = 1, #list do
  2109. temp2 = list[x]
  2110. if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Parent ~= Effects) then
  2111. temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso")
  2112. human = temp2:findFirstChildOfClass("Humanoid")
  2113. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  2114. if (temp.Position - POS).magnitude < dist then
  2115. torso = temp
  2116. dist = (temp.Position - POS).magnitude
  2117. end
  2118. end
  2119. end
  2120. end
  2121. return torso, dist
  2122. end
  2123. for i = 1, 40 do
  2124. if HUMAN.Health == 0 then
  2125. break
  2126. end
  2127. wait(0.3)
  2128. local target,dist= findNearestTorso(TORSO.Position)
  2129. if target then
  2130. HUMAN:MoveTo(target.Position)
  2131. if dist < 25 then
  2132. CreateSound(348663022, TORSO, 10, 1, true)
  2133. wait(2)
  2134. --local ANIM = HUMAN:LoadAnimation(ATANIM)
  2135. --ANIM:Play()
  2136. --CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 1, 1, false)
  2137. ApplyAoE(TORSO.Position,10,0,0,85,true)
  2138. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(25,25,25), Transparency = 0, Transparency2 = 1, CFrame = TORSO.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 201858087, SoundPitch = 0.8, SoundVolume = 10})
  2139. for i = 1, 5 do
  2140. WACKYEFFECT({Time = 75, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(15,1,15), Transparency = 0.5, Transparency2 = 1, CFrame = TORSO.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-15,15)/7.5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  2141. end
  2142. break
  2143. end
  2144. end
  2145. end
  2146. MINION:remove()
  2147. end))
  2148. end
  2149. elseif RANDOMEFFECT == 4 then
  2150. local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Alder", "Field", VT(0.3,0.3,0.3))
  2151. FIELD.Color = C3(0,0,0)
  2152. FIELD.CFrame = BASE.CFrame
  2153. MakeForm(FIELD,"Ball")
  2154. FIELD.CanCollide = true
  2155. for i = 1, 50 do
  2156. Swait()
  2157. FIELD.Size = FIELD.Size + VT(1,1,1)
  2158. FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0)
  2159. end
  2160. wait(0.2)
  2161. local LOOP = CreateSound(487214658, FIELD, 0, 1, true)
  2162. coroutine.resume(coroutine.create(function()
  2163. local E = 0
  2164. for i = 1, 75 do
  2165. E = E + 1
  2166. Swait()
  2167. if E >= 60 then
  2168. E = 0
  2169. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = FIELD.Size*80, Size2 = FIELD.Size, Transparency = 0.8, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 1, SoundVolume = 6})
  2170. end
  2171. LOOP.Volume = LOOP.Volume + 10/75
  2172. LOOP.Parent = FIELD
  2173. local CHILDREN = workspace:GetDescendants()
  2174. for index, CHILD in pairs(CHILDREN) do
  2175. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  2176. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2177. if HUM then
  2178. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2179. if TORSO then
  2180. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then
  2181. for _, c in pairs(CHILD:GetChildren()) do
  2182. if c:IsA("BasePart") then
  2183. local bv = Instance.new("BodyVelocity")
  2184. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2185. bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50
  2186. bv.Parent = c
  2187. Debris:AddItem(bv,0.05)
  2188. end
  2189. end
  2190. HUM.Health = HUM.Health - 0.3
  2191. end
  2192. end
  2193. end
  2194. end
  2195. end
  2196. FIELD.Size = FIELD.Size + VT(10,10,10)/5
  2197. end
  2198. for i = 1, 180 do
  2199. E = E + 1
  2200. Swait()
  2201. if E >= 60 then
  2202. E = 0
  2203. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = FIELD.Size*60, Size2 = FIELD.Size, Transparency = 0.8, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 1, SoundVolume = 6})
  2204. end
  2205. LOOP.Parent = FIELD
  2206. local CHILDREN = workspace:GetDescendants()
  2207. for index, CHILD in pairs(CHILDREN) do
  2208. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  2209. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2210. if HUM then
  2211. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2212. if TORSO then
  2213. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then
  2214. for _, c in pairs(CHILD:GetChildren()) do
  2215. if c:IsA("BasePart") then
  2216. local bv = Instance.new("BodyVelocity")
  2217. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2218. bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50
  2219. bv.Parent = c
  2220. Debris:AddItem(bv,0.05)
  2221. end
  2222. end
  2223. HUM.Health = HUM.Health - 0.3
  2224. end
  2225. end
  2226. end
  2227. end
  2228. end
  2229. end
  2230. ApplyAoE(FIELD.Position,40,100,20,400,false)
  2231. WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = FIELD.Size, Size2 = VT(35,35,35), Transparency = 0, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 231917744, SoundPitch = 1, SoundVolume = 6})
  2232. for i = 1, 5 do
  2233. WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35), Transparency = 0.5, Transparency2 = 1, CFrame = FIELD.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  2234. end
  2235. FIELD:remove()
  2236. end))
  2237. elseif RANDOMEFFECT == 5 then
  2238. end
  2239. wait(0.5)
  2240. for i = 1, 25 do
  2241. Swait()
  2242. PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,-0.3,0))
  2243. end
  2244. PANDORASBOX:remove()
  2245. RINGSPIN = false
  2246. end))
  2247. ATTACK = false
  2248. Rooted = false
  2249. end
  2250. end
  2251.  
  2252. function Taunt()
  2253. ATTACK = true
  2254. local LAUGH = nil
  2255. coroutine.resume(coroutine.create(function()
  2256. repeat
  2257. Swait()
  2258. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  2259. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 1 / Animation_Speed)
  2260. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.15*SIZE, -0.5*SIZE) * ANGLES(RAD(170), RAD(-25), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2261. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2262. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2263. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2264. until LAUGH ~= nil
  2265. repeat
  2266. Swait()
  2267. LAUGH.Parent = Head
  2268. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0+(0.1*LAUGH.PlaybackLoudness/75) + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  2269. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE+(0.1*LAUGH.PlaybackLoudness/75)) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 1 / Animation_Speed)
  2270. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.15*SIZE+(0.1*LAUGH.PlaybackLoudness/75), -0.5*SIZE) * ANGLES(RAD(170), RAD(-25), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2271. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE+(0.1*LAUGH.PlaybackLoudness/75), 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2272. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE-(0.1*LAUGH.PlaybackLoudness/75) + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2273. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE-(0.1*LAUGH.PlaybackLoudness/75) - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2274. until LAUGH.Playing == false
  2275. ATTACK = false
  2276. end))
  2277. wait(0.1)
  2278. sick:Pause()
  2279. LAUGH = CreateSound(525166232, Head, 10, 1, false)
  2280. wait(1)
  2281. sick:Resume()
  2282. end
  2283.  
  2284. function Prison_Key()
  2285. if Mouse.Target ~= nil then
  2286. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2287. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  2288. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  2289. local GYRO = IT("BodyGyro",RootPart)
  2290. GYRO.D = 750
  2291. GYRO.P = 20000
  2292. GYRO.MaxTorque = VT(0,40000000,0)
  2293. local grav = Instance.new("BodyPosition",TORSO)
  2294. grav.D = 15
  2295. grav.P = 20000
  2296. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2297. grav.position = TORSO.Position
  2298. local GYRO2 = IT("BodyGyro",TORSO)
  2299. GYRO2.D = 750
  2300. GYRO2.P = 20000
  2301. GYRO2.MaxTorque = VT(0,40000000,0)
  2302. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  2303. grav.Name = "Jail"
  2304. local LOCKPARTS = {}
  2305. ATTACK = true
  2306. Rooted = false
  2307. local LOCK = IT("Model",Effects)
  2308. LOCK.Name = "Lock"
  2309. local LOCK2 = IT("Model",LOCK)
  2310. LOCK2.Name = "Metal"
  2311. --CREATE LOCK--
  2312. local BASE = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 2.5, 1))
  2313. LOCK.PrimaryPart = BASE
  2314. BASE.CFrame = CF(TORSO.Position,RootPart.Position)*CF(0,0,-4)
  2315. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 1, 3))
  2316. PRT.CFrame = BASE.CFrame*CF(0,-1.25,0)*ANGLES(RAD(90),RAD(0),RAD(0))
  2317. MakeForm(PRT,"Cyl")
  2318. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(1, 1, 1))
  2319. PRT.Color = C3(0,0,0)
  2320. PRT.CFrame = BASE.CFrame*CF(0,0.3,-0.01)*ANGLES(RAD(90),RAD(0),RAD(0))
  2321. MakeForm(PRT,"Cyl")
  2322. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(0.5, 1, 1))
  2323. PRT.Color = C3(0,0,0)
  2324. PRT.CFrame = BASE.CFrame*CF(0,-0.2,-0.01)
  2325. for i = 1, 45 do
  2326. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  2327. PRT.CFrame = BASE.CFrame*CF(0,2,0)*ANGLES(RAD(0),RAD(0),RAD(-90+(360/90*i)))*CF(0,1,0)
  2328. end
  2329. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  2330. PRT.CFrame = BASE.CFrame*CF(0,1.5,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0)
  2331. LOCK2.PrimaryPart = PRT
  2332. ---------------
  2333. local CHILDREN = LOCK:GetDescendants()
  2334. for index, CHILD in pairs(CHILDREN) do
  2335. if CHILD:IsA("BasePart") then
  2336. CHILD.Transparency = 1
  2337. end
  2338. end
  2339. for i = 1, 75 do
  2340. LOCK:SetPrimaryPartCFrame(CF(TORSO.Position,RootPart.Position)*CF(0,0,-4))
  2341. Swait()
  2342. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  2343. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  2344. local CHILDREN = LOCK:GetDescendants()
  2345. for index, CHILD in pairs(CHILDREN) do
  2346. if CHILD:IsA("BasePart") then
  2347. CHILD.Transparency = CHILD.Transparency - 1/75
  2348. end
  2349. end
  2350. end
  2351. HUM.DisplayDistanceType = "None"
  2352. local KEY = IT("Model",Effects)
  2353. KEY.Name = "Key"
  2354. --CREATE KEY--
  2355. local KBASE = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "KeyBase", VT(0.1, 1, 0.1),false)
  2356. KEY.PrimaryPart = KBASE
  2357. KBASE.CFrame = RightArm.CFrame*CF(0,-2.1,0)*ANGLES(RAD(0),RAD(90),RAD(0))
  2358. local WLD = weldBetween(RightArm,KBASE)
  2359. for i = 1, 45 do
  2360. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "Key", VT(0.1, 0.1, 0.1),false)
  2361. PRT.CFrame = KBASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD((360/45*i)))*CF(0,0.25,0)
  2362. weldBetween(KBASE,PRT)
  2363. end
  2364. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "Key", VT(0.3, 0.1, 0.1),false)
  2365. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.45,0)
  2366. weldBetween(KBASE,PRT)
  2367. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "Key", VT(0.3, 0.1, 0.1),false)
  2368. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.25,0)
  2369. weldBetween(KBASE,PRT)
  2370. --------------
  2371. Rooted = true
  2372. Pose("Prepare key",1.5,1.2,false,GYRO,TORSO)
  2373. coroutine.resume(coroutine.create(function()
  2374. for i = 1, 10 do
  2375. Swait()
  2376. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  2377. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  2378. end
  2379. CreateSound(1149318312,BASE,5,1,false)
  2380. CreateSound(160772554,BASE,3,1,false)
  2381. LOCK2:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0))
  2382. for i = 1, 4 do
  2383. WACKYEFFECT({Time = 35, EffectType = "Crystal", Size = VT(1,1,1), Size2 = VT(0,15,0), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(1,1.45,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2384. end
  2385. WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,1,1)*25, Transparency = 0, Transparency2 = 1, CFrame = TORSO.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
  2386. wait(1)
  2387. TORSO.Parent.Parent = LOCK
  2388. for i = 1, 75 do
  2389. Swait()
  2390. local CHILDREN = KEY:GetDescendants()
  2391. for index, CHILD in pairs(CHILDREN) do
  2392. if CHILD:IsA("BasePart") then
  2393. CHILD.Transparency = i/25
  2394. end
  2395. end
  2396. local CHILDREN = LOCK:GetDescendants()
  2397. for index, CHILD in pairs(CHILDREN) do
  2398. if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then
  2399. CHILD.Transparency = CHILD.Transparency + 1/75
  2400. elseif CHILD.ClassName == "Decal" then
  2401. CHILD.Transparency = CHILD.Transparency + 1/75
  2402. end
  2403. end
  2404. end
  2405. TORSO.Parent:ClearAllChildren()
  2406. KEY:remove()
  2407. LOCK:remove()
  2408. end))
  2409. Pose("Turn key",0.8,1.2,false,GYRO,TORSO)
  2410. GYRO:remove()
  2411. ATTACK = false
  2412. Rooted = false
  2413. end
  2414. end
  2415. end
  2416.  
  2417. function RavagingOverthrower()
  2418. ATTACK = true
  2419. Rooted = true
  2420. for i=0, 1, 0.1 / Animation_Speed do
  2421. Swait()
  2422. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE + 0.05 * COS(SINE / 12) * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2423. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1 * SIZE) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2424. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * SIZE, 0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(180), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2425. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(180), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2426. RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE, -0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2427. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE, -0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2428. end
  2429. CreateSound("348663022", Torso, 5, 1)
  2430. local StartPos = RootPart.CFrame * CF(0,10,0).p
  2431. for i = 1, 5 do
  2432. MagicSphere2(25,25,CF(StartPos),"Royal purple")
  2433. Swait(15)
  2434. end
  2435. local soundeffect = IT("Sound",Torso)
  2436. soundeffect.SoundId = "rbxassetid://487186990"
  2437. soundeffect.Looped = true
  2438. soundeffect.Volume = 10
  2439. soundeffect.Playing = true
  2440. repeat
  2441. turnto(Mouse.Hit.p)
  2442. MagicSphere2(25,25,CF(StartPos),"Royal purple")
  2443. MagicSphere(25/10,25,CF(StartPos),"Royal purple")
  2444. local RayHit, RayPos, RayNormal = CastZapRay(StartPos, Mouse.Hit.p, 750, Character, false)
  2445. local distance = (StartPos - RayPos).magnitude
  2446. local RayBeam = IT("Part",Effects)
  2447. RayBeam.Material = "Neon"
  2448. RayBeam.Anchored = true
  2449. RayBeam.BrickColor = BRICKC"Royal purple"
  2450. local mesh = IT("SpecialMesh",RayBeam)
  2451. mesh.MeshType = "Cylinder"
  2452. RayBeam.Size = Vector3.new(distance+10, 5, 5)
  2453. RayBeam.CFrame = CFrame.new(StartPos, RayPos) * CFrame.new(0, 0, -distance/2) * ANGLES(RAD(0),RAD(90),RAD(0))
  2454. MagicSphere(15,5,CF(RayPos),"Royal purple")
  2455. killnearest(RayPos,15,100)
  2456. for i = 1, 3 do
  2457. CreateSwirl(0,25,true,-0.2,5,CF(RayPos) * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))),"Really black")
  2458. end
  2459. Swait()
  2460. if KEYHOLD == false then
  2461. coroutine.resume(coroutine.create(function()
  2462. for i = 1, 5 do
  2463. RayBeam.Transparency = RayBeam.Transparency + 1/5
  2464. Swait()
  2465. end
  2466. RayBeam:remove()
  2467. end))
  2468. else
  2469. RayBeam:remove()
  2470. end
  2471. until KEYHOLD == false
  2472. soundeffect:remove()
  2473. ATTACK = false
  2474. Rooted = false
  2475. end
  2476.  
  2477. local deathrain = false
  2478.  
  2479. function armagedd()
  2480. local Player = game.Players.localPlayer
  2481. local Mouse = Player:GetMouse()
  2482. local Character = Player.Character
  2483. local Humanoid = Character.Humanoid
  2484. local Head = Character.Head
  2485. local RootPart = Character.HumanoidRootPart
  2486. local Torso = Character.Torso
  2487. local LeftArm = Character["Left Arm"]
  2488. local RightArm = Character["Right Arm"]
  2489. local LeftLeg = Character["Left Leg"]
  2490. local RightLeg = Character["Right Leg"]
  2491. local Camera = game.Workspace.CurrentCamera
  2492. local RootJoint = RootPart.RootJoint
  2493. local Equipped = false
  2494. local Attack = false
  2495. local Anim = 'Idle'
  2496. local Idle = 0
  2497. local Combo = 1
  2498. local UIS = game:GetService("UserInputService")
  2499. local TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  2500. local Velocity = RootPart.Velocity.y
  2501. local Sine = 0
  2502. local Change = 1
  2503. local maincol = Color3.new(0,0,0)
  2504. local maincol2 = Torso.Color
  2505. local dash = false
  2506. Character.Humanoid.Name = "help"
  2507. humanoid = Character.help
  2508. local taken = {}
  2509. local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
  2510. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  2511. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  2512.  
  2513. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  2514. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  2515. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  2516. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  2517. RootJoint.C1 = CFrame.new(0, 0, 0)
  2518. RootJoint.C0 = CFrame.new(0, 0, 0)
  2519. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  2520. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  2521.  
  2522. local rarmc1 = RW.C1
  2523. local larmc1 = LW.C1
  2524. local rlegc1 = RH.C1
  2525. local llegc1 = LH.C1
  2526.  
  2527. local resetc1 = false
  2528. ATTACK = true
  2529. deathrain = true
  2530. for i = 0, 1, 0.1 do
  2531. swait()
  2532. PlayAnimationFromTable({
  2533. CFrame.new(0, 1.25783896, 0.0750579834, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2534. CFrame.new(0, 1.5722059, -0.165335715, 1, 0, 0, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2535. CFrame.new(0.770152092, 1.15917587, -0.772684395, 0.669632077, 0.727706194, -0.14844726, 0.385775059, -0.511604249, -0.767749131, -0.634642065, 0.456842214, -0.62331754) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2536. CFrame.new(-1.29209483, 1.91917002, -0.0983848572, -0.225760028, -0.171030968, 0.959052086, 0.12644501, -0.981284738, -0.145230755, 0.965942144, 0.0884800404, 0.243160874) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2537. CFrame.new(0.5, -1.38367569, -0.476289868, 1, 0, -0, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2538. CFrame.new(-0.5, -1.97375119, -0.383697003, 1, 0, -0, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2539. }, .2, false)
  2540. end
  2541. local shur = Instance.new("Part",Camera)
  2542. shur.CFrame = Mouse.Hit
  2543. shur.Anchored = true
  2544. shur.CanCollide = false
  2545. shur.Transparency = 1
  2546. shur.Rotation = Vector3.new(0,500,0)
  2547. CFuncs.Sound.Create("331888777", shur, 10, .9)
  2548. for i = 0, 2, 0.1 do
  2549. swait()
  2550. PlayAnimationFromTable({
  2551. CFrame.new(0, 1.50806487, -0.0493182242, 1, 0, 0, 0, 0.965925872, 0.258818984, 0, -0.258818984, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2552. CFrame.new(0, 1.57220507, -0.165325716, 1, 0, 0, 0, 0.99619478, -0.0871558785, 0, 0.0871558785, 0.99619478) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2553. CFrame.new(0.770143628, 1.15917659, -0.772669554, 0.669632196, 0.727706075, -0.148447335, 0.385774463, -0.511604011, -0.767749667, -0.634642303, 0.456842661, -0.623317003) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2554. CFrame.new(-1.15002179, 0.770601869, -1.3447417, 0.150704995, -0.239807919, 0.959051669, 0.988570929, 0.0404406041, -0.145231575, -0.00395695865, 0.969977796, 0.243161768) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2555. CFrame.new(0.5, -1.38367522, -0.476285875, 1, 0, 0, 0, 0.99619478, -0.0871558785, 0, 0.0871558785, 0.99619478) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2556. CFrame.new(-0.5, -1.97375286, -0.38368547, 1, 0, 0, 0, 0.99619478, -0.0871558785, 0, 0.0871558785, 0.99619478) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2557. }, .2, false)
  2558. end
  2559. Attack = false
  2560. for i = 1, 20 do
  2561. local met = Instance.new("Part",workspace)
  2562. met.CFrame = shur.CFrame * CFrame.new(math.random(-50,50),300,math.random(-50,50))
  2563. met.Anchored = false
  2564. met.CanCollide = false
  2565. met.Transparency = 0
  2566. met.Size = Vector3.new(.1,.1,.1)
  2567. met.Material = "Neon"
  2568. met.BrickColor = BrickColor.new(maincol)
  2569. local mbewm2 = Instance.new("SpecialMesh", met)
  2570. mbewm2.MeshType = "Sphere"
  2571. mbewm2.Scale = Vector3.new(100,100,100)
  2572. local con = met.Touched:connect(function(hit)
  2573. if hit ~= met and hit.Name ~= "Effect" and hit.Name ~= "what" then
  2574. MagnitudeDamage(met, 30, 0, 0, 20, "Normal", " ", 1)
  2575. CFuncs.Sound.Create("239000203", workspace, .5, 1)
  2576. Effects.Sphere2.Create(BrickColor.new("Smoky grey"), EffectModel, met.CFrame, 1, 3, 1, 5, 10, 5, .01)
  2577. Effects.Sphere2.Create(BrickColor.new(maincol), EffectModel, met.CFrame, 2, 4, 2, 6, 11, 6, .01)
  2578.  
  2579. for i = 0, 5 do
  2580. local frag = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, "Really black", "Effect", Vector3.new(.1,.1,.1))
  2581. frag.Anchored = false
  2582. frag.CFrame = met.CFrame * CFrame.new(math.random(-5,5), 10,math.random(-5,5))
  2583. frag.CanCollide = false
  2584. frag.Velocity = Vector3.new(math.random(-100,100),math.random(80,150),math.random(-100,100))
  2585. local flame = Instance.new("Fire",frag)
  2586. flame.SecondaryColor = Color3.new(0,0,0)
  2587. flame.Color = Color3.new(0,0,0)
  2588. flame.Heat = 15
  2589. local mbewm2 = Instance.new("SpecialMesh", frag)
  2590. mbewm2.MeshType = "Sphere"
  2591. mbewm2.Scale = Vector3.new(50,50,50)
  2592. local con = frag.Touched:connect(function(hit)
  2593. if hit ~= met and hit.Name ~= "Effect" and hit.Name ~= frag then
  2594. MagnitudeDamage(frag, 25, 0, 0, 20, "Normal", " ", 1)
  2595. CFuncs.Sound.Create("206049428", workspace, .5, 1)
  2596. Effects.Sphere2.Create(BrickColor.new("Smoky grey"), EffectModel, frag.CFrame, .5, 2, .5, 3, 5, 3, .03)
  2597. Effects.Sphere2.Create(BrickColor.new(maincol), EffectModel, frag.CFrame, .6, 3, .6, 4, 6, 4, .03)
  2598. frag:Destroy()
  2599. end
  2600. end)
  2601. met:Destroy()end end end)
  2602. Effects.Sphere2.Create(BrickColor.new("Smoky grey"), EffectModel, shur.CFrame, .5, 2, .5, .5, 10, .5, .03)
  2603. wait(.5)
  2604. end
  2605. deathrain = false
  2606. shur:Destroy()
  2607. end
  2608.  
  2609.  
  2610.  
  2611. function obliterate()
  2612. Attack = true
  2613. Humanoid.WalkSpeed = 0
  2614. Humanoid.JumpPower = 0
  2615. Humanoid.AutoRotate = false
  2616. local refpart = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 1, "Really black", "Effect", Vector3.new())
  2617. refpart.Anchored = true
  2618. refpart.CFrame = RootPart.CFrame * CFrame.new(0,80,0)
  2619. local smonk1 = Instance.new("ParticleEmitter",refpart)
  2620. smonk1.LightEmission = .5
  2621. smonk1.Size = NumberSequence.new(0.2)
  2622. smonk1.Texture = "rbxassetid://382425306"
  2623. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(.2, 5),NumberSequenceKeypoint.new(.4, 10),NumberSequenceKeypoint.new(.564, 20),NumberSequenceKeypoint.new(.784, 50),NumberSequenceKeypoint.new(1, 100)})
  2624. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, .3), NumberSequenceKeypoint.new(.7, .5), NumberSequenceKeypoint.new(1, 1)})
  2625. smonk1.Transparency = bbb
  2626. smonk1.Size = aaa
  2627. smonk1.ZOffset = .5
  2628. smonk1.Acceleration = Vector3.new(0, 0, 0)
  2629. smonk1.LockedToPart = false
  2630. smonk1.EmissionDirection = "Top"
  2631. smonk1.Lifetime = NumberRange.new(3, 3)
  2632. smonk1.Rate = 5
  2633. smonk1.Rotation = NumberRange.new(0, 50)
  2634. smonk1.RotSpeed = NumberRange.new(50, 50)
  2635. smonk1.Speed = NumberRange.new(0)
  2636. smonk1.VelocitySpread = 0
  2637. smonk1.Enabled=true
  2638. local startColor = maincol
  2639. local endColor = maincol
  2640. local sequence2 = ColorSequence.new(startColor, endColor)
  2641. smonk1.Color = sequence2
  2642. local smonk2 = Instance.new("ParticleEmitter",refpart)
  2643. smonk2.LightEmission = .5
  2644. smonk2.Size = NumberSequence.new(0.2)
  2645. smonk2.Texture = "rbxassetid://95648201"
  2646. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(.2, 5),NumberSequenceKeypoint.new(.4, 10),NumberSequenceKeypoint.new(.564, 20),NumberSequenceKeypoint.new(.784, 50),NumberSequenceKeypoint.new(1, 100)})
  2647. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
  2648. smonk2.Transparency = bbb
  2649. smonk2.Size = aaa
  2650. smonk2.ZOffset = .5
  2651. smonk2.Acceleration = Vector3.new(0, 0, 0)
  2652. smonk2.LockedToPart = false
  2653. smonk2.EmissionDirection = "Top"
  2654. smonk2.Lifetime = NumberRange.new(3, 3)
  2655. smonk2.Rate = 5
  2656. smonk2.Rotation = NumberRange.new(0, 50)
  2657. smonk2.RotSpeed = NumberRange.new(50, 50)
  2658. smonk2.Speed = NumberRange.new(0)
  2659. smonk2.VelocitySpread = 0
  2660. smonk2.Enabled=true
  2661. local startColor = maincol
  2662. local startColor = maincol
  2663. local endColor = maincol
  2664. local sequence3 = ColorSequence.new(startColor, endColor)
  2665. smonk2.Color = sequence3
  2666. CFuncs.Sound.Create("376020049", refpart, 1, 1)
  2667. local void = Instance.new("Sound", refpart)
  2668. void.Looped = true
  2669. void.SoundId = "rbxassetid://565538601"
  2670. void:Play()
  2671.  
  2672. for i = 0, 8, 0.1 do
  2673. swait()
  2674. PlayAnimationFromTable({
  2675. CFrame.new(0, 1.25783896, 0.0750579834, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2676. CFrame.new(0, 1.5722059, -0.165335715, 1, 0, 0, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2677. CFrame.new(0.770152092, 1.15917587, -0.772684395, 0.669632077, 0.727706194, -0.14844726, 0.385775059, -0.511604249, -0.767749131, -0.634642065, 0.456842214, -0.62331754) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2678. CFrame.new(-1.29209483, 1.91917002, -0.0983848572, -0.225760028, -0.171030968, 0.959052086, 0.12644501, -0.981284738, -0.145230755, 0.965942144, 0.0884800404, 0.243160874) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2679. CFrame.new(0.5, -1.38367569, -0.476289868, 1, 0, -0, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2680. CFrame.new(-0.5, -1.97375119, -0.383697003, 1, 0, -0, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2681. }, .1, false)
  2682. Effects.Sphere2.Create(BrickColor.new(maincol), EffectModel, refpart.CFrame, 2, 2, 2, 2, 2, 2, .01)
  2683. armagedd()
  2684. end
  2685. Humanoid.WalkSpeed = 8
  2686. Humanoid.JumpPower = 0
  2687. Humanoid.AutoRotate = true
  2688. Attack = false
  2689. for i = 0, 100, 0.1 do
  2690. swait()
  2691. local startColor = maincol
  2692. local endColor = maincol
  2693. local sequence2 = ColorSequence.new(startColor, endColor)
  2694. smonk1.Color = sequence2
  2695. shoot(Mouse,8,refpart,0,7)
  2696. Effects.Sphere2.Create(BrickColor.new(maincol), EffectModel, refpart.CFrame, 2, 2, 2, 2, 2, 2, .01)
  2697. end
  2698. refpart:Destroy()
  2699. end
  2700.  
  2701.  
  2702.  
  2703.  
  2704. --//=================================\\
  2705. --|| ASSIGN THINGS TO KEYS
  2706. --\\=================================//
  2707.  
  2708. function MouseDown(Mouse)
  2709. HOLD = true
  2710. if ATTACK == false then
  2711. end
  2712. end
  2713.  
  2714. function MouseUp(Mouse)
  2715. HOLD = false
  2716. end
  2717.  
  2718. function KeyDown(Key)
  2719. KEYHOLD = true
  2720. if Key == "z" and ATTACK == false then
  2721. MagicMissiles()
  2722. end
  2723.  
  2724. if Key == "b" and ATTACK == false then
  2725. TimesUp()
  2726. end
  2727.  
  2728. if Key == "c" and ATTACK == false then
  2729. ChainPunch()
  2730. end
  2731.  
  2732. if Key == "v" and ATTACK == false then
  2733. WarpMeteor()
  2734. end
  2735.  
  2736. if Key == "x" and ATTACK == false then
  2737. PandorasBox()
  2738. end
  2739.  
  2740. if Key == "t" and ATTACK == false then
  2741. Taunt()
  2742. end
  2743.  
  2744. if Key == "q" and ATTACK == false then
  2745. Prison_Key()
  2746. end
  2747.  
  2748. if Key == "e" and ATTACK == false then
  2749. RavagingOverthrower()
  2750. end
  2751. if Key == "r" and ATTACK == false and deathrain == false then
  2752. obliterate()
  2753. end
  2754. end
  2755.  
  2756. function KeyUp(Key)
  2757. KEYHOLD = false
  2758. end
  2759.  
  2760. Mouse.Button1Down:connect(function(NEWKEY)
  2761. MouseDown(NEWKEY)
  2762. end)
  2763. Mouse.Button1Up:connect(function(NEWKEY)
  2764. MouseUp(NEWKEY)
  2765. end)
  2766. Mouse.KeyDown:connect(function(NEWKEY)
  2767. KeyDown(NEWKEY)
  2768. end)
  2769. Mouse.KeyUp:connect(function(NEWKEY)
  2770. KeyUp(NEWKEY)
  2771. end)
  2772.  
  2773. --//=================================\\
  2774. --\\=================================//
  2775.  
  2776.  
  2777. function unanchor()
  2778. if UNANCHOR == true then
  2779. RootPart.Anchored = false
  2780. end
  2781. g = Character:GetChildren()
  2782. for i = 1, #g do
  2783. if g[i].ClassName == "Part" and g[i] ~= RootPart then
  2784. g[i].Anchored = false
  2785. end
  2786. end
  2787. g = Weapon:GetChildren()
  2788. for i = 1, #g do
  2789. if g[i].ClassName == "Part" then
  2790. g[i].Anchored = false
  2791. end
  2792. end
  2793. end
  2794.  
  2795.  
  2796. --//=================================\\
  2797. --|| WRAP THE WHOLE SCRIPT UP
  2798. --\\=================================//
  2799.  
  2800. Humanoid.Changed:connect(function(Jump)
  2801. if Jump == "Jump" and (Disable_Jump == true) then
  2802. Humanoid.Jump = false
  2803. end
  2804. end)
  2805.  
  2806. while true do
  2807. Swait()
  2808. script.Parent = WEAPONGUI
  2809. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  2810. v:Stop();
  2811. end
  2812. ANIMATE.Parent = nil
  2813. SINE = SINE + CHANGE*1.5
  2814. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2815. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2816. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
  2817. local WALKSPEEDVALUE = 10 / (Humanoid.WalkSpeed / 16)
  2818. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  2819. 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)
  2820. 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)
  2821. RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 0.875*SIZE - 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0 +0.5+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(25+80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2822. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 0.875*SIZE + 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0 +0.5+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(-25+80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2823. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  2824. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2825. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2826. RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2827. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2828. end
  2829. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  2830. ANIM = "Jump"
  2831. if ATTACK == false then
  2832. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2833. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  2834. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2835. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2836. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed)
  2837. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 1 / Animation_Speed)
  2838. end
  2839. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  2840. ANIM = "Fall"
  2841. if ATTACK == false then
  2842. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2843. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
  2844. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2845. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2846. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 1 / Animation_Speed)
  2847. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 1 / Animation_Speed)
  2848. end
  2849. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  2850. ANIM = "Idle"
  2851. if ATTACK == false then
  2852. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  2853. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2854. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(-55 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2855. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2856. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2857. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2858. end
  2859. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  2860. ANIM = "Walk"
  2861. if ATTACK == false then
  2862. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.1*SIZE) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
  2863. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(15 - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 1/ Animation_Speed)
  2864. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / WALKSPEEDVALUE)), RAD(-55 + 2.5 * SIN(SINE / WALKSPEEDVALUE))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2865. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / WALKSPEEDVALUE)), RAD(55 - 2.5 * SIN(SINE / WALKSPEEDVALUE))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2866. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE , -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  2867. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  2868. end
  2869. end
  2870. unanchor()
  2871. Humanoid.MaxHealth = "inf"
  2872. Humanoid.Health = "inf"
  2873. if Rooted == false then
  2874. Disable_Jump = false
  2875. Humanoid.WalkSpeed = Speed
  2876. elseif Rooted == true then
  2877. Disable_Jump = true
  2878. Humanoid.WalkSpeed = 0
  2879. end
  2880. for _, c in pairs(Character:GetChildren()) do
  2881. if c.ClassName == "Part" and c.Name ~= "Detail" then
  2882. c.Material = "Fabric"
  2883. if c:FindFirstChildOfClass("ParticleEmitter") then
  2884. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  2885. end
  2886. if c ~= Head then
  2887. c.Color = C3(0,0,0)
  2888. else
  2889. c.Color = C3(1,1,1)
  2890. end
  2891. if c == Head then
  2892. if c:FindFirstChild("face") then
  2893. c.face:remove()
  2894. end
  2895. end
  2896. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  2897. c:remove()
  2898. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  2899. c:remove()
  2900. end
  2901. end
  2902. sick.SoundId = "rbxassetid://"..SONG
  2903. sick.Looped = true
  2904. sick.Pitch = 1
  2905. sick.Volume = 5
  2906. sick.Parent = Torso
  2907. sick:Resume()
  2908. --sick.Playing = false
  2909. Humanoid.Name = "Pandora = "..Player.Name
  2910. end
  2911.  
  2912. --//=================================\\
  2913. --\\=================================//
  2914.  
  2915.  
  2916.  
  2917.  
  2918.  
  2919. --//====================================================\\--
  2920. --|| END OF SCRIPT
  2921. --\\====================================================//--
Add Comment
Please, Sign In to add comment