Advertisement
SirSkyvalky

Untitled

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