Advertisement
Zebula_The_Scripter

Shadow Pandora FE

Oct 6th, 2018
803
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 104.03 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Mokiros")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83.  
  84. --//====================================================\\--
  85. --|| CREATED BY SHACKLUSTER
  86. --\\====================================================//--
  87.  
  88. wait(0.2)
  89.  
  90. Player = owner
  91. PlayerGui = Player.PlayerGui
  92. Cam = workspace.CurrentCamera
  93. Backpack = Player.Backpack
  94. Character = Player.Character
  95. Humanoid = Character.Humanoid
  96. RootPart = Character["HumanoidRootPart"]
  97. Torso = Character["Torso"]
  98. Head = Character["Head"]
  99. RightArm = Character["Right Arm"]
  100. LeftArm = Character["Left Arm"]
  101. RightLeg = Character["Right Leg"]
  102. LeftLeg = Character["Left Leg"]
  103. RootJoint = RootPart["RootJoint"]
  104. Neck = Torso["Neck"]
  105. RightShoulder = Torso["Right Shoulder"]
  106. LeftShoulder = Torso["Left Shoulder"]
  107. RightHip = Torso["Right Hip"]
  108. LeftHip = Torso["Left Hip"]
  109. Character.Archivable = true
  110. Player:ClearCharacterAppearance()
  111.  
  112. IT = Instance.new
  113. CF = CFrame.new
  114. VT = Vector3.new
  115. RAD = math.rad
  116. C3 = Color3.new
  117. UD2 = UDim2.new
  118. BRICKC = BrickColor.new
  119. ANGLES = CFrame.Angles
  120. EULER = CFrame.fromEulerAnglesXYZ
  121. COS = math.cos
  122. ACOS = math.acos
  123. SIN = math.sin
  124. ASIN = math.asin
  125. ABS = math.abs
  126. MRANDOM = math.random
  127. FLOOR = math.floor
  128.  
  129. --//=================================\\
  130. --|| USEFUL VALUES
  131. --\\=================================//
  132.  
  133. Animation_Speed = 3
  134. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  135. local Speed = 20
  136. local SIZE = 1.4
  137. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  138. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  139. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  140. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  141. local DAMAGEMULTIPLIER = 1
  142. local ANIM = "Idle"
  143. local ATTACK = false
  144. local EQUIPPED = false
  145. local HOLD = false
  146. local COMBO = 1
  147. local Rooted = false
  148. local SINE = 0
  149. local KEYHOLD = false
  150. local CHANGE = 2 / Animation_Speed
  151. local WALKINGANIM = false
  152. local VALUE1 = false
  153. local VALUE2 = false
  154. local ROBLOXIDLEANIMATION = IT("Animation")
  155. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  156. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  157. local ATANIM = IT("Animation")
  158. ATANIM.Name = "Attack Animation"
  159. ATANIM.AnimationId = "http://www.roblox.com/asset/?id=74894663"
  160. --ROBLOXIDLEANIMATION.Parent = Humanoid
  161. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  162. WEAPONGUI.Name = "Weapon GUI"
  163. local Weapon = IT("Model")
  164. Weapon.Name = "Adds"
  165. local Effects = IT("Folder", Weapon)
  166. Effects.Name = "Effects"
  167. local ANIMATOR = Humanoid.Animator
  168. local ANIMATE = Character.Animate
  169. local UNANCHOR = true
  170. local CLOCKLOOP = 0
  171. local SONG = 1382488262
  172. local CLOCKTARGET = nil
  173. local CLOCKSPEED = 1
  174. script.Parent = WEAPONGUI
  175. local CLONE = Character:Clone()
  176. CLONE.Parent = nil
  177. Character.Archivable = false
  178. local sick = Instance.new("Sound",Torso)
  179.  
  180. --//=================================\\
  181. --\\=================================//
  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("Pearl"), "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. RightArm.Transparency = 1
  601. local BasePart = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(1,2,1),false)
  602. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BasePart, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  603. local Sphere = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(1.4,1.4,1.4),false)
  604. MakeForm(Sphere,"Ball")
  605. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Sphere, CF(0.2,0.8,0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  606. local LaserPart = CreatePart(3, Weapon, "Neon", 0, 0, "Institutional white", "Part", VT(0.3,0.3,0.1),false)
  607. MakeForm(LaserPart,"Ball")
  608. CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, LaserPart, CF(0,0,-0.65) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  609. local Bump = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.3,0.2),false)
  610. MakeForm(Bump,"Ball")
  611. CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, Bump, CF(0,0,0.65) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  612. local BottomLaser = CreatePart(3, Weapon, "Neon", 0, 0, "Institutional white", "Part", VT(0.4,0,0.4),false)
  613. MakeForm(BottomLaser,"Cyl")
  614. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, BottomLaser, CF(0,-1,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  615. local Part1 = CreatePart(3, Weapon, "Neon", 0, 0, "Institutional white", "Part", VT(0,0.5,0.5),false)
  616. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part1, CF(0,-0.76,-0.26) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  617. local Part2 = CreatePart(3, Weapon, "Neon", 0, 0, "Institutional white", "Part", VT(0,0.5,0.5),false)
  618. CreateWeldOrSnapOrMotor("Weld", BasePart, Part1, Part2, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, -0.25, 0))
  619. local Part3 = CreatePart(3, Weapon, "Neon", 0, 0, "Institutional white", "Part", VT(0,0.5,0.5),false)
  620. CreateWeldOrSnapOrMotor("Weld", BasePart, Part1, Part3, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-90)), CF(0, -0.26, 0))
  621. local Part4 = CreatePart(3, Weapon, "Neon", 0, 0, "Institutional white", "Part", VT(0,0.56,0.5),false)
  622. CreateWeldOrSnapOrMotor("Weld", BasePart, Part2, Part4, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, -0.26, 0))
  623. local Part5 = CreatePart(3, Weapon, "Neon", 0, 0, "Institutional white", "Part", VT(0,0.56,0.5),false)
  624. CreateWeldOrSnapOrMotor("Weld", BasePart, Part4, Part5, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-125)), CF(0, -0.26, 0))
  625. local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Institutional white", "Part", VT(0,0.25,0.5),false)
  626. CreateWeldOrSnapOrMotor("Weld", BasePart, Part4, Part, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, -0.26/2, 0))
  627. local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Institutional white", "Part", VT(0,0.3,0.5),false)
  628. CreateWeldOrSnapOrMotor("Weld", BasePart, Part2, Part, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-65)), CF(0, -0.31/2, 0))
  629. local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Institutional whited", "Part", VT(1.4,0,1.4),false)
  630. MakeForm(Part,"Cyl")
  631. CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, Part, CF(0.035,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  632. local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Institutional white", "Part", VT(1.4,0,1.4),false)
  633. MakeForm(Part,"Cyl")
  634. CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, Part, CF(0,-0.035,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
  635. local Sphere = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(0.3,1.6,0.7),false)
  636. MakeForm(Sphere,"Ball")
  637. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Sphere, CF(0.45,0.5,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  638.  
  639. Humanoid.DisplayDistanceType = "None"
  640. local naeeym2 = IT("BillboardGui",Character)
  641. naeeym2.AlwaysOnTop = true
  642. naeeym2.Size = UDim2.new(5,35,2,15)
  643. naeeym2.StudsOffset = Vector3.new(0,2,0)
  644. naeeym2.MaxDistance = 75
  645. naeeym2.Adornee = Character.Head
  646. naeeym2.Name = "Name"
  647. naeeym2.PlayerToHideFrom = Player
  648. local tecks2 = IT("TextLabel",naeeym2)
  649. tecks2.BackgroundTransparency = 1
  650. tecks2.TextScaled = true
  651. tecks2.BorderSizePixel = 0
  652. tecks2.Text = "Shadow Pandora"
  653. tecks2.Font = "Cartoon"
  654. tecks2.TextSize = 30
  655. tecks2.TextStrokeTransparency = 0
  656. tecks2.TextColor3 = C3(1,1,1)
  657. tecks2.TextStrokeColor3 = C3(159/255, 111/255, 183/255)
  658. tecks2.Size = UDim2.new(1,0,0.5,0)
  659. tecks2.Parent = naeeym2
  660. local top = Instance.new("Shirt")
  661. top.ShirtTemplate = "rbxassetid://276792537"
  662. top.Parent = Character
  663. top.Name = "Cloth"
  664. local bottom = Instance.new("Pants")
  665. bottom.PantsTemplate = "rbxassetid://276792689"
  666. bottom.Parent = Character
  667. bottom.Name = "Cloth"
  668. local PRT = CreatePart(3, Weapon, "Fabric", 0, 0, "Really black", "Hat", VT(1,1,1),false)
  669. PRT.Color = C3(0,0,0)
  670. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.72*SIZE,0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), CF(0, 0, 0))
  671. CreateMesh("SpecialMesh", PRT, "FileMesh", "26768040", "", VT(1,1,1)*SIZE, VT(0,0,0))
  672. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Detail", VT(1,1,1),false)
  673. PRT.Color = C3(1,1,1)
  674. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0))
  675. CreateMesh("SpecialMesh", PRT, "FileMesh", "13520257", "", VT(1,1,1)*SIZE, VT(0,0,0))
  676. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(1,1.2,0.2),false)
  677. PRT.Color = C3(159/255, 111/255, 183/255)
  678. MakeForm(PRT,"Ball")
  679. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0))
  680. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.4,0.5),false)
  681. PRT.Color = C3(159/255, 111/255, 183/255)
  682. MakeForm(PRT,"Ball")
  683. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,-0.3,-.5*SIZE), CF(0, 0, 0))
  684. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.3,0.3),false)
  685. PRT.Color = C3(159/255, 111/255, 183/255)
  686. MakeForm(PRT,"Ball")
  687. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.25,0.25,-.5*SIZE), CF(0, 0, 0))
  688. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.3,0.3),false)
  689. PRT.Color = C3(159/255, 111/255, 183/255)
  690. MakeForm(PRT,"Ball")
  691. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.25,0.25,-.5*SIZE), CF(0, 0, 0))
  692. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.4,0.4,0.3),false)
  693. PRT.Color = C3(159/255, 111/255, 183/255)
  694. MakeForm(PRT,"Ball")
  695. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(15), RAD(0)), CF(0, 0, 0))
  696. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.4,0.4,0.3),false)
  697. PRT.Color = C3(159/255, 111/255, 183/255)
  698. MakeForm(PRT,"Ball")
  699. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(-15), RAD(0)), CF(0, 0, 0))
  700.  
  701. local LASTPART = Head
  702. for i = 1, 24 do
  703. local MATH = (1-(i/30))
  704. if LASTPART == Head then
  705. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  706. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.8, 0.3, -0.4) * ANGLES(RAD(-25), RAD(220), RAD(90)), CF(0, 0, 0))
  707. LASTPART = Horn
  708. Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255))
  709. else
  710. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  711. 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))
  712. LASTPART = Horn
  713. Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255))
  714. local Aura = Instance.new('ParticleEmitter')
  715. Aura.Name = "Aura"
  716. Aura.Texture = "rbxassetid://845518463"
  717. Aura.Parent = Horn
  718. Aura.LightEmission = 0.8
  719. Aura.Transparency = NumberSequence.new(0,0.6,1)
  720. Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255))
  721. Aura.Size = NumberSequence.new(0.3,0.2,0.1)
  722. Aura.LockedToPart = true
  723. Aura.Lifetime = NumberRange.new(2)
  724. Aura.Rate = 25
  725. Aura.Speed = NumberRange.new(0.1)
  726. Aura.EmissionDirection = "Top"
  727. end
  728. end
  729. local LASTPART = Head
  730. for i = 1, 24 do
  731. local MATH = (1-(i/30))
  732. if LASTPART == Head then
  733. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  734. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.8, 0.3, -0.4) * ANGLES(RAD(-25), RAD(-220), RAD(-90)), CF(0, 0, 0))
  735. LASTPART = Horn
  736. Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255))
  737. else
  738. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  739. 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))
  740. LASTPART = Horn
  741. Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255))
  742. end
  743. end
  744. local LASTPART = Head
  745. for i = 1, 8 do
  746. local MATH = (1-(i/14))
  747. if LASTPART == Head then
  748. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  749. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.65, -0.3, -0.4) * ANGLES(RAD(-25), RAD(250), RAD(90)), CF(0, 0, 0))
  750. LASTPART = Horn
  751. Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255))
  752. else
  753. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  754. 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))
  755. LASTPART = Horn
  756. Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255))
  757. end
  758. end
  759. local LASTPART = Head
  760. for i = 1, 8 do
  761. local MATH = (1-(i/14))
  762. if LASTPART == Head then
  763. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  764. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.65, -0.3, -0.4) * ANGLES(RAD(-25), RAD(-250), RAD(-90)), CF(0, 0, 0))
  765. LASTPART = Horn
  766. Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255))
  767. else
  768. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  769. 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))
  770. LASTPART = Horn
  771. Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255))
  772. end
  773. end
  774. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(1.05,0.06,1.05)*SIZE,false)
  775. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  776. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0.5,0.1,0.5)*SIZE,false)
  777. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
  778. MakeForm(PRT,"Cyl")
  779. local PRT = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Watch", VT(0.45,0.11,0.45)*SIZE,false)
  780. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
  781. MakeForm(PRT,"Cyl")
  782. PRT.Color = C3(159/255, 111/255, 183/255)
  783. local RING = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0.055,0.15,0.055)*SIZE,false)
  784. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RING, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
  785. MakeForm(RING,"Cyl")
  786. RING.Color = C3(0,0,0)
  787. for i = 1, 12 do
  788. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0)*SIZE,false)
  789. PRT.Color = C3(0,0,0)
  790. local MSH = IT("BlockMesh",PRT)
  791. MSH.Scale = VT(0,0,0)
  792. 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))
  793. end
  794. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15)*SIZE,false)
  795. PRT.Color = C3(0,0,0)
  796. local MSH = IT("BlockMesh",PRT)
  797. MSH.Scale = VT(0,0,0)
  798. 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))
  799. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15/1.5)*SIZE,false)
  800. PRT.Color = C3(0,0,0)
  801. local MSH = IT("BlockMesh",PRT)
  802. MSH.Scale = VT(0.4,1,1)
  803. 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))
  804. coroutine.resume(coroutine.create(function()
  805. while true do
  806. Swait()
  807. CLOCKLOOP = CLOCKLOOP - 35*CLOCKSPEED
  808. WATCH1.C0 = Clerp(WATCH1.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5), RAD(0)), 1 / Animation_Speed)
  809. WATCH2.C0 = Clerp(WATCH2.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5/2), RAD(0)), 1 / Animation_Speed)
  810. if CLOCKLOOP <= -150 then
  811. if VALUE1 == false then
  812. CLOCKLOOP = 0
  813. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = RING.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = 743521450, SoundPitch = 1.2, SoundVolume = 4})
  814. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25*SIZE, Character)
  815. ApplyAoE(HITPOS,10,15,45,75,false)
  816. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(15,2,15), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  817. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(12,3,12), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  818. if CLOCKTARGET ~= nil then
  819. CLOCKTARGET.Health = CLOCKTARGET.Health - 20
  820. if CLOCKTARGET.Torso ~= nil then
  821. CLOCKTARGET.Torso.CFrame = CLOCKTARGET.Torso.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))
  822. end
  823. if CLOCKTARGET.Health == 0 then
  824. CLOCKTARGET = nil
  825. end
  826. end
  827. end
  828. end
  829. end
  830. end))
  831.  
  832. for _, c in pairs(Weapon:GetChildren()) do
  833. if c.ClassName == "Part" then
  834. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  835. end
  836. end
  837.  
  838. Neck.Name = "Weld"
  839. RootJoint.Name = "Weld"
  840. RightShoulder.Name = "Weld"
  841. LeftShoulder.Name = "Weld"
  842. RightHip.Name = "Weld"
  843. LeftHip.Name = "Weld"
  844.  
  845. local SKILLTEXTCOLOR = C3(159/255, 111/255, 183/255)
  846. local SKILLFONT = "Cartoon"
  847. local SKILLTEXTSIZE = 7
  848.  
  849. Weapon.Parent = Character
  850. Humanoid.Parent = Character
  851.  
  852. Humanoid.Died:connect(function()
  853. ATTACK = true
  854. end)
  855.  
  856. 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")
  857. 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")
  858. 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")
  859. 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")
  860. 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")
  861.  
  862. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Magic Missiles", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1")
  863. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[T] Switch Mode", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2")
  864. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Chained Punch", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3")
  865. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Warp Meteor", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4")
  866. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Pandora's Box", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5")
  867.  
  868. --//=================================\\
  869. --|| DAMAGING
  870. --\\=================================//
  871.  
  872. function ApplyDamage(Humanoid,Damage,TorsoPart)
  873. local defence = Instance.new("BoolValue",Humanoid.Parent)
  874. defence.Name = ("HitBy"..Player.Name)
  875. game:GetService("Debris"):AddItem(defence, 0.001)
  876. Damage = Damage * DAMAGEMULTIPLIER
  877. if Humanoid.Health ~= 0 then
  878. local CritChance = MRANDOM(1,100)
  879. if Damage > Humanoid.Health then
  880. Damage = math.ceil(Humanoid.Health)
  881. if Damage == 0 then
  882. Damage = 0.1
  883. end
  884. end
  885. Humanoid.Health = Humanoid.Health - Damage
  886. end
  887. end
  888.  
  889. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  890. local CHILDREN = workspace:GetDescendants()
  891. for index, CHILD in pairs(CHILDREN) do
  892. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  893. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  894. if HUM then
  895. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  896. if TORSO then
  897. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  898. if INSTAKILL == true then
  899. CHILD:BreakJoints()
  900. else
  901. local DMG = MRANDOM(MINDMG,MAXDMG)
  902. ApplyDamage(HUM,DMG,TORSO)
  903. end
  904. if FLING > 0 then
  905. for _, c in pairs(CHILD:GetChildren()) do
  906. if c:IsA("BasePart") then
  907. local bv = Instance.new("BodyVelocity")
  908. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  909. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  910. bv.Parent = c
  911. Debris:AddItem(bv,0.05)
  912. end
  913. end
  914. end
  915. end
  916. end
  917. end
  918. end
  919. end
  920. end
  921.  
  922. --//=================================\\
  923. --|| ATTACK FUNCTIONS AND STUFF
  924. --\\=================================//
  925.  
  926. function SwitchMode()
  927. SONG = 720243989
  928. tecks2.Text = "True Shadow"
  929. tecks2.TextColor3 = Color3.new(0,0,0)
  930. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  931. if SwitchMode ~= nil then
  932. ANIM = "SwitchModeAnim"
  933. ANIM = "Idle"
  934. if ATTACK == false then
  935. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  936. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), 1 / Animation_Speed)
  937. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(45), RAD(0), RAD(52 - 3 * COS(SINE / 12))) * ANGLES(RAD(0), RAD(-70), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  938. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(35), RAD(0), RAD(-42 + 3 * COS(SINE / 12))) * ANGLES(RAD(0), RAD(70), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  939. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1.02*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(20), RAD(55), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  940. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(10), RAD(-74), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  941. if MRANDOM(1,35) == 1 then
  942. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(MRANDOM(-15,15)), RAD(MRANDOM(-15,15)), RAD(MRANDOM(-15,15))), 1)
  943. end
  944. end
  945.  
  946. end
  947. end
  948.  
  949. function MagicMissiles()
  950. ATTACK = true
  951. Rooted = true
  952. local SELECTING = true
  953. local SPOTS = {}
  954. coroutine.resume(coroutine.create(function()
  955. local LOOP = 0
  956. repeat
  957. LOOP = LOOP + 1
  958. Swait()
  959. if LOOP >= 10 then
  960. LOOP = 0
  961. for i = 1, #SPOTS do
  962. if SPOTS[i] ~= nil then
  963. 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})
  964. 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})
  965. end
  966. end
  967. end
  968. 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)
  969. 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)
  970. 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)
  971. 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)
  972. 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)
  973. 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)
  974. until SELECTING == false
  975. Rooted = false
  976. repeat
  977. LOOP = LOOP + 1
  978. Swait()
  979. if LOOP >= 10 then
  980. LOOP = 0
  981. for i = 1, #SPOTS do
  982. if SPOTS[i] ~= nil then
  983. 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})
  984. 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})
  985. end
  986. end
  987. end
  988. 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)
  989. 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)
  990. 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)
  991. 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)
  992. 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)
  993. 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)
  994. until ATTACK == false
  995. end))
  996. repeat
  997. repeat Swait() until HOLD == true
  998. local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude
  999. if DIST > 65 then
  1000. DIST = 65
  1001. end
  1002. local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace)
  1003. local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character)
  1004. if HITFLOOR ~= nil then
  1005. table.insert(SPOTS,CF(HITPOS,HITPOS+NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0)))
  1006. 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})
  1007. 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})
  1008. end
  1009. repeat Swait() until HOLD == false
  1010. until #SPOTS == 5
  1011. SELECTING = false
  1012. for i = 1, #SPOTS do
  1013. if SPOTS[i] ~= nil then
  1014. local POS = SPOTS[i]
  1015. coroutine.resume(coroutine.create(function()
  1016. local MISSILE = IT("Model",Effects)
  1017. MISSILE.Name = "Missile"
  1018. local BASEPART = CreatePart(3, MISSILE, "Neon", 0, 1, "Really black", "Part", VT(2,2,2))
  1019. MakeForm(BASEPART,"Cyl")
  1020. MISSILE.PrimaryPart = BASEPART
  1021. BASEPART.CFrame = POS*CF(0,-30*3,0)
  1022. local HEAD = CreatePart(3, MISSILE, "Neon", 0, 1, "Really black", "Part", VT(2,4,2))
  1023. MakeForm(HEAD,"Ball")
  1024. HEAD.CFrame = BASEPART.CFrame*CF(0,1,0)
  1025. local TAIL = CreatePart(3, MISSILE, "Neon", 0, 1, "Really black", "Part", VT(2.5,0.1,2.5))
  1026. MakeForm(TAIL,"Cyl")
  1027. TAIL.CFrame = BASEPART.CFrame*CF(0,-1,0)
  1028. for i = 1, 10 do
  1029. Swait()
  1030. for _, c in pairs(MISSILE:GetChildren()) do
  1031. if c.ClassName == "Part" then
  1032. c.Transparency = c.Transparency - 1/10
  1033. end
  1034. end
  1035. end
  1036. for i = 1, 15*1.5 do
  1037. Swait()
  1038. MISSILE:SetPrimaryPartCFrame(BASEPART.CFrame*CF(0,1.35*3,0))
  1039. end
  1040. ApplyAoE(BASEPART.CFrame.p,20,35,45,75,false)
  1041. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(75,1,75), Transparency = 0.5, Transparency2 = 1, CFrame = BASEPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4})
  1042. WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(35,35,35), Transparency = 0, Transparency2 = 1, CFrame = BASEPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = 165970126, SoundPitch = MRANDOM(13,15)/10, SoundVolume = 4})
  1043. WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(22,2,22), Transparency = 0, Transparency2 = 1, CFrame = POS * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1044. WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(20,3,20), Transparency = 0, Transparency2 = 1, CFrame = POS * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1045. MISSILE:remove()
  1046. end))
  1047. end
  1048. end
  1049. wait(0.6)
  1050. ATTACK = false
  1051. Rooted = false
  1052.  
  1053.  
  1054. end
  1055.  
  1056. function TimesUp()
  1057. CLOCKTARGET = nil
  1058. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1059. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1060. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  1061. if TORSO then
  1062. ATTACK = true
  1063. Rooted = false
  1064. coroutine.resume(coroutine.create(function()
  1065. repeat
  1066. Swait()
  1067. 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)
  1068. 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)
  1069. 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)
  1070. 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)
  1071. 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)
  1072. 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)
  1073. until ATTACK == false
  1074. end))
  1075. if Effects:FindFirstChild("NeonDoll") then
  1076. repeat Swait() until Effects:FindFirstChild("NeonDoll") == nil
  1077. end
  1078. wait(0.5)
  1079. local FAKECHARACTER = IT("Model",Effects)
  1080. FAKECHARACTER.Name = "NeonDoll"
  1081. local TORS = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Really black", "Part", VT(0.3,0.3,0.15),false)
  1082. CreateWeldOrSnapOrMotor("Weld", RING, RING, TORS, CF(0,0.6,0), CF(0,0,0))
  1083. local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Really black", "Part", VT(0.15,0.3,0.15),false)
  1084. CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0,0.15,0))
  1085. local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Really black", "Part", VT(0.15,0.3,0.15),false)
  1086. CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(-0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0,0.15,0))
  1087. local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Really black", "Part", VT(0.15,0.3,0.15),false)
  1088. CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0,0.15,0))
  1089. local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Really black", "Part", VT(0.15,0.3,0.15),false)
  1090. CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(-0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(-90)), CF(0,0.15,0))
  1091. local HEAD = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Really black", "Part", VT(0.15,0.15,0.15),false)
  1092. CreateWeldOrSnapOrMotor("Weld", TORS, TORS, HEAD, CF(0,0.225,0), CF(0,0,0))
  1093.  
  1094. for i = 1, 150 do
  1095. Swait()
  1096. CLOCKSPEED = 8
  1097. for _, c in pairs(FAKECHARACTER:GetChildren()) do
  1098. if c.ClassName == "Part" then
  1099. c.Transparency = c.Transparency - 0.5/150
  1100. end
  1101. end
  1102. end
  1103. CLOCKTARGET = HUM
  1104. coroutine.resume(coroutine.create(function()
  1105. repeat Swait() CLOCKSPEED = 2 until CLOCKTARGET == nil
  1106. for i = 1, 25 do
  1107. Swait()
  1108. for _, c in pairs(FAKECHARACTER:GetChildren()) do
  1109. if c.ClassName == "Part" then
  1110. c.Transparency = c.Transparency + 0.5/25
  1111. end
  1112. end
  1113. end
  1114. CLOCKSPEED = 1
  1115. FAKECHARACTER:remove()
  1116. end))
  1117. wait(0.5)
  1118. ATTACK = false
  1119. Rooted = false
  1120. end
  1121. end
  1122. end
  1123.  
  1124. function ChainPunch()
  1125. ATTACK = true
  1126. Rooted = false
  1127. local GYRO = IT("BodyGyro",RootPart)
  1128. GYRO.D = 25
  1129. GYRO.P = 2000
  1130. GYRO.MaxTorque = VT(0,40000,0)
  1131. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1132. repeat
  1133. Swait()
  1134. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1135. 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)
  1136. 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)
  1137. 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)
  1138. 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)
  1139. 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)
  1140. 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)
  1141. until HOLD == true
  1142. local POS = Mouse.Hit.p
  1143. local CHAINS = false
  1144. local CHAINLINKS = {}
  1145. local A = IT("Attachment",RightArm)
  1146. A.Position = VT(1,-1,0)*SIZE
  1147. A.Orientation = VT(-90, -89.982, 0)
  1148. local B = IT("Attachment",RightArm)
  1149. B.Position = VT(-1,-1,0)*SIZE
  1150. B.Orientation = VT(-90, 89.988, 0)
  1151. local C = IT("Attachment",RightArm)
  1152. C.Position = VT(0.5,-1.3,0)*SIZE
  1153. C.Orientation = VT(-90, -89.982, 0)
  1154. local D = IT("Attachment",RightArm)
  1155. D.Position = VT(-0.5,-1.3,0)*SIZE
  1156. D.Orientation = VT(-90, 89.988, 0)
  1157. local LIGHT = IT("Attachment",RightArm)
  1158. LIGHT.Position = VT(0,-1,0)*SIZE
  1159. local LIGHT2 = IT("PointLight",LIGHT)
  1160. LIGHT2.Range = 7
  1161. LIGHT2.Brightness = 5
  1162. LIGHT2.Color = SKILLTEXTCOLOR
  1163. for i = 1, 2 do
  1164. local TWIST = -2
  1165. local START = A
  1166. local END = B
  1167. if i == 1 then
  1168. START = B
  1169. END = A
  1170. end
  1171. local ChainLink = IT("Beam",Torso)
  1172. ChainLink.Texture = "rbxassetid://73042633"
  1173. ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR)
  1174. ChainLink.TextureSpeed = 1
  1175. ChainLink.Width0 = 1
  1176. ChainLink.Width1 = 1
  1177. ChainLink.TextureLength = 2.5
  1178. ChainLink.Attachment0 = START
  1179. ChainLink.Attachment1 = END
  1180. ChainLink.CurveSize0 = TWIST
  1181. ChainLink.CurveSize1 = TWIST
  1182. --ChainLink.FaceCamera = true
  1183. ChainLink.Segments = 45
  1184. ChainLink.Transparency = NumberSequence.new(1)
  1185. table.insert(CHAINLINKS,ChainLink)
  1186. end
  1187. for i = 1, 2 do
  1188. local TWIST = -1
  1189. local START = C
  1190. local END = D
  1191. if i == 1 then
  1192. START = D
  1193. END = C
  1194. end
  1195. local ChainLink = IT("Beam",Torso)
  1196. ChainLink.Texture = "rbxassetid://73042633"
  1197. ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR)
  1198. ChainLink.TextureSpeed = 1
  1199. ChainLink.Width0 = 1
  1200. ChainLink.Width1 = 1
  1201. ChainLink.TextureLength = 5
  1202. ChainLink.Attachment0 = START
  1203. ChainLink.Attachment1 = END
  1204. ChainLink.CurveSize0 = TWIST
  1205. ChainLink.CurveSize1 = TWIST
  1206. --ChainLink.FaceCamera = true
  1207. ChainLink.Segments = 25
  1208. ChainLink.LightEmission = 0.5
  1209. ChainLink.Transparency = NumberSequence.new(1)
  1210. table.insert(CHAINLINKS,ChainLink)
  1211. end
  1212. coroutine.resume(coroutine.create(function()
  1213. repeat
  1214. Swait()
  1215. 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)
  1216. 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)
  1217. 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)
  1218. 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)
  1219. 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)
  1220. 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)
  1221. until CHAINS == true
  1222. repeat
  1223. Swait()
  1224. 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)
  1225. 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)
  1226. 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)
  1227. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1228. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.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)
  1229. 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)
  1230. until ATTACK == false
  1231. for e = 1, 15 do
  1232. Swait()
  1233. for i = 1, #CHAINLINKS do
  1234. CHAINLINKS[i].Transparency = NumberSequence.new((e/15))
  1235. end
  1236. end
  1237. A:remove()
  1238. B:remove()
  1239. C:remove()
  1240. D:remove()
  1241. end))
  1242. CreateSound(233856115, RightArm, 5, 1.2, false)
  1243. for e = 1, 15 do
  1244. Swait()
  1245. for i = 1, #CHAINLINKS do
  1246. CHAINLINKS[i].Transparency = NumberSequence.new(1-(e/15))
  1247. end
  1248. end
  1249. CHAINS = true
  1250. Rooted = true
  1251. wait(0.25)
  1252. local FIST = CreatePart(3, Effects, "Neon", 0, 0.5, "Alder", "Part", VT(2,2,2))
  1253. FIST.Color = C3(1, 215/255, 1)
  1254. FIST.CFrame = CF(RightArm.CFrame*CF(0,-1.3*SIZE,0).p,POS) * ANGLES(RAD(90), RAD(0), RAD(0))
  1255. local LIGHT3 = IT("PointLight",FIST)
  1256. LIGHT3.Range = 7
  1257. LIGHT3.Brightness = 5
  1258. LIGHT3.Color = SKILLTEXTCOLOR
  1259. CreateMesh("SpecialMesh", FIST, "FileMesh", "90718752", "", VT(10,10,10), VT(0,0,0))
  1260. local FISTA = IT("Attachment",FIST)
  1261. FISTA.Position = VT(0.062, 0.977, 0)
  1262. local ChainLink = IT("Beam",Torso)
  1263. ChainLink.Texture = "rbxassetid://73042633"
  1264. ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR)
  1265. ChainLink.TextureSpeed = 0
  1266. ChainLink.Width0 = 3
  1267. ChainLink.Width1 = 3
  1268. ChainLink.TextureLength = 12
  1269. ChainLink.Attachment0 = LIGHT
  1270. ChainLink.Attachment1 = FISTA
  1271. ChainLink.FaceCamera = true
  1272. ChainLink.Segments = 45
  1273. ChainLink.LightEmission = 0.5
  1274. ChainLink.Transparency = NumberSequence.new(0.25)
  1275. local FISTSOUND = CreateSound(288641686, FIST, 5, 1.2, false)
  1276. for i = 1, 85 do
  1277. Swait()
  1278. FIST.CFrame = FIST.CFrame*CF(0,-2,0)
  1279. ChainLink.TextureLength = 12+(i*2)
  1280. ApplyAoE(FIST.Position,10,15,25,100,false)
  1281. 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})
  1282. local HITFLOOR = Raycast(FIST.Position, (CF(FIST.Position, FIST.CFrame*CF(0,-1,0).p)).lookVector, 2.1, Character)
  1283. if HITFLOOR ~= nil then
  1284. HITFLOOR:BreakJoints()
  1285. coroutine.resume(coroutine.create(function()
  1286. for i = 1, 15 do
  1287. Swait()
  1288. FISTSOUND.Volume = FISTSOUND.Volume - 0.15
  1289. ApplyAoE(FIST.Position,10+(i*2),5,15,5,false)
  1290. 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})
  1291. end
  1292. end))
  1293. break
  1294. end
  1295. end
  1296. coroutine.resume(coroutine.create(function()
  1297. for i = 1, 50 do
  1298. Swait()
  1299. FIST.Transparency = FIST.Transparency + 0.5/50
  1300. LIGHT3.Range = LIGHT3.Range - 7/50
  1301. end
  1302. FIST:remove()
  1303. end))
  1304. LIGHT:remove()
  1305. GYRO:remove()
  1306. ATTACK = false
  1307. Rooted = false
  1308. end
  1309.  
  1310. function WarpMeteor()
  1311. local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude
  1312. if DIST > 180 then
  1313. DIST = 180
  1314. end
  1315. local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace)
  1316. local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,45,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 75*SIZE, Character)
  1317. if HITFLOOR then
  1318. local POS = HITPOS
  1319. ATTACK = true
  1320. Rooted = true
  1321. local WARPED = false
  1322. local SMASHED = false
  1323. local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character)
  1324. coroutine.resume(coroutine.create(function()
  1325. repeat
  1326. Swait()
  1327. 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)
  1328. 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)
  1329. 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)
  1330. 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)
  1331. 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)
  1332. 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)
  1333. until WARPED == true
  1334. repeat
  1335. Swait()
  1336. 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)
  1337. 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)
  1338. 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)
  1339. 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)
  1340. 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)
  1341. 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)
  1342. until SMASHED == true
  1343. repeat
  1344. Swait()
  1345. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)), 1 / Animation_Speed)
  1346. 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)
  1347. 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)
  1348. 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)
  1349. 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)
  1350. 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)
  1351. until ATTACK == false
  1352. end))
  1353. VALUE1 = true
  1354. CreateSound(233856115, Torso, 5, 1.6, false)
  1355. for i = 1, 25 do
  1356. Swait()
  1357. for _, c in pairs(Character:GetChildren()) do
  1358. if c.ClassName == "Part" then
  1359. c.Transparency = c.Transparency + 1/25
  1360. end
  1361. end
  1362. for _, c in pairs(Weapon:GetChildren()) do
  1363. if c.ClassName == "Part" then
  1364. c.Transparency = c.Transparency + 1/25
  1365. end
  1366. end
  1367. end
  1368. UNANCHOR = false
  1369. RootPart.Anchored = true
  1370. RootPart.Velocity = VT(0,0,0)
  1371. local ROOTPOS = RootPart.Position
  1372. RootPart.CFrame = CF(POS+VT(0,300,0),VT(ROOTPOS.X,POS.Y+300,ROOTPOS.Z))
  1373. WARPED = true
  1374. for i = 1, 25 do
  1375. Swait()
  1376. for _, c in pairs(Character:GetChildren()) do
  1377. if c.ClassName == "Part" then
  1378. c.Transparency = c.Transparency - 1/25
  1379. end
  1380. end
  1381. for _, c in pairs(Weapon:GetChildren()) do
  1382. if c.ClassName == "Part" then
  1383. c.Transparency = c.Transparency - 1/25
  1384. end
  1385. end
  1386. end
  1387. local SHELL = CreatePart(3, Effects, "Neon", 0, 1, "Really black", "Part", VT(0,0,0))
  1388. SHELL.CFrame = RootPart.CFrame
  1389. MakeForm(SHELL,"Ball")
  1390. CreateSound(402981977, SHELL, 5, 1.6, false)
  1391. for i = 1, 10 do
  1392. Swait()
  1393. SHELL.Transparency = SHELL.Transparency - 1/10
  1394. SHELL.Size = SHELL.Size + VT(0.6,0.6,0.6)*1.8
  1395. end
  1396. for i = 1, math.ceil(75/2) do
  1397. Swait()
  1398. RootPart.CFrame = RootPart.CFrame*CF(0,-3.5*2,0)
  1399. SHELL.CFrame = CF(RootPart.Position)
  1400. 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})
  1401. end
  1402. RootPart.CFrame = CF(POS+VT(0,1,0),VT(ROOTPOS.X,HITPOS.Y+1,ROOTPOS.Z))
  1403. SHELL.CFrame = CF(RootPart.Position)
  1404. 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})
  1405. 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})
  1406. 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})
  1407. for i = 1, 5 do
  1408. 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})
  1409. end
  1410. SHELL:remove()
  1411. ApplyAoE(RootPart.Position,75,35,75,175,false)
  1412. SMASHED = true
  1413. wait(1)
  1414. VALUE1 = false
  1415. UNANCHOR = true
  1416. ATTACK = false
  1417. Rooted = false
  1418. end
  1419. end
  1420.  
  1421. function ShadowCloak()
  1422. if ANIM ~= "Fall" and ANIM ~= "Jump" then
  1423. ATTACK = true
  1424. Rooted = false
  1425. UNANCHOR = false
  1426. coroutine.resume(coroutine.create(function()
  1427. coroutine.resume(coroutine.create(function()
  1428. for i=1, 25 do
  1429. Swait()
  1430. RootPart.CFrame = RootPart.CFrame*CF(0,(25-i)/25,0)
  1431. end
  1432. end))
  1433. repeat
  1434. Swait()
  1435. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1436. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(MRANDOM(-5,5)), RAD(MRANDOM(-5,5))), 1 / Animation_Speed)
  1437. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25+MRANDOM(-5,5)), RAD(-15+MRANDOM(-5,5)), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1438. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25+MRANDOM(-5,5)), RAD(15+MRANDOM(-5,5)), RAD(-35)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1439. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.1) * ANGLES(RAD(0), RAD(85), RAD(MRANDOM(-5,5))) * ANGLES(RAD(-1), RAD(0), RAD(-12)), 1 / Animation_Speed)
  1440. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.1) * ANGLES(RAD(0), RAD(-85), RAD(MRANDOM(-5,5))) * ANGLES(RAD(-1), RAD(0), RAD(12)), 1 / Animation_Speed)
  1441. until ATTACK == false
  1442. end))
  1443. WACKYEFFECT({Time = 65, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(25,1,25), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 814168787, SoundPitch = 0.6, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 12})
  1444. WACKYEFFECT({Time = 65, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(25,1,25), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 814168787, SoundPitch = 1, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 35})
  1445. for i = 1, 50 do
  1446. Swait()
  1447.  
  1448. for index, CHILD in pairs(Character:GetChildren()) do
  1449. if CHILD:IsA("BasePart") then
  1450. CHILD.Transparency = CHILD.Transparency + 1/50
  1451. elseif CHILD:IsA("Accessory") then
  1452. CHILD.Handle.Transparency = CHILD.Handle.Transparency + 1/50
  1453. end
  1454. end
  1455. end
  1456. for i = 1, 25 do
  1457. Swait()
  1458.  
  1459. end
  1460. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,12,0)) * ANGLES(RAD(0), RAD(RootPart.Orientation.Y), RAD(0))
  1461. for i = 1, 5 do
  1462. WACKYEFFECT({Time = 50, EffectType = "Round Slash", Size = VT(0,0,0), Size2 = VT(0.3,0,0.3), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 10})
  1463. end
  1464. ApplyAoE(Torso.Position,15,12,22,150,false)
  1465. CreateSound(331666014,Torso,5,1,false)
  1466. for i = 1, 12 do
  1467. Swait()
  1468.  
  1469. end
  1470. for i = 1, 50 do
  1471. Swait()
  1472.  
  1473. for index, CHILD in pairs(Character:GetChildren()) do
  1474. if CHILD:IsA("BasePart") then
  1475. CHILD.Transparency = CHILD.Transparency - 1/50
  1476. elseif CHILD:IsA("Accessory") then
  1477. CHILD.Handle.Transparency = CHILD.Handle.Transparency - 1/50
  1478. end
  1479. end
  1480. end
  1481. UNANCHOR = true
  1482. ATTACK = false
  1483. Rooted = false
  1484. end
  1485. end
  1486.  
  1487. function PandorasBox()
  1488. 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)
  1489. if HITFLOOR ~= nil then
  1490. ATTACK = true
  1491. Rooted = true
  1492. local RINGSPIN = true
  1493. local CONSTRUCTING = true
  1494. local RING = CreatePart(3, Effects, "Neon", 0, 1, "Really black", "Ring", VT(0,0,0))
  1495. RING.Color = C3(0,0,0)
  1496. MakeForm(RING,"Cyl")
  1497. RING.CFrame = CF(HITPOS)
  1498. CreateSound(402981977, RING, 5, 1.2, false)
  1499. coroutine.resume(coroutine.create(function()
  1500. repeat
  1501. Swait()
  1502. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
  1503. 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)
  1504. 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)
  1505. 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)
  1506. 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)
  1507. 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)
  1508. 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)
  1509. until CONSTRUCTING == false
  1510. repeat
  1511. Swait()
  1512. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
  1513. until RINGSPIN == false
  1514. for i = 1, 25 do
  1515. Swait()
  1516. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
  1517. RING.Size = RING.Size - VT(0.15,0,0.15)
  1518. --DECAL.Transparency = DECAL.Transparency + 1/25
  1519. RING.Transparency = RING.Transparency + 1/25
  1520. end
  1521. RING:remove()
  1522. end))
  1523. for i = 1, 15 do
  1524. Swait()
  1525. RING.Size = RING.Size + VT(0.75,0,0.75)
  1526. RING.Transparency = RING.Transparency - 1/15
  1527. end
  1528. local BOXSPIN = true
  1529. local PANDORASBOX = IT("Model",Effects)
  1530. PANDORASBOX.Name = "Pandora's Box"
  1531. local BOX = IT("Model",PANDORASBOX)
  1532. BOX.Name = "Body"
  1533. local LID = IT("Model",PANDORASBOX)
  1534. LID.Name = "Lid"
  1535. --BUILDING THE BOX--
  1536. local BASE = CreatePart(3, BOX, "Neon", 0, 0, "Really black", "Black", VT(2,1.8,2))
  1537. BASE.Color = C3(0,0,0)
  1538. PANDORASBOX.PrimaryPart = BASE
  1539. BASE.CFrame = CF(HITPOS+VT(0,-8,0),VT(RootPart.Position.X,HITPOS.Y-8,RootPart.Position.Z))
  1540. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(0.2,1.9,0.2))
  1541. WOOD.CFrame = BASE.CFrame*CF(1,0,1)
  1542. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(0.2,1.9,0.2))
  1543. WOOD.CFrame = BASE.CFrame*CF(1,0,-1)
  1544. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(0.2,1.9,0.2))
  1545. WOOD.CFrame = BASE.CFrame*CF(-1,0,1)
  1546. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(0.2,1.9,0.2))
  1547. WOOD.CFrame = BASE.CFrame*CF(-1,0,-1)
  1548. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(2.1,0.2,0.2))
  1549. WOOD.CFrame = BASE.CFrame*CF(0,0.9,1)
  1550. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(2.1,0.2,0.2))
  1551. WOOD.CFrame = BASE.CFrame*CF(0,0.9,-1)
  1552. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(0.2,0.2,2.1))
  1553. WOOD.CFrame = BASE.CFrame*CF(1,0.9,0)
  1554. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(0.2,0.2,2.1))
  1555. WOOD.CFrame = BASE.CFrame*CF(-1,0.9,0)
  1556. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(2.1,0.2,0.2))
  1557. WOOD.CFrame = BASE.CFrame*CF(0,-0.9,1)
  1558. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(2.1,0.2,0.2))
  1559. WOOD.CFrame = BASE.CFrame*CF(0,-0.9,-1)
  1560. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(0.2,0.2,2.1))
  1561. WOOD.CFrame = BASE.CFrame*CF(1,-0.9,0)
  1562. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(0.2,0.2,2.1))
  1563. WOOD.CFrame = BASE.CFrame*CF(-1,-0.9,0)
  1564. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(2.1,1.9,0.1))
  1565. WOOD.CFrame = BASE.CFrame*CF(0,0,1)
  1566. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(2.1,1.9,0.1))
  1567. WOOD.CFrame = BASE.CFrame*CF(0,0,-1)
  1568. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(0.1,1.9,2.1))
  1569. WOOD.CFrame = BASE.CFrame*CF(1,0,0)
  1570. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(0.1,1.9,2.1))
  1571. WOOD.CFrame = BASE.CFrame*CF(-1,0,0)
  1572. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(2.1,0.1,2.1))
  1573. WOOD.CFrame = BASE.CFrame*CF(0,-0.9,0)
  1574. -------------
  1575. local LIDPART = CreatePart(3, LID, "Marble", 0, 0, "Really black", VT(2.1,0.1,2.1))
  1576. LIDPART.CFrame = BASE.CFrame*CF(0,1,0)
  1577. LID.PrimaryPart = LIDPART
  1578. local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Really black", "Marble", VT(2.1,0.2,0.2))
  1579. WOOD.CFrame = LIDPART.CFrame*CF(0,0,-1)
  1580. local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Really black", "Marble", VT(2.1,0.2,0.2))
  1581. WOOD.CFrame = LIDPART.CFrame*CF(0,0,1)
  1582. local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Really black", "Marble", VT(0.2,0.2,2.1))
  1583. WOOD.CFrame = LIDPART.CFrame*CF(1,0,0)
  1584. local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Really black", "Marble", VT(0.2,0.2,2.1))
  1585. WOOD.CFrame = LIDPART.CFrame*CF(-1,0,0)
  1586. local DECAL = IT("Decal",LIDPART)
  1587. DECAL.Face = "Top"
  1588. DECAL.Texture = "http://www.roblox.com/asset/?id=1501226061"
  1589. DECAL.Color3 = C3(0,0,0)
  1590. --BUILDING THE BOX--
  1591. coroutine.resume(coroutine.create(function()
  1592. repeat
  1593. Swait()
  1594. PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * ANGLES(RAD(0), RAD(2.45), RAD(0)))
  1595. until BOXSPIN == false
  1596. end))
  1597. for i = 1, 25 do
  1598. Swait()
  1599. PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,1.5-(i/12.5),0))
  1600. end
  1601. wait(0.5)
  1602. BOXSPIN = false
  1603. CONSTRUCTING = false
  1604. coroutine.resume(coroutine.create(function()
  1605. 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})
  1606. --[[for i = 1, 45 do
  1607. Swait()
  1608. LID:SetPrimaryPartCFrame(LIDPART.CFrame * CF(0,1.5-(i/12.5),0.5) * ANGLES(RAD(0.7), RAD(0), RAD(0)))
  1609. end-
  1610. LID:remove()]]--
  1611. for _, c in pairs(LID:GetChildren()) do
  1612. if c.ClassName == "Part" then
  1613. c.Anchored = false
  1614. c.CanCollide = true
  1615. if c ~= LIDPART then
  1616. weldBetween(LIDPART,c)
  1617. end
  1618. end
  1619. end
  1620. LIDPART.Velocity = CF(LIDPART.Position,LIDPART.CFrame*CF(15,25,0).p).lookVector*65
  1621. Debris:AddItem(LID,15)
  1622. wait(0.5)
  1623. local RANDOMEFFECT = MRANDOM(1,4)
  1624. if RANDOMEFFECT == 1 then
  1625. for i = 1, 45 do
  1626. wait((2-(i/15))/15)
  1627. 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})
  1628. end
  1629. wait(1)
  1630. 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})
  1631. 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})
  1632. 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})
  1633. for i = 1, 5 do
  1634. 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})
  1635. end
  1636. ApplyAoE(BASE.Position,50,1,200,375,false)
  1637. ApplyAoE(BASE.Position,250,35,75,175,false)
  1638. elseif RANDOMEFFECT == 2 then
  1639. local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Field", VT(0.3,0.3,0.3))
  1640. FIELD.CFrame = BASE.CFrame
  1641. MakeForm(FIELD,"Ball")
  1642. for i = 1, 50 do
  1643. Swait()
  1644. FIELD.Size = FIELD.Size + VT(0.01,0.01,0.01)
  1645. FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0)
  1646. end
  1647. wait(0.2)
  1648. local LOOP = CreateSound(1393698948, FIELD, 0, 1.2, true)
  1649. coroutine.resume(coroutine.create(function()
  1650. for i = 1, 75 do
  1651. Swait()
  1652. LOOP.Volume = LOOP.Volume + 10/75
  1653. LOOP.Parent = FIELD
  1654. local CHILDREN = workspace:GetDescendants()
  1655. for index, CHILD in pairs(CHILDREN) do
  1656. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1657. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1658. if HUM then
  1659. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1660. if TORSO then
  1661. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then
  1662. HUM.Health = HUM.Health - 0.1
  1663. TORSO.Velocity = VT(0,5,0)
  1664. HUM.PlatformStand = true
  1665. if TORSO.RotVelocity.Magnitude < 15 then
  1666. TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))
  1667. end
  1668. end
  1669. end
  1670. end
  1671. end
  1672. end
  1673. FIELD.Size = FIELD.Size + VT(3,3,3)
  1674. FIELD.Transparency = FIELD.Transparency + 0.8/75
  1675. end
  1676. for i = 1, 500 do
  1677. Swait()
  1678. LOOP.Parent = FIELD
  1679. local CHILDREN = workspace:GetDescendants()
  1680. for index, CHILD in pairs(CHILDREN) do
  1681. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1682. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1683. if HUM then
  1684. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1685. if TORSO then
  1686. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then
  1687. TORSO.Velocity = VT(0,5,0)
  1688. HUM.Health = HUM.Health - 0.1
  1689. HUM.PlatformStand = true
  1690. if TORSO.RotVelocity.Magnitude < 15 then
  1691. TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))
  1692. end
  1693. end
  1694. end
  1695. end
  1696. end
  1697. end
  1698. end
  1699. for i = 1, 25 do
  1700. Swait()
  1701. LOOP.Volume = LOOP.Volume + 10/25
  1702. LOOP.Parent = FIELD
  1703. local CHILDREN = workspace:GetDescendants()
  1704. for index, CHILD in pairs(CHILDREN) do
  1705. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1706. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1707. if HUM then
  1708. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1709. if TORSO then
  1710. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/1.8 then
  1711. TORSO.Velocity = VT(0,5,0)
  1712. HUM.Health = HUM.Health - 0.1
  1713. HUM.PlatformStand = false
  1714. if TORSO.RotVelocity.Magnitude < 15 then
  1715. TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))
  1716. end
  1717. end
  1718. end
  1719. end
  1720. end
  1721. end
  1722. FIELD.Size = FIELD.Size - VT(3,3,3)
  1723. FIELD.Transparency = FIELD.Transparency + 0.2/25
  1724. end
  1725. FIELD:remove()
  1726. end))
  1727. elseif RANDOMEFFECT == 3 then
  1728. for i = 1, 10 do
  1729. wait(0.15)
  1730. 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})
  1731. coroutine.resume(coroutine.create(function()
  1732. local MINION = CLONE:Clone()
  1733. MINION.Parent = Effects
  1734. MINION.Name = "Shadow"
  1735. MINION.HumanoidRootPart.CFrame = BASE.CFrame*CF(0,5,0) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))
  1736. MINION.HumanoidRootPart.Velocity = CF(MINION.HumanoidRootPart.Position,MINION.HumanoidRootPart.CFrame*CF(0,8,-15).p).lookVector*MRANDOM(55,100)
  1737. for _, c in pairs(MINION:GetChildren()) do
  1738. if c.ClassName == "Part" then
  1739. c.Material = "Neon"
  1740. c.Color = C3(0,0,0)
  1741. c.Transparency = 0.25
  1742. if c.Name == "Head" then
  1743. c:ClearAllChildren()
  1744. local MSH = IT("BlockMesh",c)
  1745. MSH.Scale = VT(0.5,1,1)
  1746. end
  1747. end
  1748. end
  1749. local TORSO = MINION.Torso
  1750. local HUMAN = MINION.Humanoid
  1751. HUMAN.WalkSpeed = 20
  1752. HUMAN.MaxHealth = math.huge
  1753. HUMAN.Health = math.huge
  1754. HUMAN.DisplayDistanceType = "None"
  1755. HUMAN.Died:connect(function()
  1756. MINION:remove()
  1757. --CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 3, 0.5, false)
  1758. end)
  1759. wait(1)
  1760. local findNearestTorso = function(POS)
  1761. local list = game.Workspace:GetDescendants()
  1762. local torso = nil
  1763. local dist = 500
  1764. local temp = nil
  1765. local human = nil
  1766. local temp2 = nil
  1767. for x = 1, #list do
  1768. temp2 = list[x]
  1769. if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Parent ~= Effects) then
  1770. temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso")
  1771. human = temp2:findFirstChildOfClass("Humanoid")
  1772. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1773. if (temp.Position - POS).magnitude < dist then
  1774. torso = temp
  1775. dist = (temp.Position - POS).magnitude
  1776. end
  1777. end
  1778. end
  1779. end
  1780. return torso, dist
  1781. end
  1782. for i = 1, 40 do
  1783. if HUMAN.Health == 0 then
  1784. break
  1785. end
  1786. wait(0.3)
  1787. local target,dist= findNearestTorso(TORSO.Position)
  1788. if target then
  1789. HUMAN:MoveTo(target.Position)
  1790. if dist < 25 then
  1791. CreateSound(348663022, TORSO, 10, 1, true)
  1792. wait(2)
  1793. --local ANIM = HUMAN:LoadAnimation(ATANIM)
  1794. --ANIM:Play()
  1795. --CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 1, 1, false)
  1796. ApplyAoE(TORSO.Position,10,0,0,85,true)
  1797. 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})
  1798. for i = 1, 5 do
  1799. 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})
  1800. end
  1801. break
  1802. end
  1803. end
  1804. end
  1805. MINION:remove()
  1806. end))
  1807. end
  1808. elseif RANDOMEFFECT == 4 then
  1809. local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Field", VT(0.3,0.3,0.3))
  1810. FIELD.Color = C3(0,0,0)
  1811. FIELD.CFrame = BASE.CFrame
  1812. MakeForm(FIELD,"Ball")
  1813. FIELD.CanCollide = true
  1814. for i = 1, 50 do
  1815. Swait()
  1816. FIELD.Size = FIELD.Size + VT(0.01,0.01,0.01)
  1817. FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0)
  1818. end
  1819. wait(0.2)
  1820. local LOOP = CreateSound(487214658, FIELD, 0, 1, true)
  1821. coroutine.resume(coroutine.create(function()
  1822. local E = 0
  1823. for i = 1, 75 do
  1824. E = E + 1
  1825. Swait()
  1826. if E >= 35 then
  1827. E = 0
  1828. 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})
  1829. end
  1830. LOOP.Volume = LOOP.Volume + 10/75
  1831. LOOP.Parent = FIELD
  1832. local CHILDREN = workspace:GetDescendants()
  1833. for index, CHILD in pairs(CHILDREN) do
  1834. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1835. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1836. if HUM then
  1837. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1838. if TORSO then
  1839. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then
  1840. for _, c in pairs(CHILD:GetChildren()) do
  1841. if c:IsA("BasePart") then
  1842. local bv = Instance.new("BodyVelocity")
  1843. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1844. bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50
  1845. bv.Parent = c
  1846. Debris:AddItem(bv,0.05)
  1847. end
  1848. end
  1849. HUM.Health = HUM.Health - 0.3
  1850. end
  1851. end
  1852. end
  1853. end
  1854. end
  1855. FIELD.Size = FIELD.Size + VT(0.3,0.3,0.3)/5
  1856. end
  1857. for i = 1, 180 do
  1858. E = E + 1
  1859. Swait()
  1860. if E >= 35 then
  1861. E = 0
  1862. 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})
  1863. end
  1864. LOOP.Parent = FIELD
  1865. local CHILDREN = workspace:GetDescendants()
  1866. for index, CHILD in pairs(CHILDREN) do
  1867. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1868. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1869. if HUM then
  1870. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1871. if TORSO then
  1872. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then
  1873. for _, c in pairs(CHILD:GetChildren()) do
  1874. if c:IsA("BasePart") then
  1875. local bv = Instance.new("BodyVelocity")
  1876. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1877. bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50
  1878. bv.Parent = c
  1879. Debris:AddItem(bv,0.05)
  1880. end
  1881. end
  1882. HUM.Health = HUM.Health - 0.3
  1883. end
  1884. end
  1885. end
  1886. end
  1887. end
  1888. end
  1889. ApplyAoE(FIELD.Position,40,15,20,375,false)
  1890. 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})
  1891. for i = 1, 5 do
  1892. 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})
  1893. end
  1894. FIELD:remove()
  1895. end))
  1896. elseif RANDOMEFFECT == 5 then
  1897. end
  1898. wait(0.5)
  1899. for i = 1, 25 do
  1900. Swait()
  1901. PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,-0.3,0))
  1902. end
  1903. PANDORASBOX:remove()
  1904. RINGSPIN = false
  1905. end))
  1906. ATTACK = false
  1907. Rooted = false
  1908. end
  1909. end
  1910.  
  1911. function Taunt()
  1912. ATTACK = true
  1913. local LAUGH = nil
  1914. coroutine.resume(coroutine.create(function()
  1915. repeat
  1916. Swait()
  1917. 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)
  1918. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 1 / Animation_Speed)
  1919. 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)
  1920. 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)
  1921. 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)
  1922. 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)
  1923. until LAUGH ~= nil
  1924. repeat
  1925. Swait()
  1926. LAUGH.Parent = Head
  1927. 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)
  1928. 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)
  1929. 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)
  1930. 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)
  1931. 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)
  1932. 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)
  1933. until LAUGH.Playing == false
  1934. ATTACK = false
  1935. end))
  1936. wait(0.1)
  1937. LAUGH = CreateSound(525166232, Head, 10, 1, false)
  1938. end
  1939.  
  1940. --//=================================\\
  1941. --|| ASSIGN THINGS TO KEYS
  1942. --\\=================================//
  1943.  
  1944. function MouseDown(Mouse)
  1945. HOLD = true
  1946. if ATTACK == false then
  1947. end
  1948. end
  1949.  
  1950. function MouseUp(Mouse)
  1951. HOLD = false
  1952. end
  1953.  
  1954. function KeyDown(Key)
  1955. KEYHOLD = true
  1956. if Key == "z" and ATTACK == false then
  1957. MagicMissiles()
  1958. end
  1959.  
  1960. if Key == "b" and ATTACK == false then
  1961. TimesUp()
  1962. end
  1963.  
  1964. if Key == "c" and ATTACK == false then
  1965. ChainPunch()
  1966. end
  1967.  
  1968. if Key == "v" and ATTACK == false then
  1969. WarpMeteor()
  1970. end
  1971.  
  1972. if Key == "x" and ATTACK == false then
  1973. PandorasBox()
  1974. end
  1975.  
  1976. if Key == "t" and ATTACK == false then
  1977. SwitchMode()
  1978.  
  1979. if Key == "0" and ATTACK == false then
  1980. ShadowCloak()
  1981. end
  1982. end
  1983. end
  1984.  
  1985. function KeyUp(Key)
  1986. KEYHOLD = false
  1987. end
  1988.  
  1989. Mouse.Button1Down:connect(function(NEWKEY)
  1990. MouseDown(NEWKEY)
  1991. end)
  1992. Mouse.Button1Up:connect(function(NEWKEY)
  1993. MouseUp(NEWKEY)
  1994. end)
  1995. Mouse.KeyDown:connect(function(NEWKEY)
  1996. KeyDown(NEWKEY)
  1997. end)
  1998. Mouse.KeyUp:connect(function(NEWKEY)
  1999. KeyUp(NEWKEY)
  2000. end)
  2001.  
  2002. --//=================================\\
  2003. --\\=================================//
  2004.  
  2005.  
  2006. function unanchor()
  2007. if UNANCHOR == true then
  2008. RootPart.Anchored = false
  2009. end
  2010. g = Character:GetChildren()
  2011. for i = 1, #g do
  2012. if g[i].ClassName == "Part" and g[i] ~= RootPart then
  2013. g[i].Anchored = false
  2014. end
  2015. end
  2016. g = Weapon:GetChildren()
  2017. for i = 1, #g do
  2018. if g[i].ClassName == "Part" then
  2019. g[i].Anchored = false
  2020. end
  2021. end
  2022. end
  2023.  
  2024.  
  2025. --//=================================\\
  2026. --|| WRAP THE WHOLE SCRIPT UP
  2027. --\\=================================//
  2028.  
  2029. Humanoid.Changed:connect(function(Jump)
  2030. if Jump == "Jump" and (Disable_Jump == true) then
  2031. Humanoid.Jump = false
  2032. end
  2033. end)
  2034.  
  2035. while true do
  2036. Swait()
  2037. script.Parent = WEAPONGUI
  2038. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  2039. v:Stop();
  2040. end
  2041. ANIMATE.Parent = nil
  2042. SINE = SINE + CHANGE*1.5
  2043. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2044. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2045. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
  2046. local WALKSPEEDVALUE = 10 / (Humanoid.WalkSpeed / 16)
  2047. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  2048. 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)
  2049. 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)
  2050. 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)
  2051. 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)
  2052. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  2053. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2054. 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)
  2055. 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)
  2056. 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)
  2057. end
  2058. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  2059. ANIM = "Jump"
  2060. if ATTACK == false then
  2061. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2062. 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)
  2063. 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)
  2064. 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)
  2065. 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)
  2066. 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)
  2067. end
  2068. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  2069. ANIM = "Fall"
  2070. if ATTACK == false then
  2071. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2072. 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)
  2073. 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)
  2074. 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)
  2075. 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)
  2076. 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)
  2077. end
  2078. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  2079. ANIM = "Idle"
  2080. if ATTACK == false then
  2081. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2082. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2083. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75*SIZE, 0.5*SIZE, -1*SIZE) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2084. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1*SIZE, 0.2*SIZE, -0.5*SIZE) * ANGLES(RAD(25), RAD(0), RAD(85)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2085. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.5*SIZE - 0.05*SIZE * COS(SINE / 12), -0.5*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2086. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -0.8*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2087. end
  2088. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  2089. ANIM = "Walk"
  2090. if ATTACK == false then
  2091. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.1*SIZE) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
  2092. 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)
  2093. 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)
  2094. 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)
  2095. 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)
  2096. 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)
  2097.  
  2098. end
  2099. end
  2100. unanchor()
  2101. Humanoid.MaxHealth = "inf"
  2102. Humanoid.Health = "inf"
  2103. if Rooted == false then
  2104. Disable_Jump = false
  2105. Humanoid.WalkSpeed = Speed
  2106. elseif Rooted == true then
  2107. Disable_Jump = true
  2108. Humanoid.WalkSpeed = 0
  2109. end
  2110. for _, c in pairs(Character:GetChildren()) do
  2111. if c.ClassName == "Part" and c.Name ~= "Detail" then
  2112. c.Material = "Fabric"
  2113. if c:FindFirstChildOfClass("ParticleEmitter") then
  2114. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  2115. end
  2116. if c ~= Head then
  2117. c.Color = C3(0,0,0)
  2118. else
  2119. c.Color = C3(1,1,1)
  2120. end
  2121. if c == Head then
  2122. if c:FindFirstChild("face") then
  2123. c.face:remove()
  2124. end
  2125. end
  2126. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  2127. c:remove()
  2128. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  2129. c:remove()
  2130. end
  2131. end
  2132. sick.SoundId = "rbxassetid://"..SONG
  2133. sick.Looped = true
  2134. sick.Pitch = 1
  2135. sick.Volume = 5
  2136. sick.Parent = Torso
  2137. sick:Resume()
  2138. --sick.Playing = false
  2139. Humanoid.Name = "Pandora = "..Player.Name
  2140. end
  2141.  
  2142. --//=================================\\
  2143. --\\=================================//
  2144.  
  2145.  
  2146.  
  2147.  
  2148.  
  2149. --//====================================================\\--
  2150. --|| END OF SCRIPT
  2151. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement