Advertisement
Zebula_The_Scripter

Zorua

Sep 16th, 2018
386
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 54.39 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Mokiros")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83.  
  84. -- Synapse Decompiler
  85. -- Purchase Here: https://brack4712.xyz/synapse/purchase/
  86.  
  87. wait(0.2)
  88. Player = owner
  89. PlayerGui = Player.PlayerGui
  90. Cam = workspace.CurrentCamera
  91. Backpack = Player.Backpack
  92. Character = Player.Character
  93. Humanoid = Character.Humanoid
  94. RootPart = Character.HumanoidRootPart
  95. Torso = Character.Torso
  96. Head = Character.Head
  97. RightArm = Character["Right Arm"]
  98. LeftArm = Character["Left Arm"]
  99. RightLeg = Character["Right Leg"]
  100. LeftLeg = Character["Left Leg"]
  101. RootJoint = RootPart.RootJoint
  102. Neck = Torso.Neck
  103. RightShoulder = Torso["Right Shoulder"]
  104. LeftShoulder = Torso["Left Shoulder"]
  105. RightHip = Torso["Right Hip"]
  106. LeftHip = Torso["Left Hip"]
  107. local sick = Instance.new("Sound", Torso)
  108. sick.SoundId = "rbxassetid://1471371342"
  109. sick.Looped = true
  110. sick.Pitch = 1
  111. sick.Volume = 1
  112. sick:Play()
  113. IT = Instance.new
  114. CF = CFrame.new
  115. VT = Vector3.new
  116. RAD = math.rad
  117. C3 = Color3.new
  118. UD2 = UDim2.new
  119. BRICKC = BrickColor.new
  120. ANGLES = CFrame.Angles
  121. EULER = CFrame.fromEulerAnglesXYZ
  122. COS = math.cos
  123. ACOS = math.acos
  124. SIN = math.sin
  125. ASIN = math.asin
  126. ABS = math.abs
  127. MRANDOM = math.random
  128. FLOOR = math.floor
  129. Animation_Speed = 3
  130. Frame_Speed = 0.016666666666666666
  131. local Speed = 16
  132. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  133. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  134. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  135. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  136. local DAMAGEMULTIPLIER = 1
  137. local ANIM = "Idle"
  138. local ATTACK = false
  139. local EQUIPPED = false
  140. local HOLD = false
  141. local COMBO = 1
  142. local Rooted = false
  143. local SINE = 0
  144. local KEYHOLD = false
  145. local CHANGE = 2 / Animation_Speed
  146. local WALKINGANIM = false
  147. local VALUE1 = false
  148. local VALUE2 = false
  149. local ROBLOXIDLEANIMATION = IT("Animation")
  150. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  151. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  152. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  153. WEAPONGUI.Name = "Weapon GUI"
  154. local Weapon = IT("Model")
  155. Weapon.Name = "Adds"
  156. local Effects = IT("Folder", Weapon)
  157. Effects.Name = "Effects"
  158. local ANIMATOR = Humanoid.Animator
  159. local ANIMATE = Character.Animate
  160. local UNANCHOR = true
  161. local EYE1, EYE2
  162. local TAIL = {}
  163. local BLINKLOOP = 0
  164. ArtificialHB = Instance.new("BindableEvent", script)
  165. ArtificialHB.Name = "ArtificialHB"
  166. script:WaitForChild("ArtificialHB")
  167. frame = Frame_Speed
  168. tf = 0
  169. allowframeloss = false
  170. tossremainder = false
  171. lastframe = tick()
  172. script.ArtificialHB:Fire()
  173. game:GetService("RunService").Heartbeat:connect(function(s, p)
  174. tf = tf + s
  175. if tf >= frame then
  176. if allowframeloss then
  177. script.ArtificialHB:Fire()
  178. lastframe = tick()
  179. else
  180. for i = 1, math.floor(tf / frame) do
  181. script.ArtificialHB:Fire()
  182. end
  183. lastframe = tick()
  184. end
  185. if tossremainder then
  186. tf = 0
  187. else
  188. tf = tf - frame * math.floor(tf / frame)
  189. end
  190. end
  191. end)
  192. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  193. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  194. end
  195. function PositiveAngle(NUMBER)
  196. if NUMBER >= 0 then
  197. NUMBER = 0
  198. end
  199. return NUMBER
  200. end
  201. function NegativeAngle(NUMBER)
  202. if NUMBER <= 0 then
  203. NUMBER = 0
  204. end
  205. return NUMBER
  206. end
  207. function Swait(NUMBER)
  208. if NUMBER == 0 or NUMBER == nil then
  209. ArtificialHB.Event:wait()
  210. else
  211. for i = 1, NUMBER do
  212. ArtificialHB.Event:wait()
  213. end
  214. end
  215. end
  216. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  217. local NEWMESH = IT(MESH)
  218. if MESH == "SpecialMesh" then
  219. NEWMESH.MeshType = MESHTYPE
  220. if MESHID ~= "nil" and MESHID ~= "" then
  221. NEWMESH.MeshId = "http://www.roblox.com/asset/?id=" .. MESHID
  222. end
  223. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  224. NEWMESH.TextureId = "http://www.roblox.com/asset/?id=" .. TEXTUREID
  225. end
  226. end
  227. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  228. NEWMESH.Scale = SCALE
  229. NEWMESH.Parent = PARENT
  230. return NEWMESH
  231. end
  232. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  233. local NEWPART = IT("Part")
  234. NEWPART.formFactor = FORMFACTOR
  235. NEWPART.Reflectance = REFLECTANCE
  236. NEWPART.Transparency = TRANSPARENCY
  237. NEWPART.CanCollide = false
  238. NEWPART.Locked = true
  239. NEWPART.Anchored = true
  240. if ANCHOR == false then
  241. NEWPART.Anchored = false
  242. end
  243. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  244. NEWPART.Name = NAME
  245. NEWPART.Size = SIZE
  246. NEWPART.Position = Torso.Position
  247. NEWPART.Material = MATERIAL
  248. NEWPART:BreakJoints()
  249. NEWPART.Parent = PARENT
  250. return NEWPART
  251. end
  252. local weldBetween = function(a, b)
  253. local weldd = Instance.new("ManualWeld")
  254. weldd.Part0 = a
  255. weldd.Part1 = b
  256. weldd.C0 = CFrame.new()
  257. weldd.C1 = b.CFrame:inverse() * a.CFrame
  258. weldd.Parent = a
  259. return weldd
  260. end
  261. function QuaternionFromCFrame(cf)
  262. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  263. local trace = m00 + m11 + m22
  264. if trace > 0 then
  265. local s = math.sqrt(1 + trace)
  266. local recip = 0.5 / s
  267. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  268. else
  269. local i = 0
  270. if m00 < m11 then
  271. i = 1
  272. end
  273. if m22 > (i == 0 and m00 or m11) then
  274. i = 2
  275. end
  276. if i == 0 then
  277. local s = math.sqrt(m00 - m11 - m22 + 1)
  278. local recip = 0.5 / s
  279. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  280. elseif i == 1 then
  281. local s = math.sqrt(m11 - m22 - m00 + 1)
  282. local recip = 0.5 / s
  283. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  284. elseif i == 2 then
  285. local s = math.sqrt(m22 - m00 - m11 + 1)
  286. local recip = 0.5 / s
  287. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  288. end
  289. end
  290. end
  291. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  292. local xs, ys, zs = x + x, y + y, z + z
  293. local wx, wy, wz = w * xs, w * ys, w * zs
  294. local xx = x * xs
  295. local xy = x * ys
  296. local xz = x * zs
  297. local yy = y * ys
  298. local yz = y * zs
  299. local zz = z * zs
  300. 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))
  301. end
  302. function QuaternionSlerp(a, b, t)
  303. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  304. local startInterp, finishInterp
  305. if cosTheta >= 1.0E-4 then
  306. if 1 - cosTheta > 1.0E-4 then
  307. local theta = ACOS(cosTheta)
  308. local invSinTheta = 1 / SIN(theta)
  309. startInterp = SIN((1 - t) * theta) * invSinTheta
  310. finishInterp = SIN(t * theta) * invSinTheta
  311. else
  312. startInterp = 1 - t
  313. finishInterp = t
  314. end
  315. elseif 1 + cosTheta > 1.0E-4 then
  316. local theta = ACOS(-cosTheta)
  317. local invSinTheta = 1 / SIN(theta)
  318. startInterp = SIN((t - 1) * theta) * invSinTheta
  319. finishInterp = SIN(t * theta) * invSinTheta
  320. else
  321. startInterp = t - 1
  322. finishInterp = t
  323. end
  324. 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
  325. end
  326. function Clerp(a, b, t)
  327. local qa = {
  328. QuaternionFromCFrame(a)
  329. }
  330. local qb = {
  331. QuaternionFromCFrame(b)
  332. }
  333. local ax, ay, az = a.x, a.y, a.z
  334. local bx, by, bz = b.x, b.y, b.z
  335. local _t = 1 - t
  336. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  337. end
  338. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  339. local frame = IT("Frame")
  340. frame.BackgroundTransparency = TRANSPARENCY
  341. frame.BorderSizePixel = BORDERSIZEPIXEL
  342. frame.Position = POSITION
  343. frame.Size = SIZE
  344. frame.BackgroundColor3 = COLOR
  345. frame.BorderColor3 = BORDERCOLOR
  346. frame.Name = NAME
  347. frame.Parent = PARENT
  348. return frame
  349. end
  350. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  351. local label = IT("TextLabel")
  352. label.BackgroundTransparency = 1
  353. label.Size = UD2(1, 0, 1, 0)
  354. label.Position = UD2(0, 0, 0, 0)
  355. label.TextColor3 = TEXTCOLOR
  356. label.TextStrokeTransparency = STROKETRANSPARENCY
  357. label.TextTransparency = TRANSPARENCY
  358. label.FontSize = TEXTFONTSIZE
  359. label.Font = TEXTFONT
  360. label.BorderSizePixel = BORDERSIZEPIXEL
  361. label.TextScaled = false
  362. label.Text = TEXT
  363. label.Name = NAME
  364. label.Parent = PARENT
  365. return label
  366. end
  367. function NoOutlines(PART)
  368. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  369. end
  370. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  371. local NEWWELD = IT(TYPE)
  372. NEWWELD.Part0 = PART0
  373. NEWWELD.Part1 = PART1
  374. NEWWELD.C0 = C0
  375. NEWWELD.C1 = C1
  376. NEWWELD.Parent = PARENT
  377. return NEWWELD
  378. end
  379. local S = IT("Sound")
  380. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  381. local NEWSOUND
  382. coroutine.resume(coroutine.create(function()
  383. NEWSOUND = S:Clone()
  384. NEWSOUND.Parent = PARENT
  385. NEWSOUND.Volume = VOLUME
  386. NEWSOUND.Pitch = PITCH
  387. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID
  388. NEWSOUND:play()
  389. if DOESLOOP == true then
  390. NEWSOUND.Looped = true
  391. else
  392. repeat
  393. Swait()
  394. until NEWSOUND.Playing == false
  395. NEWSOUND:remove()
  396. end
  397. end))
  398. return NEWSOUND
  399. end
  400. function CFrameFromTopBack(at, top, back)
  401. local right = top:Cross(back)
  402. 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)
  403. end
  404. function WACKYEFFECT(Table)
  405. local TYPE = Table.EffectType or "Sphere"
  406. local SIZE = Table.Size or VT(1, 1, 1)
  407. local ENDSIZE = Table.Size2 or VT(0, 0, 0)
  408. local TRANSPARENCY = Table.Transparency or 0
  409. local ENDTRANSPARENCY = Table.Transparency2 or 1
  410. local CFRAME = Table.CFrame or Torso.CFrame
  411. local MOVEDIRECTION = Table.MoveToPos or nil
  412. local ROTATION1 = Table.RotationX or 0
  413. local ROTATION2 = Table.RotationY or 0
  414. local ROTATION3 = Table.RotationZ or 0
  415. local MATERIAL = Table.Material or "Neon"
  416. local COLOR = Table.Color or C3(1, 1, 1)
  417. local TIME = Table.Time or 45
  418. local SOUNDID = Table.SoundID or nil
  419. local SOUNDPITCH = Table.SoundPitch or nil
  420. local SOUNDVOLUME = Table.SoundVolume or nil
  421. coroutine.resume(coroutine.create(function()
  422. local PLAYSSOUND = false
  423. local SOUND
  424. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1, 1, 1), true)
  425. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  426. PLAYSSOUND = true
  427. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  428. end
  429. EFFECT.Color = COLOR
  430. local MSH
  431. if TYPE == "Sphere" then
  432. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0, 0, 0))
  433. elseif TYPE == "Block" then
  434. MSH = IT("BlockMesh", EFFECT)
  435. MSH.Scale = VT(SIZE.X, SIZE.X, SIZE.X)
  436. elseif TYPE == "Wave" then
  437. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8))
  438. elseif TYPE == "Ring" then
  439. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X, SIZE.X, 0.1), VT(0, 0, 0))
  440. elseif TYPE == "Slash" then
  441. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0))
  442. elseif TYPE == "Round Slash" then
  443. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0))
  444. elseif TYPE == "Swirl" then
  445. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0, 0, 0))
  446. elseif TYPE == "Skull" then
  447. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0, 0, 0))
  448. elseif TYPE == "Crystal" then
  449. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0, 0, 0))
  450. end
  451. if MSH ~= nil then
  452. local MOVESPEED
  453. if MOVEDIRECTION ~= nil then
  454. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude / TIME
  455. end
  456. local GROWTH = SIZE - ENDSIZE
  457. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  458. if TYPE == "Block" then
  459. EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
  460. else
  461. EFFECT.CFrame = CFRAME
  462. end
  463. for LOOP = 1, TIME do
  464. Swait()
  465. MSH.Scale = MSH.Scale - GROWTH / TIME
  466. if TYPE == "Wave" then
  467. MSH.Offset = VT(0, 0, -MSH.Scale.X / 8)
  468. end
  469. EFFECT.Transparency = EFFECT.Transparency - TRANS / TIME
  470. if TYPE == "Block" then
  471. EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
  472. else
  473. EFFECT.CFrame = EFFECT.CFrame * ANGLES(RAD(ROTATION1), RAD(ROTATION2), RAD(ROTATION3))
  474. end
  475. if MOVEDIRECTION ~= nil then
  476. local ORI = EFFECT.Orientation
  477. EFFECT.CFrame = CF(EFFECT.Position, MOVEDIRECTION) * CF(0, 0, -MOVESPEED)
  478. EFFECT.Orientation = ORI
  479. end
  480. end
  481. if PLAYSSOUND == false then
  482. EFFECT:remove()
  483. else
  484. repeat
  485. Swait()
  486. until SOUND.Playing == false
  487. EFFECT:remove()
  488. end
  489. elseif PLAYSSOUND == false then
  490. EFFECT:remove()
  491. else
  492. repeat
  493. Swait()
  494. until SOUND.Playing == false
  495. EFFECT:remove()
  496. end
  497. end))
  498. end
  499. function CreateDebreeRing(FLOOR, POSITION, SIZE, BLOCKSIZE, SWAIT)
  500. if FLOOR ~= nil then
  501. coroutine.resume(coroutine.create(function()
  502. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0, 0, 0))
  503. PART.CFrame = CF(POSITION)
  504. for i = 1, 45 do
  505. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  506. RingPiece.Material = FLOOR.Material
  507. RingPiece.Color = FLOOR.Color
  508. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i * 8), RAD(0)) * CF(SIZE * 4, 0, 0) * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)))
  509. Debris:AddItem(RingPiece, SWAIT)
  510. end
  511. PART:remove()
  512. end))
  513. end
  514. end
  515. function CreateFlyingDebree(FLOOR, POSITION, AMOUNT, BLOCKSIZE, SWAIT, STRENGTH)
  516. if FLOOR ~= nil then
  517. for i = 1, AMOUNT do
  518. do
  519. local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false)
  520. DEBREE.Material = FLOOR.Material
  521. DEBREE.Color = FLOOR.Color
  522. DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)))
  523. DEBREE.Velocity = VT(MRANDOM(-STRENGTH, STRENGTH), MRANDOM(-STRENGTH, STRENGTH), MRANDOM(-STRENGTH, STRENGTH))
  524. coroutine.resume(coroutine.create(function()
  525. Swait(15)
  526. DEBREE.Parent = workspace
  527. DEBREE.CanCollide = true
  528. Debris:AddItem(DEBREE, SWAIT)
  529. end))
  530. end
  531. end
  532. end
  533. end
  534. function MakeForm(PART, TYPE)
  535. if TYPE == "Cyl" then
  536. local MSH = IT("CylinderMesh", PART)
  537. elseif TYPE == "Ball" then
  538. local MSH = IT("SpecialMesh", PART)
  539. MSH.MeshType = "Sphere"
  540. elseif TYPE == "Wedge" then
  541. local MSH = IT("SpecialMesh", PART)
  542. MSH.MeshType = "Wedge"
  543. end
  544. end
  545. Debris = game:GetService("Debris")
  546. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  547. local DIRECTION = CF(StartPos, EndPos).lookVector
  548. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  549. end
  550. function turnto(position)
  551. RootPart.CFrame = CFrame.new(RootPart.CFrame.p, VT(position.X, RootPart.Position.Y, position.Z)) * CFrame.new(0, 0, 0)
  552. end
  553. function CreateNeonCircle(ATTACHPART, POSITION, SIZE, DOESSPIN, COLOR, MATERIAL, THICKNESS, WIDTH)
  554. local PART = CreatePart(3, Weapon, MATERIAL, 0, 1, COLOR, "CirclePart", VT(0, 0, 0), false)
  555. for i = 1, 45 do
  556. local RingPiece = CreatePart(3, Weapon, MATERIAL, 0, 0, COLOR, "CirclePart", VT(THICKNESS, WIDTH, SIZE * 0.65), false)
  557. local RingWeld = CreateWeldOrSnapOrMotor("Weld", RingPiece, PART, RingPiece, CF(0, 0, 0) * ANGLES(RAD(0), RAD(i * 8), RAD(0)), CF(0, 0, 0) * CF(SIZE * 4, 0, 0))
  558. end
  559. local PartWeld = CreateWeldOrSnapOrMotor("Weld", ATTACHPART, PART, ATTACHPART, POSITION * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  560. coroutine.resume(coroutine.create(function()
  561. if DOESSPIN == true then
  562. while true do
  563. wait()
  564. PartWeld.C0 = Clerp(PartWeld.C0, POSITION * ANGLES(RAD(0), RAD(SINE * 2), RAD(0)), 1)
  565. end
  566. end
  567. end))
  568. end
  569. function Blink()
  570. coroutine.resume(coroutine.create(function()
  571. if EYE1 ~= nil and EYE2 ~= nil then
  572. for i = 1, 5 do
  573. Swait()
  574. EYE1.Mesh.Scale = EYE1.Mesh.Scale - VT(0, 0.2, 0)
  575. EYE2.Mesh.Scale = EYE2.Mesh.Scale - VT(0, 0.2, 0)
  576. end
  577. for i = 1, 5 do
  578. Swait()
  579. EYE1.Mesh.Scale = EYE1.Mesh.Scale + VT(0, 0.2, 0)
  580. EYE2.Mesh.Scale = EYE2.Mesh.Scale + VT(0, 0.2, 0)
  581. end
  582. end
  583. end))
  584. end
  585. local LASTPART = Head
  586. local COLOR1 = 43
  587. local COLOR2 = 33
  588. local COLOR3 = 27
  589. --------------------------------------------------------------------------------------
  590.  
  591. local Hair = Instance.new("Part", Character)
  592. Hair.Name = "Hair"
  593. Hair.CanCollide = false
  594. Hair.BrickColor = BrickColor.new("Institutional white")
  595. Hair.Transparency = 0
  596. Hair.Material = "Plastic"
  597. Hair.Size = Vector3.new(1, 1, 2)
  598. Hair.TopSurface = Enum.SurfaceType.Smooth
  599. Hair.BottomSurface = Enum.SurfaceType.Smooth
  600.  
  601. local Weld = Instance.new("Weld", Hair)
  602. Weld.Part0 = Head
  603. Weld.Part1 = Hair
  604. Weld.C1 = CFrame.new(0, -.6, 0)
  605. Weld.C0 = CFrame.Angles(math.rad(0),math.rad(0),0)
  606.  
  607. local M2 = Instance.new("SpecialMesh")
  608. M2.Parent = Hair
  609. M2.MeshId = "rbxassetid://2038789971"
  610. M2.TextureId = "rbxassetid://1089187398"
  611. M2.Scale = Vector3.new(1, 1, 1)
  612. -------------------------------------------------------
  613. for i,v in pairs(Character:children()) do
  614. if v:IsA("Shirt") and v:IsA("Pants") and v:IsA("Hat") then
  615. v:Remove()
  616. end
  617. end
  618. shirt = Instance.new("Shirt", Character)
  619. shirt.Name = "Shirt"
  620. pants = Instance.new("Pants", Character)
  621. pants.Name = "Pants"
  622. Character.Shirt.ShirtTemplate = "rbxassetid://676428254"
  623. Character.Pants.PantsTemplate = "rbxassetid://676428351"
  624.  
  625. for _, c in pairs(Weapon:GetChildren()) do
  626. if c.ClassName == "Part" then
  627. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  628. end
  629. end
  630. local SKILLTEXTCOLOR = C3(0, 0, 0)
  631. local SKILLFONT = "SciFi"
  632. local SKILLTEXTSIZE = 7
  633. Weapon.Parent = Character
  634. Humanoid.Died:connect(function()
  635. ATTACK = true
  636. end)
  637. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.8, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 1 Frame")
  638. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.5, 0, 0.8, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 2 Frame")
  639. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Zorua Slam", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 1")
  640. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Destroying Pain", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 2")
  641. function StatLabel(CFRAME, TEXT, COLOR)
  642. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  643. STATPART.CFrame = CF(CFRAME.p, CFRAME.p + VT(MRANDOM(-5, 5), MRANDOM(0, 5), MRANDOM(-5, 5)))
  644. local BODYGYRO = IT("BodyGyro", STATPART)
  645. game:GetService("Debris"):AddItem(STATPART, 5)
  646. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  647. BILLBOARDGUI.Adornee = STATPART
  648. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5, 0)
  649. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  650. BILLBOARDGUI.AlwaysOnTop = false
  651. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  652. TEXTLABEL.BackgroundTransparency = 1
  653. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  654. TEXTLABEL.Text = TEXT
  655. TEXTLABEL.Font = SKILLFONT
  656. TEXTLABEL.FontSize = "Size42"
  657. TEXTLABEL.TextColor3 = COLOR
  658. TEXTLABEL.TextStrokeTransparency = 0
  659. TEXTLABEL.TextScaled = true
  660. TEXTLABEL.TextWrapped = true
  661. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  662. for i = 1, 50 do
  663. Swait()
  664. STATPART.CFrame = STATPART.CFrame * CF(0, 0, -0.2)
  665. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + 0.02
  666. TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
  667. end
  668. THEPART.Parent = nil
  669. end), STATPART, TEXTLABEL)
  670. end
  671. function ApplyDamage(Humanoid, Damage, TorsoPart)
  672. local defence = Instance.new("BoolValue", Humanoid.Parent)
  673. defence.Name = "HitBy" .. Player.Name
  674. game:GetService("Debris"):AddItem(defence, 0.001)
  675. Damage = Damage * DAMAGEMULTIPLIER
  676. if Humanoid.Health ~= 0 then
  677. local CritChance = MRANDOM(1, 100)
  678. if Damage > Humanoid.Health then
  679. Damage = math.ceil(Humanoid.Health)
  680. if Damage == 0 then
  681. Damage = 0.1
  682. end
  683. end
  684. Humanoid.Health = Humanoid.Health - Damage
  685. StatLabel(TorsoPart.CFrame * CF(0, 0 + (TorsoPart.Size.z - 1), 0), Damage, C3(0, 0, 0))
  686. end
  687. end
  688. function ApplyAoE(POSITION, RANGE, MINDMG, MAXDMG, FLING, INSTAKILL)
  689. local CHILDREN = workspace:GetDescendants()
  690. for index, CHILD in pairs(CHILDREN) do
  691. if CHILD.ClassName == "Model" and CHILD ~= Character then
  692. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  693. if HUM then
  694. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  695. if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then
  696. if INSTAKILL == true then
  697. CHILD:BreakJoints()
  698. else
  699. local DMG = MRANDOM(MINDMG, MAXDMG)
  700. ApplyDamage(HUM, DMG, TORSO)
  701. end
  702. if FLING > 0 then
  703. for _, c in pairs(CHILD:GetChildren()) do
  704. if c:IsA("BasePart") then
  705. local bv = Instance.new("BodyVelocity")
  706. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  707. bv.velocity = CF(POSITION, TORSO.Position).lookVector * FLING
  708. bv.Parent = c
  709. Debris:AddItem(bv, 0.05)
  710. end
  711. end
  712. end
  713. end
  714. end
  715. end
  716. end
  717. end
  718. function Extreme_Offset()
  719. local HITFLOOR, HITPOS = Raycast(Mouse.Hit.p + VT(0, 1, 0), CF(Mouse.Hit.p + VT(0, 1, 0), Mouse.Hit.p - VT(0, 1, 0)).lookVector, 25, Character)
  720. if HITFLOOR then
  721. local ORIGINPOS = VT(RootPart.Position.X, HITPOS.Y + 8, RootPart.Position.Z)
  722. CreateSound("1295446488", Torso, 5, 1)
  723. for i = 1, 5 do
  724. WACKYEFFECT({
  725. Time = MRANDOM(15, 35),
  726. EffectType = "Round Slash",
  727. Size = VT(0, 0, 0),
  728. Size2 = VT(0.3, 0, 0.3),
  729. Transparency = 0.5,
  730. Transparency2 = 1,
  731. CFrame = CF(Torso.Position) * ANGLES(RAD(MRANDOM(-25, 25)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(-25, 25))),
  732. MoveToPos = nil,
  733. RotationX = MRANDOM(-50, 50) / 10,
  734. RotationY = MRANDOM(-50, 50) / 10,
  735. RotationZ = MRANDOM(-50, 50) / 10,
  736. Material = "Neon",
  737. Color = C3(1, 1, 1),
  738. SoundID = nil,
  739. SoundPitch = nil,
  740. SoundVolume = nil
  741. })
  742. end
  743. ATTACK = true
  744. Rooted = true
  745. UNANCHOR = false
  746. RootPart.Anchored = true
  747. RootPart.CFrame = CF(HITPOS + VT(0, 8, 0), ORIGINPOS) * ANGLES(RAD(0), RAD(180), RAD(0))
  748. for i = 1, 5 do
  749. WACKYEFFECT({
  750. Time = MRANDOM(15, 35),
  751. EffectType = "Round Slash",
  752. Size = VT(0, 0, 0),
  753. Size2 = VT(0.3, 0, 0.3),
  754. Transparency = 0.5,
  755. Transparency2 = 1,
  756. CFrame = CF(Torso.Position) * ANGLES(RAD(MRANDOM(-25, 25)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(-25, 25))),
  757. MoveToPos = nil,
  758. RotationX = MRANDOM(-50, 50) / 10,
  759. RotationY = MRANDOM(-50, 50) / 10,
  760. RotationZ = MRANDOM(-50, 50) / 10,
  761. Material = "Neon",
  762. Color = C3(1, 1, 1),
  763. SoundID = nil,
  764. SoundPitch = nil,
  765. SoundVolume = nil
  766. })
  767. end
  768. for i = 0, 0.2, 0.1 / Animation_Speed do
  769. Swait()
  770. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(150)), 2 / Animation_Speed)
  771. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  772. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  773. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  774. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  775. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 2 / Animation_Speed)
  776. end
  777. for i = 0, 1, 0.1 / Animation_Speed do
  778. Swait()
  779. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(300)), 0.02 / Animation_Speed)
  780. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.02 / Animation_Speed)
  781. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.02 / Animation_Speed)
  782. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.02 / Animation_Speed)
  783. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.02 / Animation_Speed)
  784. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 0.02 / Animation_Speed)
  785. end
  786. for i = 1, 10 do
  787. Swait()
  788. RootPart.CFrame = RootPart.CFrame * CF(0, -0.4, 0)
  789. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(300)), 1.7 / Animation_Speed)
  790. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1.7 / Animation_Speed)
  791. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 1.7 / Animation_Speed)
  792. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1.7 / Animation_Speed)
  793. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1.7 / Animation_Speed)
  794. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1.7 / Animation_Speed)
  795. end
  796. for i = 0, 0.2, 0.1 / Animation_Speed do
  797. Swait()
  798. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(90)), 1.5 / Animation_Speed)
  799. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 1.5 / Animation_Speed)
  800. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
  801. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1.5 / Animation_Speed)
  802. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1.5 / Animation_Speed)
  803. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1.5 / Animation_Speed)
  804. end
  805. local HITFLOOR, HITPOS = Raycast(RightArm.Position, CF(RightArm.Position, RightArm.Position + VT(0, -1, 0)).lookVector, 8, Character)
  806. if HITFLOOR then
  807. if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
  808. local CHILDREN = HITFLOOR.Parent:GetDescendants()
  809. for index, CHILD in pairs(CHILDREN) do
  810. if CHILD:IsA("BasePart") and CHILD.Parent:FindFirstChildOfClass("Humanoid") then
  811. for i = 1, 5 do
  812. CreateFlyingDebree(CHILD, CF(CHILD.Position), 1, CHILD.Size / 2, 5, MRANDOM(15, 25))
  813. CHILD:remove()
  814. end
  815. end
  816. end
  817. local SOUNDPART = CreatePart(3, Effects, "Grass", 0, 1, "Really black", "Sound", VT(0, 0, 0))
  818. SOUNDPART.CFrame = CF(HITPOS)
  819. Debris:AddItem(SOUNDPART, 5)
  820. CreateSound("130972023", SOUNDPART, 6, 3)
  821. CreateSound("182765513", SOUNDPART, 6, 1)
  822. WACKYEFFECT({
  823. EffectType = "Ring",
  824. Size = VT(0, 0, 0),
  825. Size2 = VT(1, 1, 0),
  826. Transparency = 0.7,
  827. Transparency2 = 1,
  828. CFrame = CF(HITPOS) * ANGLES(RAD(90), RAD(0), RAD(0)),
  829. MoveToPos = nil,
  830. RotationX = 0,
  831. RotationY = 0,
  832. RotationZ = 0,
  833. Material = "Neon",
  834. Color = C3(1, 1, 1),
  835. SoundID = nil,
  836. SoundPitch = nil,
  837. SoundVolume = nil
  838. })
  839. elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  840. local CHILDREN = HITFLOOR.Parent.Parent:GetDescendants()
  841. for index, CHILD in pairs(CHILDREN) do
  842. if CHILD:IsA("BasePart") and CHILD.Parent:FindFirstChildOfClass("Humanoid") then
  843. for i = 1, 5 do
  844. CreateFlyingDebree(CHILD, CF(CHILD.Position), 1, CHILD.Size / 2, 5, MRANDOM(15, 25))
  845. CHILD:remove()
  846. end
  847. end
  848. end
  849. local SOUNDPART = CreatePart(3, Effects, "Grass", 0, 1, "Really black", "Sound", VT(0, 0, 0))
  850. SOUNDPART.CFrame = CF(HITPOS)
  851. Debris:AddItem(SOUNDPART, 5)
  852. CreateSound("130972023", SOUNDPART, 6, 3)
  853. CreateSound("182765513", SOUNDPART, 6, 1)
  854. WACKYEFFECT({
  855. EffectType = "Ring",
  856. Size = VT(0, 0, 0),
  857. Size2 = VT(1, 1, 0),
  858. Transparency = 0.7,
  859. Transparency2 = 1,
  860. CFrame = CF(HITPOS) * ANGLES(RAD(90), RAD(0), RAD(0)),
  861. MoveToPos = nil,
  862. RotationX = 0,
  863. RotationY = 0,
  864. RotationZ = 0,
  865. Material = "Neon",
  866. Color = C3(1, 1, 1),
  867. SoundID = nil,
  868. SoundPitch = nil,
  869. SoundVolume = nil
  870. })
  871. elseif HITFLOOR.Anchored == false then
  872. if HITFLOOR.Parent ~= workspace then
  873. local CHILDREN = HITFLOOR.Parent:GetDescendants()
  874. for index, CHILD in pairs(CHILDREN) do
  875. if CHILD:IsA("BasePart") and CHILD.Position.Y < HITPOS.Y then
  876. for i = 1, 5 do
  877. CreateFlyingDebree(CHILD, CF(CHILD.Position), 1, CHILD.Size / 3, 5, MRANDOM(15, 25))
  878. end
  879. CHILD:remove()
  880. end
  881. end
  882. else
  883. for i = 1, 5 do
  884. CreateFlyingDebree(HITFLOOR, CF(HITFLOOR.Position), 1, HITFLOOR.Size / 3, 5, MRANDOM(15, 25))
  885. end
  886. HITFLOOR:remove()
  887. end
  888. local SOUNDPART = CreatePart(3, Effects, "Grass", 0, 1, "Really black", "Sound", VT(0, 0, 0))
  889. SOUNDPART.CFrame = CF(HITPOS)
  890. Debris:AddItem(SOUNDPART, 5)
  891. CreateSound("130972023", SOUNDPART, 10, 3)
  892. CreateSound("178452217", SOUNDPART, 6, 1)
  893. WACKYEFFECT({
  894. EffectType = "Ring",
  895. Size = VT(0, 0, 0),
  896. Size2 = VT(1, 1, 0),
  897. Transparency = 0.7,
  898. Transparency2 = 1,
  899. CFrame = CF(HITPOS) * ANGLES(RAD(90), RAD(0), RAD(0)),
  900. MoveToPos = nil,
  901. RotationX = 0,
  902. RotationY = 0,
  903. RotationZ = 0,
  904. Material = "Neon",
  905. Color = C3(1, 1, 1),
  906. SoundID = nil,
  907. SoundPitch = nil,
  908. SoundVolume = nil
  909. })
  910. else
  911. local SOUNDPART = CreatePart(3, Effects, "Grass", 0, 1, "Really black", "Sound", VT(0, 0, 0))
  912. SOUNDPART.CFrame = CF(HITPOS)
  913. Debris:AddItem(SOUNDPART, 5)
  914. CreateSound("130972023", SOUNDPART, 10, 1)
  915. CreateSound("130972023", SOUNDPART, 6, 0.7)
  916. CreateDebreeRing(HITFLOOR, HITPOS, 5, VT(5, 5, 5), 5)
  917. CreateDebreeRing(HITFLOOR, HITPOS, 8, VT(8, 8, 8), 5)
  918. ApplyAoE(HITPOS, 15, 45, 75, 75, false)
  919. ApplyAoE(HITPOS, 25, 25, 35, 35, false)
  920. for i = 1, 5 do
  921. CreateFlyingDebree(HITFLOOR, CF(HITPOS), 1, VT(MRANDOM(10, 30) / 10, MRANDOM(10, 30) / 10, MRANDOM(10, 30) / 10), 5, MRANDOM(75, 150))
  922. end
  923. for i = 1, 5 do
  924. CreateFlyingDebree(HITFLOOR, CF(HITPOS), 1, VT(MRANDOM(10, 30) / 2, MRANDOM(10, 30) / 2, MRANDOM(10, 30) / 2), 5, MRANDOM(75, 150))
  925. end
  926. end
  927. end
  928. for i = 0, 1.2, 0.1 / Animation_Speed do
  929. Swait()
  930. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(90)), 1.5 / Animation_Speed)
  931. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 1.5 / Animation_Speed)
  932. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(40)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
  933. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1.5 / Animation_Speed)
  934. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1.5 / Animation_Speed)
  935. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1.5 / Animation_Speed)
  936. end
  937. ATTACK = false
  938. Rooted = false
  939. UNANCHOR = true
  940. RootPart.Anchored = false
  941. end
  942. end
  943. function Eon_Fire()
  944. ATTACK = true
  945. Rooted = true
  946. local GYRO = IT("BodyGyro", RootPart)
  947. GYRO.D = 15
  948. GYRO.P = 2000
  949. GYRO.MaxTorque = VT(0, 4000000, 0)
  950. CreateSound("341301115", Head, 5, 1.1)
  951. CreateSound("93724183", Head, 6, 1)
  952. for i = 1, 200 do
  953. Swait()
  954. WACKYEFFECT({
  955. Time = MRANDOM(5, 15),
  956. EffectType = "Round Slash",
  957. Size = VT(0, 0, 0),
  958. Size2 = VT(0.12, 0, 0.12),
  959. Transparency = 0.5,
  960. Transparency2 = 1,
  961. CFrame = RootPart.CFrame * CF(0, -2.8, 0) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)),
  962. MoveToPos = nil,
  963. RotationX = MRANDOM(-50, 50) / 50,
  964. RotationY = MRANDOM(-50, 50) / 10,
  965. RotationZ = MRANDOM(-50, 50) / 50,
  966. Material = "Neon",
  967. Color = C3(1, 0, 0),
  968. SoundID = nil,
  969. SoundPitch = nil,
  970. SoundVolume = nil
  971. })
  972. WACKYEFFECT({
  973. Time = MRANDOM(5, 15),
  974. EffectType = "Round Slash",
  975. Size = VT(0, 0, 0),
  976. Size2 = VT(0.1, 0, 0.1),
  977. Transparency = 0.5,
  978. Transparency2 = 1,
  979. CFrame = Torso.CFrame * CF(0, -2.5, 1) * ANGLES(RAD(-35), RAD(MRANDOM(0, 360)), RAD(0)),
  980. MoveToPos = nil,
  981. RotationX = MRANDOM(-50, 50) / 50,
  982. RotationY = MRANDOM(-50, 50) / 10,
  983. RotationZ = MRANDOM(-50, 50) / 50,
  984. Material = "Neon",
  985. Color = C3(1, 0, 0),
  986. SoundID = nil,
  987. SoundPitch = nil,
  988. SoundVolume = nil
  989. })
  990. WACKYEFFECT({
  991. Time = MRANDOM(5, 15),
  992. EffectType = "Round Slash",
  993. Size = VT(0, 0, 0),
  994. Size2 = VT(0.16, 0, 0.16),
  995. Transparency = 0.5,
  996. Transparency2 = 1,
  997. CFrame = Torso.CFrame * CF(0, -2.5, 1) * ANGLES(RAD(-45), RAD(MRANDOM(0, 360)), RAD(0)),
  998. MoveToPos = nil,
  999. RotationX = MRANDOM(-50, 50) / 50,
  1000. RotationY = MRANDOM(-50, 50) / 10,
  1001. RotationZ = MRANDOM(-50, 50) / 50,
  1002. Material = "Neon",
  1003. Color = C3(1, 0, 0),
  1004. SoundID = nil,
  1005. SoundPitch = nil,
  1006. SoundVolume = nil
  1007. })
  1008. WACKYEFFECT({
  1009. Time = 5,
  1010. EffectType = "Sphere",
  1011. Size = VT(i, i, i) / 150,
  1012. Size2 = VT(0, 0, 0),
  1013. Transparency = 0.5,
  1014. Transparency2 = 1,
  1015. CFrame = Head.CFrame * CF(0, -0.25, -1),
  1016. MoveToPos = nil,
  1017. RotationX = 0,
  1018. RotationY = 0,
  1019. RotationZ = 0,
  1020. Material = "Neon",
  1021. Color = C3(1, 0, 0),
  1022. SoundID = nil,
  1023. SoundPitch = nil,
  1024. SoundVolume = nil
  1025. })
  1026. GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p)
  1027. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0.1, -0.05 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.05 / Animation_Speed)
  1028. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.05 / Animation_Speed)
  1029. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.05 / Animation_Speed)
  1030. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.05 / Animation_Speed)
  1031. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.05 / Animation_Speed)
  1032. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.05 / Animation_Speed)
  1033. end
  1034. GYRO:remove()
  1035. for i = 0, 0.3, 0.1 / Animation_Speed do
  1036. Swait()
  1037. WACKYEFFECT({
  1038. Time = 25,
  1039. EffectType = "Sphere",
  1040. Size = VT(200, 200, 200) / 150,
  1041. Size2 = VT(0, 0, 0),
  1042. Transparency = 0.5,
  1043. Transparency2 = 1,
  1044. CFrame = Head.CFrame * CF(0, -0.25, -1),
  1045. MoveToPos = nil,
  1046. RotationX = 0,
  1047. RotationY = 0,
  1048. RotationZ = 0,
  1049. Material = "Neon",
  1050. Color = C3(1, 0, 0),
  1051. SoundID = nil,
  1052. SoundPitch = nil,
  1053. SoundVolume = nil
  1054. })
  1055. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, -0.1, -0.05 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1056. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1057. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1058. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1059. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(15), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1060. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(15), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1061. end
  1062. coroutine.resume(coroutine.create(function()
  1063. local FIREBALL = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "DOOM", VT(1, 1, 1))
  1064. MakeForm(FIREBALL, "Ball")
  1065. local SOUND = CreateSound(463593339, FIREBALL, 8, 1, false)
  1066. FIREBALL.CFrame = CF(Head.Position, Mouse.Hit.p) * CF(0, 0, -2)
  1067. for i = 1, 500 do
  1068. Swait()
  1069. FIREBALL.CFrame = FIREBALL.CFrame * CF(0, 0, -2)
  1070. local HITFLOOR, HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 2.2, Character)
  1071. if HITFLOOR ~= nil then
  1072. break
  1073. end
  1074. end
  1075. CreateSound(325132788, Effects, 8, 1, false)
  1076. for i = 1, 120 do
  1077. Swait()
  1078. WACKYEFFECT({
  1079. Time = 85,
  1080. EffectType = "Sphere",
  1081. Size = FIREBALL.Size,
  1082. Size2 = VT(0, 1000, 0),
  1083. Transparency = 0.5,
  1084. Transparency2 = 1,
  1085. CFrame = FIREBALL.CFrame * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))),
  1086. MoveToPos = nil,
  1087. RotationX = MRANDOM(-50, 50) / 10,
  1088. RotationY = MRANDOM(-50, 50) / 10,
  1089. RotationZ = MRANDOM(-50, 50) / 10,
  1090. Material = "Neon",
  1091. Color = C3(1, 0, 0),
  1092. SoundID = nil,
  1093. SoundPitch = nil,
  1094. SoundVolume = nil
  1095. })
  1096. FIREBALL.Size = FIREBALL.Size - VT(1, 1, 1) / 120
  1097. end
  1098. Swait(5)
  1099. ApplyAoE(FIREBALL.Position, 435, 65, 65, 600, false)
  1100. for i = 1, 10 do
  1101. WACKYEFFECT({
  1102. Time = 85 + 5 * i,
  1103. EffectType = "Slash",
  1104. Size = VT(3, 0, 3),
  1105. Size2 = VT(12, 0, 12),
  1106. Transparency = 0.5,
  1107. Transparency2 = 1,
  1108. CFrame = FIREBALL.CFrame * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))),
  1109. MoveToPos = nil,
  1110. RotationX = MRANDOM(-50, 50) / 50,
  1111. RotationY = MRANDOM(-50, 50) / 10,
  1112. RotationZ = MRANDOM(-50, 50) / 50,
  1113. Material = "Neon",
  1114. Color = C3(1, 1, 1),
  1115. SoundID = nil,
  1116. SoundPitch = nil,
  1117. SoundVolume = nil
  1118. })
  1119. WACKYEFFECT({
  1120. Time = 185 + 5 * i,
  1121. EffectType = "Swirl",
  1122. Size = VT(15, 15, 15),
  1123. Size2 = VT(700, 700, 700) + VT(15, 15, 15) * i,
  1124. Transparency = 0.5,
  1125. Transparency2 = 1,
  1126. CFrame = FIREBALL.CFrame * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)),
  1127. MoveToPos = nil,
  1128. RotationX = MRANDOM(-50, 50) / 50,
  1129. RotationY = MRANDOM(-50, 50) / 10,
  1130. RotationZ = MRANDOM(-50, 50) / 50,
  1131. Material = "Neon",
  1132. Color = C3(1, 0.5, 0.5),
  1133. SoundID = nil,
  1134. SoundPitch = nil,
  1135. SoundVolume = nil
  1136. })
  1137. WACKYEFFECT({
  1138. Time = 285 + 5 * i,
  1139. EffectType = "Round Slash",
  1140. Size = VT(3, 0, 3),
  1141. Size2 = VT(12, 0, 12),
  1142. Transparency = 0.5,
  1143. Transparency2 = 1,
  1144. CFrame = FIREBALL.CFrame * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))),
  1145. MoveToPos = nil,
  1146. RotationX = MRANDOM(-50, 50) / 50,
  1147. RotationY = MRANDOM(-50, 50) / 10,
  1148. RotationZ = MRANDOM(-50, 50) / 50,
  1149. Material = "Neon",
  1150. Color = C3(1, 0, 0),
  1151. SoundID = nil,
  1152. SoundPitch = nil,
  1153. SoundVolume = nil
  1154. })
  1155. WACKYEFFECT({
  1156. Time = 285 + 5 * i,
  1157. EffectType = "Sphere",
  1158. Size = VT(650, 650, 650),
  1159. Size2 = VT(750, 750, 750) + VT(15, 15, 15) * i,
  1160. Transparency = 0.5,
  1161. Transparency2 = 1,
  1162. CFrame = FIREBALL.CFrame,
  1163. MoveToPos = nil,
  1164. RotationX = 0,
  1165. RotationY = 0,
  1166. RotationZ = 0,
  1167. Material = "Neon",
  1168. Color = C3(1, 0, 0),
  1169. SoundID = nil,
  1170. SoundPitch = 0,
  1171. SoundVolume = 0
  1172. })
  1173. end
  1174. wait(1)
  1175. WACKYEFFECT({
  1176. Time = 75,
  1177. EffectType = "Sphere",
  1178. Size = VT(350, 350, 350),
  1179. Size2 = VT(4500, 4500, 4500),
  1180. Transparency = 0.8,
  1181. Transparency2 = 1,
  1182. CFrame = FIREBALL.CFrame,
  1183. MoveToPos = nil,
  1184. RotationX = 0,
  1185. RotationY = 0,
  1186. RotationZ = 0,
  1187. Material = "Neon",
  1188. Color = C3(1, 1, 1),
  1189. SoundID = nil,
  1190. SoundPitch = 0,
  1191. SoundVolume = 0
  1192. })
  1193. for i = 1, 15 do
  1194. Swait()
  1195. ApplyAoE(FIREBALL.Position, 435 + 85 * i, 3, 3, 100, false)
  1196. WACKYEFFECT({
  1197. Time = 85,
  1198. EffectType = "Sphere",
  1199. Size = VT(75, 75, 75),
  1200. Size2 = VT(0, 2500, 0),
  1201. Transparency = 0.5,
  1202. Transparency2 = 1,
  1203. CFrame = FIREBALL.CFrame * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))),
  1204. MoveToPos = nil,
  1205. RotationX = MRANDOM(-50, 50) / 10,
  1206. RotationY = MRANDOM(-50, 50) / 10,
  1207. RotationZ = MRANDOM(-50, 50) / 10,
  1208. Material = "Neon",
  1209. Color = C3(1, 0, 0),
  1210. SoundID = nil,
  1211. SoundPitch = nil,
  1212. SoundVolume = nil
  1213. })
  1214. end
  1215. FIREBALL:remove()
  1216. end))
  1217. WACKYEFFECT({
  1218. Time = 25,
  1219. EffectType = "Ring",
  1220. Size = VT(0, 0, 0),
  1221. Size2 = VT(3.75, 3.75, 0),
  1222. Transparency = 0.7,
  1223. Transparency2 = 1,
  1224. CFrame = Head.CFrame * CF(0, -0.25, -0.75),
  1225. MoveToPos = nil,
  1226. RotationX = 0,
  1227. RotationY = 0,
  1228. RotationZ = 0,
  1229. Material = "Neon",
  1230. Color = C3(1, 0, 0),
  1231. SoundID = nil,
  1232. SoundPitch = nil,
  1233. SoundVolume = nil
  1234. })
  1235. WACKYEFFECT({
  1236. Time = 50,
  1237. EffectType = "Ring",
  1238. Size = VT(0, 0, 0),
  1239. Size2 = VT(15, 15, 0),
  1240. Transparency = 0.7,
  1241. Transparency2 = 1,
  1242. CFrame = Head.CFrame * CF(0, -0.25, -0.75),
  1243. MoveToPos = nil,
  1244. RotationX = 0,
  1245. RotationY = 0,
  1246. RotationZ = 0,
  1247. Material = "Neon",
  1248. Color = C3(1, 0, 0),
  1249. SoundID = nil,
  1250. SoundPitch = nil,
  1251. SoundVolume = nil
  1252. })
  1253. for i = 0, 0.3, 0.1 / Animation_Speed do
  1254. Swait()
  1255. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, -0.1, -0.05 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1256. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1257. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1258. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1259. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(15), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1260. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(15), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1261. end
  1262. ATTACK = false
  1263. Rooted = false
  1264. end
  1265. function Eon_Anatomy()
  1266. ATTACK = true
  1267. Rooted = false
  1268. for i = 0, 1, 0.1 / Animation_Speed do
  1269. Swait()
  1270. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1271. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1272. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1273. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1274. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1275. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1276. end
  1277. ATTACK = false
  1278. Rooted = false
  1279. end
  1280. function MouseDown(Mouse)
  1281. if ATTACK == false then
  1282. end
  1283. end
  1284. function MouseUp(Mouse)
  1285. HOLD = false
  1286. end
  1287. function KeyDown(Key)
  1288. KEYHOLD = true
  1289. if Key == "z" and ATTACK == false then
  1290. Extreme_Offset()
  1291. end
  1292. if Key == "b" and ATTACK == false then
  1293. Eon_Fire()
  1294. end
  1295. if Key ~= "c" or ATTACK == false then
  1296. end
  1297. if Key ~= "v" or ATTACK == false then
  1298. end
  1299. if Key ~= "x" or ATTACK == false then
  1300. end
  1301. end
  1302. function KeyUp(Key)
  1303. KEYHOLD = false
  1304. end
  1305. Mouse.Button1Down:connect(function(NEWKEY)
  1306. MouseDown(NEWKEY)
  1307. end)
  1308. Mouse.Button1Up:connect(function(NEWKEY)
  1309. MouseUp(NEWKEY)
  1310. end)
  1311. Mouse.KeyDown:connect(function(NEWKEY)
  1312. KeyDown(NEWKEY)
  1313. end)
  1314. Mouse.KeyUp:connect(function(NEWKEY)
  1315. KeyUp(NEWKEY)
  1316. end)
  1317. function unanchor()
  1318. if UNANCHOR == true then
  1319. RootPart.Anchored = false
  1320. end
  1321. local CHILDREN = Character:GetDescendants()
  1322. for index, CHILD in pairs(CHILDREN) do
  1323. if CHILD:IsA("BasePart") and CHILD ~= RootPart and CHILD.Parent ~= Effects and CHILD.Parent.Parent ~= Effects then
  1324. CHILD.Anchored = false
  1325. end
  1326. end
  1327. end
  1328. Humanoid.Changed:connect(function(Jump)
  1329. if Jump == "Jump" and Disable_Jump == true then
  1330. Humanoid.Jump = false
  1331. end
  1332. end)
  1333. while true do
  1334. Swait()
  1335. script.Parent = WEAPONGUI
  1336. ANIMATE.Parent = nil
  1337. if Humanoid then
  1338. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1339. IDLEANIMATION:Play()
  1340. end
  1341. for T = 1, #TAIL do
  1342. if TAIL[T] ~= nil then
  1343. TAIL[T].C1 = Clerp(TAIL[T].C1, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(3.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1344. end
  1345. end
  1346. SINE = SINE + CHANGE
  1347. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1348. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1349. local HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4, Character)
  1350. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1351. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1352. 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)
  1353. 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)
  1354. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE * 2), -0.125 * COS(SINE / WALKSPEEDVALUE) + 0.2 + 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1355. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE * 2), 0.125 * COS(SINE / WALKSPEEDVALUE) + 0.2 + -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1356. elseif ANIM ~= "Walk" or TORSOVELOCITY < 1 then
  1357. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1358. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1359. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1360. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1361. end
  1362. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1363. ANIM = "Jump"
  1364. if ATTACK == false then
  1365. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1366. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1367. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1368. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1369. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1370. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1371. end
  1372. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1373. ANIM = "Fall"
  1374. if ATTACK == false then
  1375. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1376. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1377. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1378. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1379. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1380. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1381. end
  1382. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1383. ANIM = "Idle"
  1384. if ATTACK == false then
  1385. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.15 / Animation_Speed)
  1386. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.15 / Animation_Speed)
  1387. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * ANGLES(RAD(0), RAD(-25), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1388. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1389. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1390. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1391. end
  1392. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1393. ANIM = "Walk"
  1394. if ATTACK == false then
  1395. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(10 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed)
  1396. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(5), RAD(0), RAD(-10 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed)
  1397. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.15 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.8 / Animation_Speed)
  1398. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.8 / Animation_Speed)
  1399. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1400. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1401. end
  1402. end
  1403. unanchor()
  1404. Humanoid.MaxHealth = "inf"
  1405. Humanoid.Health = "inf"
  1406. if Rooted == false then
  1407. Disable_Jump = false
  1408. Humanoid.WalkSpeed = Speed
  1409. elseif Rooted == true then
  1410. Disable_Jump = true
  1411. Humanoid.WalkSpeed = 0
  1412. end
  1413. BLINKLOOP = BLINKLOOP + 1
  1414. if BLINKLOOP >= 650 then
  1415. BLINKLOOP = 0
  1416. Blink()
  1417. end
  1418. sick.Parent = Torso
  1419. sick.Playing = true
  1420. sick.Volume = 1
  1421. sick.Pitch = 0.9
  1422. if Head:FindFirstChild("face") and ATTACK == false then
  1423. Head.face.Texture = "rbxassetid://429340009"
  1424. end
  1425. Humanoid.Name = MRANDOM(100000000, 999999999)
  1426. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement