Advertisement
Dark_AJ1

a duble tom

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