Advertisement
Okkkkk

FE private script

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