Advertisement
Goo345

f

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