Advertisement
yabagaba

Untitled

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