Advertisement
5sdfsadgaq5465

corrupted pandora fe (try make it more unlaggy --__--)

Mar 30th, 2019
565
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Mokiros")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = owner
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83. --//====================================================\\--
  84. --|| CREATED BY SHACKLUSTER
  85. --|| EDITED BY NINJABEHIND
  86. --\\====================================================//--
  87.  
  88. wait(0.2)
  89.  
  90. Player = owner
  91. PlayerGui = Player.PlayerGui
  92. Cam = workspace.CurrentCamera
  93. Backpack = Player.Backpack
  94. Character = Player.Character
  95. Humanoid = Character.Humanoid
  96. RootPart = Character["HumanoidRootPart"]
  97. Torso = Character["Torso"]
  98. Head = Character["Head"]
  99. RightArm = Character["Right Arm"]
  100. LeftArm = Character["Left Arm"]
  101. RightLeg = Character["Right Leg"]
  102. LeftLeg = Character["Left Leg"]
  103. RootJoint = RootPart["RootJoint"]
  104. Neck = Torso["Neck"]
  105. RightShoulder = Torso["Right Shoulder"]
  106. LeftShoulder = Torso["Left Shoulder"]
  107. RightHip = Torso["Right Hip"]
  108. LeftHip = Torso["Left Hip"]
  109. Character.Archivable = true
  110. Player:ClearCharacterAppearance()
  111.  
  112. IT = Instance.new
  113. CF = CFrame.new
  114. VT = Vector3.new
  115. RAD = math.rad
  116. C3 = Color3.new
  117. UD2 = UDim2.new
  118. BRICKC = BrickColor.new
  119. ANGLES = CFrame.Angles
  120. EULER = CFrame.fromEulerAnglesXYZ
  121. COS = math.cos
  122. ACOS = math.acos
  123. SIN = math.sin
  124. ASIN = math.asin
  125. ABS = math.abs
  126. MRANDOM = math.random
  127. FLOOR = math.floor
  128.  
  129. --//=================================\\
  130. --|| USEFUL VALUES
  131. --\\=================================//
  132.  
  133. Animation_Speed = 3
  134. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  135. local Speed = 20
  136. local SIZE = 1.4
  137. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  138. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  139. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  140. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  141. local DAMAGEMULTIPLIER = 1
  142. local ANIM = "Idle"
  143. local ATTACK = false
  144. local EQUIPPED = false
  145. local HOLD = false
  146. local COMBO = 1
  147. local Rooted = false
  148. local SINE = 0
  149. local KEYHOLD = false
  150. local CHANGE = 2 / Animation_Speed
  151. local WALKINGANIM = false
  152. local VALUE1 = false
  153. local VALUE2 = false
  154. local ROBLOXIDLEANIMATION = IT("Animation")
  155. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  156. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  157. local ATANIM = IT("Animation")
  158. ATANIM.Name = "Attack Animation"
  159. ATANIM.AnimationId = "http://www.roblox.com/asset/?id=74894663"
  160. --ROBLOXIDLEANIMATION.Parent = Humanoid
  161. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  162. WEAPONGUI.Name = "Weapon GUI"
  163. local Weapon = IT("Model")
  164. Weapon.Name = "Adds"
  165. local Effects = IT("Folder", Weapon)
  166. Effects.Name = "Effects"
  167. local ANIMATOR = Humanoid.Animator
  168. local ANIMATE = Character.Animate
  169. local UNANCHOR = true
  170. local CLOCKLOOP = 0
  171. local SONG = 1382488262
  172. local CLOCKTARGET = nil
  173. local CLOCKSPEED = 0
  174. script.Parent = WEAPONGUI
  175. local CLONE = Character:Clone()
  176. CLONE.Parent = nil
  177. Character.Archivable = false
  178. local sick = Instance.new("Sound",Torso)
  179.  
  180. --//=================================\\
  181. --|| INVINCIBLE
  182. --\\=================================//
  183.  
  184. function refit()
  185. Character.Parent = workspace
  186. for e = 1, #BODY do
  187. if BODY[e] ~= nil then
  188. local STUFF = BODY[e]
  189. local PART = STUFF[1]
  190. local PARENT = STUFF[2]
  191. local MATERIAL = STUFF[3]
  192. local COLOR = STUFF[4]
  193. local TRANSPARENCY = STUFF[5]
  194. --local SIZE = STUFF[6]
  195. local NAME = STUFF[7]
  196. if PART.ClassName == "Part" and PART ~= RootPart then
  197. PART.Material = MATERIAL
  198. PART.Transparency = TRANSPARENCY
  199. PART.Name = NAME
  200. end
  201. if PART.Parent ~= PARENT then
  202. Humanoid:remove()
  203. PART.Parent = PARENT
  204. Humanoid = IT("Humanoid",Character)
  205. end
  206. end
  207. end
  208. end
  209.  
  210. for _, c in pairs(Weapon:GetChildren()) do
  211. if c.ClassName == "Part" then
  212. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  213. end
  214. end
  215.  
  216. Humanoid.Died:connect(function()
  217. refit()
  218. end)
  219.  
  220. --//=================================\\
  221. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  222. --\\=================================//
  223.  
  224. ArtificialHB = Instance.new("BindableEvent", script)
  225. ArtificialHB.Name = "ArtificialHB"
  226.  
  227. script:WaitForChild("ArtificialHB")
  228.  
  229. frame = Frame_Speed
  230. tf = 0
  231. allowframeloss = false
  232. tossremainder = false
  233. lastframe = tick()
  234. script.ArtificialHB:Fire()
  235.  
  236. game:GetService("RunService").Heartbeat:connect(function(s, p)
  237. tf = tf + s
  238. if tf >= frame then
  239. if allowframeloss then
  240. script.ArtificialHB:Fire()
  241. lastframe = tick()
  242. else
  243. for i = 1, math.floor(tf / frame) do
  244. script.ArtificialHB:Fire()
  245. end
  246. lastframe = tick()
  247. end
  248. if tossremainder then
  249. tf = 0
  250. else
  251. tf = tf - frame * math.floor(tf / frame)
  252. end
  253. end
  254. end)
  255.  
  256. --//=================================\\
  257. --\\=================================//
  258.  
  259. --//=================================\\
  260. --|| SOME FUNCTIONS
  261. --\\=================================//
  262.  
  263. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  264. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  265. end
  266.  
  267. function PositiveAngle(NUMBER)
  268. if NUMBER >= 0 then
  269. NUMBER = 0
  270. end
  271. return NUMBER
  272. end
  273.  
  274. function NegativeAngle(NUMBER)
  275. if NUMBER <= 0 then
  276. NUMBER = 0
  277. end
  278. return NUMBER
  279. end
  280.  
  281. function Swait(NUMBER)
  282. if NUMBER == 0 or NUMBER == nil then
  283. ArtificialHB.Event:wait()
  284. else
  285. for i = 1, NUMBER do
  286. ArtificialHB.Event:wait()
  287. end
  288. end
  289. end
  290.  
  291. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  292. local NEWMESH = IT(MESH)
  293. if MESH == "SpecialMesh" then
  294. NEWMESH.MeshType = MESHTYPE
  295. if MESHID ~= "nil" and MESHID ~= "" then
  296. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  297. end
  298. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  299. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  300. end
  301. end
  302. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  303. NEWMESH.Scale = SCALE
  304. NEWMESH.Parent = PARENT
  305. return NEWMESH
  306. end
  307.  
  308. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  309. local NEWPART = IT("Part")
  310. NEWPART.formFactor = FORMFACTOR
  311. NEWPART.Reflectance = REFLECTANCE
  312. NEWPART.Transparency = TRANSPARENCY
  313. NEWPART.CanCollide = false
  314. NEWPART.Locked = true
  315. NEWPART.Anchored = true
  316. if ANCHOR == false then
  317. NEWPART.Anchored = false
  318. end
  319. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  320. NEWPART.Name = NAME
  321. NEWPART.Size = SIZE
  322. NEWPART.Position = Torso.Position
  323. NEWPART.Material = MATERIAL
  324. NEWPART:BreakJoints()
  325. NEWPART.Parent = PARENT
  326. return NEWPART
  327. end
  328.  
  329. local function weldBetween(a, b)
  330. local weldd = Instance.new("ManualWeld")
  331. weldd.Part0 = a
  332. weldd.Part1 = b
  333. weldd.C0 = CFrame.new()
  334. weldd.C1 = b.CFrame:inverse() * a.CFrame
  335. weldd.Parent = a
  336. return weldd
  337. end
  338.  
  339.  
  340. function QuaternionFromCFrame(cf)
  341. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  342. local trace = m00 + m11 + m22
  343. if trace > 0 then
  344. local s = math.sqrt(1 + trace)
  345. local recip = 0.5 / s
  346. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  347. else
  348. local i = 0
  349. if m11 > m00 then
  350. i = 1
  351. end
  352. if m22 > (i == 0 and m00 or m11) then
  353. i = 2
  354. end
  355. if i == 0 then
  356. local s = math.sqrt(m00 - m11 - m22 + 1)
  357. local recip = 0.5 / s
  358. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  359. elseif i == 1 then
  360. local s = math.sqrt(m11 - m22 - m00 + 1)
  361. local recip = 0.5 / s
  362. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  363. elseif i == 2 then
  364. local s = math.sqrt(m22 - m00 - m11 + 1)
  365. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  366. end
  367. end
  368. end
  369.  
  370. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  371. local xs, ys, zs = x + x, y + y, z + z
  372. local wx, wy, wz = w * xs, w * ys, w * zs
  373. local xx = x * xs
  374. local xy = x * ys
  375. local xz = x * zs
  376. local yy = y * ys
  377. local yz = y * zs
  378. local zz = z * zs
  379. 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))
  380. end
  381.  
  382. function QuaternionSlerp(a, b, t)
  383. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  384. local startInterp, finishInterp;
  385. if cosTheta >= 0.0001 then
  386. if (1 - cosTheta) > 0.0001 then
  387. local theta = ACOS(cosTheta)
  388. local invSinTheta = 1 / SIN(theta)
  389. startInterp = SIN((1 - t) * theta) * invSinTheta
  390. finishInterp = SIN(t * theta) * invSinTheta
  391. else
  392. startInterp = 1 - t
  393. finishInterp = t
  394. end
  395. else
  396. if (1 + cosTheta) > 0.0001 then
  397. local theta = ACOS(-cosTheta)
  398. local invSinTheta = 1 / SIN(theta)
  399. startInterp = SIN((t - 1) * theta) * invSinTheta
  400. finishInterp = SIN(t * theta) * invSinTheta
  401. else
  402. startInterp = t - 1
  403. finishInterp = t
  404. end
  405. end
  406. 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
  407. end
  408.  
  409. function Clerp(a, b, t)
  410. local qa = {QuaternionFromCFrame(a)}
  411. local qb = {QuaternionFromCFrame(b)}
  412. local ax, ay, az = a.x, a.y, a.z
  413. local bx, by, bz = b.x, b.y, b.z
  414. local _t = 1 - t
  415. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  416. end
  417.  
  418. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  419. local frame = IT("Frame")
  420. frame.BackgroundTransparency = TRANSPARENCY
  421. frame.BorderSizePixel = BORDERSIZEPIXEL
  422. frame.Position = POSITION
  423. frame.Size = SIZE
  424. frame.BackgroundColor3 = COLOR
  425. frame.BorderColor3 = BORDERCOLOR
  426. frame.Name = NAME
  427. frame.Parent = PARENT
  428. return frame
  429. end
  430.  
  431. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  432. local label = IT("TextLabel")
  433. label.BackgroundTransparency = 1
  434. label.Size = UD2(1, 0, 1, 0)
  435. label.Position = UD2(0, 0, 0, 0)
  436. label.TextColor3 = TEXTCOLOR
  437. label.TextStrokeTransparency = STROKETRANSPARENCY
  438. label.TextTransparency = TRANSPARENCY
  439. label.FontSize = TEXTFONTSIZE
  440. label.Font = TEXTFONT
  441. label.BorderSizePixel = BORDERSIZEPIXEL
  442. label.TextStrokeColor3 = C3(1,1,1)
  443. label.TextScaled = false
  444. label.Text = TEXT
  445. label.Name = NAME
  446. label.Parent = PARENT
  447. return label
  448. end
  449.  
  450. function NoOutlines(PART)
  451. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  452. end
  453.  
  454. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  455. local NEWWELD = IT(TYPE)
  456. NEWWELD.Part0 = PART0
  457. NEWWELD.Part1 = PART1
  458. NEWWELD.C0 = C0
  459. NEWWELD.C1 = C1
  460. NEWWELD.Parent = PARENT
  461. return NEWWELD
  462. end
  463.  
  464. local S = IT("Sound")
  465. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  466. local NEWSOUND = nil
  467. coroutine.resume(coroutine.create(function()
  468. NEWSOUND = S:Clone()
  469. NEWSOUND.Parent = PARENT
  470. NEWSOUND.Volume = VOLUME
  471. NEWSOUND.Pitch = PITCH
  472. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  473. NEWSOUND:play()
  474. if DOESLOOP == true then
  475. NEWSOUND.Looped = true
  476. else
  477. repeat wait(1) until NEWSOUND.Playing == false
  478. NEWSOUND:remove()
  479. end
  480. end))
  481. return NEWSOUND
  482.  
  483. end
  484.  
  485. function CFrameFromTopBack(at, top, back)
  486. local right = top:Cross(back)
  487. 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)
  488. end
  489.  
  490. --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(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  491. function WACKYEFFECT(Table)
  492. local TYPE = (Table.EffectType or "Sphere")
  493. local SIZE = (Table.Size or VT(1,1,1))
  494. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  495. local TRANSPARENCY = (Table.Transparency or 0)
  496. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  497. local CFRAME = (Table.CFrame or Torso.CFrame)
  498. local MOVEDIRECTION = (Table.MoveToPos or nil)
  499. local ROTATION1 = (Table.RotationX or 0)
  500. local ROTATION2 = (Table.RotationY or 0)
  501. local ROTATION3 = (Table.RotationZ or 0)
  502. local MATERIAL = (Table.Material or "Neon")
  503. local COLOR = (Table.Color or C3(1,1,1))
  504. local TIME = (Table.Time or 45)
  505. local SOUNDID = (Table.SoundID or nil)
  506. local SOUNDPITCH = (Table.SoundPitch or nil)
  507. local SOUNDVOLUME = (Table.SoundVolume or nil)
  508. coroutine.resume(coroutine.create(function()
  509. local PLAYSSOUND = false
  510. local SOUND = nil
  511. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(0,0,0), true)
  512. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  513. PLAYSSOUND = true
  514. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  515. end
  516. EFFECT.Color = COLOR
  517. local MSH = nil
  518. if TYPE == "Sphere" then
  519. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  520. elseif TYPE == "Block" then
  521. MSH = IT("BlockMesh",EFFECT)
  522. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  523. elseif TYPE == "Wave" then
  524. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  525. elseif TYPE == "Ring" then
  526. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  527. elseif TYPE == "Slash" then
  528. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  529. elseif TYPE == "Round Slash" then
  530. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  531. elseif TYPE == "Swirl" then
  532. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  533. elseif TYPE == "Skull" then
  534. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  535. elseif TYPE == "Crystal" then
  536. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  537. end
  538. if MSH ~= nil then
  539. local MOVESPEED = nil
  540. if MOVEDIRECTION ~= nil then
  541. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  542. end
  543. local GROWTH = SIZE - ENDSIZE
  544. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  545. if TYPE == "Block" then
  546. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  547. else
  548. EFFECT.CFrame = CFRAME
  549. end
  550. for LOOP = 1, TIME+1 do
  551. Swait()
  552. MSH.Scale = MSH.Scale - GROWTH/TIME
  553. if TYPE == "Wave" then
  554. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  555. end
  556. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  557. if TYPE == "Block" then
  558. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  559. else
  560. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  561. end
  562. if MOVEDIRECTION ~= nil then
  563. local ORI = EFFECT.Orientation
  564. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  565. EFFECT.Orientation = ORI
  566. end
  567. end
  568. if PLAYSSOUND == false then
  569. EFFECT:remove()
  570. else
  571. repeat Swait() until SOUND.Playing == false
  572. EFFECT:remove()
  573. end
  574. else
  575. if PLAYSSOUND == false then
  576. EFFECT:remove()
  577. else
  578. repeat Swait() until SOUND.Playing == false
  579. EFFECT:remove()
  580. end
  581. end
  582. end))
  583. end
  584.  
  585. function MakeForm(PART,TYPE)
  586. if TYPE == "Cyl" then
  587. local MSH = IT("CylinderMesh",PART)
  588. elseif TYPE == "Ball" then
  589. local MSH = IT("SpecialMesh",PART)
  590. MSH.MeshType = "Sphere"
  591. elseif TYPE == "Wedge" then
  592. local MSH = IT("SpecialMesh",PART)
  593. MSH.MeshType = "Wedge"
  594. end
  595. end
  596.  
  597. Debris = game:GetService("Debris")
  598.  
  599. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  600. local DIRECTION = CF(StartPos,EndPos).lookVector
  601. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  602. end
  603.  
  604. function turnto(position)
  605. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  606. end
  607.  
  608. --//=================================\\
  609. --|| WEAPON CREATION
  610. --\\=================================//
  611.  
  612. Humanoid.Parent = nil
  613. RootPart.Size = RootPart.Size*SIZE
  614. Torso.Size = Torso.Size*SIZE
  615. RightArm.Size = RightArm.Size*SIZE
  616. RightLeg.Size = RightLeg.Size*SIZE
  617. LeftArm.Size = LeftArm.Size*SIZE
  618. LeftLeg.Size = LeftLeg.Size*SIZE
  619. RootJoint.C0 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0))
  620. RootJoint.C1 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0))
  621. Neck.C0 = NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1 * SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0))
  622. Neck.C1 = CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180))
  623. RightShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE)
  624. LeftShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE)
  625. RightHip.C0 = CF(1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  626. LeftHip.C0 = CF(-1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  627. RightHip.C1 = CF(0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  628. LeftHip.C1 = CF(-0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  629. Head.Size = Head.Size*SIZE
  630. RootJoint.Parent = RootPart
  631. Neck.Parent = Torso
  632. RightShoulder.Parent = Torso
  633. LeftShoulder.Parent = Torso
  634. RightHip.Parent = Torso
  635. LeftHip.Parent = Torso
  636.  
  637. Humanoid.DisplayDistanceType = "None"
  638. local naeeym2 = IT("BillboardGui",Character)
  639. naeeym2.AlwaysOnTop = true
  640. naeeym2.Size = UDim2.new(5,35,2,15)
  641. naeeym2.StudsOffset = Vector3.new(0,2,0)
  642. naeeym2.MaxDistance = 500
  643. naeeym2.Adornee = Character.Head
  644. naeeym2.Name = "Name"
  645. local tecks2 = IT("TextLabel",naeeym2)
  646. tecks2.BackgroundTransparency = 1
  647. tecks2.TextScaled = true
  648. tecks2.BorderSizePixel = 0
  649. tecks2.Text = "Corrupted Pandora"
  650. tecks2.Font = "Fantasy"
  651. tecks2.TextSize = 30
  652. tecks2.TextStrokeTransparency = 0
  653. tecks2.TextColor3 = C3(0,0,0)
  654. tecks2.TextStrokeColor3 = C3(77,0,77)
  655. tecks2.Size = UDim2.new(1,0,0.5,0)
  656. tecks2.Parent = naeeym2
  657. local top = Instance.new("Shirt")
  658. top.ShirtTemplate = "rbxassetid://676428254"
  659. top.Parent = Character
  660. top.Name = "Cloth"
  661. local bottom = Instance.new("Pants")
  662. bottom.PantsTemplate = "rbxassetid://676428351"
  663. bottom.Parent = Character
  664. bottom.Name = "Cloth"
  665. local PRT = CreatePart(3, Weapon, "Fabric", 0, 0, "Really black", "Hat", VT(1,1,1),false)
  666. PRT.Color = C3(0,0,0)
  667. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.72*SIZE,0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), CF(0, 0, 0))
  668. CreateMesh("SpecialMesh", PRT, "FileMesh", "26768040", "", VT(1,1,1)*SIZE, VT(0,0,0))
  669. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Detail", VT(1,1,1),false)
  670. PRT.Color = C3(0,0,0)
  671. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0))
  672. CreateMesh("SpecialMesh", PRT, "FileMesh", "13520257", "", VT(1,1,1)*SIZE, VT(0,0,0))
  673. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Magenta", "Detail", VT(1,1.2,0.2),false)
  674. PRT.Color = C3(102, 0, 102)
  675. MakeForm(PRT,"Ball")
  676. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0))
  677. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Magenta", "Detail", VT(0.5,0.4,0.5),false)
  678. PRT.Color = C3(102, 0, 102)
  679. MakeForm(PRT,"Ball")
  680. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,-0.3,-.5*SIZE), CF(0, 0, 0))
  681. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Magenta", "Detail", VT(0.5,0.3,0.3),false)
  682. PRT.Color = C3(102, 0, 102)
  683. MakeForm(PRT,"Ball")
  684. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.25,0.25,-.5*SIZE), CF(0, 0, 0))
  685. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Magenta", "Detail", VT(0.5,0.3,0.3),false)
  686. PRT.Color = C3(102, 0, 102)
  687. MakeForm(PRT,"Ball")
  688. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.25,0.25,-.5*SIZE), CF(0, 0, 0))
  689. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Magenta", "Detail", VT(0.4,0.4,0.3),false)
  690. PRT.Color = C3(102, 0, 102)
  691. MakeForm(PRT,"Ball")
  692. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(15), RAD(0)), CF(0, 0, 0))
  693. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Magenta", "Detail", VT(0.4,0.4,0.3),false)
  694. PRT.Color = C3(102, 0, 102)
  695. MakeForm(PRT,"Ball")
  696. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(-15), RAD(0)), CF(0, 0, 0))
  697.  
  698. local LASTPART = Head
  699. for i = 1, 24 do
  700. local MATH = (1-(i/30))
  701. if LASTPART == Head then
  702. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  703. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.8, 0.3, -0.4) * ANGLES(RAD(-25), RAD(220), RAD(90)), CF(0, 0, 0))
  704. LASTPART = Horn
  705. Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255))
  706. else
  707. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  708. 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))
  709. LASTPART = Horn
  710. Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255))
  711. end
  712. end
  713. local LASTPART = Head
  714. for i = 1, 24 do
  715. local MATH = (1-(i/30))
  716. if LASTPART == Head then
  717. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  718. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.8, 0.3, -0.4) * ANGLES(RAD(-25), RAD(-220), RAD(-90)), CF(0, 0, 0))
  719. LASTPART = Horn
  720. Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255))
  721. else
  722. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  723. 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))
  724. LASTPART = Horn
  725. Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255))
  726. end
  727. end
  728. local LASTPART = Head
  729. for i = 1, 8 do
  730. local MATH = (1-(i/14))
  731. if LASTPART == Head then
  732. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  733. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.65, -0.3, -0.4) * ANGLES(RAD(-25), RAD(250), RAD(90)), CF(0, 0, 0))
  734. LASTPART = Horn
  735. Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255))
  736. else
  737. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  738. 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))
  739. LASTPART = Horn
  740. Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255))
  741. end
  742. end
  743. local LASTPART = Head
  744. for i = 1, 8 do
  745. local MATH = (1-(i/14))
  746. if LASTPART == Head then
  747. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  748. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.65, -0.3, -0.4) * ANGLES(RAD(-25), RAD(-250), RAD(-90)), CF(0, 0, 0))
  749. LASTPART = Horn
  750. Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255))
  751. else
  752. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  753. 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))
  754. LASTPART = Horn
  755. Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255))
  756. end
  757. end
  758.  
  759. for _, c in pairs(Weapon:GetChildren()) do
  760. if c.ClassName == "Part" then
  761. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  762. end
  763. end
  764.  
  765. Neck.Name = "Weld"
  766. RootJoint.Name = "Weld"
  767. RightShoulder.Name = "Weld"
  768. LeftShoulder.Name = "Weld"
  769. RightHip.Name = "Weld"
  770. LeftHip.Name = "Weld"
  771.  
  772. local SKILLTEXTCOLOR = C3(0/102,0,0/102)
  773. local SKILLFONT = "Fantasy"
  774. local SKILLTEXTSIZE = 7
  775.  
  776. Weapon.Parent = Character
  777. Humanoid.Parent = Character
  778.  
  779.  
  780. Humanoid.Died:connect(function()
  781. ATTACK = true
  782. end)
  783.  
  784. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23-.20, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  785. local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50+.20, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  786. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  787. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  788. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  789.  
  790. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Corrupted Missiles", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 0, 0, "Text 1")
  791. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Times up", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 0, 0, "Text 2")
  792. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Chained Punch", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 0, 0, "Text 3")
  793. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Corrupted Comet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 0, 0, "Text 4")
  794. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Pandora's Box", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 0, 0, "Text 5")
  795. local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[F] Time Lock ", SKILLTEXTCOLOR, SKILLTEXTSIZE-1, SKILLFONT, 0, 0, 0, "Text 6")
  796.  
  797. --//=================================\\
  798. --|| DAMAGING
  799. --\\=================================//
  800.  
  801. function ApplyDamage(Humanoid,Damage,TorsoPart)
  802. local defence = Instance.new("BoolValue",Humanoid.Parent)
  803. defence.Name = ("HitBy"..Player.Name)
  804. game:GetService("Debris"):AddItem(defence, 0.001)
  805. Damage = Damage * DAMAGEMULTIPLIER
  806. if Humanoid.Health ~= 0 then
  807. local CritChance = MRANDOM(1,100)
  808. if Damage > Humanoid.Health then
  809. Damage = math.ceil(Humanoid.Health)
  810. if Damage == 0 then
  811. Damage = 0.1
  812. end
  813. end
  814. Humanoid.Health = Humanoid.Health - Damage
  815. end
  816. end
  817.  
  818. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  819. local CHILDREN = workspace:GetDescendants()
  820. for index, CHILD in pairs(CHILDREN) do
  821. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  822. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  823. if HUM then
  824. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  825. if TORSO then
  826. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  827. if INSTAKILL == true then
  828. CHILD:BreakJoints()
  829. else
  830. local DMG = MRANDOM(MINDMG,MAXDMG)
  831. ApplyDamage(HUM,DMG,TORSO)
  832. end
  833. if FLING > 0 then
  834. for _, c in pairs(CHILD:GetChildren()) do
  835. if c:IsA("BasePart") then
  836. local bv = Instance.new("BodyVelocity")
  837. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  838. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  839. bv.Parent = c
  840. Debris:AddItem(bv,0.05)
  841. end
  842. end
  843. end
  844. end
  845. end
  846. end
  847. end
  848. end
  849. end
  850.  
  851. --//=================================\\
  852. --|| ATTACK FUNCTIONS AND STUFF
  853. --\\=================================//
  854.  
  855. local HATWELD = nil
  856. function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors)
  857. PLAYMAINANIM = false
  858. if WhichPose == "Cast1" then
  859. for i=0, Time, 0.1 / Animation_Speed do
  860. Swait()
  861. if Magic == true then
  862. 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"Magenta".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  863. end
  864. if Gyro ~= nil and Gyro ~= false then
  865. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  866. end
  867. 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)
  868. 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)
  869. 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)
  870. 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)
  871. 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)
  872. 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)
  873. end
  874. elseif WhichPose == "Cast2" then
  875. for i=0, Time, 0.1 / Animation_Speed do
  876. Swait()
  877. if Magic == true then
  878. 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"Magenta".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  879. 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"Magenta".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  880. end
  881. if Gyro ~= nil and Gyro ~= false then
  882. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  883. end
  884. 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)
  885. 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)
  886. 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)
  887. 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)
  888. 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)
  889. 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)
  890. end
  891. elseif WhichPose == "RightArmUp" then
  892. for i=0, Time, 0.1 / Animation_Speed do
  893. Swait()
  894. if Magic == true then
  895. 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"Magenta".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  896. end
  897. if Gyro ~= nil and Gyro ~= false then
  898. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  899. end
  900. 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)
  901. 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)
  902. 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)
  903. 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)
  904. 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)
  905. 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)
  906. end
  907. elseif WhichPose == "Taunt" then
  908. for i=0, Time, 0.1 / Animation_Speed do
  909. Swait()
  910. 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)
  911. 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)
  912. 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)
  913. 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)
  914. 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)
  915. 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)
  916. end
  917. HATWELD.Part0 = RightArm
  918. HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
  919. CreateSound(221057812,Torso,10,1,false)
  920. for i=0, Time*2, 0.1 / Animation_Speed do
  921. Swait()
  922. 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)
  923. 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)
  924. 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)
  925. 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)
  926. 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)
  927. 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)
  928. end
  929. for i=0, Time, 0.1 / Animation_Speed do
  930. Swait()
  931. 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)
  932. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
  933. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  934. 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)
  935. 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)
  936. 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)
  937. 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)
  938. end
  939. HATWELD.Part0 = Head
  940. HATWELD.C0 = CF(0,0.35,0)
  941. elseif WhichPose == "Prepare key" then
  942. for i=0, Time, 0.1 / Animation_Speed do
  943. Swait()
  944. if Gyro ~= nil and Gyro ~= false then
  945. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  946. end
  947. 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)
  948. 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)
  949. 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)
  950. 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)
  951. 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)
  952. 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)
  953. end
  954. elseif WhichPose == "Turn key" then
  955. for i=0, Time, 0.1 / Animation_Speed do
  956. Swait()
  957. if Gyro ~= nil and Gyro ~= false then
  958. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  959. end
  960. 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)
  961. 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)
  962. 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)
  963. 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)
  964. 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)
  965. 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)
  966. end
  967. end
  968. PLAYMAINANIM = true
  969. end
  970.  
  971.  
  972.  
  973.  
  974. function Prison_Key()
  975. if Mouse.Target ~= nil then
  976. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  977. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  978. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  979. local GYRO = IT("BodyGyro",RootPart)
  980. GYRO.D = 750
  981. GYRO.P = 20000
  982. GYRO.MaxTorque = VT(0,40000000,0)
  983. local grav = Instance.new("BodyPosition",TORSO)
  984. grav.D = 15
  985. grav.P = 20000
  986. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  987. grav.position = TORSO.Position
  988. local GYRO2 = IT("BodyGyro",TORSO)
  989. GYRO2.D = 750
  990. GYRO2.P = 20000
  991. GYRO2.MaxTorque = VT(0,40000000,0)
  992. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  993. grav.Name = "Jail"
  994. local LOCKPARTS = {}
  995. ATTACK = true
  996. Rooted = false
  997. local LOCK = IT("Model",Effects)
  998. LOCK.Name = "Lock"
  999. local LOCK2 = IT("Model",LOCK)
  1000. LOCK2.Name = "Metal"
  1001. --CREATE LOCK--
  1002. local BASE = CreatePart(3, LOCK, "Neon", 0, 0, "Really black", "Keylock", VT(3, 2.5, 1))
  1003. LOCK.PrimaryPart = BASE
  1004. BASE.CFrame = CF(TORSO.Position,RootPart.Position)*CF(0,0,-4)
  1005. local PRT = CreatePart(3, LOCK, "Neon", 0, 0, "Really black", "Keylock", VT(3, 1, 3))
  1006. PRT.CFrame = BASE.CFrame*CF(0,-1.25,0)*ANGLES(RAD(90),RAD(0),RAD(0))
  1007. MakeForm(PRT,"Cyl")
  1008. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Really black", "Hole", VT(1, 1, 1))
  1009. PRT.Color = C3(0,0,0)
  1010. PRT.CFrame = BASE.CFrame*CF(0,0.3,-0.01)*ANGLES(RAD(90),RAD(0),RAD(0))
  1011. MakeForm(PRT,"Cyl")
  1012. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Really black", "Hole", VT(0.5, 1, 1))
  1013. PRT.Color = C3(0,0,0)
  1014. PRT.CFrame = BASE.CFrame*CF(0,-0.2,-0.01)
  1015. for i = 1, 45 do
  1016. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Really black", "Keylock", VT(0.5, 0.5, 0.5))
  1017. PRT.CFrame = BASE.CFrame*CF(0,2,0)*ANGLES(RAD(0),RAD(0),RAD(-90+(360/90*i)))*CF(0,1,0)
  1018. end
  1019. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Really black", "Keylock", VT(0.5, 0.5, 0.5))
  1020. PRT.CFrame = BASE.CFrame*CF(0,1.5,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0)
  1021. LOCK2.PrimaryPart = PRT
  1022. ---------------
  1023. local CHILDREN = LOCK:GetDescendants()
  1024. for index, CHILD in pairs(CHILDREN) do
  1025. if CHILD:IsA("BasePart") then
  1026. CHILD.Transparency = 1
  1027. end
  1028. end
  1029. for i = 1, 75 do
  1030. LOCK:SetPrimaryPartCFrame(CF(TORSO.Position,RootPart.Position)*CF(0,0,-4))
  1031. Swait()
  1032. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1033. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  1034. local CHILDREN = LOCK:GetDescendants()
  1035. for index, CHILD in pairs(CHILDREN) do
  1036. if CHILD:IsA("BasePart") then
  1037. CHILD.Transparency = CHILD.Transparency - 1/75
  1038. end
  1039. end
  1040. end
  1041. HUM.DisplayDistanceType = "None"
  1042. local KEY = IT("Model",Effects)
  1043. KEY.Name = "Key"
  1044. --CREATE KEY--
  1045. local KBASE = CreatePart(3, KEY, "Neon", 0, 0, "Magenta", "KeyBase", VT(0.1, 1, 0.1),false)
  1046. KEY.PrimaryPart = KBASE
  1047. KBASE.CFrame = RightArm.CFrame*CF(0,-2.1,0)*ANGLES(RAD(0),RAD(90),RAD(0))
  1048. local WLD = weldBetween(RightArm,KBASE)
  1049. for i = 1, 45 do
  1050. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Magenta", "Key", VT(0.1, 0.1, 0.1),false)
  1051. PRT.CFrame = KBASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD((360/45*i)))*CF(0,0.25,0)
  1052. weldBetween(KBASE,PRT)
  1053. end
  1054. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Magenta", "Key", VT(0.3, 0.1, 0.1),false)
  1055. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.45,0)
  1056. weldBetween(KBASE,PRT)
  1057. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Magenta", "Key", VT(0.3, 0.1, 0.1),false)
  1058. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.25,0)
  1059. weldBetween(KBASE,PRT)
  1060. --------------
  1061. Rooted = true
  1062. Pose("Prepare key",1.5,1.2,false,GYRO,TORSO)
  1063. coroutine.resume(coroutine.create(function()
  1064. for i = 1, 10 do
  1065. Swait()
  1066. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1067. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  1068. end
  1069. CreateSound(1149318312,BASE,5,1,false)
  1070. CreateSound(160772554,BASE,3,1,false)
  1071. LOCK2:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0))
  1072. for i = 1, 4 do
  1073. 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"Magenta".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1074. end
  1075. 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"Magenta".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
  1076. wait(1)
  1077. TORSO.Parent.Parent = LOCK
  1078. for i = 1, 75 do
  1079. Swait()
  1080. local CHILDREN = KEY:GetDescendants()
  1081. for index, CHILD in pairs(CHILDREN) do
  1082. if CHILD:IsA("BasePart") then
  1083. CHILD.Transparency = i/25
  1084. end
  1085. end
  1086. local CHILDREN = LOCK:GetDescendants()
  1087. for index, CHILD in pairs(CHILDREN) do
  1088. if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then
  1089. CHILD.Transparency = CHILD.Transparency + 1/75
  1090. elseif CHILD.ClassName == "Decal" then
  1091. CHILD.Transparency = CHILD.Transparency + 1/75
  1092. end
  1093. end
  1094. end
  1095. TORSO.Parent:ClearAllChildren()
  1096. KEY:remove()
  1097. LOCK:remove()
  1098. end))
  1099. Pose("Turn key",0.8,1.2,false,GYRO,TORSO)
  1100. GYRO:remove()
  1101. ATTACK = false
  1102. Rooted = false
  1103. end
  1104. end
  1105. end
  1106.  
  1107.  
  1108.  
  1109.  
  1110.  
  1111.  
  1112. function MagicMissiles()
  1113. ATTACK = true
  1114. Rooted = true
  1115. local SELECTING = true
  1116. local SPOTS = {}
  1117. coroutine.resume(coroutine.create(function()
  1118. local LOOP = 0
  1119. repeat
  1120. LOOP = LOOP + 1
  1121. Swait()
  1122. if LOOP >= 10 then
  1123. LOOP = 0
  1124. for i = 1, #SPOTS do
  1125. if SPOTS[i] ~= nil then
  1126. 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(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1127. 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(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1128. end
  1129. end
  1130. end
  1131. 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)
  1132. 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)
  1133. 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)
  1134. 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)
  1135. 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)
  1136. 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)
  1137. until SELECTING == false
  1138. Rooted = false
  1139. repeat
  1140. LOOP = LOOP + 1
  1141. Swait()
  1142. if LOOP >= 10 then
  1143. LOOP = 0
  1144. for i = 1, #SPOTS do
  1145. if SPOTS[i] ~= nil then
  1146. 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(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1147. 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(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1148. end
  1149. end
  1150. end
  1151. 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)
  1152. 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)
  1153. 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)
  1154. 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)
  1155. 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)
  1156. 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)
  1157. until ATTACK == false
  1158. end))
  1159. repeat
  1160. repeat Swait() until HOLD == true
  1161. local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude
  1162. if DIST > 65 then
  1163. DIST = 65
  1164. end
  1165. local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace)
  1166. local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character)
  1167. if HITFLOOR ~= nil then
  1168. table.insert(SPOTS,CF(HITPOS,HITPOS+NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0)))
  1169. 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(0,0,0), SoundID = 90655239, SoundPitch = 1, SoundVolume = 6})
  1170. 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(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1171. end
  1172. repeat Swait() until HOLD == false
  1173. until #SPOTS == 5
  1174. SELECTING = false
  1175. for i = 1, #SPOTS do
  1176. if SPOTS[i] ~= nil then
  1177. local POS = SPOTS[i]
  1178. coroutine.resume(coroutine.create(function()
  1179. local MISSILE = IT("Model",Effects)
  1180. MISSILE.Name = "Missile"
  1181. local BASEPART = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2,2,2))
  1182. MakeForm(BASEPART,"Cyl")
  1183. MISSILE.PrimaryPart = BASEPART
  1184. BASEPART.CFrame = POS*CF(0,-30*3,0)
  1185. local HEAD = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2,4,2))
  1186. MakeForm(HEAD,"Ball")
  1187. HEAD.CFrame = BASEPART.CFrame*CF(0,-1,0)
  1188. local TAIL = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2.5,0.1,2.5))
  1189. MakeForm(TAIL,"Cyl")
  1190. TAIL.CFrame = BASEPART.CFrame*CF(0,-1,0)
  1191. for i = 1, 10 do
  1192. Swait()
  1193. for _, c in pairs(MISSILE:GetChildren()) do
  1194. if c.ClassName == "Part" then
  1195. c.Transparency = c.Transparency - 1/10
  1196. end
  1197. end
  1198. end
  1199. for i = 1, 15*1.5 do
  1200. Swait()
  1201. MISSILE:SetPrimaryPartCFrame(BASEPART.CFrame*CF(0,1.35*3,0))
  1202. end
  1203. ApplyAoE(BASEPART.CFrame.p,20,35,45,75,false)
  1204. MISSILE:remove()
  1205. end))
  1206. end
  1207. end
  1208. wait(0.6)
  1209. ATTACK = false
  1210. Rooted = false
  1211. end
  1212.  
  1213. function TimesUp()
  1214. CLOCKTARGET = nil
  1215. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1216. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1217. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  1218. if TORSO then
  1219. ATTACK = true
  1220. Rooted = false
  1221. coroutine.resume(coroutine.create(function()
  1222. repeat
  1223. Swait()
  1224. 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)
  1225. 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)
  1226. 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)
  1227. 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)
  1228. 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)
  1229. 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)
  1230. until ATTACK == false
  1231. end))
  1232. if Effects:FindFirstChild("NeonDoll") then
  1233. repeat Swait() until Effects:FindFirstChild("NeonDoll") == nil
  1234. end
  1235. wait(0.5)
  1236. local FAKECHARACTER = IT("Model",Effects)
  1237. FAKECHARACTER.Name = "NeonDoll"
  1238. local TORS = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.3,0.3,0.15),false)
  1239. CreateWeldOrSnapOrMotor("Weld", RING, RING, TORS, CF(0,0.6,0), CF(0,0,0))
  1240. local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.3,0.15),false)
  1241. CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0,0.15,0))
  1242. local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.3,0.15),false)
  1243. CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(-0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0,0.15,0))
  1244. local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.3,0.15),false)
  1245. CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0,0.15,0))
  1246. local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.3,0.15),false)
  1247. CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(-0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(-90)), CF(0,0.15,0))
  1248. local HEAD = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.15,0.15),false)
  1249. CreateWeldOrSnapOrMotor("Weld", TORS, TORS, HEAD, CF(0,0.225,0), CF(0,0,0))
  1250. CreateSound(201858045, TORS, 5, 0.4, false)
  1251. for i = 1, 150 do
  1252. Swait()
  1253. CLOCKSPEED = 6
  1254. for _, c in pairs(FAKECHARACTER:GetChildren()) do
  1255. if c.ClassName == "Part" then
  1256. c.Transparency = c.Transparency - 0.5/150
  1257. end
  1258. end
  1259. end
  1260. CLOCKTARGET = HUM
  1261. coroutine.resume(coroutine.create(function()
  1262. repeat Swait() CLOCKSPEED = 2 until CLOCKTARGET == nil
  1263. for i = 1, 25 do
  1264. Swait()
  1265. for _, c in pairs(FAKECHARACTER:GetChildren()) do
  1266. if c.ClassName == "Part" then
  1267. c.Transparency = c.Transparency + 0.5/25
  1268. end
  1269. end
  1270. end
  1271. CLOCKSPEED = 1
  1272. FAKECHARACTER:remove()
  1273. end))
  1274. wait(0.5)
  1275. ATTACK = false
  1276. Rooted = false
  1277. end
  1278. end
  1279. end
  1280.  
  1281. function ChainPunch()
  1282. ATTACK = true
  1283. Rooted = false
  1284. local GYRO = IT("BodyGyro",RootPart)
  1285. GYRO.D = 25
  1286. GYRO.P = 2000
  1287. GYRO.MaxTorque = VT(0,40000,0)
  1288. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1289. repeat
  1290. Swait()
  1291. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1292. 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)
  1293. 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)
  1294. 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)
  1295. 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)
  1296. 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)
  1297. 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)
  1298. until HOLD == true
  1299. local POS = Mouse.Hit.p
  1300. local CHAINS = false
  1301. local CHAINLINKS = {}
  1302. local A = IT("Attachment",RightArm)
  1303. A.Position = VT(1,-1,0)*SIZE
  1304. A.Orientation = VT(-90, -89.982, 0)
  1305. local B = IT("Attachment",RightArm)
  1306. B.Position = VT(-1,-1,0)*SIZE
  1307. B.Orientation = VT(-90, 89.988, 0)
  1308. local C = IT("Attachment",RightArm)
  1309. C.Position = VT(0.5,-1.3,0)*SIZE
  1310. C.Orientation = VT(-90, -89.982, 0)
  1311. local D = IT("Attachment",RightArm)
  1312. D.Position = VT(-0.5,-1.3,0)*SIZE
  1313. D.Orientation = VT(-90, 89.988, 0)
  1314. local LIGHT = IT("Attachment",RightArm)
  1315. LIGHT.Position = VT(0,-1,0)*SIZE
  1316. local LIGHT2 = IT("PointLight",LIGHT)
  1317. LIGHT2.Range = 7
  1318. LIGHT2.Brightness = 5
  1319. LIGHT2.Color = SKILLTEXTCOLOR
  1320. for i = 1, 2 do
  1321. local TWIST = -2
  1322. local START = A
  1323. local END = B
  1324. if i == 1 then
  1325. START = B
  1326. END = A
  1327. end
  1328. local ChainLink = IT("Beam",Torso)
  1329. ChainLink.Texture = "rbxassetid://73042633"
  1330. ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR)
  1331. ChainLink.TextureSpeed = 1
  1332. ChainLink.Width0 = 1
  1333. ChainLink.Width1 = 1
  1334. ChainLink.TextureLength = 2.5
  1335. ChainLink.Attachment0 = START
  1336. ChainLink.Attachment1 = END
  1337. ChainLink.CurveSize0 = TWIST
  1338. ChainLink.CurveSize1 = TWIST
  1339. --ChainLink.FaceCamera = true
  1340. ChainLink.Segments = 45
  1341. ChainLink.Transparency = NumberSequence.new(1)
  1342. table.insert(CHAINLINKS,ChainLink)
  1343. end
  1344. for i = 1, 2 do
  1345. local TWIST = -1
  1346. local START = C
  1347. local END = D
  1348. if i == 1 then
  1349. START = D
  1350. END = C
  1351. end
  1352. local ChainLink = IT("Beam",Torso)
  1353. ChainLink.Texture = "rbxassetid://73042633"
  1354. ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR)
  1355. ChainLink.TextureSpeed = 1
  1356. ChainLink.Width0 = 1
  1357. ChainLink.Width1 = 1
  1358. ChainLink.TextureLength = 5
  1359. ChainLink.Attachment0 = START
  1360. ChainLink.Attachment1 = END
  1361. ChainLink.CurveSize0 = TWIST
  1362. ChainLink.CurveSize1 = TWIST
  1363. --ChainLink.FaceCamera = true
  1364. ChainLink.Segments = 25
  1365. ChainLink.LightEmission = 0.5
  1366. ChainLink.Transparency = NumberSequence.new(1)
  1367. table.insert(CHAINLINKS,ChainLink)
  1368. end
  1369. coroutine.resume(coroutine.create(function()
  1370. repeat
  1371. Swait()
  1372. 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)
  1373. 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)
  1374. 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)
  1375. 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)
  1376. 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)
  1377. 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)
  1378. until CHAINS == true
  1379. repeat
  1380. Swait()
  1381. 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)
  1382. 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)
  1383. 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)
  1384. 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)
  1385. 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)
  1386. 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)
  1387. until ATTACK == false
  1388. for e = 1, 15 do
  1389. Swait()
  1390. for i = 1, #CHAINLINKS do
  1391. CHAINLINKS[i].Transparency = NumberSequence.new((e/15))
  1392. end
  1393. end
  1394. A:remove()
  1395. B:remove()
  1396. C:remove()
  1397. D:remove()
  1398. end))
  1399. CreateSound(233856115, RightArm, 5, 1.2, false)
  1400. for e = 1, 15 do
  1401. Swait()
  1402. for i = 1, #CHAINLINKS do
  1403. CHAINLINKS[i].Transparency = NumberSequence.new(1-(e/15))
  1404. end
  1405. end
  1406. CHAINS = true
  1407. Rooted = true
  1408. wait(0.25)
  1409. local FIST = CreatePart(3, Effects, "Neon", 0, 0.5, "Alder", "Part", VT(2,2,2))
  1410. FIST.Color = C3(1, 215/255, 1)
  1411. FIST.CFrame = CF(RightArm.CFrame*CF(0,-1.3*SIZE,0).p,POS) * ANGLES(RAD(90), RAD(0), RAD(0))
  1412. local LIGHT3 = IT("PointLight",FIST)
  1413. LIGHT3.Range = 7
  1414. LIGHT3.Brightness = 5
  1415. LIGHT3.Color = SKILLTEXTCOLOR
  1416. CreateMesh("SpecialMesh", FIST, "FileMesh", "90718752", "", VT(10,10,10), VT(0,0,0))
  1417. local FISTA = IT("Attachment",FIST)
  1418. FISTA.Position = VT(0.062, 0.977, 0)
  1419. local ChainLink = IT("Beam",Torso)
  1420. ChainLink.Texture = "rbxassetid://73042633"
  1421. ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR)
  1422. ChainLink.TextureSpeed = 0
  1423. ChainLink.Width0 = 3
  1424. ChainLink.Width1 = 3
  1425. ChainLink.TextureLength = 12
  1426. ChainLink.Attachment0 = LIGHT
  1427. ChainLink.Attachment1 = FISTA
  1428. ChainLink.FaceCamera = true
  1429. ChainLink.Segments = 45
  1430. ChainLink.LightEmission = 0.5
  1431. ChainLink.Transparency = NumberSequence.new(0.25)
  1432. local FISTSOUND = CreateSound(288641686, FIST, 5, 1.2, false)
  1433. for i = 1, 85 do
  1434. Swait()
  1435. FIST.CFrame = FIST.CFrame*CF(0,-2,0)
  1436. ChainLink.TextureLength = 12+(i*2)
  1437. ApplyAoE(FIST.Position,10,15,25,100,false)
  1438. local HITFLOOR = Raycast(FIST.Position, (CF(FIST.Position, FIST.CFrame*CF(0,-1,0).p)).lookVector, 2.1, Character)
  1439. if HITFLOOR ~= nil then
  1440. HITFLOOR:BreakJoints()
  1441. coroutine.resume(coroutine.create(function()
  1442. for i = 1, 15 do
  1443. Swait()
  1444. FISTSOUND.Volume = FISTSOUND.Volume - 0.15
  1445. ApplyAoE(FIST.Position,10+(i*2),5,15,5,false)
  1446. end
  1447. end))
  1448. break
  1449. end
  1450. end
  1451. coroutine.resume(coroutine.create(function()
  1452. for i = 1, 50 do
  1453. Swait()
  1454. FIST.Transparency = FIST.Transparency + 0.5/50
  1455. LIGHT3.Range = LIGHT3.Range - 7/50
  1456. end
  1457. FIST:remove()
  1458. end))
  1459. LIGHT:remove()
  1460. GYRO:remove()
  1461. ATTACK = false
  1462. Rooted = false
  1463. end
  1464.  
  1465. function WarpMeteor()
  1466. local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude
  1467. if DIST > 180 then
  1468. DIST = 180
  1469. end
  1470. local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace)
  1471. local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,45,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 75*SIZE, Character)
  1472. if HITFLOOR then
  1473. local POS = HITPOS
  1474. ATTACK = true
  1475. Rooted = true
  1476. local WARPED = false
  1477. local SMASHED = false
  1478. local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character)
  1479. coroutine.resume(coroutine.create(function()
  1480. repeat
  1481. Swait()
  1482. 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)
  1483. 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)
  1484. 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)
  1485. 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)
  1486. 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)
  1487. 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)
  1488. until WARPED == true
  1489. repeat
  1490. Swait()
  1491. 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)
  1492. 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)
  1493. 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)
  1494. 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)
  1495. 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)
  1496. 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)
  1497. until SMASHED == true
  1498. repeat
  1499. Swait()
  1500. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)), 1 / Animation_Speed)
  1501. 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)
  1502. 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)
  1503. 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)
  1504. 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)
  1505. 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)
  1506. until ATTACK == false
  1507. end))
  1508. VALUE1 = true
  1509. CreateSound(233856115, Torso, 5, 1.6, false)
  1510. for i = 1, 25 do
  1511. Swait()
  1512. for _, c in pairs(Character:GetChildren()) do
  1513. if c.ClassName == "Part" then
  1514. c.Transparency = c.Transparency + 1/25
  1515. end
  1516. end
  1517. for _, c in pairs(Weapon:GetChildren()) do
  1518. if c.ClassName == "Part" then
  1519. c.Transparency = c.Transparency + 1/25
  1520. end
  1521. end
  1522. end
  1523. UNANCHOR = false
  1524. RootPart.Anchored = true
  1525. RootPart.Velocity = VT(0,0,0)
  1526. local ROOTPOS = RootPart.Position
  1527. RootPart.CFrame = CF(POS+VT(0,300,0),VT(ROOTPOS.X,POS.Y+300,ROOTPOS.Z))
  1528. WARPED = true
  1529. for i = 1, 25 do
  1530. Swait()
  1531. for _, c in pairs(Character:GetChildren()) do
  1532. if c.ClassName == "Part" then
  1533. c.Transparency = c.Transparency - 1/25
  1534. end
  1535. end
  1536. for _, c in pairs(Weapon:GetChildren()) do
  1537. if c.ClassName == "Part" then
  1538. c.Transparency = c.Transparency - 1/25
  1539. end
  1540. end
  1541. end
  1542. local SHELL = CreatePart(3, Effects, "Neon", 0, 1, "Alder", "Part", VT(0,0,0))
  1543. SHELL.CFrame = RootPart.CFrame
  1544. MakeForm(SHELL,"Ball")
  1545. CreateSound(402981977, SHELL, 5, 1.6, false)
  1546. for i = 1, 10 do
  1547. Swait()
  1548. SHELL.Transparency = SHELL.Transparency - 1/10
  1549. SHELL.Size = SHELL.Size + VT(0.6,0.6,0.6)*1.8
  1550. end
  1551. for i = 1, math.ceil(75/2) do
  1552. Swait()
  1553. RootPart.CFrame = RootPart.CFrame*CF(0,-3.5*2,0)
  1554. SHELL.CFrame = CF(RootPart.Position)
  1555. end
  1556. RootPart.CFrame = CF(POS+VT(0,1,0),VT(ROOTPOS.X,HITPOS.Y+1,ROOTPOS.Z))
  1557. SHELL.CFrame = CF(RootPart.Position)
  1558. for i = 1, 5 do
  1559. WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35)*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(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1560. end
  1561. SHELL:remove()
  1562. ApplyAoE(RootPart.Position,75,35,75,175,false)
  1563. SMASHED = true
  1564. wait(1)
  1565. VALUE1 = false
  1566. UNANCHOR = true
  1567. ATTACK = false
  1568. Rooted = false
  1569. end
  1570. end
  1571.  
  1572. function PandorasBox()
  1573. 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)
  1574. if HITFLOOR ~= nil then
  1575. ATTACK = true
  1576. Rooted = true
  1577. local RINGSPIN = true
  1578. local CONSTRUCTING = true
  1579. local RING = CreatePart(3, Effects, "Neon", 0, 1, "Alder", "Ring", VT(0,0,0))
  1580. RING.Color = C3(0,0,0)
  1581. MakeForm(RING,"Cyl")
  1582. RING.CFrame = CF(HITPOS)
  1583. CreateSound(402981977, RING, 5, 1.2, false)
  1584. coroutine.resume(coroutine.create(function()
  1585. repeat
  1586. Swait()
  1587. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
  1588. 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)
  1589. 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)
  1590. 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)
  1591. 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)
  1592. 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)
  1593. 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)
  1594. until CONSTRUCTING == false
  1595. repeat
  1596. Swait()
  1597. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
  1598. until RINGSPIN == false
  1599. for i = 1, 25 do
  1600. Swait()
  1601. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
  1602. RING.Size = RING.Size - VT(0.15,0,0.15)
  1603. --DECAL.Transparency = DECAL.Transparency + 1/25
  1604. RING.Transparency = RING.Transparency + 1/25
  1605. end
  1606. RING:remove()
  1607. end))
  1608. for i = 1, 15 do
  1609. Swait()
  1610. RING.Size = RING.Size + VT(0.75,0,0.75)
  1611. RING.Transparency = RING.Transparency - 1/15
  1612. end
  1613. local BOXSPIN = true
  1614. local PANDORASBOX = IT("Model",Effects)
  1615. PANDORASBOX.Name = "Pandora's Box"
  1616. local BOX = IT("Model",PANDORASBOX)
  1617. BOX.Name = "Body"
  1618. local LID = IT("Model",PANDORASBOX)
  1619. LID.Name = "Lid"
  1620. --BUILDING THE BOX--
  1621. local BASE = CreatePart(3, BOX, "Neon", 0, 0, "Alder", "Black", VT(2,1.8,2))
  1622. BASE.Color = C3(0,0,0)
  1623. PANDORASBOX.PrimaryPart = BASE
  1624. BASE.CFrame = CF(HITPOS+VT(0,-8,0),VT(RootPart.Position.X,HITPOS.Y-8,RootPart.Position.Z))
  1625. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2))
  1626. WOOD.CFrame = BASE.CFrame*CF(1,0,1)
  1627. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2))
  1628. WOOD.CFrame = BASE.CFrame*CF(1,0,-1)
  1629. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2))
  1630. WOOD.CFrame = BASE.CFrame*CF(-1,0,1)
  1631. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2))
  1632. WOOD.CFrame = BASE.CFrame*CF(-1,0,-1)
  1633. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
  1634. WOOD.CFrame = BASE.CFrame*CF(0,0.9,1)
  1635. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
  1636. WOOD.CFrame = BASE.CFrame*CF(0,0.9,-1)
  1637. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
  1638. WOOD.CFrame = BASE.CFrame*CF(1,0.9,0)
  1639. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
  1640. WOOD.CFrame = BASE.CFrame*CF(-1,0.9,0)
  1641. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
  1642. WOOD.CFrame = BASE.CFrame*CF(0,-0.9,1)
  1643. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
  1644. WOOD.CFrame = BASE.CFrame*CF(0,-0.9,-1)
  1645. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
  1646. WOOD.CFrame = BASE.CFrame*CF(1,-0.9,0)
  1647. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
  1648. WOOD.CFrame = BASE.CFrame*CF(-1,-0.9,0)
  1649. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,1.9,0.1))
  1650. WOOD.CFrame = BASE.CFrame*CF(0,0,1)
  1651. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,1.9,0.1))
  1652. WOOD.CFrame = BASE.CFrame*CF(0,0,-1)
  1653. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(0.1,1.9,2.1))
  1654. WOOD.CFrame = BASE.CFrame*CF(1,0,0)
  1655. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(0.1,1.9,2.1))
  1656. WOOD.CFrame = BASE.CFrame*CF(-1,0,0)
  1657. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,0.1,2.1))
  1658. WOOD.CFrame = BASE.CFrame*CF(0,-0.9,0)
  1659. -------------
  1660. local LIDPART = CreatePart(3, LID, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,0.1,2.1))
  1661. LIDPART.CFrame = BASE.CFrame*CF(0,1,0)
  1662. LID.PrimaryPart = LIDPART
  1663. local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
  1664. WOOD.CFrame = LIDPART.CFrame*CF(0,0,-1)
  1665. local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
  1666. WOOD.CFrame = LIDPART.CFrame*CF(0,0,1)
  1667. local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
  1668. WOOD.CFrame = LIDPART.CFrame*CF(1,0,0)
  1669. local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
  1670. WOOD.CFrame = LIDPART.CFrame*CF(-1,0,0)
  1671. local DECAL = IT("Decal",LIDPART)
  1672. DECAL.Face = "Top"
  1673. DECAL.Texture = "http://www.roblox.com/asset/?id=1501226061"
  1674. DECAL.Color3 = C3(0,0,0)
  1675. --BUILDING THE BOX--
  1676. coroutine.resume(coroutine.create(function()
  1677. repeat
  1678. Swait()
  1679. PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * ANGLES(RAD(0), RAD(2.45), RAD(0)))
  1680. until BOXSPIN == false
  1681. end))
  1682. for i = 1, 25 do
  1683. Swait()
  1684. PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,1.5-(i/12.5),0))
  1685. end
  1686. wait(0.5)
  1687. BOXSPIN = false
  1688. CONSTRUCTING = false
  1689. coroutine.resume(coroutine.create(function()
  1690. --[[for i = 1, 45 do
  1691. Swait()
  1692. LID:SetPrimaryPartCFrame(LIDPART.CFrame * CF(0,1.5-(i/12.5),0.5) * ANGLES(RAD(0.7), RAD(0), RAD(0)))
  1693. end-
  1694. LID:remove()]]--
  1695. for _, c in pairs(LID:GetChildren()) do
  1696. if c.ClassName == "Part" then
  1697. c.Anchored = false
  1698. c.CanCollide = true
  1699. if c ~= LIDPART then
  1700. weldBetween(LIDPART,c)
  1701. end
  1702. end
  1703. end
  1704. LIDPART.Velocity = CF(LIDPART.Position,LIDPART.CFrame*CF(15,25,0).p).lookVector*65
  1705. Debris:AddItem(LID,15)
  1706. wait(0.5)
  1707. local RANDOMEFFECT = MRANDOM(1,4)
  1708. if RANDOMEFFECT == 1 then
  1709. for i = 1, 45 do
  1710. wait((2-(i/15))/15)
  1711. 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})
  1712. end
  1713. wait(1)
  1714. for i = 1, 5 do
  1715. WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35)*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})
  1716. end
  1717. ApplyAoE(BASE.Position,50,1,200,375,false)
  1718. ApplyAoE(BASE.Position,250,35,75,175,false)
  1719. elseif RANDOMEFFECT == 2 then
  1720. local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Alder", "Field", VT(0.3,0.3,0.3))
  1721. FIELD.CFrame = BASE.CFrame
  1722. MakeForm(FIELD,"Ball")
  1723. for i = 1, 50 do
  1724. Swait()
  1725. FIELD.Size = FIELD.Size + VT(0.01,0.01,0.01)
  1726. FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0)
  1727. end
  1728. wait(0.2)
  1729. local LOOP = CreateSound(1393698948, FIELD, 0, 1.2, true)
  1730. coroutine.resume(coroutine.create(function()
  1731. for i = 1, 75 do
  1732. Swait()
  1733. LOOP.Volume = LOOP.Volume + 10/75
  1734. LOOP.Parent = FIELD
  1735. local CHILDREN = workspace:GetDescendants()
  1736. for index, CHILD in pairs(CHILDREN) do
  1737. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1738. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1739. if HUM then
  1740. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1741. if TORSO then
  1742. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then
  1743. HUM.Health = HUM.Health - 0.1
  1744. TORSO.Velocity = VT(0,5,0)
  1745. HUM.PlatformStand = true
  1746. if TORSO.RotVelocity.Magnitude < 15 then
  1747. TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))
  1748. end
  1749. end
  1750. end
  1751. end
  1752. end
  1753. end
  1754. FIELD.Size = FIELD.Size + VT(3,3,3)
  1755. FIELD.Transparency = FIELD.Transparency + 0.8/75
  1756. end
  1757. for i = 1, 500 do
  1758. Swait()
  1759. LOOP.Parent = FIELD
  1760. local CHILDREN = workspace:GetDescendants()
  1761. for index, CHILD in pairs(CHILDREN) do
  1762. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1763. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1764. if HUM then
  1765. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1766. if TORSO then
  1767. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then
  1768. TORSO.Velocity = VT(0,5,0)
  1769. HUM.Health = HUM.Health - 0.1
  1770. HUM.PlatformStand = true
  1771. if TORSO.RotVelocity.Magnitude < 15 then
  1772. TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))
  1773. end
  1774. end
  1775. end
  1776. end
  1777. end
  1778. end
  1779. end
  1780. for i = 1, 25 do
  1781. Swait()
  1782. LOOP.Volume = LOOP.Volume + 10/25
  1783. LOOP.Parent = FIELD
  1784. local CHILDREN = workspace:GetDescendants()
  1785. for index, CHILD in pairs(CHILDREN) do
  1786. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1787. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1788. if HUM then
  1789. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1790. if TORSO then
  1791. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/1.8 then
  1792. TORSO.Velocity = VT(0,5,0)
  1793. HUM.Health = HUM.Health - 0.1
  1794. HUM.PlatformStand = false
  1795. if TORSO.RotVelocity.Magnitude < 15 then
  1796. TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))
  1797. end
  1798. end
  1799. end
  1800. end
  1801. end
  1802. end
  1803. FIELD.Size = FIELD.Size - VT(3,3,3)
  1804. FIELD.Transparency = FIELD.Transparency + 0.2/25
  1805. end
  1806. FIELD:remove()
  1807. end))
  1808. elseif RANDOMEFFECT == 3 then
  1809. for i = 1, 10 do
  1810. wait(0.15)
  1811. coroutine.resume(coroutine.create(function()
  1812. local MINION = CLONE:Clone()
  1813. MINION.Parent = Effects
  1814. MINION.Name = "Shadow"
  1815. MINION.HumanoidRootPart.CFrame = BASE.CFrame*CF(0,5,0) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))
  1816. MINION.HumanoidRootPart.Velocity = CF(MINION.HumanoidRootPart.Position,MINION.HumanoidRootPart.CFrame*CF(0,8,-15).p).lookVector*MRANDOM(55,100)
  1817. for _, c in pairs(MINION:GetChildren()) do
  1818. if c.ClassName == "Part" then
  1819. c.Material = "Neon"
  1820. c.Color = C3(0,0,0)
  1821. c.Transparency = 0.25
  1822. if c.Name == "Head" then
  1823. c:ClearAllChildren()
  1824. local MSH = IT("BlockMesh",c)
  1825. MSH.Scale = VT(0.5,1,1)
  1826. end
  1827. end
  1828. end
  1829. local TORSO = MINION.Torso
  1830. local HUMAN = MINION.Humanoid
  1831. HUMAN.WalkSpeed = 20
  1832. HUMAN.MaxHealth = math.huge
  1833. HUMAN.Health = math.huge
  1834. HUMAN.DisplayDistanceType = "None"
  1835. HUMAN.Died:connect(function()
  1836. MINION:remove()
  1837. --CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 3, 0.5, false)
  1838. end)
  1839. wait(1)
  1840. local findNearestTorso = function(POS)
  1841. local list = game.Workspace:GetDescendants()
  1842. local torso = nil
  1843. local dist = 500
  1844. local temp = nil
  1845. local human = nil
  1846. local temp2 = nil
  1847. for x = 1, #list do
  1848. temp2 = list[x]
  1849. if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Parent ~= Effects) then
  1850. temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso")
  1851. human = temp2:findFirstChildOfClass("Humanoid")
  1852. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1853. if (temp.Position - POS).magnitude < dist then
  1854. torso = temp
  1855. dist = (temp.Position - POS).magnitude
  1856. end
  1857. end
  1858. end
  1859. end
  1860. return torso, dist
  1861. end
  1862. for i = 1, 40 do
  1863. if HUMAN.Health == 0 then
  1864. break
  1865. end
  1866. wait(0.3)
  1867. local target,dist= findNearestTorso(TORSO.Position)
  1868. if target then
  1869. HUMAN:MoveTo(target.Position)
  1870. if dist < 25 then
  1871. CreateSound(348663022, TORSO, 10, 1, true)
  1872. wait(2)
  1873. --local ANIM = HUMAN:LoadAnimation(ATANIM)
  1874. --ANIM:Play()
  1875. --CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 1, 1, false)
  1876. ApplyAoE(TORSO.Position,10,0,0,85,true)
  1877. for i = 1, 5 do
  1878. 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})
  1879. end
  1880. break
  1881. end
  1882. end
  1883. end
  1884. MINION:remove()
  1885. end))
  1886. end
  1887. elseif RANDOMEFFECT == 4 then
  1888. local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Alder", "Field", VT(0.3,0.3,0.3))
  1889. FIELD.Color = C3(0,0,0)
  1890. FIELD.CFrame = BASE.CFrame
  1891. MakeForm(FIELD,"Ball")
  1892. FIELD.CanCollide = true
  1893. for i = 1, 50 do
  1894. Swait()
  1895. FIELD.Size = FIELD.Size + VT(0.01,0.01,0.01)
  1896. FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0)
  1897. end
  1898. wait(0.2)
  1899. local LOOP = CreateSound(487214658, FIELD, 0, 1, true)
  1900. coroutine.resume(coroutine.create(function()
  1901. local E = 0
  1902. for i = 1, 75 do
  1903. E = E + 1
  1904. Swait()
  1905. if E >= 35 then
  1906. E = 0
  1907. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = FIELD.Size*30, 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})
  1908. end
  1909. LOOP.Volume = LOOP.Volume + 10/75
  1910. LOOP.Parent = FIELD
  1911. local CHILDREN = workspace:GetDescendants()
  1912. for index, CHILD in pairs(CHILDREN) do
  1913. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1914. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1915. if HUM then
  1916. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1917. if TORSO then
  1918. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then
  1919. for _, c in pairs(CHILD:GetChildren()) do
  1920. if c:IsA("BasePart") then
  1921. local bv = Instance.new("BodyVelocity")
  1922. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1923. bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50
  1924. bv.Parent = c
  1925. Debris:AddItem(bv,0.05)
  1926. end
  1927. end
  1928. HUM.Health = HUM.Health - 0.3
  1929. end
  1930. end
  1931. end
  1932. end
  1933. end
  1934. FIELD.Size = FIELD.Size + VT(0.3,0.3,0.3)/5
  1935. end
  1936. for i = 1, 180 do
  1937. E = E + 1
  1938. Swait()
  1939. if E >= 35 then
  1940. E = 0
  1941. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = FIELD.Size*30, 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})
  1942. end
  1943. LOOP.Parent = FIELD
  1944. local CHILDREN = workspace:GetDescendants()
  1945. for index, CHILD in pairs(CHILDREN) do
  1946. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1947. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1948. if HUM then
  1949. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1950. if TORSO then
  1951. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then
  1952. for _, c in pairs(CHILD:GetChildren()) do
  1953. if c:IsA("BasePart") then
  1954. local bv = Instance.new("BodyVelocity")
  1955. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1956. bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50
  1957. bv.Parent = c
  1958. Debris:AddItem(bv,0.05)
  1959. end
  1960. end
  1961. HUM.Health = HUM.Health - 0.3
  1962. end
  1963. end
  1964. end
  1965. end
  1966. end
  1967. end
  1968. ApplyAoE(FIELD.Position,40,15,20,375,false)
  1969. for i = 1, 5 do
  1970. 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})
  1971. end
  1972. FIELD:remove()
  1973. end))
  1974. elseif RANDOMEFFECT == 5 then
  1975. end
  1976. wait(0.5)
  1977. for i = 1, 25 do
  1978. Swait()
  1979. PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,-0.3,0))
  1980. end
  1981. PANDORASBOX:remove()
  1982. RINGSPIN = false
  1983. end))
  1984. ATTACK = false
  1985. Rooted = false
  1986. end
  1987. end
  1988.  
  1989. function Taunt()
  1990. ATTACK = true
  1991. local LAUGH = nil
  1992. coroutine.resume(coroutine.create(function()
  1993. repeat
  1994. Swait()
  1995. 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)), 2 / Animation_Speed)
  1996. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 2 / Animation_Speed)
  1997. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.15*SIZE, -0.5*SIZE) * ANGLES(RAD(170), RAD(-25), RAD(-15)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1998. 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)
  1999. 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)), 2 / Animation_Speed)
  2000. 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)), 2 / Animation_Speed)
  2001. until LAUGH ~= nil
  2002. repeat
  2003. Swait()
  2004. LAUGH.Parent = Head
  2005. 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)
  2006. 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)
  2007. 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)
  2008. 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)
  2009. 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)
  2010. 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)
  2011. until LAUGH.Playing == false
  2012. ATTACK = false
  2013. end))
  2014. wait(0.1)
  2015. sick:Pause()
  2016. LAUGH = CreateSound(305685800, Head, 10, 1, false)
  2017. wait(1)
  2018. sick:Resume()
  2019. end
  2020.  
  2021. --//=================================\\
  2022. --|| ASSIGN THINGS TO KEYS
  2023. --\\=================================//
  2024.  
  2025. function MouseDown(Mouse)
  2026. HOLD = true
  2027. if ATTACK == false then
  2028. end
  2029. end
  2030.  
  2031. function MouseUp(Mouse)
  2032. HOLD = false
  2033. end
  2034.  
  2035. function KeyDown(Key)
  2036. KEYHOLD = true
  2037. if Key == "z" and ATTACK == false then
  2038. MagicMissiles()
  2039. end
  2040.  
  2041. if Key == "b" and ATTACK == false then
  2042. TimesUp()
  2043. end
  2044.  
  2045. --//=================================\\
  2046. --\\=================================//
  2047.  
  2048. -- New Ability
  2049. if Key == "f" and ATTACK == false then
  2050. Prison_Key()
  2051. end
  2052.  
  2053. --//=================================\\
  2054. --\\=================================//
  2055.  
  2056. if Key == "c" and ATTACK == false then
  2057. ChainPunch()
  2058. end
  2059.  
  2060. if Key == "v" and ATTACK == false then
  2061. WarpMeteor()
  2062. end
  2063.  
  2064. if Key == "x" and ATTACK == false then
  2065. PandorasBox()
  2066. end
  2067.  
  2068. if Key == "t" and ATTACK == false then
  2069. Taunt()
  2070. end
  2071. end
  2072.  
  2073. function KeyUp(Key)
  2074. KEYHOLD = false
  2075. end
  2076.  
  2077. Mouse.Button1Down:connect(function(NEWKEY)
  2078. MouseDown(NEWKEY)
  2079. end)
  2080. Mouse.Button1Up:connect(function(NEWKEY)
  2081. MouseUp(NEWKEY)
  2082. end)
  2083. Mouse.KeyDown:connect(function(NEWKEY)
  2084. KeyDown(NEWKEY)
  2085. end)
  2086. Mouse.KeyUp:connect(function(NEWKEY)
  2087. KeyUp(NEWKEY)
  2088. end)
  2089.  
  2090. --//=================================\\
  2091. --\\=================================//
  2092.  
  2093.  
  2094. function unanchor()
  2095. if UNANCHOR == true then
  2096. RootPart.Anchored = false
  2097. end
  2098. g = Character:GetChildren()
  2099. for i = 1, #g do
  2100. if g[i].ClassName == "Part" and g[i] ~= RootPart then
  2101. g[i].Anchored = false
  2102. end
  2103. end
  2104. g = Weapon:GetChildren()
  2105. for i = 1, #g do
  2106. if g[i].ClassName == "Part" then
  2107. g[i].Anchored = false
  2108. end
  2109. end
  2110. end
  2111.  
  2112.  
  2113. --//=================================\\
  2114. --|| WRAP THE WHOLE SCRIPT UP
  2115. --\\=================================//
  2116.  
  2117. Humanoid.Changed:connect(function(Jump)
  2118. if Jump == "Jump" and (Disable_Jump == true) then
  2119. Humanoid.Jump = false
  2120. end
  2121. end)
  2122.  
  2123. while true do
  2124. Swait()
  2125. script.Parent = WEAPONGUI
  2126. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  2127. v:Stop();
  2128. end
  2129. ANIMATE.Parent = nil
  2130. SINE = SINE + CHANGE*1.5
  2131. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2132. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2133. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
  2134. local WALKSPEEDVALUE = 10 / (Humanoid.WalkSpeed / 16)
  2135. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  2136. 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)
  2137. 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)
  2138. 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)
  2139. 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)
  2140. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  2141. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2142. 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)
  2143. 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)
  2144. 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)
  2145. end
  2146. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  2147. ANIM = "Jump"
  2148. if ATTACK == false then
  2149. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2150. 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)
  2151. 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)
  2152. 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)
  2153. 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)
  2154. 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)
  2155. end
  2156. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  2157. ANIM = "Fall"
  2158. if ATTACK == false then
  2159. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2160. 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)
  2161. 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)
  2162. 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)
  2163. 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)
  2164. 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)
  2165. end
  2166. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  2167. ANIM = "Idle"
  2168. if ATTACK == false then
  2169. 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)
  2170. 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)
  2171. 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)
  2172. 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)
  2173. 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)
  2174. 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)
  2175. end
  2176. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  2177. ANIM = "Walk"
  2178. if ATTACK == false then
  2179. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.1*SIZE) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
  2180. 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)
  2181. 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)
  2182. 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)
  2183. 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)
  2184. 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)
  2185. end
  2186. end
  2187. unanchor()
  2188. Humanoid.MaxHealth = math.huge
  2189. Humanoid.Health = math.huge
  2190. if Rooted == false then
  2191. Disable_Jump = false
  2192. Humanoid.WalkSpeed = Speed
  2193. elseif Rooted == true then
  2194. Disable_Jump = true
  2195. Humanoid.WalkSpeed = 0
  2196. end
  2197. for _, c in pairs(Character:GetChildren()) do
  2198. if c.ClassName == "Part" and c.Name ~= "Detail" then
  2199. c.Material = "Fabric"
  2200. if c:FindFirstChildOfClass("ParticleEmitter") then
  2201. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  2202. end
  2203. if c ~= Head then
  2204. c.Color = C3(0,0,0)
  2205. else
  2206. c.Color = C3(0,0,0)
  2207. end
  2208. if c == Head then
  2209. if c:FindFirstChild("face") then
  2210. c.face:remove()
  2211. end
  2212. end
  2213. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  2214. c:remove()
  2215. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  2216. c:remove()
  2217. end
  2218. end
  2219. sick.SoundId = "rbxassetid://"..158353213
  2220. sick.Looped = true
  2221. sick.Pitch = 1
  2222. sick.Volume = 100000
  2223. sick.Parent = Torso
  2224. sick:Resume()
  2225. sick.Playing = true
  2226. Humanoid.Name = "Pandora = "..Player.Name
  2227. end
  2228.  
  2229. if Humanoid.Health < math.huge then
  2230. Humanoid.MaxHealth = math.huge
  2231. Humanoid.Health = Humanoid.Health + math.huge
  2232.  
  2233. end
  2234.  
  2235. --//=================================\\
  2236. --\\=================================//
  2237.  
  2238.  
  2239.  
  2240.  
  2241.  
  2242. --//====================================================\\--
  2243. --|| END OF SCRIPT
  2244. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement