Advertisement
DangerRedile

Lost Soul edit

Jun 11th, 2023 (edited)
961
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 151.16 KB | None | 0 0
  1. --//====================================================\\--
  2. --|| Lost Soul originally created by Witherower
  3. --|| Converted/Aligned by Epic
  4. --|| Idk who made this edit
  5. --|| (Whoever made this edit is not so good)
  6. --\\====================================================//--
  7. --[[ Required hats: 7
  8. www.roblox.com/catalog/3443038622/International-Fedora-Peru
  9. www.roblox.com/catalog/3656493304/International-Fedora-South-Korea
  10. www.roblox.com/catalog/4819740796/Robox
  11. www.roblox.com/catalog/9867481700/Le-Rouge-Cross-body-Bag-1-0
  12. www.roblox.com/catalog/9867487176/Le-Rouge-Cross-body-Bag-3-0
  13. www.roblox.com/catalog/10775031176/The-Pogo
  14. www.roblox.com/catalog/7583352167/Vector-Arrow
  15. ]]
  16.  
  17. --|| Options (aka setting) ||--
  18. local MobileClickAttack = true --(Click to shot)
  19. local AudioReplacement = true --(set true will replace MP3 music to Roblox's Audio)
  20. local veryUselessOption = nil --(Do absolutely nothing lol)
  21. --|| ok that it ||--
  22.  
  23. local OmgSkid = "SprawlingIdiotEffigy.mp3"
  24. if not isfile(OmgSkid) then
  25. game:GetService("StarterGui"):SetCore("SendNotification", {
  26. Title = "Downloading 1 file...";
  27. Text = "ok that it";
  28. Icon = "rbxthumb://type=Asset&id=1030775394&w=150&h=150"})
  29. Duration = 7
  30. writefile(OmgSkid, game:HttpGet("https://dll1.yt2api.com/dl?hash=CZCUM7616l%2Fi2lb0uOlshGjkg67UOTeWcnyUoT0JbesI938XfmUIAKc68HoydK9uHbCyxLtk%2FlsX6rwWU1muGPpTkF6P1JCkTKmefwrKhZ9TT4SiejIn7yBliLViaS9TKjQFBGQYYb18MO9aKywoKOpiulGG3QkLVV%2FoqlF0udlxQzpx1lPDBalRaFdXe0cki87UL8a19jXKhA%2FeUxJvfw%3D%3D"))
  31. end
  32. local null = nil
  33. local omgIHavingStrokecoughcough = loadstring(game:HttpGet(("https://pastebin.com/raw/Y2bkbubv"),true))()
  34. local MoveDirection = Vector3.new()
  35. Player = game.Players.LocalPlayer
  36. Character = Player.Character
  37. PlayerGui = Player.PlayerGui
  38. Cam = workspace.CurrentCamera
  39. Backpack = Player.Backpack
  40. Character = Character
  41. Humanoid = Character.Humanoid
  42. Mouse = Player:GetMouse()
  43. RootPart = Character["HumanoidRootPart"]
  44. Torso = Character["Torso"]
  45. Head = Character["Head"]
  46. RightArm = Character["Right Arm"]
  47. LeftArm = Character["Left Arm"]
  48. RightLeg = Character["Right Leg"]
  49. LeftLeg = Character["Left Leg"]
  50. RootJoint = RootPart["RootJoint"]
  51. Neck = Torso["Neck"]
  52. RightShoulder = Torso["Right Shoulder"]
  53. LeftShoulder = Torso["Left Shoulder"]
  54. RightHip = Torso["Right Hip"]
  55. LeftHip = Torso["Left Hip"]
  56. local TIME = 0
  57.  
  58. IT = Instance.new
  59. CF = CFrame.new
  60. VT = Vector3.new
  61. RAD = math.rad
  62. C3 = Color3.new
  63. UD2 = UDim2.new
  64. BRICKC = BrickColor.new
  65. ANGLES = CFrame.Angles
  66. EULER = CFrame.fromEulerAnglesXYZ
  67. COS = math.cos
  68. ACOS = math.acos
  69. Cos = math.cos
  70. SIN = math.sin
  71. ASIN = math.asin
  72. ABS = math.abs
  73. MRANDOM = math.random
  74. FLOOR = math.floor
  75. local rscp = CFrame.new(-.5,0,0) * CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
  76. local lscp = CFrame.new(.5,0,0) * CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))
  77. local BlahBlahBlah_E = nil
  78.  
  79.  
  80. local RUNNING = false
  81. local Sound = Instance.new("Sound", Character)
  82. local SongName = OmgSkid
  83. Sound.MaxDistance = inf
  84. Sound.Looped = true
  85. local VeryVeryVeryUselessPartlmao = Instance.new("Part", Character)
  86. VeryVeryVeryUselessPartlmao.CanCollide = false
  87. VeryVeryVeryUselessPartlmao.Transparency = 1
  88. VeryVeryVeryUselessPartlmao.Name = "Will darkModz steal this script? Let's find out"
  89.  
  90. if AudioReplacement == false then
  91. Sound.SoundId = syn and getsynasset(SongName) or getcustomasset(SongName)
  92. Sound.Volume = "3"
  93. Sound.TimePosition = 10.55
  94. Sound:Play()
  95. end
  96.  
  97. if AudioReplacement == true then
  98. Sound.SoundId = "rbxassetid://1842801942"
  99. Sound.Volume = 3.5
  100. Sound.Pitch = 0.875
  101. Sound.TimePosition = 2.5
  102. Sound:Play()
  103. end
  104.  
  105. local c = game.Players.LocalPlayer.Character:FindFirstChild("Vector Arrow").Handle
  106. c.AccessoryWeld:Destroy()
  107. c.Anchored = true
  108. local cRot = 5
  109. game:GetService("RunService").RenderStepped:Connect(function(dt)
  110. cRot = cRot + 5*dt
  111. c.Anchored = true
  112. c.CFrame = game.Players.LocalPlayer.Character:FindFirstChild("Torso").CFrame * CFrame.new(0,3,3.1) * CFrame.Angles(math.rad(0), 0, -cRot)
  113. c.Velocity = Vector3.new(0,0,0)
  114. c.Anchored = false
  115. end)
  116.  
  117. wait(.1)
  118. --local WeldRemote = MainFolder.WeldRemote
  119.  
  120. local FONTS = {
  121. Enum.Font.Antique,
  122. Enum.Font.Arcade,
  123. Enum.Font.Arial,
  124. Enum.Font.ArialBold,
  125. Enum.Font.Bodoni,
  126. Enum.Font.Cartoon,
  127. Enum.Font.Code,
  128. Enum.Font.Fantasy,
  129. Enum.Font.Garamond,
  130. Enum.Font.Highway,
  131. Enum.Font.Legacy,
  132. Enum.Font.SciFi,
  133. Enum.Font.SourceSans,
  134. Enum.Font.SourceSansBold,
  135. Enum.Font.SourceSansItalic,
  136. Enum.Font.SourceSansLight,
  137. Enum.Font.SourceSansSemibold
  138. }
  139.  
  140. local MATERIALS = {
  141. Enum.Material.Brick,
  142. Enum.Material.Cobblestone,
  143. Enum.Material.Concrete,
  144. Enum.Material.CorrodedMetal,
  145. Enum.Material.DiamondPlate,
  146. Enum.Material.Fabric,
  147. Enum.Material.Foil,
  148. Enum.Material.ForceField,
  149. Enum.Material.Glass,
  150. Enum.Material.Granite,
  151. Enum.Material.Grass,
  152. Enum.Material.Ice,
  153. Enum.Material.Marble,
  154. Enum.Material.Metal,
  155. Enum.Material.Neon,
  156. Enum.Material.Pebble,
  157. Enum.Material.Plastic,
  158. Enum.Material.Sand,
  159. Enum.Material.Slate,
  160. Enum.Material.SmoothPlastic,
  161. Enum.Material.Wood,
  162. Enum.Material.WoodPlanks
  163. }
  164.  
  165.  
  166.  
  167. local Mouse = game.Players.LocalPlayer:GetMouse()
  168. local mouse = Mouse
  169. local mse = Mouse
  170. local MOUSE = Mouse
  171.  
  172.  
  173. -- You must remove any Variables that reference a LocalPlayer. Example: Player = game.Players.LocalPlayer
  174. -- You must remove any Variables that reference :GetMouse(). Example: Mouse = Player:GetMouse()
  175. -- You must remove anything that sets the script's parent. Example: script.Parent = OBJECT
  176.  
  177. -- Make sure to change the name at the top of the script named "CRTemplate" to your name! --]]
  178.  
  179. -- You can use ctrl + f keys to search for the keywords above (LocalPlayer, GetMouse, script.Parent =)
  180.  
  181. -- PASTE SCRIPT BELOW THIS LINE!
  182. ----------------------------------
  183. spawn(function()
  184. Cam = workspace.CurrentCamera
  185.  
  186. Character.Parent = workspace
  187.  
  188. local TS = game:GetService("TweenService")
  189. local PS = game:GetService("PhysicsService")
  190. PlayerGui = Player.PlayerGui
  191. Cam = workspace.CurrentCamera
  192. Backpack = Player.Backpack
  193. Humanoid = Character:FindFirstChildOfClass("Humanoid")
  194. RootPart = Character["HumanoidRootPart"]
  195.  
  196.  
  197.  
  198. ArtificialHB = Instance.new("BindableEvent", script)
  199. ArtificialHB.Name = "ArtificialHB"
  200.  
  201. script:WaitForChild("ArtificialHB")
  202.  
  203. frame = 1/60
  204. tf = 0
  205. allowframeloss = false
  206. tossremainder = false
  207. lastframe = tick()
  208. script.ArtificialHB:Fire()
  209.  
  210. game:GetService("RunService").Heartbeat:connect(function(s, p)
  211. tf = tf + s
  212. if tf >= frame then
  213. if allowframeloss then
  214. ArtificialHB:Fire()
  215. lastframe = tick()
  216. else
  217. for i = 1, math.floor(tf / frame) do
  218. ArtificialHB:Fire()
  219. end
  220. lastframe = tick()
  221. end
  222. if tossremainder then
  223. tf = 0
  224. else
  225. tf = tf - frame * math.floor(tf / frame)
  226. end
  227. end
  228. end)
  229.  
  230.  
  231. function Swait(num)
  232. if num == 0 or num == nil then
  233. game:GetService("RunService").RenderStepped:wait()
  234. else
  235. for i = 1, num do
  236. game:GetService("RunService").RenderStepped:wait()
  237. end
  238. end
  239. end
  240.  
  241. local VisualizeWing = true
  242. end)
  243. --Ok
  244. PlayerGui = Player.PlayerGui
  245. Cam = workspace.CurrentCamera
  246. Backpack = Player.Backpack
  247. Humanoid = Character.Humanoid
  248. RootPart = Character.HumanoidRootPart
  249. Torso = Character.Torso
  250. Head = Character.Head
  251. RightArm = Character["Right Arm"]
  252. LeftArm = Character["Left Arm"]
  253. RightLeg = Character["Right Leg"]
  254. LeftLeg = Character["Left Leg"]
  255. RootJoint = RootPart.RootJoint
  256. Neck = Torso.Neck
  257. RightShoulder = Torso["Right Shoulder"]
  258. LeftShoulder = Torso["Left Shoulder"]
  259. RightHip = Torso["Right Hip"]
  260. LeftHip = Torso["Left Hip"]
  261. local debris = game:GetService("Debris")
  262. local run = game:GetService("RunService")
  263. local rs = run.RenderStepped
  264. local cam = workspace.CurrentCamera
  265. local HUM = Character.Humanoid
  266. local ROOT = HUM.Torso
  267. local MOUSEPOS = ROOT.Position
  268. local DAMAGEMULTIPLIER = 0
  269. local TERRIBLE = {}
  270.  
  271. IT = Instance.new
  272. CF = CFrame.new
  273. VT = Vector3.new
  274. RAD = math.rad
  275. C3 = Color3.new
  276. UD2 = UDim2.new
  277. BRICKC = BrickColor.new
  278. ANGLES = CFrame.Angles
  279. EULER = CFrame.fromEulerAnglesXYZ
  280. COS = math.cos
  281. ACOS = math.acos
  282. SIN = math.sin
  283. ASIN = math.asin
  284. ABS = math.abs
  285. MRANDOM = math.random
  286. FLOOR = math.floor
  287.  
  288. --//=================================\\
  289. --|| WINGS LMAO
  290. --\\=================================//
  291.  
  292. local LWing = Instance.new("Part")
  293. LWing.Parent = Character
  294. LWing.Size = Vector3.new(4, 1, 2)
  295. if VisualizeWing == true then
  296. LWing.Color = Color3.fromRGB(Sound.PlaybackLoudness,Sound.PlaybackLoudness,Sound.PlaybackLoudness)
  297. end
  298. LWing.Name = Player.Name.."'s Left Wing Of Madness"
  299. LWing.Anchored = false
  300. LWing.Locked = true
  301. local LWingMsh = Instance.new("SpecialMesh")
  302. LWingMsh.Parent = LWing
  303. LWingMsh.Offset = Vector3.new()
  304. LWingMsh.Scale = Vector3.new(0.0480000004, 0.0480000004, 0.0480000004)
  305. LWingMsh.MeshType = "FileMesh"
  306. LWingMsh.MeshId = "rbxassetid://1553468234"
  307. local RWing = Instance.new("Part")
  308. RWing.Parent = Character
  309. RWing.Size = Vector3.new(4, 1, 2)
  310. if VisualizeWing == true then
  311. RWing.Color = Color3.fromRGB(Sound.PlaybackLoudness,Sound.PlaybackLoudness,Sound.PlaybackLoudness)
  312. end
  313. RWing.Name = Player.Name.."'s Right Wing Of Madness"
  314. RWing.Anchored = false
  315. RWing.Locked = true
  316. local RWingMsh = Instance.new("SpecialMesh")
  317. RWingMsh.Parent = RWing
  318. RWingMsh.Offset = Vector3.new()
  319. RWingMsh.Scale = Vector3.new(0.0480000004, 0.0480000004, 0.0480000004)
  320. RWingMsh.MeshType = "FileMesh"
  321. RWingMsh.MeshId = "rbxassetid://1553468709"
  322. local LWingWld = Instance.new("Motor6D")
  323. LWingWld.Parent = LWing
  324. LWingWld.Part0 = Torso
  325. LWingWld.Part1 = LWing
  326. LWingWld.C0 = CFrame.new(-0.25, 0.5, 0.5)*CFrame.fromEulerAnglesXYZ(0, 1.57, 0)
  327. LWingWld.C1 = CFrame.new(1.1, 1, 0.95)
  328. local RWingWld = Instance.new("Motor6D")
  329. RWingWld.Parent = RWing
  330. RWingWld.Part0 = Torso
  331. RWingWld.Part1 = RWing
  332. RWingWld.C0 = CFrame.new(0.25, 0.5, 0.5)*CFrame.fromEulerAnglesXYZ(0, 1.57, 0)
  333. RWingWld.C1 = CFrame.new(1.1, 1, -0.95)
  334.  
  335. -----------------------------------
  336. --||///////============\\\\\\\\||--
  337. --><Values
  338. --local Sound = IT("Sound",Character)
  339. Animation_Speed = 1.75
  340. Animation_Speed2 = 5
  341. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  342. local Speed = 18
  343. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  344. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  345. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  346. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  347. local DAMAGEMULTIPLIER = 0
  348. local ANIM = "Idle"
  349. local ATTACK = false
  350. local EQUIPPED = false
  351. local HOLD = false
  352. local COMBO = 1
  353. local Rooted = false
  354. local SINE = 0
  355. local KEYHOLD = false
  356. local CHANGE = 2 / Animation_Speed
  357. local WALKINGANIM = false
  358. local VALUE1 = false
  359. local VALUE2 = false
  360. local ROBLOXIDLEANIMATION = IT("Animation")
  361. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  362. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  363. --ROBLOXIDLEANIMATION.Parent = Humanoid
  364. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  365. WEAPONGUI.Name = "VÌ´Í„Ìœi̸̫̫͐͛̐̕͘Ȁ̷̧̡͇͔̆̽̔͑n̸̪̱͍̰̱̅̀KÌ´Í Ì¹ò̵͙̰̹̓͘̕s̸̜̼͕͕̀̽̒ ̴̨͝ḩ̶̦̮͉̭͊͜Ą̶̫̬͖̇sÌ¶ÌÍ Í†ÍÌÌ² ̴̯̦̱̏͜aÌµÍ Í„ÌˆÌ˜Ì–ÍŽÌ¹Ì¥Ì˜RÌ¸ÌÍÌ¢Í“ÍŽÌ¥Ì r̵͚̳̞̭͓̻͑̍i̸̖̘̼͚̫̲͌̑́̿͆VÌ¶ÍÌ†Ì¿Í†Ì‡Í‹Ì Ì—Ì˜Ì™ȩ̷̘͈̯̍͌́̓d̸͓͓͋͝"
  366. local Effects = IT("Folder", Character)
  367. Effects.Name = "Effects"
  368. local ANIMATOR = Humanoid.Animator
  369. local ANIMATE = Character.Animate
  370. local UNANCHOR = true
  371. local FIRECOLOR = C3(0,0,0)
  372.  
  373. local Musika = IT("Sound", RootPart)
  374. local Volu = 6
  375. local Pitch = 1
  376. local Song = 773296297
  377. local TSPT, TVY, TSTP
  378.  
  379. local Musika2 = IT("Sound", RootPart)
  380. local Volu2 = 5
  381. local Pitch2 = 1
  382. local Song2 = 0
  383. local TSPT2, TVY2, TSTP2
  384.  
  385. local Player_Size = 1
  386. local WALKINGANIM = false
  387. local SCALE = 2
  388.  
  389. local Decal = IT("Decal")
  390. local STUFF = Instance.new("Folder",Character)
  391.  
  392. local SLASHES = 1
  393.  
  394. local HITPLAYERSOUNDS = {"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  395. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  396. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  397. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  398.  
  399. -----------------------------------
  400.  
  401.  
  402. -----------------------------------
  403. --------------------------------->
  404. -----------------------------------
  405.  
  406. ArtificialHB = Instance.new("BindableEvent", script)
  407. ArtificialHB.Name = "ArtificialHB"
  408. script:WaitForChild("ArtificialHB")
  409. frame = Frame_Speed
  410. tf = 0
  411. allowframeloss = false
  412. tossremainder = false
  413. lastframe = tick()
  414. script.ArtificialHB:Fire()
  415. game:GetService("RunService").Heartbeat:connect(function(s, p)
  416. tf = tf + s
  417. if tf >= frame then
  418. if allowframeloss then
  419. script.ArtificialHB:Fire()
  420. lastframe = tick()
  421. else
  422. for i = 1, math.floor(tf / frame) do
  423. script.ArtificialHB:Fire()
  424. end
  425. lastframe = tick()
  426. end
  427. if tossremainder then
  428. tf = 0
  429. else
  430. tf = tf - frame * math.floor(tf / frame)
  431. end
  432. end
  433. end)
  434.  
  435. -----------------------------------
  436.  
  437. --><Some Functions
  438.  
  439. function turnto(position)
  440. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  441. end
  442.  
  443. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  444. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  445. end
  446. function PositiveAngle(NUMBER)
  447. if NUMBER >= 0 then
  448. NUMBER = 0
  449. end
  450. return NUMBER
  451. end
  452. function NegativeAngle(NUMBER)
  453. if NUMBER <= 0 then
  454. NUMBER = 0
  455. end
  456. return NUMBER
  457. end
  458. function Swait(NUMBER)
  459. if NUMBER == 0 or NUMBER == nil then
  460. ArtificialHB.Event:wait()
  461. else
  462. for i = 1, NUMBER do
  463. ArtificialHB.Event:wait()
  464. end
  465. end
  466. end
  467. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  468. local NEWMESH = IT(MESH)
  469. if MESH == "SpecialMesh" then
  470. NEWMESH.MeshType = MESHTYPE
  471. if MESHID ~= "nil" and MESHID ~= "" then
  472. NEWMESH.MeshId = "http://www.roblox.com/asset/?id=" .. MESHID
  473. end
  474. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  475. NEWMESH.TextureId = "http://www.roblox.com/asset/?id=" .. TEXTUREID
  476. end
  477. end
  478. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  479. NEWMESH.Scale = SCALE
  480. NEWMESH.Parent = PARENT
  481. return NEWMESH
  482. end
  483. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  484. local NEWPART = IT("Part")
  485. NEWPART.formFactor = FORMFACTOR
  486. NEWPART.Reflectance = REFLECTANCE
  487. NEWPART.Transparency = TRANSPARENCY
  488. NEWPART.CanCollide = false
  489. NEWPART.Locked = true
  490. NEWPART.Anchored = true
  491. if ANCHOR == false then
  492. NEWPART.Anchored = false
  493. end
  494. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  495. NEWPART.Name = NAME
  496. NEWPART.Size = SIZE
  497. NEWPART.Position = Torso.Position
  498. NEWPART.Material = MATERIAL
  499. NEWPART:BreakJoints()
  500. NEWPART.Parent = PARENT
  501. return NEWPART
  502. end
  503. local weldBetween = function(a, b)
  504. local weldd = Instance.new("ManualWeld")
  505. weldd.Part0 = a
  506. weldd.Part1 = b
  507. weldd.C0 = CFrame.new()
  508. weldd.C1 = b.CFrame:inverse() * a.CFrame
  509. weldd.Parent = a
  510. return weldd
  511. end
  512. function weldSomethings(a, b, acf)
  513. local we = Instance.new("Weld", a)
  514. we.Part0 = a
  515. we.Part1 = b
  516. if acf ~= nil then
  517. we.C0 = acf
  518. end
  519. end
  520. function QuaternionFromCFrame(cf)
  521. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  522. local trace = m00 + m11 + m22
  523. if trace > 0 then
  524. local s = math.sqrt(1 + trace)
  525. local recip = 0.5 / s
  526. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  527. else
  528. local i = 0
  529. if m00 < m11 then
  530. i = 1
  531. end
  532. if m22 > (i == 0 and m00 or m11) then
  533. i = 2
  534. end
  535. if i == 0 then
  536. local s = math.sqrt(m00 - m11 - m22 + 1)
  537. local recip = 0.5 / s
  538. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  539. elseif i == 1 then
  540. local s = math.sqrt(m11 - m22 - m00 + 1)
  541. local recip = 0.5 / s
  542. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  543. elseif i == 2 then
  544. local s = math.sqrt(m22 - m00 - m11 + 1)
  545. local recip = 0.5 / s
  546. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  547. end
  548. end
  549. end
  550. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  551. local xs, ys, zs = x + x, y + y, z + z
  552. local wx, wy, wz = w * xs, w * ys, w * zs
  553. local xx = x * xs
  554. local xy = x * ys
  555. local xz = x * zs
  556. local yy = y * ys
  557. local yz = y * zs
  558. local zz = z * zs
  559. 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))
  560. end
  561. function QuaternionSlerp(a, b, t)
  562. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  563. local startInterp, finishInterp
  564. if cosTheta >= 1.0E-4 then
  565. if 1 - cosTheta > 1.0E-4 then
  566. local theta = ACOS(cosTheta)
  567. local invSinTheta = 1 / SIN(theta)
  568. startInterp = SIN((1 - t) * theta) * invSinTheta
  569. finishInterp = SIN(t * theta) * invSinTheta
  570. else
  571. startInterp = 1 - t
  572. finishInterp = t
  573. end
  574. elseif 1 + cosTheta > 1.0E-4 then
  575. local theta = ACOS(-cosTheta)
  576. local invSinTheta = 1 / SIN(theta)
  577. startInterp = SIN((t - 1) * theta) * invSinTheta
  578. finishInterp = SIN(t * theta) * invSinTheta
  579. else
  580. startInterp = t - 1
  581. finishInterp = t
  582. end
  583. 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
  584. end
  585. function Clerp(a, b, t)
  586. local qa = {
  587. QuaternionFromCFrame(a)
  588. }
  589. local qb = {
  590. QuaternionFromCFrame(b)
  591. }
  592. local ax, ay, az = a.x, a.y, a.z
  593. local bx, by, bz = b.x, b.y, b.z
  594. local _t = 1 - t
  595. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  596. end
  597. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  598. local frame = IT("Frame")
  599. frame.BackgroundTransparency = TRANSPARENCY
  600. frame.BorderSizePixel = BORDERSIZEPIXEL
  601. frame.Position = POSITION
  602. frame.Size = SIZE
  603. frame.BackgroundColor3 = COLOR
  604. frame.BorderColor3 = BORDERCOLOR
  605. frame.Name = NAME
  606. frame.Parent = PARENT
  607. return frame
  608. end
  609. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  610. local label = IT("TextLabel")
  611. label.BackgroundTransparency = 1
  612. label.Size = UD2(1, 0, 1, 0)
  613. label.Position = UD2(0, 0, 0, 0)
  614. label.TextColor3 = TEXTCOLOR
  615. label.TextStrokeTransparency = STROKETRANSPARENCY
  616. label.TextTransparency = TRANSPARENCY
  617. label.FontSize = TEXTFONTSIZE
  618. label.Font = TEXTFONT
  619. label.BorderSizePixel = BORDERSIZEPIXEL
  620. label.TextScaled = false
  621. label.Text = TEXT
  622. label.Name = NAME
  623. label.Parent = PARENT
  624. return label
  625. end
  626. function NoOutlines(PART)
  627. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  628. end
  629. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  630. local NEWWELD = IT(TYPE)
  631. NEWWELD.Part0 = PART0
  632. NEWWELD.Part1 = PART1
  633. NEWWELD.C0 = C0
  634. NEWWELD.C1 = C1
  635. NEWWELD.Parent = PARENT
  636. return NEWWELD
  637. end
  638. local S = IT("Sound")
  639. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  640. local NEWSOUND
  641. coroutine.resume(coroutine.create(function()
  642. NEWSOUND = S:Clone()
  643. NEWSOUND.Parent = PARENT
  644. NEWSOUND.Volume = VOLUME
  645. NEWSOUND.Pitch = .8
  646. NEWSOUND.EmitterSize = VOLUME * 3
  647. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID
  648. NEWSOUND:play()
  649. if DOESLOOP == true then
  650. NEWSOUND.Looped = true
  651. else
  652. repeat
  653. wait(1)
  654. until NEWSOUND.Playing == false
  655. NEWSOUND:remove()
  656. end
  657. end))
  658. return NEWSOUND
  659. end
  660. function NewSound(TABLE)
  661. local ID = "rbxassetid://"..(TABLE.ID or 0)
  662. local PARENT = (TABLE.PARENT or ROOT)
  663. local VOLUME = (TABLE.VOLUME or 0.5)
  664. local PITCH = (TABLE.PITCH or 1)
  665. local LOOP = (TABLE.LOOP or false)
  666. local MAXDISTANCE = (TABLE.MAXDISTANCE or 100)
  667. local EMITTERSIZE = (TABLE.EMITTERSIZE or 10)
  668. local PLAYING = (TABLE.PLAYING or true)
  669. local PLAYONREMOVE = (TABLE.PLAYONREMOVE or false)
  670. local DOESDEBRIS = (TABLE.DOESDEBRIS or true)
  671. if ID ~= "rbxassetid://0" then
  672. local SOUND = IT("Sound",PARENT)
  673. SOUND.SoundId = ID
  674. SOUND.Volume = VOLUME
  675. SOUND.Pitch = PITCH
  676. SOUND.Looped = LOOP
  677. SOUND.MaxDistance = MAXDISTANCE
  678. SOUND.EmitterSize = EMITTERSIZE
  679. SOUND.PlayOnRemove = PLAYONREMOVE
  680. if DOESDEBRIS == true and PLAYING == true and LOOP == false then
  681. Debris:AddItem(SOUND,SOUND.TimeLength+5)
  682. end
  683. if PLAYING == true then
  684. SOUND:Play()
  685. end
  686. return SOUND
  687. end
  688. end
  689. function Wyvern(Size,DoesBurn)
  690. local WYVERN = IT("Model")
  691. local BASEPART = CreatePart(3, WYVERN, "Neon", 0, 0.5, "Deep orange", "Wyvern Base",(VT(1, 7.2, 1)*1.5)*Size,false)
  692. local BASEWELD = CreateWeldOrSnapOrMotor("Weld", Torso, Torso, BASEPART, CF(0,0,0), CF(0, 0, 0))
  693. CreateMesh("SpecialMesh", BASEPART, "FileMesh", "90615474", "", VT(1.5,1.5,1.5)*Size, VT(0,0,0))
  694. for _, c in pairs(WYVERN:GetChildren()) do
  695. if c.ClassName == "Part" then
  696. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  697. c.Color = FIRECOLOR
  698. end
  699. end
  700. WYVERN.Parent = Effects
  701. if DoesBurn == false then
  702. return WYVERN,BASEPART,BASEWELD
  703. elseif DoesBurn == true then
  704.  
  705. return WYVERN,BASEPART,BASEWELD
  706. end
  707. end
  708. function CFrameFromTopBack(at, top, back)
  709. local right = top:Cross(back)
  710. 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)
  711. end
  712. function MagicRing()
  713. local O1 = CreatePart(3, Effects, "Neon", 0, 1, "Really black", "Warphole", VT(0, 0, 0))
  714. O1.CFrame = RootPart.CFrame * CF(0, 0, -3) * ANGLES(RAD(90), RAD(0), RAD(0))
  715. local decal = Decal:Clone()
  716. decal.Parent = O1
  717. decal.Face = "Top"
  718. decal.Texture = "http://www.roblox.com/asset/?id=0"
  719. local decal2 = Decal:Clone()
  720. decal2.Parent = O1
  721. decal2.Face = "Bottom"
  722. decal2.Texture = "http://www.roblox.com/asset/?id=0"
  723. return O1
  724. end
  725. function MagicRing2(PART,CFRAME)
  726. local RING = CreatePart(3, Effects, "Neon", 0, 1, "Royal purple", "MagicRing", VT(0,0,0),false)
  727. local WELD = CreateWeldOrSnapOrMotor("Weld", PART, PART, RING, CFRAME, CF(0, 0, 0))
  728. local MESH = IT("BlockMesh",RING)
  729. local BOTTOMTEXTURE = Decal:Clone()
  730. BOTTOMTEXTURE.Parent = RING
  731. BOTTOMTEXTURE.Face = "Bottom"
  732. BOTTOMTEXTURE.Name = "BottomTexture"
  733. local TOPTEXTURE = Decal:Clone()
  734. TOPTEXTURE.Parent = RING
  735. TOPTEXTURE.Face = "Top"
  736. TOPTEXTURE.Name = "TopTexture"
  737. local LIGHT = IT("PointLight",RING)
  738. BOTTOMTEXTURE.Texture = "http://www.roblox.com/asset/?id=2829906887"
  739. TOPTEXTURE.Texture = "http://www.roblox.com/asset/?id=2829906887"
  740. return RING,WELD,MESH
  741. end
  742. local DECAL = IT("Decal")
  743. function MagicRing3()
  744. local RING = CreatePart(0, Effects, "Neon", 0, 0, BRICKC("Pearl"), "MagicRing", VT(0, 0, 0), true)
  745. RING.Transparency = 1
  746. local MSH = IT("BlockMesh", RING)
  747. local TOP = DECAL:Clone()
  748. local BOTTOM = DECAL:Clone()
  749. TOP.Parent = RING
  750. BOTTOM.Parent = RING
  751. TOP.Face = "Top"
  752. BOTTOM.Face = "Bottom"
  753. TOP.Texture = "http://www.roblox.com/asset/?id=0"
  754. BOTTOM.Texture = "http://www.roblox.com/asset/?id=0"
  755. local function REMOVE()
  756. coroutine.resume(coroutine.create(function()
  757. local SIZE = MSH.Scale.X
  758. for i = 1, 35 do
  759. Swait()
  760. MSH.Scale = MSH.Scale - VT(SIZE, 0, SIZE) / 60
  761. TOP.Transparency = TOP.Transparency + 0.02857142857142857
  762. BOTTOM.Transparency = BOTTOM.Transparency + 0.02857142857142857
  763. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(-5), RAD(0))
  764. end
  765. RING:remove()
  766. end))
  767. end
  768. return RING, MSH, REMOVE
  769. end
  770. function CreateWave(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
  771. local wave = CreatePart(0, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  772. wave.Transparency = 1
  773. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8))
  774. wave.CFrame = CFRAME
  775. coroutine.resume(coroutine.create(function(PART)
  776. for i = 1, WAIT do
  777. Swait()
  778. mesh.Scale = mesh.Scale + GROW
  779. mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
  780. if DOESROT == true then
  781. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  782. end
  783. wave.Transparency = wave.Transparency + 0.5 / WAIT
  784. if wave.Transparency > 0.99 then
  785. wave:remove()
  786. end
  787. end
  788. end))
  789. end
  790. function SpecialSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  791. local wave = CreatePart(0, Effects, "Neon", 0, 0, BRICKC(COLOR), "Eye", VT(0,0,0), true)
  792. wave.Transparency = 1
  793. wave.Color = COLOR
  794. local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0,0,0))
  795. wave.CFrame = CFRAME
  796. coroutine.resume(coroutine.create(function(PART)
  797. for i = 1, WAIT do
  798. Swait()
  799. mesh.Scale = mesh.Scale + GROW
  800. wave.Transparency = wave.Transparency + (1/WAIT)
  801. if wave.Transparency > 0.99 then
  802. wave:remove()
  803. end
  804. end
  805. end))
  806. end
  807. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  808. local wave = CreatePart(0, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(0,0,0), true)
  809. wave.Transparency = 1
  810. local mesh = IT("SpecialMesh",wave)
  811. mesh.MeshType = "Sphere"
  812. mesh.Scale = SIZE
  813. mesh.Offset = VT(0,0,0)
  814. wave.CFrame = CFRAME
  815. coroutine.resume(coroutine.create(function(PART)
  816. for i = 1, WAIT do
  817. Swait()
  818. mesh.Scale = mesh.Scale + GROW
  819. wave.Transparency = wave.Transparency + (1/WAIT)
  820. if wave.Transparency > 0.99 then
  821. wave:remove()
  822. end
  823. end
  824. end))
  825. end
  826. function WACKYEFFECT(Table)
  827. local TYPE = Table.EffectType or "Sphere"
  828. local SIZE = Table.Size or VT(0, 0, 0)
  829. local ENDSIZE = Table.Size2 or VT(0, 0, 0)
  830. local TRANSPARENCY = Table.Transparency or 0
  831. local ENDTRANSPARENCY = Table.Transparency2 or 1
  832. local CFRAME = Table.CFrame or Torso.CFrame
  833. local MOVEDIRECTION = Table.MoveToPos or nil
  834. local ROTATION1 = Table.RotationX or 0
  835. local ROTATION2 = Table.RotationY or 0
  836. local ROTATION3 = Table.RotationZ or 0
  837. local MATERIAL = Table.Material --or "Neon"
  838. local COLOR = Table.Color or C3(1, 1, 1)
  839. local TIME = Table.Time or 45
  840. local SOUNDID = Table.SoundID or nil
  841. local SOUNDPITCH = Table.SoundPitch or nil
  842. local SOUNDVOLUME = Table.SoundVolume or nil
  843. local USEBOOMERANGMATH = Table.UseBoomerangMath or false
  844. local BOOMERANG = Table.Boomerang or 0
  845. local SIZEBOOMERANG = Table.SizeBoomerang or 0
  846. coroutine.resume(coroutine.create(function()
  847. local PLAYSSOUND = false
  848. local SOUND
  849. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1, 1, 1), true)
  850. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  851. PLAYSSOUND = true
  852. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  853. end
  854. EFFECT.Color = COLOR
  855. local MSH
  856. if TYPE == "Sphere" then
  857. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0, 0, 0))
  858. elseif TYPE == "Block" or TYPE == "Box" then
  859. MSH = IT("BlockMesh", EFFECT)
  860. MSH.Scale = SIZE
  861. elseif TYPE == "Wave" then
  862. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8))
  863. elseif TYPE == "Ring" then
  864. --MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X, SIZE.X, 0.1), VT(0, 0, 0))
  865. elseif TYPE == "Slash" then
  866. --MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0))
  867. elseif TYPE == "Round Slash" then
  868. --MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0))
  869. elseif TYPE == "Swirl" then
  870. --MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "168892432", "", SIZE, VT(0, 0, 0))
  871. elseif TYPE == "Skull" then
  872. --MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0, 0, 0))
  873. elseif TYPE == "Star" then
  874. --MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "2760116123", "", SIZE, VT(0,0,0))
  875. elseif TYPE == "Crystal" then
  876. --MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "450656451", "", SIZE, VT(0, 0, 0))
  877. end
  878. coroutine.resume(coroutine.create(function()
  879. if MSH ~= nil then
  880. local BOOMR1 = 1 + BOOMERANG / 50
  881. local BOOMR2 = 1 + SIZEBOOMERANG / 50
  882. local MOVESPEED = nil
  883. if MOVEDIRECTION ~= nil then
  884. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  885. end
  886. local GROWTH
  887. if USEBOOMERANGMATH == true then
  888. GROWTH = (SIZE - ENDSIZE) * (BOOMR2 + 1)
  889. else
  890. GROWTH = SIZE - ENDSIZE
  891. end
  892. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  893. if TYPE == "Block" then
  894. EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
  895. else
  896. EFFECT.CFrame = CFRAME
  897. end
  898. if USEBOOMERANGMATH == true then
  899. for LOOP = 1, TIME + 1 do
  900. Swait()
  901. MSH.Scale = MSH.Scale - VT(GROWTH.X * (1 - LOOP / TIME * BOOMR2), GROWTH.Y * (1 - LOOP / TIME * BOOMR2), GROWTH.Z * (1 - LOOP / TIME * BOOMR2)) * BOOMR2 / TIME
  902. if TYPE == "Wave" then
  903. MSH.Offset = VT(0, 0, -MSH.Scale.Z / 8)
  904. end
  905. EFFECT.Transparency = EFFECT.Transparency - TRANS / TIME
  906. if TYPE == "Block" then
  907. EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
  908. else
  909. EFFECT.CFrame = EFFECT.CFrame * ANGLES(RAD(ROTATION1), RAD(ROTATION2), RAD(ROTATION3))
  910. end
  911. if MOVEDIRECTION ~= nil then
  912. local ORI = EFFECT.Orientation
  913. EFFECT.CFrame = CF(EFFECT.Position, MOVEDIRECTION) * CF(0, 0, -MOVESPEED * (1 - LOOP / TIME * BOOMR1))
  914. EFFECT.Orientation = ORI
  915. end
  916. end
  917. else
  918. for LOOP = 1, TIME + 1 do
  919. Swait()
  920. MSH.Scale = MSH.Scale - GROWTH / TIME
  921. if TYPE == "Wave" then
  922. MSH.Offset = VT(0, 0, -MSH.Scale.Z / 8)
  923. end
  924. EFFECT.Transparency = EFFECT.Transparency - TRANS / TIME
  925. if TYPE == "Block" then
  926. EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
  927. else
  928. EFFECT.CFrame = EFFECT.CFrame * ANGLES(RAD(ROTATION1), RAD(ROTATION2), RAD(ROTATION3))
  929. end
  930. if MOVEDIRECTION ~= nil then
  931. local ORI = EFFECT.Orientation
  932. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  933. EFFECT.Orientation = ORI
  934. end
  935. end
  936. end
  937. EFFECT.Transparency = 1
  938. if PLAYSSOUND == false then
  939. EFFECT:remove()
  940. else
  941. repeat
  942. Swait()
  943. until EFFECT:FindFirstChildOfClass("Sound") == nil
  944. EFFECT:remove()
  945. end
  946. elseif PLAYSSOUND == false then
  947. EFFECT:remove()
  948. else
  949. repeat
  950. Swait()
  951. until EFFECT:FindFirstChildOfClass("Sound") == nil
  952. EFFECT:remove()
  953. end
  954. end))
  955. return EFFECT
  956. end))
  957. end
  958. function Lightning(Part0, Part1, Times, Offset, Color, Timer, sSize, eSize, Trans, Boomer, sBoomer, slow, stime)
  959. local magz = (Part0 - Part1).magnitude
  960. local curpos = Part0
  961. local trz = {
  962. -Offset,
  963. Offset
  964. }
  965. for i = 1, Times do
  966. local li = Instance.new("Part", Effects)
  967. li.Name = "Lightning"
  968. li.TopSurface = 0
  969. li.Material = "Neon"
  970. li.BottomSurface = 0
  971. li.Anchored = true
  972. li.Locked = true
  973. li.Transparency = 0
  974. li.BrickColor = Color
  975. li.formFactor = "Custom"
  976. li.CanCollide = false
  977. li.Size = Vector3.new(0.1, 0.1, magz / Times)
  978. local Offzet = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  979. local trolpos = CFrame.new(curpos, Part1) * CFrame.new(0, 0, magz / Times).p + Offzet
  980. if Times == i then
  981. local magz2 = (curpos - Part1).magnitude
  982. li.Size = Vector3.new(0.1, 0.1, magz2)
  983. li.CFrame = CFrame.new(curpos, Part1) * CFrame.new(0, 0, -magz2 / 2)
  984. else
  985. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / Times / 2)
  986. end
  987. curpos = li.CFrame * CFrame.new(0, 0, magz / Times / 2).p
  988. li:Destroy()
  989. WACKYEFFECT({Time = Timer, EffectType = "Box", Size = Vector3.new(sSize,sSize,li.Size.Z), Size2 = Vector3.new(eSize,eSize,li.Size.Z), Transparency = Trans, Transparency2 = 1, CFrame = li.CFrame, MoveToPos = nil, RotationX = nil, RotationY = nil, RotationZ = nil, Material = "Neon", Color = li.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = Boomer, Boomerang = 0, SizeBoomerang = sBoomer})
  990. if slow == true then
  991. swait(stime)
  992. end
  993. end
  994. end
  995. function GetRoot(MODEL, ROOT)
  996. if ROOT == true then
  997. return MODEL:FindFirstChild("HumanoidRootPart") or MODEL:FindFirstChild("Torso") or MODEL:FindFirstChild("UpperTorso")
  998. else
  999. return MODEL:FindFirstChild("Torso") or MODEL:FindFirstChild("UpperTorso")
  1000. end
  1001. end
  1002. function MakeForm(PART, TYPE)
  1003. if TYPE == "Cyl" then
  1004. local MSH = IT("CylinderMesh", PART)
  1005. elseif TYPE == "Ball" then
  1006. local MSH = IT("SpecialMesh", PART)
  1007. MSH.MeshType = "Sphere"
  1008. elseif TYPE == "Wedge" then
  1009. local MSH = IT("SpecialMesh", PART)
  1010. MSH.MeshType = "Wedge"
  1011. end
  1012. end
  1013. Debris = game:GetService("Debris")
  1014. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  1015. local DIRECTION = CF(StartPos, EndPos).lookVector
  1016. local Ignore = type(Ignore) == "table" and Ignore or {Ignore}
  1017. return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, DIRECTION * Distance), Ignore)
  1018. end
  1019. function SpawnTrail(FROM,TO,BIG)
  1020. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Trail", VT(45,45,45))
  1021. MakeForm(TRAIL,"Cyl")
  1022. local DIST = (FROM - TO).Magnitude
  1023. if BIG == true then
  1024. TRAIL.Size = VT(2,DIST,5)
  1025. else
  1026. TRAIL.Size = VT(2,DIST,5)
  1027. end
  1028. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  1029. coroutine.resume(coroutine.create(function()
  1030. for i = 1, 55 do
  1031. Swait()
  1032. TRAIL.Transparency = TRAIL.Transparency + 0.03
  1033. end
  1034. TRAIL:remove()
  1035. end))
  1036. end
  1037.  
  1038. function Debree(Table)
  1039. local KindOf = Table.Variant or "Ring"
  1040. local Position = Table.Location or Torso.Position
  1041. local Coloration = Table.Color or C3(1, 1, 1)
  1042. local Texture = Table.Material or "Slate"
  1043. local Fling = Table.Scatter or 1
  1044. local Number = Table.Amount or 1
  1045. local Rocks = Table.DebreeCount or 1
  1046. local Range = Table.Distance or 1
  1047. local Scale = Table.Size or 1
  1048. local Timer = Table.Delay or 1.5
  1049. coroutine.resume(coroutine.create(function()
  1050. local ScaleVector = VT(Scale, Scale, Scale)
  1051. local Boulders = {}
  1052. Position = CF(Position)
  1053. if KindOf == "Ring" or KindOf == "Both" then
  1054. for RockValue = 1, Number do
  1055. local LOCATION = Position * ANGLES(RAD(0), RAD(360 / Number * RockValue), RAD(0)) * CF(0, MRANDOM(-math.ceil(Scale / 2), math.ceil(Scale / 2)), Range)
  1056. local BOULDER = CreatePart(3, workspace, Texture, 0, 0, BRICKC("Pearl"), "Debree", ScaleVector, true)
  1057. BOULDER.CanCollide = true
  1058. BOULDER.CFrame = LOCATION * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
  1059. BOULDER.Color = Coloration
  1060. table.insert(Boulders, BOULDER)
  1061. end
  1062. end
  1063. if KindOf == "Loose" or KindOf == "Both" then
  1064. for RockValue = 1, Rocks do
  1065. local LOCATION = Position * ANGLES(RAD(0), RAD(360 / Number * RockValue), RAD(0)) * CF(0, MRANDOM(-math.ceil(Scale - Scale / 2), math.ceil(Scale - Scale / 2)), 0.7)
  1066. local BOULDER = CreatePart(3, workspace, Texture, 0, 0, BRICKC("Pearl"), "Debree", ScaleVector, false)
  1067. BOULDER.CanCollide = true
  1068. BOULDER.CFrame = LOCATION * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
  1069. BOULDER.Velocity = CF(BOULDER.Position - VT(0, 4, 0), BOULDER.CFrame * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) * CF(0, 5, 0).p).lookVector * MRANDOM(Fling - Fling / 1.5, Fling + Fling / 1.5)
  1070. BOULDER.Color = Coloration
  1071. table.insert(Boulders, BOULDER)
  1072. end
  1073. end
  1074. if KindOf == "Random" then
  1075. for RockValue = 1, Number do
  1076. local LOCATION = Position * ANGLES(RAD(0), RAD(360 / Number * RockValue), RAD(0)) * CF(0, MRANDOM(-math.ceil(Scale / 2), math.ceil(Scale / 2)), MRANDOM(0, Range))
  1077. local BOULDER = CreatePart(3, workspace, Texture, 0, 0, BRICKC("Pearl"), "Debree", ScaleVector, true)
  1078. BOULDER.CanCollide = true
  1079. BOULDER.CFrame = LOCATION * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
  1080. BOULDER.Color = Coloration
  1081. table.insert(Boulders, BOULDER)
  1082. end
  1083. end
  1084. wait(Timer)
  1085. for E = 1, 45 do
  1086. Swait()
  1087. for A = 1, #Boulders do
  1088. Boulders[A].Transparency = Boulders[A].Transparency + 0.022222222222222223
  1089. end
  1090. end
  1091. for A = 1, #Boulders do
  1092. Boulders[A]:Destroy()
  1093. end
  1094. end))
  1095. end
  1096.  
  1097. function CameraShake(AREA,RANGE,SHAKE,TIMER)
  1098. for index, CHILD in pairs(workspace:GetChildren()) do
  1099. if CHILD:FindFirstChildOfClass("Humanoid") then
  1100. local HUMAN = CHILD:FindFirstChildOfClass("Humanoid")
  1101. local ROOT = HUMAN.Torso
  1102. if ROOT and game.Players:GetPlayerFromCharacter(CHILD) then
  1103. if (ROOT.Position - AREA).Magnitude <= RANGE then
  1104. if CHILD:FindFirstChild("CamShake") then
  1105. Debris:AddItem(CHILD:FindFirstChild("CamShake"),0)
  1106. end
  1107. local CAMSHAKE = script.CamShake:Clone()
  1108. CAMSHAKE.Parent = CHILD
  1109. local TIMER_V = IT("NumberValue",CAMSHAKE)
  1110. TIMER_V.Name = "Timer"
  1111. TIMER_V.Value = TIMER
  1112. local SHAKE_V = IT("NumberValue",CAMSHAKE)
  1113. SHAKE_V.Name = "Shake"
  1114. SHAKE_V.Value = 0
  1115. CAMSHAKE.Disabled = true
  1116. Debris:AddItem(CAMSHAKE,0)
  1117. end
  1118. end
  1119. end
  1120. end
  1121. end
  1122.  
  1123. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  1124. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  1125. end
  1126. function PositiveAngle(NUMBER)
  1127. if NUMBER >= 0 then
  1128. NUMBER = 0
  1129. end
  1130. return NUMBER
  1131. end
  1132. function NegativeAngle(NUMBER)
  1133. if NUMBER <= 0 then
  1134. NUMBER = 0
  1135. end
  1136. return NUMBER
  1137. end
  1138. function Swait(NUMBER)
  1139. if NUMBER == 0 or NUMBER == nil then
  1140. ArtificialHB.Event:wait()
  1141. else
  1142. for i = 1, NUMBER do
  1143. ArtificialHB.Event:wait()
  1144. end
  1145. end
  1146. end
  1147. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  1148. local NEWMESH = IT(MESH)
  1149. if MESH == "SpecialMesh" then
  1150. NEWMESH.MeshType = MESHTYPE
  1151. if MESHID ~= "nil" and MESHID ~= "" then
  1152. NEWMESH.MeshId = "http://www.roblox.com/asset/?id=" .. MESHID
  1153. end
  1154. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  1155. NEWMESH.TextureId = "http://www.roblox.com/asset/?id=" .. TEXTUREID
  1156. end
  1157. end
  1158. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  1159. NEWMESH.Scale = SCALE
  1160. NEWMESH.Parent = PARENT
  1161. return NEWMESH
  1162. end
  1163. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  1164. local NEWPART = IT("Part")
  1165. NEWPART.formFactor = FORMFACTOR
  1166. NEWPART.Reflectance = REFLECTANCE
  1167. NEWPART.Transparency = TRANSPARENCY
  1168. NEWPART.CanCollide = false
  1169. NEWPART.Locked = true
  1170. NEWPART.Anchored = true
  1171. if ANCHOR == false then
  1172. NEWPART.Anchored = false
  1173. end
  1174. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  1175. NEWPART.Name = NAME
  1176. NEWPART.Size = SIZE
  1177. NEWPART.Position = Torso.Position
  1178. NEWPART.Material = MATERIAL
  1179. NEWPART:BreakJoints()
  1180. NEWPART.Parent = PARENT
  1181. return NEWPART
  1182. end
  1183. local weldBetween = function(a, b)
  1184. local weldd = Instance.new("ManualWeld")
  1185. weldd.Part0 = a
  1186. weldd.Part1 = b
  1187. weldd.C0 = CFrame.new()
  1188. weldd.C1 = b.CFrame:inverse() * a.CFrame
  1189. weldd.Parent = a
  1190. return weldd
  1191. end
  1192. function weldSomethings(a, b, acf)
  1193. local we = Instance.new("Weld", a)
  1194. we.Part0 = a
  1195. we.Part1 = b
  1196. if acf ~= nil then
  1197. we.C0 = acf
  1198. end
  1199. end
  1200. function QuaternionFromCFrame(cf)
  1201. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1202. local trace = m00 + m11 + m22
  1203. if trace > 0 then
  1204. local s = math.sqrt(1 + trace)
  1205. local recip = 0.5 / s
  1206. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1207. else
  1208. local i = 0
  1209. if m00 < m11 then
  1210. i = 1
  1211. end
  1212. if m22 > (i == 0 and m00 or m11) then
  1213. i = 2
  1214. end
  1215. if i == 0 then
  1216. local s = math.sqrt(m00 - m11 - m22 + 1)
  1217. local recip = 0.5 / s
  1218. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1219. elseif i == 1 then
  1220. local s = math.sqrt(m11 - m22 - m00 + 1)
  1221. local recip = 0.5 / s
  1222. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1223. elseif i == 2 then
  1224. local s = math.sqrt(m22 - m00 - m11 + 1)
  1225. local recip = 0.5 / s
  1226. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1227. end
  1228. end
  1229. end
  1230. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1231. local xs, ys, zs = x + x, y + y, z + z
  1232. local wx, wy, wz = w * xs, w * ys, w * zs
  1233. local xx = x * xs
  1234. local xy = x * ys
  1235. local xz = x * zs
  1236. local yy = y * ys
  1237. local yz = y * zs
  1238. local zz = z * zs
  1239. 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))
  1240. end
  1241. function QuaternionSlerp(a, b, t)
  1242. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1243. local startInterp, finishInterp
  1244. if cosTheta >= 1.0E-4 then
  1245. if 1 - cosTheta > 1.0E-4 then
  1246. local theta = ACOS(cosTheta)
  1247. local invSinTheta = 1 / SIN(theta)
  1248. startInterp = SIN((1 - t) * theta) * invSinTheta
  1249. finishInterp = SIN(t * theta) * invSinTheta
  1250. else
  1251. startInterp = 1 - t
  1252. finishInterp = t
  1253. end
  1254. elseif 1 + cosTheta > 1.0E-4 then
  1255. local theta = ACOS(-cosTheta)
  1256. local invSinTheta = 1 / SIN(theta)
  1257. startInterp = SIN((t - 1) * theta) * invSinTheta
  1258. finishInterp = SIN(t * theta) * invSinTheta
  1259. else
  1260. startInterp = t - 1
  1261. finishInterp = t
  1262. end
  1263. 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
  1264. end
  1265. function Clerp(a, b, t)
  1266. local qa = {
  1267. QuaternionFromCFrame(a)
  1268. }
  1269. local qb = {
  1270. QuaternionFromCFrame(b)
  1271. }
  1272. local ax, ay, az = a.x, a.y, a.z
  1273. local bx, by, bz = b.x, b.y, b.z
  1274. local _t = 1 - t
  1275. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1276. end
  1277. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  1278. local frame = IT("Frame")
  1279. frame.BackgroundTransparency = TRANSPARENCY
  1280. frame.BorderSizePixel = BORDERSIZEPIXEL
  1281. frame.Position = POSITION
  1282. frame.Size = SIZE
  1283. frame.BackgroundColor3 = COLOR
  1284. frame.BorderColor3 = BORDERCOLOR
  1285. frame.Name = NAME
  1286. frame.Parent = PARENT
  1287. return frame
  1288. end
  1289. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  1290. local label = IT("TextLabel")
  1291. label.BackgroundTransparency = 1
  1292. label.Size = UD2(1, 0, 1, 0)
  1293. label.Position = UD2(0, 0, 0, 0)
  1294. label.TextColor3 = TEXTCOLOR
  1295. label.TextStrokeTransparency = STROKETRANSPARENCY
  1296. label.TextTransparency = TRANSPARENCY
  1297. label.FontSize = TEXTFONTSIZE
  1298. label.Font = TEXTFONT
  1299. label.BorderSizePixel = BORDERSIZEPIXEL
  1300. label.TextScaled = false
  1301. label.Text = TEXT
  1302. label.Name = NAME
  1303. label.Parent = PARENT
  1304. return label
  1305. end
  1306. function NoOutlines(PART)
  1307. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  1308. end
  1309. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  1310. local NEWWELD = IT(TYPE)
  1311. NEWWELD.Part0 = PART0
  1312. NEWWELD.Part1 = PART1
  1313. NEWWELD.C0 = C0
  1314. NEWWELD.C1 = C1
  1315. NEWWELD.Parent = PARENT
  1316. return NEWWELD
  1317. end
  1318. local S = IT("Sound")
  1319. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  1320. local NEWSOUND
  1321. coroutine.resume(coroutine.create(function()
  1322. NEWSOUND = S:Clone()
  1323. NEWSOUND.Parent = PARENT
  1324. NEWSOUND.Volume = VOLUME
  1325. NEWSOUND.Pitch = PITCH
  1326. NEWSOUND.EmitterSize = VOLUME * 3
  1327. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID
  1328. NEWSOUND:play()
  1329. if DOESLOOP == true then
  1330. NEWSOUND.Looped = true
  1331. else
  1332. repeat
  1333. wait(1)
  1334. until NEWSOUND.Playing == false
  1335. NEWSOUND:remove()
  1336. end
  1337. end))
  1338. return NEWSOUND
  1339. end
  1340. function NewSound(TABLE)
  1341. local ID = "rbxassetid://"..(TABLE.ID or 0)
  1342. local PARENT = (TABLE.PARENT or ROOT)
  1343. local VOLUME = (TABLE.VOLUME or 0.5)
  1344. local PITCH = (TABLE.PITCH or 1)
  1345. local LOOP = (TABLE.LOOP or false)
  1346. local MAXDISTANCE = (TABLE.MAXDISTANCE or 100)
  1347. local EMITTERSIZE = (TABLE.EMITTERSIZE or 10)
  1348. local PLAYING = (TABLE.PLAYING or true)
  1349. local PLAYONREMOVE = (TABLE.PLAYONREMOVE or false)
  1350. local DOESDEBRIS = (TABLE.DOESDEBRIS or true)
  1351. if ID ~= "rbxassetid://0" then
  1352. local SOUND = IT("Sound",PARENT)
  1353. SOUND.SoundId = ID
  1354. SOUND.Volume = VOLUME
  1355. SOUND.Pitch = PITCH
  1356. SOUND.Looped = LOOP
  1357. SOUND.MaxDistance = MAXDISTANCE
  1358. SOUND.EmitterSize = EMITTERSIZE
  1359. SOUND.PlayOnRemove = PLAYONREMOVE
  1360. if DOESDEBRIS == true and PLAYING == true and LOOP == false then
  1361. Debris:AddItem(SOUND,SOUND.TimeLength+5)
  1362. end
  1363. if PLAYING == true then
  1364. SOUND:Play()
  1365. end
  1366. return SOUND
  1367. end
  1368. end
  1369. function CFrameFromTopBack(at, top, back)
  1370. local right = top:Cross(back)
  1371. 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)
  1372. end
  1373. function MagicRing()
  1374. local O1 = CreatePart(3, Effects, "Neon", 0, 1, "Really black", "Warphole", VT(0, 0, 0))
  1375. O1.CFrame = RootPart.CFrame * CF(0, 0, -3) * ANGLES(RAD(90), RAD(0), RAD(0))
  1376. local decal = Decal:Clone()
  1377. decal.Parent = O1
  1378. decal.Face = "Top"
  1379. decal.Texture = "http://www.roblox.com/asset/?id=0"
  1380. local decal2 = Decal:Clone()
  1381. decal2.Parent = O1
  1382. decal2.Face = "Bottom"
  1383. decal2.Texture = "http://www.roblox.com/asset/?id=0"
  1384. return O1
  1385. end
  1386. function MagicRing2(PART,CFRAME)
  1387. local RING = CreatePart(3, Effects, "Neon", 0, 1, "Royal purple", "MagicRing", VT(0,0,0),false)
  1388. local WELD = CreateWeldOrSnapOrMotor("Weld", PART, PART, RING, CFRAME, CF(0, 0, 0))
  1389. local MESH = IT("BlockMesh",RING)
  1390. local BOTTOMTEXTURE = Decal:Clone()
  1391. BOTTOMTEXTURE.Parent = RING
  1392. BOTTOMTEXTURE.Face = "Bottom"
  1393. BOTTOMTEXTURE.Name = "BottomTexture"
  1394. local TOPTEXTURE = Decal:Clone()
  1395. TOPTEXTURE.Parent = RING
  1396. TOPTEXTURE.Face = "Top"
  1397. TOPTEXTURE.Name = "TopTexture"
  1398. local LIGHT = IT("PointLight",RING)
  1399. BOTTOMTEXTURE.Texture = "http://www.roblox.com/asset/?id=2829906887"
  1400. TOPTEXTURE.Texture = "http://www.roblox.com/asset/?id=2829906887"
  1401. return RING,WELD,MESH
  1402. end
  1403. local DECAL = IT("Decal")
  1404. function MagicRing3()
  1405. local RING = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Pearl"), "MagicRing", VT(0, 0, 0), true)
  1406. local MSH = IT("BlockMesh", RING)
  1407. local TOP = DECAL:Clone()
  1408. local BOTTOM = DECAL:Clone()
  1409. TOP.Parent = RING
  1410. BOTTOM.Parent = RING
  1411. TOP.Face = "Top"
  1412. BOTTOM.Face = "Bottom"
  1413. TOP.Texture = "http://www.roblox.com/asset/?id=0"
  1414. BOTTOM.Texture = "http://www.roblox.com/asset/?id=0"
  1415. local function REMOVE()
  1416. coroutine.resume(coroutine.create(function()
  1417. local SIZE = MSH.Scale.X
  1418. for i = 1, 35 do
  1419. Swait()
  1420. MSH.Scale = MSH.Scale - VT(SIZE, 0, SIZE) / 60
  1421. TOP.Transparency = TOP.Transparency + 0.02857142857142857
  1422. BOTTOM.Transparency = BOTTOM.Transparency + 0.02857142857142857
  1423. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(-5), RAD(0))
  1424. end
  1425. RING:remove()
  1426. end))
  1427. end
  1428. return RING, MSH, REMOVE
  1429. end
  1430. function CreateWave(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
  1431. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  1432. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8))
  1433. wave.CFrame = CFRAME
  1434. coroutine.resume(coroutine.create(function(PART)
  1435. for i = 1, WAIT do
  1436. Swait()
  1437. mesh.Scale = mesh.Scale + GROW
  1438. mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
  1439. if DOESROT == true then
  1440. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  1441. end
  1442. wave.Transparency = wave.Transparency + 0.5 / WAIT
  1443. if wave.Transparency > 0.99 then
  1444. wave:remove()
  1445. end
  1446. end
  1447. end))
  1448. end
  1449. function SpecialSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  1450. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Eye", VT(1,1,1), true)
  1451. wave.Color = COLOR
  1452. local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0,0,0))
  1453. wave.CFrame = CFRAME
  1454. coroutine.resume(coroutine.create(function(PART)
  1455. for i = 1, WAIT do
  1456. Swait()
  1457. mesh.Scale = mesh.Scale + GROW
  1458. wave.Transparency = wave.Transparency + (1/WAIT)
  1459. if wave.Transparency > 0.99 then
  1460. wave:remove()
  1461. end
  1462. end
  1463. end))
  1464. end
  1465. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  1466. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  1467. local mesh = IT("SpecialMesh",wave)
  1468. mesh.MeshType = "Sphere"
  1469. mesh.Scale = SIZE
  1470. mesh.Offset = VT(0,0,0)
  1471. wave.CFrame = CFRAME
  1472. coroutine.resume(coroutine.create(function(PART)
  1473. for i = 1, WAIT do
  1474. Swait()
  1475. mesh.Scale = mesh.Scale + GROW
  1476. wave.Transparency = wave.Transparency + (1/WAIT)
  1477. if wave.Transparency > 0.99 then
  1478. wave:remove()
  1479. end
  1480. end
  1481. end))
  1482. end
  1483. function WACKYEFFECT(Table)
  1484. local TYPE = Table.EffectType or "Sphere"
  1485. local SIZE = Table.Size or VT(1, 1, 1)
  1486. local ENDSIZE = Table.Size2 or VT(0, 0, 0)
  1487. local TRANSPARENCY = Table.Transparency or 0
  1488. local ENDTRANSPARENCY = Table.Transparency2 or 1
  1489. local CFRAME = Table.CFrame or Torso.CFrame
  1490. local MOVEDIRECTION = Table.MoveToPos or nil
  1491. local ROTATION1 = Table.RotationX or 0
  1492. local ROTATION2 = Table.RotationY or 0
  1493. local ROTATION3 = Table.RotationZ or 0
  1494. local MATERIAL = Table.Material --or "Neon"
  1495. local COLOR = Table.Color or C3(1, 1, 1)
  1496. local TIME = Table.Time or 45
  1497. local SOUNDID = Table.SoundID or nil
  1498. local SOUNDPITCH = Table.SoundPitch or nil
  1499. local SOUNDVOLUME = Table.SoundVolume or nil
  1500. local USEBOOMERANGMATH = Table.UseBoomerangMath or false
  1501. local BOOMERANG = Table.Boomerang or 0
  1502. local SIZEBOOMERANG = Table.SizeBoomerang or 0
  1503. coroutine.resume(coroutine.create(function()
  1504. local PLAYSSOUND = false
  1505. local SOUND
  1506. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1, 1, 1), true)
  1507. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  1508. PLAYSSOUND = true
  1509. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  1510. end
  1511. EFFECT.Color = COLOR
  1512. local MSH
  1513. if TYPE == "Sphere" then
  1514. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0, 0, 0))
  1515. elseif TYPE == "Block" or TYPE == "Box" then
  1516. MSH = IT("BlockMesh", EFFECT)
  1517. MSH.Scale = SIZE
  1518. elseif TYPE == "Wave" then
  1519. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8))
  1520. elseif TYPE == "Ring" then
  1521. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X, SIZE.X, 0.1), VT(0, 0, 0))
  1522. elseif TYPE == "Slash" then
  1523. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0))
  1524. elseif TYPE == "Round Slash" then
  1525. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0))
  1526. elseif TYPE == "Swirl" then
  1527. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "168892432", "", SIZE, VT(0, 0, 0))
  1528. elseif TYPE == "Skull" then
  1529. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0, 0, 0))
  1530. elseif TYPE == "Star" then
  1531. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "2760116123", "", SIZE, VT(0,0,0))
  1532. elseif TYPE == "Crystal" then
  1533. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "450656451", "", SIZE, VT(0, 0, 0))
  1534. end
  1535. coroutine.resume(coroutine.create(function()
  1536. if MSH ~= nil then
  1537. local BOOMR1 = 1 + BOOMERANG / 50
  1538. local BOOMR2 = 1 + SIZEBOOMERANG / 50
  1539. local MOVESPEED = nil
  1540. if MOVEDIRECTION ~= nil then
  1541. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  1542. end
  1543. local GROWTH
  1544. if USEBOOMERANGMATH == true then
  1545. GROWTH = (SIZE - ENDSIZE) * (BOOMR2 + 1)
  1546. else
  1547. GROWTH = SIZE - ENDSIZE
  1548. end
  1549. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  1550. if TYPE == "Block" then
  1551. EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
  1552. else
  1553. EFFECT.CFrame = CFRAME
  1554. end
  1555. if USEBOOMERANGMATH == true then
  1556. for LOOP = 1, TIME + 1 do
  1557. Swait()
  1558. MSH.Scale = MSH.Scale - VT(GROWTH.X * (1 - LOOP / TIME * BOOMR2), GROWTH.Y * (1 - LOOP / TIME * BOOMR2), GROWTH.Z * (1 - LOOP / TIME * BOOMR2)) * BOOMR2 / TIME
  1559. if TYPE == "Wave" then
  1560. MSH.Offset = VT(0, 0, -MSH.Scale.Z / 8)
  1561. end
  1562. EFFECT.Transparency = EFFECT.Transparency - TRANS / TIME
  1563. if TYPE == "Block" then
  1564. EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
  1565. else
  1566. EFFECT.CFrame = EFFECT.CFrame * ANGLES(RAD(ROTATION1), RAD(ROTATION2), RAD(ROTATION3))
  1567. end
  1568. if MOVEDIRECTION ~= nil then
  1569. local ORI = EFFECT.Orientation
  1570. EFFECT.CFrame = CF(EFFECT.Position, MOVEDIRECTION) * CF(0, 0, -MOVESPEED * (1 - LOOP / TIME * BOOMR1))
  1571. EFFECT.Orientation = ORI
  1572. end
  1573. end
  1574. else
  1575. for LOOP = 1, TIME + 1 do
  1576. Swait()
  1577. MSH.Scale = MSH.Scale - GROWTH / TIME
  1578. if TYPE == "Wave" then
  1579. MSH.Offset = VT(0, 0, -MSH.Scale.Z / 8)
  1580. end
  1581. EFFECT.Transparency = EFFECT.Transparency - TRANS / TIME
  1582. if TYPE == "Block" then
  1583. EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
  1584. else
  1585. EFFECT.CFrame = EFFECT.CFrame * ANGLES(RAD(ROTATION1), RAD(ROTATION2), RAD(ROTATION3))
  1586. end
  1587. if MOVEDIRECTION ~= nil then
  1588. local ORI = EFFECT.Orientation
  1589. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  1590. EFFECT.Orientation = ORI
  1591. end
  1592. end
  1593. end
  1594. EFFECT.Transparency = 1
  1595. if PLAYSSOUND == false then
  1596. EFFECT:remove()
  1597. else
  1598. repeat
  1599. Swait()
  1600. until EFFECT:FindFirstChildOfClass("Sound") == nil
  1601. EFFECT:remove()
  1602. end
  1603. elseif PLAYSSOUND == false then
  1604. EFFECT:remove()
  1605. else
  1606. repeat
  1607. Swait()
  1608. until EFFECT:FindFirstChildOfClass("Sound") == nil
  1609. EFFECT:remove()
  1610. end
  1611. end))
  1612. return EFFECT
  1613. end))
  1614. end
  1615. VeryVeryVeryUselessPartlmao:Clone()
  1616. function GetRoot(MODEL, ROOT)
  1617. if ROOT == true then
  1618. return MODEL:FindFirstChild("HumanoidRootPart") or MODEL:FindFirstChild("Torso") or MODEL:FindFirstChild("UpperTorso")
  1619. else
  1620. return MODEL:FindFirstChild("Torso") or MODEL:FindFirstChild("UpperTorso")
  1621. end
  1622. end
  1623. function MakeForm(PART, TYPE)
  1624. if TYPE == "Cyl" then
  1625. local MSH = IT("CylinderMesh", PART)
  1626. elseif TYPE == "Ball" then
  1627. local MSH = IT("SpecialMesh", PART)
  1628. MSH.MeshType = "Sphere"
  1629. elseif TYPE == "Wedge" then
  1630. local MSH = IT("SpecialMesh", PART)
  1631. MSH.MeshType = "Wedge"
  1632. end
  1633. end
  1634. game:GetService("StarterGui"):SetCore("SendNotification", {
  1635. Title = "Converted by Epic";
  1636. Text = "I lost my soul :sob:";
  1637. Icon = "rbxthumb://type=Asset&id=1030775394&w=150&h=150"})
  1638. Duration = 16
  1639. Debris = game:GetService("Debris")
  1640. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  1641. local DIRECTION = CF(StartPos, EndPos).lookVector
  1642. local Ignore = type(Ignore) == "table" and Ignore or {Ignore}
  1643. return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, DIRECTION * Distance), Ignore)
  1644. end
  1645. function SpawnTrail(FROM,TO,BIG)
  1646. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Trail", VT(45,45,45))
  1647. MakeForm(TRAIL,"Cyl")
  1648. local DIST = (FROM - TO).Magnitude
  1649. if BIG == true then
  1650. TRAIL.Size = VT(2,DIST,5)
  1651. else
  1652. TRAIL.Size = VT(2,DIST,5)
  1653. end
  1654. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  1655. coroutine.resume(coroutine.create(function()
  1656. for i = 1, 55 do
  1657. Swait()
  1658. TRAIL.Transparency = TRAIL.Transparency + 0.03
  1659. end
  1660. TRAIL:remove()
  1661. end))
  1662. end
  1663.  
  1664. function Debree(Table)
  1665. local KindOf = Table.Variant or "Ring"
  1666. local Position = Table.Location or Torso.Position
  1667. local Coloration = Table.Color or C3(1, 1, 1)
  1668. local Texture = Table.Material or "Slate"
  1669. local Fling = Table.Scatter or 1
  1670. local Number = Table.Amount or 1
  1671. local Rocks = Table.DebreeCount or 1
  1672. local Range = Table.Distance or 1
  1673. local Scale = Table.Size or 1
  1674. local Timer = Table.Delay or 1.5
  1675. coroutine.resume(coroutine.create(function()
  1676. local ScaleVector = VT(Scale, Scale, Scale)
  1677. local Boulders = {}
  1678. Position = CF(Position)
  1679. if KindOf == "Ring" or KindOf == "Both" then
  1680. for RockValue = 1, Number do
  1681. local LOCATION = Position * ANGLES(RAD(0), RAD(360 / Number * RockValue), RAD(0)) * CF(0, MRANDOM(-math.ceil(Scale / 2), math.ceil(Scale / 2)), Range)
  1682. local BOULDER = CreatePart(3, workspace, Texture, 0, 0, BRICKC("Pearl"), "Debree", ScaleVector, true)
  1683. BOULDER.CanCollide = true
  1684. BOULDER.CFrame = LOCATION * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
  1685. BOULDER.Color = Coloration
  1686. table.insert(Boulders, BOULDER)
  1687. end
  1688. end
  1689. if KindOf == "Loose" or KindOf == "Both" then
  1690. for RockValue = 1, Rocks do
  1691. local LOCATION = Position * ANGLES(RAD(0), RAD(360 / Number * RockValue), RAD(0)) * CF(0, MRANDOM(-math.ceil(Scale - Scale / 2), math.ceil(Scale - Scale / 2)), 0.7)
  1692. local BOULDER = CreatePart(3, workspace, Texture, 0, 0, BRICKC("Pearl"), "Debree", ScaleVector, false)
  1693. BOULDER.CanCollide = true
  1694. BOULDER.CFrame = LOCATION * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
  1695. BOULDER.Velocity = CF(BOULDER.Position - VT(0, 4, 0), BOULDER.CFrame * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) * CF(0, 5, 0).p).lookVector * MRANDOM(Fling - Fling / 1.5, Fling + Fling / 1.5)
  1696. BOULDER.Color = Coloration
  1697. table.insert(Boulders, BOULDER)
  1698. end
  1699. end
  1700. if KindOf == "Random" then
  1701. for RockValue = 1, Number do
  1702. local LOCATION = Position * ANGLES(RAD(0), RAD(360 / Number * RockValue), RAD(0)) * CF(0, MRANDOM(-math.ceil(Scale / 2), math.ceil(Scale / 2)), MRANDOM(0, Range))
  1703. local BOULDER = CreatePart(3, workspace, Texture, 0, 0, BRICKC("Pearl"), "Debree", ScaleVector, true)
  1704. BOULDER.CanCollide = true
  1705. BOULDER.CFrame = LOCATION * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
  1706. BOULDER.Color = Coloration
  1707. table.insert(Boulders, BOULDER)
  1708. end
  1709. end
  1710. wait(Timer)
  1711. for E = 1, 45 do
  1712. Swait()
  1713. for A = 1, #Boulders do
  1714. Boulders[A].Transparency = Boulders[A].Transparency + 0.022222222222222223
  1715. end
  1716. end
  1717. for A = 1, #Boulders do
  1718. Boulders[A]:Destroy()
  1719. end
  1720. end))
  1721. end
  1722.  
  1723.  
  1724. function CameraShake(AREA,RANGE,SHAKE,TIMER)
  1725. for index, CHILD in pairs(workspace:GetChildren()) do
  1726. if CHILD:FindFirstChildOfClass("Humanoid") then
  1727. local HUMAN = CHILD:FindFirstChildOfClass("Humanoid")
  1728. local ROOT = HUMAN.Torso
  1729. if ROOT and game.Players:GetPlayerFromCharacter(CHILD) then
  1730. if (ROOT.Position - AREA).Magnitude <= RANGE then
  1731. if CHILD:FindFirstChild("CamShake") then
  1732. Debris:AddItem(CHILD:FindFirstChild("CamShake"),0)
  1733. end
  1734. local CAMSHAKE = script.CamShake:Clone()
  1735. CAMSHAKE.Parent = CHILD
  1736. local TIMER_V = IT("NumberValue",CAMSHAKE)
  1737. TIMER_V.Name = "Timer"
  1738. TIMER_V.Value = TIMER
  1739. local SHAKE_V = IT("NumberValue",CAMSHAKE)
  1740. SHAKE_V.Name = "Shake"
  1741. SHAKE_V.Value = SHAKE
  1742. CAMSHAKE.Disabled = true
  1743. Debris:AddItem(CAMSHAKE,0)
  1744. end
  1745. end
  1746. end
  1747. end
  1748. end
  1749.  
  1750. function AdvancedChatfunc(Text, Timer, Delay, ChatterSound)
  1751. local chat = coroutine.wrap(function()
  1752. if Character:FindFirstChild("SpeechBoard") ~= nil then
  1753. Character:FindFirstChild("SpeechBoard"):destroy()
  1754. end
  1755. local naeeym2 = IT("BillboardGui", Character)
  1756. naeeym2.Size = UD2(80, 35, 3, 15)
  1757. naeeym2.StudsOffset = VT(0, 5, 0)
  1758. naeeym2.Adornee = Head
  1759. naeeym2.Name = "SpeechBoard"
  1760. naeeym2.AlwaysOnTop = true
  1761. local tecks2 = IT("TextLabel", naeeym2)
  1762. tecks2.BackgroundTransparency = 1
  1763. tecks2.BorderSizePixel = 0
  1764. tecks2.Text = ""
  1765. tecks2.Font = FONTS[MRANDOM(1,#FONTS)]
  1766. tecks2.TextSize = 35
  1767. tecks2.TextStrokeTransparency = 0.3
  1768. tecks2.TextColor3 = C3(0,0,0)
  1769. tecks2.TextStrokeColor3 = C3(0,0,0)
  1770. tecks2.Size = UDim2.new(1, 0, 0.5, 0)
  1771. local FINISHED = false
  1772. local DONE = false
  1773. coroutine.wrap(function()
  1774. while wait() do
  1775. tecks2.Font = FONTS[MRANDOM(1,#FONTS)]
  1776. tecks2.TextColor3 = C3(0,0,0)
  1777. tecks2.TextStrokeColor3 = C3(0,0,0)
  1778. if DONE == true then
  1779. break
  1780. end
  1781. end
  1782. end)()
  1783. coroutine.resume(coroutine.create(function()
  1784. for i = 1, string.len(Text) do
  1785. if naeeym2.Parent ~= Character then
  1786. FINISHED = true
  1787. end
  1788. if ChatterSound ~= false and naeeym2.Parent == Character then
  1789. CreateSound(265970978, Head, 3.5, MRANDOM(-6,12)/4, false)
  1790. end
  1791. tecks2.Text = string.sub(Text, 1, i)
  1792. Swait(Timer)
  1793. end
  1794. FINISHED = true
  1795. end))
  1796. repeat
  1797. wait()
  1798. until FINISHED == true
  1799. wait(Delay)
  1800. naeeym2.Name = "FadingDialogue"
  1801. if Character:FindFirstChild("SpeechBoard") == nil then
  1802. coroutine.resume(coroutine.create(function()
  1803. for i = 1, 35 do
  1804. Swait()
  1805. end
  1806. end))
  1807. end
  1808. for i = 1, 45 do
  1809. Swait()
  1810. naeeym2.StudsOffset = naeeym2.StudsOffset + VT(0, (2 - 0.044444444444444446 * i) / 45, 0)
  1811. tecks2.TextTransparency = tecks2.TextTransparency + 0.022222222222222223
  1812. tecks2.TextStrokeTransparency = tecks2.TextTransparency
  1813. end
  1814. naeeym2:Destroy()
  1815. DONE = true
  1816. end)
  1817. chat()
  1818. end
  1819.  
  1820. function CheckTableForString(Table, String)
  1821. for i, v in pairs(Table) do
  1822. if string.find(string.lower(String), string.lower(v)) then
  1823. return true
  1824. end
  1825. end
  1826. return false
  1827. end
  1828.  
  1829. function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH)
  1830. if FLOOR ~= nil then
  1831. for i = 1, AMOUNT do
  1832. local DEBREE = CreatePart(3, Effects, "Neon", 0, 0, "Peal", "Debree", BLOCKSIZE, false)
  1833. DEBREE.Material = FLOOR.Material
  1834. DEBREE.Color = FLOOR.Color
  1835. DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  1836. DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),STRENGTH,MRANDOM(-STRENGTH,STRENGTH))
  1837. coroutine.resume(coroutine.create(function()
  1838. Swait(15)
  1839. DEBREE.Parent = workspace
  1840. DEBREE.CanCollide = true
  1841. Debris:AddItem(DEBREE,SWAIT)
  1842. end))
  1843. end
  1844. end
  1845. end
  1846.  
  1847. function AdvancedChatfunc(Text, Timer, Delay, ChatterSound)
  1848. local chat = coroutine.wrap(function()
  1849. if Character:FindFirstChild("SpeechBoard") ~= nil then
  1850. Character:FindFirstChild("SpeechBoard"):destroy()
  1851. end
  1852. local naeeym2 = IT("BillboardGui", Character)
  1853. naeeym2.Size = UD2(80, 35, 3, 15)
  1854. naeeym2.StudsOffset = VT(0, 5, 0)
  1855. naeeym2.Adornee = Head
  1856. naeeym2.Name = "SpeechBoard"
  1857. naeeym2.AlwaysOnTop = true
  1858. local tecks2 = IT("TextLabel", naeeym2)
  1859. tecks2.BackgroundTransparency = 1
  1860. tecks2.BorderSizePixel = 0
  1861. tecks2.Text = ""
  1862. tecks2.Font = FONTS[MRANDOM(1,#FONTS)]
  1863. tecks2.TextSize = 35
  1864. tecks2.TextStrokeTransparency = 0.3
  1865. tecks2.TextColor3 = C3(0,0,0)
  1866. tecks2.TextStrokeColor3 = C3(0,0,0)
  1867. tecks2.Size = UDim2.new(1, 0, 0.5, 0)
  1868. local FINISHED = false
  1869. local DONE = false
  1870. coroutine.wrap(function()
  1871. while wait() do
  1872. tecks2.Font = FONTS[MRANDOM(1,#FONTS)]
  1873. tecks2.TextColor3 = C3(0,0,0)
  1874. tecks2.TextStrokeColor3 = C3(0,0,0)
  1875. if DONE == true then
  1876. break
  1877. end
  1878. end
  1879. end)()
  1880. coroutine.resume(coroutine.create(function()
  1881. for i = 1, string.len(Text) do
  1882. if naeeym2.Parent ~= Character then
  1883. FINISHED = true
  1884. end
  1885. if ChatterSound ~= false and naeeym2.Parent == Character then
  1886. CreateSound(265970978, Head, 3.5, MRANDOM(-6,12)/4, false)
  1887. end
  1888. tecks2.Text = string.sub(Text, 1, i)
  1889. Swait(Timer)
  1890. end
  1891. FINISHED = true
  1892. end))
  1893. repeat
  1894. wait()
  1895. until FINISHED == true
  1896. wait(Delay)
  1897. naeeym2.Name = "FadingDialogue"
  1898. if Character:FindFirstChild("SpeechBoard") == nil then
  1899. coroutine.resume(coroutine.create(function()
  1900. for i = 1, 35 do
  1901. Swait()
  1902. end
  1903. end))
  1904. end
  1905. for i = 1, 45 do
  1906. Swait()
  1907. naeeym2.StudsOffset = naeeym2.StudsOffset + VT(0, (2 - 0.044444444444444446 * i) / 45, 0)
  1908. tecks2.TextTransparency = tecks2.TextTransparency + 0.022222222222222223
  1909. tecks2.TextStrokeTransparency = tecks2.TextTransparency
  1910. end
  1911. naeeym2:Destroy()
  1912. DONE = true
  1913. end)
  1914. chat()
  1915. end
  1916. AdvancedChatfunc('Converted by Epic', 4.35, 0, true)
  1917. Player.Chatted:Connect(function(MSG)
  1918. AdvancedChatfunc(MSG, 4.35, 0, true)
  1919. end)
  1920. local LASTPART = Head
  1921. for i = 1, 20 do
  1922. local MATH = (1-(i/25))
  1923. if LASTPART == Head then
  1924. local Horn = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  1925. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(15), RAD(-15)), CF(0, 0, 0))
  1926. LASTPART = Horn
  1927. else
  1928. local Horn = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  1929. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(-0.3), RAD(0)), CF(0, 0, 0))
  1930. LASTPART = Horn
  1931. end
  1932. end
  1933. local HALO = Instance.new("MeshPart")
  1934. HALO.MeshId = "rbxassetid://559831844"
  1935. HALO.Color = Color3.fromRGB(17,17,17)
  1936. HALO.Parent = Character
  1937. local HALOWELD = CreateWeldOrSnapOrMotor("Weld", Head, Head, HALO, CF(0, 0, 0) * ANGLES(RAD(120), RAD(0), RAD(0)), CF(0, 0, 1))
  1938. local LASTPART = Head
  1939. for i = 1, 20 do
  1940. local MATH = (1-(i/25))
  1941. if LASTPART == Head then
  1942. local Horn = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  1943. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(-15), RAD(15)), CF(0, 0, 0))
  1944. LASTPART = Horn
  1945. else
  1946. local Horn = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  1947. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(0.3), RAD(0)), CF(0, 0, 0))
  1948. LASTPART = Horn
  1949. end
  1950. end
  1951. function CheckIntangible(Hit)
  1952. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  1953. if Hit and Hit.Parent then
  1954. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  1955. return true
  1956. end
  1957. end
  1958. return false
  1959. end
  1960.  
  1961. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  1962. local Direction = CFrame.new(StartPos, Vec).lookVector
  1963. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  1964. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  1965. if RayHit and CheckIntangible(RayHit) then
  1966. if DelayIfHit then
  1967. wait()
  1968. end
  1969. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  1970. end
  1971. return RayHit, RayPos, RayNormal
  1972. end
  1973.  
  1974. function MagicSphere2(size,waitt,cframe,color)
  1975. local wave = CreatePart(3, Effects, "Neon", 0, 1, BRICKC(color), "Effect", VT(1,1,1))
  1976. local mesh = IT("SpecialMesh",wave)
  1977. mesh.MeshType = "Sphere"
  1978. mesh.Scale = VT(size,size,size)
  1979. mesh.Offset = VT(0,0,0)
  1980. wave.CFrame = cframe
  1981. coroutine.resume(coroutine.create(function(PART)
  1982. for i = 1, waitt do
  1983. Swait()
  1984. mesh.Scale = mesh.Scale - VT(size/waitt,size/waitt,size/waitt)
  1985. wave.Transparency = wave.Transparency - (1/waitt)
  1986. end
  1987. wave:remove()
  1988. end))
  1989. end
  1990.  
  1991. function VELOC(Part,Resistance,Position)
  1992. local GRAV = IT("BodyPosition",Part)
  1993. GRAV.D = Resistance
  1994. GRAV.P = 20000
  1995. GRAV.MaxForce = VT(math.huge,math.huge,math.huge)
  1996. GRAV.Position = Position
  1997. return GRAV
  1998. end
  1999.  
  2000. function MakeForm(PART,TYPE)
  2001. if TYPE == "Cyl" then
  2002. local MSH = IT("CylinderMesh",PART)
  2003. elseif TYPE == "Ball" then
  2004. local MSH = IT("SpecialMesh",PART)
  2005. MSH.MeshType = "Sphere"
  2006. elseif TYPE == "Wedge" then
  2007. local MSH = IT("SpecialMesh",PART)
  2008. MSH.MeshType = "Wedge"
  2009. end
  2010. end
  2011.  
  2012. function MakeWings(DoesBurn)
  2013. end
  2014.  
  2015. function BurningLimb(Limb)
  2016. end
  2017.  
  2018. function ParticleEmitter(Table)
  2019. local PRTCL = Particle:Clone()
  2020. local Speed = Table.Speed or 5
  2021. local Drag = Table.Drag or 0
  2022. local Size1 = Table.Size1 or 1
  2023. local Size2 = Table.Size2 or 5
  2024. local Lifetime1 = Table.Lifetime1 or 1
  2025. local Lifetime2 = Table.Lifetime2 or 1.5
  2026. local Parent = Table.Parent or Torso
  2027. local Emit = Table.Emit or 100
  2028. local Offset = Table.Offset or 360
  2029. local Acel = Table.Acel or Vector3.new(0,-50,0)
  2030. local Enabled = Table.Enabled or false
  2031. PRTCL.Parent = Parent
  2032. PRTCL.Size = NumberSequence.new(Size1,Size2)
  2033. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  2034. PRTCL.Speed = NumberRange.new(Speed)
  2035. PRTCL.VelocitySpread = Offset
  2036. PRTCL.Drag = Drag
  2037. PRTCL.Acceleration = Acel
  2038. if Enabled == false then
  2039. PRTCL:Emit(Emit)
  2040. game:GetService("Debris"):AddItem(PRTCL,Lifetime2)
  2041. else
  2042. PRTCL.Enabled = true
  2043. end
  2044. return PRTCL
  2045. end
  2046.  
  2047. function ShakeCam(Length,Intensity)
  2048. coroutine.resume(coroutine.create(function()
  2049. local intensity = 1 * Intensity
  2050. local rotM = 0.01 * Intensity
  2051. for i = 0, Length, 0.1 do
  2052. Swait()
  2053. intensity = intensity - 0.05 * Intensity / Length
  2054. rotM = rotM - 5.0E-4 * Intensity / Length
  2055. Humanoid.CameraOffset = Vector3.new(RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)))
  2056. Cam.CFrame = Cam.CFrame * CF(RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity))) * EULER(RAD(MRANDOM(-intensity, intensity)) * rotM, RAD(MRANDOM(-intensity, intensity)) * rotM, RAD(MRANDOM(-intensity, intensity)) * rotM)
  2057. end
  2058. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  2059. end))
  2060. end
  2061.  
  2062.  
  2063. local PlayerSize = 1
  2064. local FT,FRA,FLA,FRL,FLL = Instance.new("SpecialMesh"),Instance.new("SpecialMesh"),Instance.new("SpecialMesh"),Instance.new("SpecialMesh"),Instance.new("SpecialMesh")
  2065. FT.MeshId,FT.Scale = "rbxasset://fonts/torso.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
  2066. FRA.MeshId,FRA.Scale = "rbxasset://fonts/rightarm.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
  2067. FLA.MeshId,FLA.Scale = "rbxasset://fonts/leftarm.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
  2068. FRL.MeshId,FRL.Scale = "rbxasset://fonts/rightleg.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
  2069. FLL.MeshId,FLL.Scale = "rbxasset://fonts/leftleg.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
  2070. --><All Attack Functions
  2071.  
  2072. function Kill(part)
  2073. target = part
  2074. delay(1,function()
  2075. target = nil
  2076. end)
  2077. end
  2078.  
  2079. function ApplyAoE(POSITION,RANGE)
  2080. for index, CHILD in pairs(workspace:GetChildren()) do
  2081. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2082. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2083. if HUM then
  2084. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2085. if TORSO then
  2086. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  2087. Kill(TORSO)
  2088. end
  2089. end
  2090. end
  2091. end
  2092. end
  2093. end
  2094.  
  2095. function Sprint()
  2096. Speed = 40
  2097. RUNNING = true
  2098. Mouse.KeyUp:Connect(function(Key)
  2099. if Key == "0" then
  2100. Speed = 16
  2101. RUNNING = false
  2102. end
  2103. end)
  2104. end
  2105. for i,cx in pairs(Character:GetDescendants()) do
  2106. if cx:IsA("Accoutrement") or cx:IsA("Accessory") then
  2107. print(cx.Name)
  2108. for i,cx3 in pairs(cx:GetChildren()) do
  2109. if cx3:IsA("Part") then
  2110. coroutine.resume(coroutine.create(function()
  2111. while true do
  2112. Swait()
  2113. cx3.Color = Torso.Color
  2114. end
  2115. end))
  2116.  
  2117. end
  2118. end
  2119. end
  2120. end
  2121. function HandBeam()
  2122. ATTACK = true
  2123. local savespeed = Speed
  2124. Speed = 5
  2125. for i = 0, 0.5, 0.05 do
  2126. Swait()
  2127. turnto(Mouse.Hit.Position)
  2128. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(30)), 1 / 3)
  2129. Neck.C0 = Clerp(Neck.C0, NECKC0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(-30)), 1 / 3)
  2130. RightShoulder.C0 = Clerp(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(30)) * RIGHTSHOULDERC0, 1 / 3)
  2131. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)) * LEFTSHOULDERC0, 1 / 3)
  2132. RightHip.C0 = Clerp(RightHip.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-5), math.rad(80), math.rad(0)) * CFrame.Angles(math.rad(-4), math.rad(0), math.rad(0)), 1 / 3)
  2133. LeftHip.C0 = Clerp(LeftHip.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-70), math.rad(0)) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), 1 / 3)
  2134. end
  2135. ApplyAoE(Mouse.Hit.Position,10)
  2136. WACKYEFFECT({Time = math.random(15,35), EffectType = "Box", Size = Vector3.new(2,2,2), Size2 = Vector3.new(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame, MoveToPos = nil, RotationX = math.random(-1,1), RotationY = math.random(-1,1), RotationZ = math.random(-1,1), Material = "Neon", Color = Color3.new(1,0,0), SoundID = 642890855, SoundPitch = 0.45, SoundVolume = 2.5, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 50})
  2137. WACKYEFFECT({Time = math.random(15,35), EffectType = "Box", Size = Vector3.new(2,2,2), Size2 = Vector3.new(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame, MoveToPos = nil, RotationX = math.random(-1,1), RotationY = math.random(-1,1), RotationZ = math.random(-1,1), Material = "Neon", Color = Color3.new(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 50})
  2138. Lightning(RightArm.Position,Mouse.Hit.p,15,3.5,BrickColor.new("Really black"),math.random(15,35),1,3,0,true,55) Lightning(RightArm.Position,Mouse.Hit.p,15,3.5,BrickColor.new("Really red"),math.random(15,35),1,3,0,true,55)
  2139. for i = 0, 2 do
  2140. WACKYEFFECT({Time = math.random(25,50), EffectType = "Round Slash", Size = Vector3.new(0.1,0.1,0.1), Size2 = Vector3.new(0.4,0,0.4), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))), MoveToPos = nil, RotationX = math.random(-1,1), RotationY = math.random(-1,1), RotationZ = math.random(-1,1), Material = "Neon", Color = Color3.new(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 15})
  2141. WACKYEFFECT({Time = math.random(25,50), EffectType = "Round Slash", Size = Vector3.new(0.1,0.1,0.1), Size2 = Vector3.new(0.4,0,0.4), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))), MoveToPos = nil, RotationX = math.random(-1,1), RotationY = math.random(-1,1), RotationZ = math.random(-1,1), Material = "Neon", Color = Color3.new(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 15})
  2142. end
  2143. WACKYEFFECT({Time = math.random(15,35), EffectType = "Box", Size = Vector3.new(2,2,2), Size2 = Vector3.new(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = Mouse.Hit, MoveToPos = nil, RotationX = math.random(-1,1), RotationY = math.random(-1,1), RotationZ = math.random(-1,1), Material = "Neon", Color = Color3.new(1,0,0), SoundID = 192410089, SoundPitch = .55, SoundVolume = 8, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 50})
  2144. WACKYEFFECT({Time = math.random(15,35), EffectType = "Box", Size = Vector3.new(2,2,2), Size2 = Vector3.new(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = Mouse.Hit, MoveToPos = nil, RotationX = math.random(-1,1), RotationY = math.random(-1,1), RotationZ = math.random(-1,1), Material = "Neon", Color = Color3.new(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 50})
  2145. for i = 0, 2 do
  2146. WACKYEFFECT({Time = math.random(25,50), EffectType = "Round Slash", Size = Vector3.new(0.1,0.1,0.1), Size2 = Vector3.new(0.4,0,0.4), Transparency = 0, Transparency2 = 1, CFrame = Mouse.Hit*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))), MoveToPos = nil, RotationX = math.random(-1,1), RotationY = math.random(-1,1), RotationZ = math.random(-1,1), Material = "Neon", Color = Color3.new(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 15})
  2147. WACKYEFFECT({Time = math.random(25,50), EffectType = "Round Slash", Size = Vector3.new(0.1,0.1,0.1), Size2 = Vector3.new(0.4,0,0.4), Transparency = 0, Transparency2 = 1, CFrame = Mouse.Hit*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))), MoveToPos = nil, RotationX = math.random(-1,1), RotationY = math.random(-1,1), RotationZ = math.random(-1,1), Material = "Neon", Color = Color3.new(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 15})
  2148. end
  2149. ShakeCam(0,0)
  2150. for i = 0, 0.5, 0.075 do
  2151. Swait()
  2152. turnto(Mouse.Hit.Position)
  2153. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(60)), 1 / 3)
  2154. Neck.C0 = Clerp(Neck.C0, NECKC0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-60)), 1 / 3)
  2155. RightShoulder.C0 = Clerp(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(160), math.rad(-20), math.rad(60)) * RIGHTSHOULDERC0, 1 / 3)
  2156. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(40), math.rad(5), math.rad(5)) * LEFTSHOULDERC0, 1 / 3)
  2157. RightHip.C0 = Clerp(RightHip.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-5), math.rad(75), math.rad(0)) * CFrame.Angles(math.rad(-4), math.rad(0), math.rad(0)), 1 / 3)
  2158. LeftHip.C0 = Clerp(LeftHip.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-65), math.rad(0)) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), 1 / 3)
  2159. end
  2160. Speed = savespeed
  2161. ATTACK = false
  2162. end
  2163.  
  2164. function Dash()
  2165. ATTACK = true
  2166. local savespeed = Speed
  2167. Speed = 5
  2168. CreateSound(235097614, RootPart, 6, 1.5, false)
  2169. for i = 0, 0.5, 0.05 do
  2170. Swait()
  2171. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-60)), 1 / 3)
  2172. Neck.C0 = Clerp(Neck.C0, NECKC0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(60)), 1 / 3)
  2173. RightShoulder.C0 = Clerp(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-60)) * RIGHTSHOULDERC0, 1 / 3)
  2174. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(40), math.rad(5), math.rad(5)) * LEFTSHOULDERC0, 1 / 3)
  2175. RightHip.C0 = Clerp(RightHip.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-5), math.rad(75), math.rad(0)) * CFrame.Angles(math.rad(-4), math.rad(0), math.rad(0)), 1 / 3)
  2176. LeftHip.C0 = Clerp(LeftHip.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-65), math.rad(0)) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), 1 / 3)
  2177. end
  2178. ApplyAoE(RootPart.Position,15)
  2179. WACKYEFFECT({Time = math.random(15,35), EffectType = "Box", Size = Vector3.new(2,2,2), Size2 = Vector3.new(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = math.random(-1,1), RotationY = math.random(-1,1), RotationZ = math.random(-1,1), Material = "Neon", Color = Color3.new(1,0,0), SoundID = 642890855, SoundPitch = 0.45, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 50})
  2180. WACKYEFFECT({Time = math.random(15,35), EffectType = "Box", Size = Vector3.new(2,2,2), Size2 = Vector3.new(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = math.random(-1,1), RotationY = math.random(-1,1), RotationZ = math.random(-1,1), Material = "Neon", Color = Color3.new(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 50})
  2181. WACKYEFFECT({Time = math.random(25,45), EffectType = "Sphere", Size = Vector3.new(2,100,2), Size2 = Vector3.new(6,100,6), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CFrame.new(math.random(-1,1),math.random(-1,1),-50)*CFrame.Angles(math.rad(math.random(89,91)),math.rad(math.random(-1,1)),math.rad(math.random(-1,1))), MoveToPos = nil, RotationX = nil, RotationY = nil, RotationZ = nil, Material = "Neon", Color = Color3.new(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 45})
  2182. WACKYEFFECT({Time = math.random(25,45), EffectType = "Sphere", Size = Vector3.new(3,100,3), Size2 = Vector3.new(9,100,9), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CFrame.new(math.random(-1,1),math.random(-1,1),-50)*CFrame.Angles(math.rad(math.random(89,91)),math.rad(math.random(-1,1)),math.rad(math.random(-1,1))), MoveToPos = nil, RotationX = nil, RotationY = nil, RotationZ = nil, Material = "Neon", Color = Color3.new(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 45})
  2183. ShakeCam(0,0)
  2184. for i = 1, 4 do
  2185. RootPart.CFrame = RootPart.CFrame * CFrame.new(0,0,-25)
  2186. ApplyAoE(RootPart.Position,15)
  2187. ShakeCam(0,0)
  2188. Lightning(RootPart.CFrame*CFrame.new(math.random(-2.5,2.5),math.random(-5,5),math.random(-15,15)).p,RootPart.CFrame*CFrame.new(math.random(-2.5,2.5),math.random(-5,5),math.random(-15,15)).p,6,25,BrickColor.new("Really black"),math.random(30,45),0.5,1.5,0,true,60) Lightning(RootPart.CFrame*CFrame.new(math.random(-2.5,2.5),math.random(-5,5),math.random(-15,15)).p,RootPart.CFrame*CFrame.new(math.random(-2.5,2.5),math.random(-5,5),math.random(-15,15)).p,6,25,BrickColor.new("Really red"),math.random(30,45),0.5,1.5,0,true,60)
  2189. end
  2190. WACKYEFFECT({Time = math.random(15,35), EffectType = "Box", Size = Vector3.new(2,2,2), Size2 = Vector3.new(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = math.random(-1,1), RotationY = math.random(-1,1), RotationZ = math.random(-1,1), Material = "Neon", Color = Color3.new(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 50})
  2191. WACKYEFFECT({Time = math.random(15,35), EffectType = "Box", Size = Vector3.new(2,2,2), Size2 = Vector3.new(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = math.random(-1,1), RotationY = math.random(-1,1), RotationZ = math.random(-1,1), Material = "Neon", Color = Color3.new(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 50})
  2192. for i = 0, 0.5, 0.1 do
  2193. Swait()
  2194. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)), 1 / 3)
  2195. Neck.C0 = Clerp(Neck.C0, NECKC0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), 1 / 3)
  2196. RightShoulder.C0 = Clerp(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)) * RIGHTSHOULDERC0, 1 / 3)
  2197. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(40), math.rad(5), math.rad(5)) * LEFTSHOULDERC0, 1 / 3)
  2198. RightHip.C0 = Clerp(RightHip.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-5), math.rad(75), math.rad(0)) * CFrame.Angles(math.rad(-4), math.rad(0), math.rad(0)), 1 / 3)
  2199. LeftHip.C0 = Clerp(LeftHip.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-65), math.rad(0)) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), 1 / 3)
  2200. end
  2201. ATTACK = false
  2202. Speed = savespeed
  2203. end
  2204.  
  2205. function Grab()
  2206. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil and Mouse.Target.Parent:FindFirstChild("Torso") then
  2207. local originalposition = RootPart.Position
  2208. local HITBODY = Mouse.Target.Parent
  2209. local TORS = HITBODY:FindFirstChild("Torso")
  2210. local HUMAN = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  2211. if TORS ~= nil and HUMAN ~= nil then
  2212. ATTACK = true
  2213. Rooted = true
  2214. RootPart.CFrame = TORS.CFrame * CF(0,0,4)
  2215. local HITFLOOR, HITPOS = Raycast(TORS.Position, (CF(TORS.Position, TORS.Position + VT(0, -1, 0))).lookVector, 4 * TORS.Size.Y/2, HITBODY)
  2216. local FLOOR = HITFLOOR
  2217. local POS = HITPOS
  2218. UNANCHOR = false
  2219. RootPart.Anchored = true
  2220. CreateSound("1295446488",Torso,10,.8,false)
  2221. for i=0, 1, 0.1 / Animation_Speed do
  2222. Swait()
  2223. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  2224. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed)
  2225. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2226. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2227. 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)), 2 / Animation_Speed)
  2228. 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)), 2 / Animation_Speed)
  2229. end
  2230. local TAUNTS = {"907329532","907333294","907329893"}
  2231. CreateSound(TAUNTS[MRANDOM(1,#TAUNTS)], Torso, 10, .8,false)
  2232. for i=0, 1, 0.1 / Animation_Speed do
  2233. Swait()
  2234. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 2 / Animation_Speed)
  2235. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 2 / Animation_Speed)
  2236. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2237. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2238. 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)), 2 / Animation_Speed)
  2239. 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)), 2 / Animation_Speed)
  2240. end
  2241. CreateSound("260411131", TORS, 10, 1)
  2242. for i=0, 1, 0.1 / Animation_Speed do
  2243. Swait()
  2244. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)), 2 / Animation_Speed)
  2245. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 2 / Animation_Speed)
  2246. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(150), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2247. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2248. 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)), 2 / Animation_Speed)
  2249. 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)), 2 / Animation_Speed)
  2250. end
  2251. ATTACK = false
  2252. Rooted = false
  2253. RootPart.Anchored = false
  2254. RootPart.CFrame = CF(originalposition)
  2255. end
  2256. end
  2257. end
  2258.  
  2259. function WyvernWinggale()
  2260. ATTACK = true
  2261. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  2262. CreateSound(FLAP,Torso,5,1,false)
  2263. local GRAV = VELOC(RootPart,1200,RootPart.CFrame*CF(0,35,55).p)
  2264. for i=1, 6 do
  2265. Swait()
  2266. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  2267. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1/ Animation_Speed)
  2268. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(15), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2269. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(15), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2270. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2271. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2272. end
  2273. if HITFLOOR then
  2274. ApplyAoE(HITPOS,15,15,55,120)
  2275. CreateFlyingDebree(HITFLOOR,CF(HITPOS),8,VT(3,3,3),5,25)
  2276. end
  2277. for i=1, 14 do
  2278. Swait()
  2279. WACKYEFFECT({EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(15+i*2,5,15+i*2), Transparency = 0.7, Transparency2 = 1, CFrame = CF(RootPart.Position,HITPOS)*CF(0,0,-1) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2280. WACKYEFFECT({EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(15+i*2,5,15+i*2), Transparency = 0.7, Transparency2 = 1, CFrame = CF(RootPart.Position,HITPOS)*CF(0,0,-1) * ANGLES(RAD(-90), RAD(45), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2281. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  2282. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1/ Animation_Speed)
  2283. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(15), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2284. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(15), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2285. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2286. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2287. end
  2288. GRAV:remove()
  2289. ATTACK = false
  2290. end
  2291. local CAMM = workspace.CurrentCamera
  2292. coroutine.resume(coroutine.create(function()
  2293. while true do
  2294. CAMM.FieldOfView = 70 - Sound.PlaybackLoudness/35
  2295. Swait()
  2296. end
  2297. end))
  2298. function WyvernBreath()
  2299. ATTACK = true
  2300. CreateSound(FLAP,Torso,5,1,false)
  2301. local GRAV = VELOC(RootPart,1200,RootPart.CFrame*CF(0,35,25).p)
  2302. for i=1, 10 do
  2303. Swait()
  2304. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  2305. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1/ Animation_Speed)
  2306. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(15), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2307. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(15), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2308. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2309. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2310. end
  2311. local GYRO = IT("BodyGyro",RootPart)
  2312. GYRO.D = 2
  2313. GYRO.P = 2000
  2314. GYRO.MaxTorque = VT(0,4000000,0)
  2315. local RING = MagicRing()
  2316. RING.Anchored = false
  2317. RING.CFrame = RightArm.CFrame*CF(0,-1.3,0)*ANGLES(RAD(180),RAD(0),RAD(0))
  2318. local MSH = IT("BlockMesh",RING)
  2319. local WLD = weldBetween(RightArm,RING)
  2320. for i=1, 30 do
  2321. Swait()
  2322. MSH.Scale = MSH.Scale + VT(8,0,8)
  2323. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  2324. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-15), RAD(0), RAD(25)), 1 / Animation_Speed)
  2325. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(-25)), 1/ Animation_Speed)
  2326. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.3) * ANGLES(RAD(65), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2327. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(15), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2328. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2329. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2330. end
  2331. GRAV:remove()
  2332. GYRO:remove()
  2333. coroutine.resume(coroutine.create(function()
  2334. local IMPACT = false
  2335. local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "Deep orange", "Fire",VT(1,1,1))
  2336. local SOUND = CreateSound(FIREBALLS,FIREBALL,8,1,false)
  2337. FIREBALL.CFrame = CF(RING.Position,Mouse.Hit.p)*CF(0,0,-2)
  2338. local INNER = ParticleEmitter({Speed = 2, Drag = 3, Size1 = 7, Size2 = 0, Lifetime1 = 1, Lifetime2 = 1.5, Parent = FIREBALL, Emit = 0, Offset = 360, Enabled = true})
  2339. INNER.Color = ColorSequence.new(C3(1,1,1))
  2340. INNER.ZOffset = 2
  2341. local OUTTER = ParticleEmitter({Speed = 0, Drag = 3, Size1 = 15, Size2 = 0, Lifetime1 = 1, Lifetime2 = 1.5, Parent = FIREBALL, Emit = 0, Offset = 0, Enabled = true})
  2342. for i = 1, 300 do
  2343. Swait()
  2344. FIREBALL.CFrame = FIREBALL.CFrame*CF(0,0,-2)
  2345. local HITFLOOR,HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 2.2, Character)
  2346. if HITFLOOR ~= nil then
  2347. IMPACT = true
  2348. break
  2349. end
  2350. end
  2351. INNER.Enabled = false
  2352. OUTTER.Enabled = false
  2353. Debris:AddItem(FIREBALL,5)
  2354. if IMPACT == true then
  2355. WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(25,25,25), Size2 = VT(40,40,40), Transparency = 0.5, Transparency2 = 1, CFrame = FIREBALL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = FIRECOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2356. WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(25,25,25), Size2 = VT(50,50,50), Transparency = 0.5, Transparency2 = 1, CFrame = FIREBALL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = FIRECOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2357. WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(25,25,25), Size2 = VT(60,60,60), Transparency = 0.5, Transparency2 = 1, CFrame = FIREBALL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = FIRECOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2358. WACKYEFFECT({Time = 75, EffectType = "Swirl", Size = VT(0,0,0), Size2 = VT(75,75,75), Transparency = 0.5, Transparency2 = 1, CFrame = CF(FIREBALL.Position), MoveToPos = nil, RotationX = 0, RotationY = 25, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2359. SOUND.Playing = false
  2360. local WHITE = ParticleEmitter({Speed = 35, Drag = 1, Size1 = 7, Size2 = 8, Lifetime1 = 1, Lifetime2 = 5, Parent = FIREBALL, Emit = 75, Offset = 360, Enabled = false})
  2361. WHITE.Color = ColorSequence.new(C3(1,1,1))
  2362. WHITE.ZOffset = 2
  2363. ParticleEmitter({Speed = 35, Drag = 1, Size1 = 15, Size2 = 16, Lifetime1 = 1, Lifetime2 = 5, Parent = FIREBALL, Emit = 150, Offset = 360, Enabled = false})
  2364. ApplyAoE(FIREBALL.Position,25,35,54,150)
  2365. CreateSound(EXPLOSION,FIREBALL,8,1,false)
  2366. end
  2367. end))
  2368. ATTACK = false
  2369. end
  2370.  
  2371. function WyvernWingrage()
  2372. ATTACK = true
  2373. local BODIES = {}
  2374. local VELOCITIES = {}
  2375. for i=0, 1, 0.1 / Animation_Speed do
  2376. Swait()
  2377. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.6 / Animation_Speed)
  2378. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(75)), 0.6 / Animation_Speed)
  2379. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2380. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.1 / Animation_Speed)
  2381. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2382. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2383. end
  2384. for i=0, 0.3, 0.1 / Animation_Speed do
  2385. Swait()
  2386. RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.3)
  2387. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(75)), 1 / Animation_Speed)
  2388. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.9 / Animation_Speed)
  2389. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2390. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.1 / Animation_Speed)
  2391. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  2392. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-25), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.8 / Animation_Speed)
  2393. end
  2394. for i = 1, 7 do
  2395. local WHITE = ParticleEmitter({Speed = -i-5, Drag = 2, Size1 = 0.2, Size2 = 0, Lifetime1 = 1, Lifetime2 = 2, Parent = RightArm, Emit = 75, Offset = 5, Enabled = false})
  2396. WHITE.Color = ColorSequence.new(C3(1,1,1))
  2397. WHITE.ZOffset = 2
  2398. local PRT = ParticleEmitter({Speed = -i-5, Drag = 2, Size1 = 1, Size2 = 0, Lifetime1 = 1, Lifetime2 = 2, Parent = RightArm, Emit = 75, Offset = 5, Enabled = false})
  2399. Debris:AddItem(WHITE,5)
  2400. Debris:AddItem(PRT,5)
  2401. end
  2402. CreateSound(SWOOSH,RightArm,5,1,false)
  2403. CreateSound(EXPLOSION,RightArm,2,1.5,false)
  2404. ApplyAoE(RightArm.CFrame*CF(0,-1,0).p,5)
  2405. local POS = RootPart.CFrame*CF(0,25,-25).p
  2406. if #BODIES ~= 0 then
  2407. for E = 1, #BODIES do
  2408. if BODIES[E] ~= nil then
  2409. local TORSO = BODIES[E]:FindFirstChild("HumanoidRootPart") or BODIES[E]:FindFirstChild("Torso") or BODIES[E]:FindFirstChild("UpperTorso")
  2410. if TORSO then
  2411. local DISTANCE = (TORSO.Position - RootPart.Position).Magnitude
  2412. local GRAV = VELOC(TORSO,850,POS+VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)))
  2413. table.insert(VELOCITIES,GRAV)
  2414. local HUM = BODIES[E]:FindFirstChildOfClass("Humanoid")
  2415. end
  2416. end
  2417. end
  2418. end
  2419. for i=0, 0.7, 0.1 / Animation_Speed do
  2420. Swait()
  2421. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(75)), 1 / Animation_Speed)
  2422. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.9 / Animation_Speed)
  2423. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2424. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.1 / Animation_Speed)
  2425. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  2426. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-25), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.8 / Animation_Speed)
  2427. end
  2428. if #BODIES ~= 0 then
  2429. for i=0, 2, 0.1 / Animation_Speed do
  2430. Swait()
  2431. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.2) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2432. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2433. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2434. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2435. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -1) * ANGLES(RAD(65), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  2436. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.3, -1) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  2437. end
  2438. local GRAV = VELOC(RootPart,75,POS)
  2439. for i=1, 15 do
  2440. Swait()
  2441. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(75-(i*2)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2442. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1/ Animation_Speed)
  2443. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2444. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2445. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2446. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2447. end
  2448. UNANCHOR = false
  2449. RootPart.Anchored = true
  2450. CreateSound(EXPLOSION,Torso,10,0.5,false)
  2451. for i=1, 250 do
  2452. Swait()
  2453. for E = 1, #VELOCITIES do
  2454. if VELOCITIES[E] ~= nil then
  2455. VELOCITIES[E].D = 800
  2456. VELOCITIES[E].position = Torso.Position
  2457. end
  2458. end
  2459. for E = 1, #BODIES do
  2460. if BODIES[E] ~= nil then
  2461. local TORSO = BODIES[E]:FindFirstChild("HumanoidRootPart") or BODIES[E]:FindFirstChild("Torso") or BODIES[E]:FindFirstChild("UpperTorso")
  2462. if TORSO then
  2463. local HUM = BODIES[E]:FindFirstChildOfClass("Humanoid")
  2464. if HUM then
  2465.  
  2466. end
  2467. end
  2468. end
  2469. end
  2470. RootPart.Velocity = VT(0,0,0)
  2471. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(i*25), RAD(i*5)) * CF(-i/10,i/45,0), 1 / Animation_Speed)
  2472. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1/ Animation_Speed)
  2473. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2474. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2475. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2476. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2477. end
  2478. for E = 1, #BODIES do
  2479. if BODIES[E] ~= nil then
  2480. local TORSO = BODIES[E]:FindFirstChild("HumanoidRootPart") or BODIES[E]:FindFirstChild("Torso") or BODIES[E]:FindFirstChild("UpperTorso")
  2481. if TORSO then
  2482. TORSO.Velocity = VT(0,0,0)
  2483. end
  2484. end
  2485. end
  2486. for E = 1, #VELOCITIES do
  2487. if VELOCITIES[E] ~= nil then
  2488. VELOCITIES[E]:remove()
  2489. end
  2490. end
  2491. for _, c in pairs(Character:GetChildren()) do
  2492. if c.ClassName == "Part" then
  2493. c.Velocity = VT(0,0,0)
  2494. c.RotVelocity = VT(0,0,0)
  2495. end
  2496. end
  2497. GRAV:remove()
  2498. UNANCHOR = true
  2499. RootPart.Anchored = false
  2500. end
  2501. ATTACK = false
  2502. end
  2503.  
  2504. function WyvernEruption()
  2505. ATTACK = true
  2506. for i=0, 2, 0.1 / Animation_Speed do
  2507. Swait()
  2508. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.2) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2509. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2510. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2511. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2512. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -1) * ANGLES(RAD(65), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  2513. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.3, -1) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  2514. end
  2515. CreateSound(FLAP,Torso,2,1,false)
  2516. UNANCHOR = false
  2517. RootPart.Anchored = true
  2518. for i=1, 35 do
  2519. Swait()
  2520. RootPart.CFrame = RootPart.CFrame * CF(0,5,-(75-i*2)/30)
  2521. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(75-(i*2)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2522. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1/ Animation_Speed)
  2523. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2524. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2525. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2526. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2527. end
  2528. for i=1, 18 do
  2529. Swait()
  2530. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0-i*20), RAD(0), RAD(0)), 1 / Animation_Speed)
  2531. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1/ Animation_Speed)
  2532. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2533. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2534. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2535. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2536. end
  2537. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 1000, Character)
  2538. local ORI = RootPart.Orientation
  2539. RootPart.CFrame = CF(HITPOS)
  2540. RootPart.Orientation = ORI
  2541. RootJoint.Parent = RootPart
  2542. ApplyAoE(HITPOS,45,35,54,150)
  2543. WACKYEFFECT({EffectType = "Ring", Size = VT(00,0.01)/20, Size2 = VT(35,35,0.01), Transparency = 0.7, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = FIRECOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2544. WACKYEFFECT({EffectType = "Ring", Size = VT(00,0.01)/20, Size2 = VT(35,35,0.01), Transparency = 0.7, Transparency2 = 1, CFrame = CF(HITPOS)*ANGLES(RAD(0), RAD(90), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = FIRECOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2545. WACKYEFFECT({EffectType = "Ring", Size = VT(00,0.01)/20, Size2 = VT(35,35,0.01), Transparency = 0.7, Transparency2 = 1, CFrame = CF(HITPOS)*ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = FIRECOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2546. WACKYEFFECT({EffectType = "Sphere", Size = VT(65,65,65), Size2 = VT(85,85,85), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = FIRECOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2547. WACKYEFFECT({EffectType = "Sphere", Size = VT(65,65,65), Size2 = VT(85,85,85)/1.3, Transparency = 0.8, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = EXPLOSION, SoundPitch = 1, SoundVolume = 5})
  2548. for i=1, 45 do
  2549. Swait()
  2550. RootPart.CFrame = RootPart.CFrame * CF(0,2,0)
  2551. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(i*25), RAD(0), RAD(0)), 1 / Animation_Speed)
  2552. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1/ Animation_Speed)
  2553. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2554. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2555. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2556. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2557. end
  2558. UNANCHOR = false
  2559. RootPart.Anchored = false
  2560. ATTACK = false
  2561. end
  2562.  
  2563. function ChaoticWyvernOutburst()
  2564. ATTACK = true
  2565. local VELOCITIES = {}
  2566. local BODIES = {}
  2567. local RING = MagicRing()
  2568. RING.CFrame = RootPart.CFrame*CF(0,-2.9,0)
  2569. CreateSound(RINGSOUND,RING,2,2,false)
  2570. for i=0, 1, 0.1 / Animation_Speed do
  2571. Swait()
  2572. RING.Size = RING.Size + VT(3,0,3)
  2573. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.6 / Animation_Speed)
  2574. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(75)), 0.6 / Animation_Speed)
  2575. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2576. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.1 / Animation_Speed)
  2577. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2578. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2579. end
  2580. for i=0, 0.4, 0.1 / Animation_Speed do
  2581. Swait()
  2582. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -1, -0.3) * ANGLES(RAD(75), RAD(0), RAD(75)), 1 / Animation_Speed)
  2583. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 1/ Animation_Speed)
  2584. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2585. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2586. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.01) * ANGLES(RAD(75), RAD(25), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  2587. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  2588. end
  2589. WACKYEFFECT({EffectType = "Ring", Size = VT(RING.Size.X,RING.Size.X,0.01)/20, Size2 = VT(RING.Size.X*2,RING.Size.X*2,0.01)/10, Transparency = 0.7, Transparency2 = 1, CFrame = RING.CFrame*ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = FIRECOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2590. WACKYEFFECT({EffectType = "Sphere", Size = RING.Size, Size2 = VT(RING.Size.X,1000,RING.Size.X), Transparency = 0, Transparency2 = 1, CFrame = RING.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = FIRECOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2591. WACKYEFFECT({EffectType = "Sphere", Size = RING.Size/3, Size2 = VT(RING.Size.X,900,RING.Size.X)/1.3, Transparency = 0.8, Transparency2 = 1, CFrame = RING.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2592. ApplyAoE(RING.Position,RING.Size.X/1.5)
  2593. CreateSound(EXPLOSION,RING,5,1,false)
  2594. if #BODIES ~= 0 then
  2595. for E = 1, #BODIES do
  2596. if BODIES[E] ~= nil then
  2597. local TORSO = BODIES[E]:FindFirstChild("HumanoidRootPart") or BODIES[E]:FindFirstChild("Torso") or BODIES[E]:FindFirstChild("UpperTorso")
  2598. if TORSO then
  2599. local DISTANCE = (TORSO.Position - RootPart.Position).Magnitude
  2600. local GRAV = VELOC(TORSO,850,RootPart.CFrame*CF(MRANDOM(-35,35),MRANDOM(60,120),-15-DISTANCE).p)
  2601. table.insert(VELOCITIES,GRAV)
  2602. local HUM = BODIES[E]:FindFirstChildOfClass("Humanoid")
  2603. if HUM then
  2604.  
  2605. end
  2606. end
  2607. end
  2608. end
  2609. end
  2610. for i=0, 1, 0.1 / Animation_Speed do
  2611. Swait()
  2612. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -1, -0.3) * ANGLES(RAD(75), RAD(0), RAD(75)), 1 / Animation_Speed)
  2613. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 1/ Animation_Speed)
  2614. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2615. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2616. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.01) * ANGLES(RAD(75), RAD(25), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  2617. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  2618. end
  2619. coroutine.resume(coroutine.create(function()
  2620. for i = 1, 200 do
  2621. Swait()
  2622. RING.Size = RING.Size - VT(0.3,0,0.3)
  2623. end
  2624. RING:remove()
  2625. end))
  2626. if #BODIES ~= 0 then
  2627. for i=0, 2, 0.1 / Animation_Speed do
  2628. Swait()
  2629. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.2) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2630. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2631. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2632. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2633. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -1) * ANGLES(RAD(65), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  2634. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.3, -1) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  2635. end
  2636.  
  2637. CreateSound(511715134,Torso,2,1,false)
  2638.  
  2639. local GRAV = VELOC(RootPart,5,RootPart.Position)
  2640. for i=1, 35 do
  2641. Swait()
  2642. RWELD.C0 = Clerp(RWELD.C0, CF(0,2,0.75) * ANGLES(RAD(0), RAD(0), RAD(-65)), 0.1 / Animation_Speed)
  2643. LWELD.C0 = Clerp(LWELD.C0, CF(0,2,0.75) * ANGLES(RAD(0), RAD(0), RAD(65)), 0.1 / Animation_Speed)
  2644. GRAV.position = RootPart.CFrame*CF(0,100/35,-15/35).p
  2645. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(75-(i*2)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2646. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1/ Animation_Speed)
  2647. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2648. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2649. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2650. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2651. end
  2652. local RING = MagicRing()
  2653. RING.CFrame = RootPart.CFrame*CF(0,0,15)*ANGLES(RAD(-90),RAD(0),RAD(0))
  2654. CreateSound(RINGSOUND,RING,10,1,false)
  2655.  
  2656. UNANCHOR = false
  2657. RootPart.Anchored = true
  2658. local WYVERN,WBODY,BASEWELD,BodyFire = Wyvern(10,true)
  2659. for i=1, 20 do
  2660. Swait()
  2661. RootPart.Anchored = true
  2662. RING.Size = RING.Size + VT(6,0,6)
  2663. BASEWELD.C0 = Clerp(BASEWELD.C0, CF(0,0,0) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.1 / Animation_Speed)
  2664. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2665. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2666. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-75)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2667. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(75)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2668. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2669. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2670. end
  2671. for E = 1, 3 do
  2672. if #BODIES ~= 0 then
  2673. for E = 1, #BODIES do
  2674. if BODIES[E] ~= nil then
  2675. local TORSO = BODIES[E]:FindFirstChild("HumanoidRootPart") or BODIES[E]:FindFirstChild("Torso") or BODIES[E]:FindFirstChild("UpperTorso")
  2676. if TORSO then
  2677. local HUM = BODIES[E]:FindFirstChildOfClass("Humanoid")
  2678. if HUM then
  2679. end
  2680. end
  2681. end
  2682. end
  2683. end
  2684. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(400,400,400), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.5, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = FIRECOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2685. for i=1, 65 do
  2686. Swait()
  2687. RootPart.Anchored = true
  2688. RING.CFrame = RootPart.CFrame*CF(0,0,15)*ANGLES(RAD(-90),RAD(0),RAD(0))
  2689. BASEWELD.C0 = Clerp(BASEWELD.C0, CF(0,0,0) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.1 / Animation_Speed)
  2690. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2691. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2692. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-75)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2693. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(75)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2694. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2695. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2696. end
  2697. end
  2698. CreateSound(889016272,Effects,4,1.2,false)
  2699. CreateSound(605005842,Effects,6,1,false)
  2700. local Swirls = function()
  2701. for i = 1, 3 do
  2702. CreateSound(EXPLOSION,Effects,0.3,1.2,false)
  2703. WACKYEFFECT({Time = 100, EffectType = "Swirl", Size = VT(0,0,0), Size2 = VT(175,175,175)*i, Transparency = 0.8, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = -i*3, RotationZ = 0, Material = "Neon", Color = FIRECOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2704. WACKYEFFECT({Time = 100, EffectType = "Swirl", Size = VT(0,0,0), Size2 = VT(225,225,225)*i, Transparency = 0.8, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = i*3, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2705. end
  2706. end
  2707. for E = 1, #VELOCITIES do
  2708. if VELOCITIES[E] ~= nil then
  2709. VELOCITIES[E]:remove()
  2710. end
  2711. end
  2712. ApplyAoE(RootPart.Position,250)
  2713. local LOOP = 0
  2714. Swirls()
  2715. coroutine.resume(coroutine.create(function()
  2716. for i = 1, 10 do
  2717. Swait()
  2718. RING.Size = RING.Size - VT(12,0,12)
  2719. end
  2720. RING:remove()
  2721. end))
  2722. for i=0, 8, 0.1 / Animation_Speed do
  2723. Swait()
  2724. LOOP = LOOP + 1
  2725. if LOOP >= 25 then
  2726. Swirls()
  2727. ApplyAoE(RootPart.Position,250)
  2728. LOOP = 0
  2729. end
  2730. local PRT = ParticleEmitter({Speed = MRANDOM(400,850), Drag = 10, Size1 = 20, Size2 = 15, Lifetime1 = 1, Lifetime2 = 3, Parent = Torso, Emit = 15, Offset = 360, Enabled = false})
  2731. PRT.Color = ColorSequence.new(C3(1,1,1))
  2732. PRT.LightEmission = 1
  2733. PRT.ZOffset = 2
  2734. RootPart.Anchored = true
  2735. ParticleEmitter({Speed = MRANDOM(400,850), Drag = 8, Size1 = 15, Size2 = 25, Lifetime1 = 1, Lifetime2 = 3, Parent = Torso, Emit = 25, Offset = 360, Enabled = false})
  2736. ParticleEmitter({Speed = -25, Drag = -5, Size1 = 15, Size2 = 25, Lifetime1 = 3, Lifetime2 = 6, Parent = RootPart, Emit = 15, Offset = 25, Enabled = false})
  2737. BASEWELD.C0 = Clerp(BASEWELD.C0, CF(0,0,0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  2738. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2739. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 2 / Animation_Speed)
  2740. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-60), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2741. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2742. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-50)), 2 / Animation_Speed)
  2743. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(50)), 2 / Animation_Speed)
  2744. end
  2745. coroutine.resume(coroutine.create(function()
  2746. coroutine.resume(coroutine.create(function()
  2747. WBODY.Anchored = true
  2748. BASEWELD:remove()
  2749. BodyFire.Enabled = false
  2750. for i = 1, 50 do
  2751. Swait()
  2752. WBODY.Transparency = WBODY.Transparency + 0.5/50
  2753. end
  2754. wait(2)
  2755. WYVERN:remove()
  2756. end))
  2757. end))
  2758. GRAV:remove()
  2759. RootPart.Velocity = VT(0,0,0)
  2760. RootPart.Anchored = false
  2761. UNANCHOR = true
  2762. end
  2763. ATTACK = false
  2764. end
  2765.  
  2766. function Warp()
  2767. WACKYEFFECT({Time = math.random(15,35), EffectType = "Box", Size = Vector3.new(2,2,2), Size2 = Vector3.new(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame, MoveToPos = nil, RotationX = math.random(-1,1), RotationY = math.random(-1,1), RotationZ = math.random(-1,1), Material = "Neon", Color = Color3.new(1,0,0), SoundID = 642890855, SoundPitch = 0.45, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 50})
  2768. WACKYEFFECT({Time = math.random(15,35), EffectType = "Box", Size = Vector3.new(2,2,2), Size2 = Vector3.new(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame, MoveToPos = nil, RotationX = math.random(-1,1), RotationY = math.random(-1,1), RotationZ = math.random(-1,1), Material = "Neon", Color = Color3.new(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 50})
  2769. Lightning(RightArm.Position,Vector3.new(Mouse.Hit.X,RootPart.CFrame.Y,Mouse.Hit.Z),15,3.5,BrickColor.new("Really black"),math.random(15,35),1,3,0,true,55) Lightning(RightArm.Position,Vector3.new(Mouse.Hit.X,RootPart.CFrame.Y,Mouse.Hit.Z),15,3.5,BrickColor.new("Really red"),math.random(15,35),1,3,0,true,55)
  2770. for i = 0, 2 do
  2771. WACKYEFFECT({Time = math.random(25,50), EffectType = "Round Slash", Size = Vector3.new(0.1,0.1,0.1), Size2 = Vector3.new(0.4,0,0.4), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))), MoveToPos = nil, RotationX = math.random(-1,1), RotationY = math.random(-1,1), RotationZ = math.random(-1,1), Material = "Neon", Color = Color3.new(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 15})
  2772. WACKYEFFECT({Time = math.random(25,50), EffectType = "Round Slash", Size = Vector3.new(0.1,0.1,0.1), Size2 = Vector3.new(0.4,0,0.4), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))), MoveToPos = nil, RotationX = math.random(-1,1), RotationY = math.random(-1,1), RotationZ = math.random(-1,1), Material = "Neon", Color = Color3.new(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 15})
  2773. end
  2774. WACKYEFFECT({Time = math.random(15,35), EffectType = "Box", Size = Vector3.new(2,2,2), Size2 = Vector3.new(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = Mouse.Hit, MoveToPos = nil, RotationX = math.random(-1,1), RotationY = math.random(-1,1), RotationZ = math.random(-1,1), Material = "Neon", Color = Color3.new(1,0,0), SoundID = 192410089, SoundPitch = .55, SoundVolume = 8, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 50})
  2775. WACKYEFFECT({Time = math.random(15,35), EffectType = "Box", Size = Vector3.new(2,2,2), Size2 = Vector3.new(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = Mouse.Hit, MoveToPos = nil, RotationX = math.random(-1,1), RotationY = math.random(-1,1), RotationZ = math.random(-1,1), Material = "Neon", Color = Color3.new(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 50})
  2776. for i = 0, 2 do
  2777. WACKYEFFECT({Time = math.random(25,50), EffectType = "Round Slash", Size = Vector3.new(0.1,0.1,0.1), Size2 = Vector3.new(0.4,0,0.4), Transparency = 0, Transparency2 = 1, CFrame = Mouse.Hit*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))), MoveToPos = nil, RotationX = math.random(-1,1), RotationY = math.random(-1,1), RotationZ = math.random(-1,1), Material = "Neon", Color = Color3.new(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 15})
  2778. WACKYEFFECT({Time = math.random(25,50), EffectType = "Round Slash", Size = Vector3.new(0.1,0.1,0.1), Size2 = Vector3.new(0.4,0,0.4), Transparency = 0, Transparency2 = 1, CFrame = Mouse.Hit*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))), MoveToPos = nil, RotationX = math.random(-1,1), RotationY = math.random(-1,1), RotationZ = math.random(-1,1), Material = "Neon", Color = Color3.new(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 15})
  2779. end
  2780. RootPart.CFrame = CFrame.new(Mouse.Hit.X,RootPart.CFrame.Y,Mouse.Hit.Z)
  2781. end
  2782.  
  2783. function Overthrower()
  2784. ATTACK = true
  2785. Rooted = true
  2786. for i=0, 1, 0.1 / Animation_Speed do
  2787. Swait()
  2788. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2789. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2790. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(180), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2791. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(180), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2792. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2793. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2794. end
  2795. CreateSound("348663022", Torso, 5, 1)
  2796. local StartPos = RootPart.CFrame * CF(0,10,0).p
  2797. for i = 1, 5 do
  2798. MagicSphere2(25,25,CF(StartPos),"Really red")
  2799. Swait(7.5)
  2800. MagicSphere2(25,25,CF(StartPos),"Really black")
  2801. Swait(7.5)
  2802. end
  2803. local soundeffect = IT("Sound",Torso)
  2804. soundeffect.SoundId = "rbxassetid://487186990"
  2805. soundeffect.Looped = true
  2806. soundeffect.Volume = 5
  2807. soundeffect.Playing = true
  2808. repeat
  2809. WACKYEFFECT({Time = math.random(15,35), EffectType = "Box", Size = Vector3.new(2,2,2), Size2 = Vector3.new(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = CF(StartPos), MoveToPos = nil, RotationX = math.random(-1,1), RotationY = math.random(-1,1), RotationZ = math.random(-1,1), Material = "Neon", Color = Color3.new(1,0,0), SoundID = 642890855, SoundPitch = 0.45, SoundVolume = 2.5, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 50})
  2810. WACKYEFFECT({Time = math.random(15,35), EffectType = "Box", Size = Vector3.new(2,2,2), Size2 = Vector3.new(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = CF(StartPos), MoveToPos = nil, RotationX = math.random(-1,1), RotationY = math.random(-1,1), RotationZ = math.random(-1,1), Material = "Neon", Color = Color3.new(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 50})
  2811. Lightning(StartPos,Mouse.Hit.p,15,3.5,BrickColor.new("Really black"),math.random(15,35),1,3,0,true,55) Lightning(StartPos,Mouse.Hit.p,15,3.5,BrickColor.new("Really red"),math.random(15,35),1,3,0,true,55)
  2812. for i = 0, 2 do
  2813. WACKYEFFECT({Time = math.random(25,50), EffectType = "Round Slash", Size = Vector3.new(0.1,0.1,0.1), Size2 = Vector3.new(0.4,0,0.4), Transparency = 0, Transparency2 = 1, CFrame = CF(StartPos)*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))), MoveToPos = nil, RotationX = math.random(-1,1), RotationY = math.random(-1,1), RotationZ = math.random(-1,1), Material = "Neon", Color = Color3.new(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 15})
  2814. WACKYEFFECT({Time = math.random(25,50), EffectType = "Round Slash", Size = Vector3.new(0.1,0.1,0.1), Size2 = Vector3.new(0.4,0,0.4), Transparency = 0, Transparency2 = 1, CFrame = CF(StartPos)*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))), MoveToPos = nil, RotationX = math.random(-1,1), RotationY = math.random(-1,1), RotationZ = math.random(-1,1), Material = "Neon", Color = Color3.new(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 15})
  2815. end
  2816. WACKYEFFECT({Time = math.random(15,35), EffectType = "Box", Size = Vector3.new(2,2,2), Size2 = Vector3.new(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = Mouse.Hit, MoveToPos = nil, RotationX = math.random(-1,1), RotationY = math.random(-1,1), RotationZ = math.random(-1,1), Material = "Neon", Color = Color3.new(1,0,0), SoundID = 192410089, SoundPitch = .55, SoundVolume = 8, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 50})
  2817. WACKYEFFECT({Time = math.random(15,35), EffectType = "Box", Size = Vector3.new(2,2,2), Size2 = Vector3.new(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = Mouse.Hit, MoveToPos = nil, RotationX = math.random(-1,1), RotationY = math.random(-1,1), RotationZ = math.random(-1,1), Material = "Neon", Color = Color3.new(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 50})
  2818. for i = 0, 2 do
  2819. WACKYEFFECT({Time = math.random(25,50), EffectType = "Round Slash", Size = Vector3.new(0.1,0.1,0.1), Size2 = Vector3.new(0.4,0,0.4), Transparency = 0, Transparency2 = 1, CFrame = Mouse.Hit*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))), MoveToPos = nil, RotationX = math.random(-1,1), RotationY = math.random(-1,1), RotationZ = math.random(-1,1), Material = "Neon", Color = Color3.new(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 15})
  2820. WACKYEFFECT({Time = math.random(25,50), EffectType = "Round Slash", Size = Vector3.new(0.1,0.1,0.1), Size2 = Vector3.new(0.4,0,0.4), Transparency = 0, Transparency2 = 1, CFrame = Mouse.Hit*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))), MoveToPos = nil, RotationX = math.random(-1,1), RotationY = math.random(-1,1), RotationZ = math.random(-1,1), Material = "Neon", Color = Color3.new(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 15})
  2821. end
  2822. turnto(Mouse.Hit.p)
  2823. local RayHit, RayPos, RayNormal = CastZapRay(StartPos, Mouse.Hit.p, 750, Character, false)
  2824. local distance = (StartPos - RayPos).magnitude
  2825. ApplyAoE(RayPos,15)
  2826. MagicSphere2(25,25,CF(StartPos),"Really red")
  2827. Swait(5)
  2828. MagicSphere2(25,25,CF(StartPos),"Really black")
  2829. Swait(5)
  2830. until KEYHOLD == false
  2831. soundeffect:remove()
  2832. ATTACK = false
  2833. Rooted = false
  2834. end
  2835.  
  2836. function Nightmare_Is_ALIVE()
  2837. ATTACK = true
  2838. CreateSound("459523898",RootPart,10,1,false)
  2839. CreateSound("459523898",RootPart,10,1,false)
  2840. CreateSound("223103466",RootPart,3,.8,false)
  2841. CreateSound("3651185476",RootPart,10,1,false)
  2842. CreateSound("3651185476",RootPart,10,1,false)
  2843. CreateSound("3651185476",RootPart,10,1,false)
  2844. CreateSound("3651185476",RootPart,10,1,false)
  2845. local SCOLOR = Instance.new("ColorCorrectionEffect")
  2846. --SCOLOR.Brightness = 0
  2847. --SCOLOR.Contrast = 0
  2848. --SCOLOR.Saturation = 0
  2849. --SCOLOR.Name = "SpookyColor"
  2850. --SCOLOR.Parent = game:GetService('Lighting')
  2851. for i=0, 11.5, 0.1 / Animation_Speed2 do
  2852. Swait()
  2853. Humanoid.CameraOffset = VT(MRANDOM(-0,0)/0,MRANDOM(-0,0)/0,MRANDOM(-0,0)/0)/0
  2854. ApplyAoE(RootPart.Position,1e9)
  2855. WACKYEFFECT({
  2856. Time = 12,
  2857. EffectType = "Sphere",
  2858. Size = VT(0,0,0)/0 * 0,
  2859. Size2 = VT(0, 0, 0)/0 * 0,
  2860. Transparency = 1,
  2861. Transparency2 = 1,
  2862. CFrame = CF(RootPart.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))),
  2863. MoveToPos = nil,
  2864. RotationX = 0,
  2865. RotationY = 0,
  2866. RotationZ = 0,
  2867. Material = "Neon",
  2868. Color = C3(0,0,0),
  2869. SoundID = nil,
  2870. SoundPitch = 1,
  2871. SoundVolume = 4,
  2872. UseBoomerangMath = true,
  2873. Boomerang = 0,
  2874. SizeBoomerang = 0
  2875. })
  2876. WACKYEFFECT({
  2877. Time = 75 - i * 4,
  2878. EffectType = "Box",
  2879. Size = VT(0, 0, 0),
  2880. Size2 = VT(0, 0, 0) + VT(i, i, i) * 0,
  2881. Transparency = 1,
  2882. Transparency2 = 1,
  2883. CFrame = CF(RootPart.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))),
  2884. MoveToPos = nil,
  2885. RotationX = 360,
  2886. RotationY = 360,
  2887. RotationZ = 360,
  2888. Material = "Neon",
  2889. Color = C3(0,0,0),
  2890. SoundID = nil,
  2891. SoundPitch = MRANDOM(8, 20) / 10,
  2892. SoundVolume = 2,
  2893. UseBoomerangMath = true,
  2894. Boomerang = 25,
  2895. SizeBoomerang = 0
  2896. })
  2897. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2898. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-7), RAD(-10), RAD(27 - 2.5 * SIN(SINE / 13))) * ANGLES(RAD(0), RAD(0), RAD(-22 - 2.5 * SIN(SINE / 13))), 1 / Animation_Speed)
  2899. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, .5, 0) * ANGLES(RAD(0), RAD(0), RAD(15))* RIGHTSHOULDERC0, 0.15 / 3)
  2900. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.65, .5, 0) *ANGLES(RAD(0),RAD(0 + .5 * COS(SINE / 12)),RAD(MRANDOM(-40,10))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2901. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.01, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2902. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 + 0.01, -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2903. end
  2904. CreateSound("168513088",RootPart,10,1,false)
  2905. CreateSound("168513088",RootPart,10,1,false)
  2906. CreateSound("168513088",RootPart,10,1,false)
  2907. CreateSound("168513088",RootPart,10,1,false)
  2908. --
  2909. CreateSound("231917744",RootPart,10,1,false)
  2910. CreateSound("231917744",RootPart,10,1,false)
  2911. CreateSound("231917744",RootPart,10,1,false)
  2912. CreateSound("231917744",RootPart,10,1,false)
  2913. --game.Lighting.Brightness = 1
  2914. coroutine.wrap(function()
  2915. while wait() do
  2916. if MRANDOM(1,2) == 1 then
  2917. --game.Lighting.OutdoorAmbient = C3(0,0,0)
  2918. else
  2919. --game.Lighting.OutdoorAmbient = C3(0,0,0)
  2920. end
  2921. end
  2922. end)()
  2923. game.Lighting.ClockTime = 0
  2924. Humanoid.HipHeight = 10
  2925. local BLUR = Instance.new("BlurEffect")
  2926. BLUR.Size = 0
  2927. --BLUR.Name = "Wasted"
  2928. --BLUR.Parent = game:GetService('Lighting')
  2929. local thing = 1
  2930. for i = 1,350 do
  2931. Swait()
  2932. thing = thing +1
  2933. SCOLOR.Brightness = 0-((i/0)*0)
  2934. SCOLOR.Contrast = 0-((i/0)*0)
  2935. SCOLOR.Saturation = 0-((i/0)*0)
  2936. BLUR.Size = (i/0)*0
  2937. ApplyAoE(RootPart.Position,1e9999)
  2938. if thing >= 250 then
  2939. game.Players:ClearAllChildren()
  2940. end
  2941. WACKYEFFECT({
  2942. Time = 75 - i * 4,
  2943. EffectType = "Box",
  2944. Size = VT(0, 0, 0),
  2945. Size2 = VT(0, 0, 0) + VT(i, i, i) * 100,
  2946. Transparency = 1,
  2947. Transparency2 = 1,
  2948. CFrame = CF(RootPart.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))),
  2949. MoveToPos = nil,
  2950. RotationX = 360,
  2951. RotationY = 360,
  2952. RotationZ = 360,
  2953. Material = "Neon",
  2954. Color = C3(0,0,0),
  2955. SoundID = 231917744,
  2956. SoundPitch = MRANDOM(8, 20) / 10,
  2957. SoundVolume = 3,
  2958. UseBoomerangMath = true,
  2959. Boomerang = 25,
  2960. SizeBoomerang = 0
  2961. })
  2962. WACKYEFFECT({EffectType = "Wave", Size = VT(0,5,0), Size2 = VT(i*12,5,i*12), Transparency = 1, Transparency2 = 1, CFrame = CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(MRANDOM(-5,5))), MoveToPos = nil, RotationX = 0.1, RotationY = 1, RotationZ = -0.1, Material = "Slate", Color = C3(0,0,0), SoundID = 528589382, SoundPitch = MRANDOM(5,15)/10, SoundVolume = 3, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  2963. WACKYEFFECT({EffectType = "Sphere", Size = VT(0,5,0), Size2 = VT(i*12,5,i*12), Transparency = 1, Transparency2 = 1, CFrame = CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(MRANDOM(-5,5))), MoveToPos = nil, RotationX = 0.1, RotationY = 1, RotationZ = -0.1, Material = "Neon", Color = C3(1,0,0), SoundID = 528589382, SoundPitch = MRANDOM(5,15)/10, SoundVolume = 3, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  2964. WACKYEFFECT({EffectType = "Slash", Size = VT(0,5,0), Size2 = VT(i*12,5,i*12), Transparency = 1, Transparency2 = 1, CFrame = CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(MRANDOM(-5,5))), MoveToPos = nil, RotationX = 0.1, RotationY = 1, RotationZ = -0.1, Material = "Neon", Color = C3(1,0,0), SoundID = 528589382, SoundPitch = MRANDOM(5,15)/10, SoundVolume = 3, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  2965. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2966. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-7), RAD(-10), RAD(27 - 2.5 * SIN(SINE / 13))) * ANGLES(RAD(0), RAD(0), RAD(-22 - 2.5 * SIN(SINE / 13))), 1 / Animation_Speed)
  2967. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, .5, 0) * ANGLES(RAD(0), RAD(0), RAD(15))* RIGHTSHOULDERC0, 0.15 / 3)
  2968. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.65, .5, 0) *ANGLES(RAD(0),RAD(0 + .5 * COS(SINE / 12)),RAD(MRANDOM(-40,10))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2969. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.01, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2970. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 + 0.01, -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2971. end
  2972. end
  2973.  
  2974. function MouseDown(Mouse)
  2975. KEYHOLD = true
  2976. if ATTACK == false then
  2977. --WyvernWingrage()
  2978. end
  2979. if MobileClickAttack == true and ATTACK == false then
  2980. HandBeam()
  2981. end
  2982. end
  2983.  
  2984. function MouseUp(Mouse)
  2985. HOLD = false
  2986. end
  2987.  
  2988. function KeyDown(Key)
  2989. KEYHOLD = true
  2990. if Key == "q" and ATTACK == false then
  2991. Warp()
  2992. end
  2993. if Key == "z" and ATTACK == false then
  2994. HandBeam()
  2995. end
  2996. if Key == "x" and ATTACK == false then
  2997. Dash()
  2998. end
  2999. if Key == "c" and ATTACK == false then
  3000. Grab()
  3001. end
  3002. if Key == "v" and ATTACK == false then
  3003. Overthrower()
  3004. end
  3005. if Key == "v" and ATTACK == true then
  3006. KEYHOLD = false
  3007. ATTACK = false
  3008. end
  3009. if Key == "Removed cuz useless" and ATTACK == false then
  3010. Nightmare_Is_ALIVE()
  3011. end
  3012. if Key == "f" and ATTACK == false then
  3013. WyvernEruption()
  3014. end
  3015. if Key == "g" and ATTACK == false then
  3016. WyvernBreath()
  3017. end
  3018. if Key == "h" and ATTACK == false then
  3019. WyvernWinggale()
  3020. end
  3021. if Key == "j" and ATTACK == false then
  3022. ChaoticWyvernOutburst()
  3023. end
  3024. if Key == "r" and ATTACK == false and RUNNING == false then
  3025. Sprint()
  3026. end
  3027. if Key == "r" and ATTACK == false and RUNNING == true then
  3028. RUNNING = false
  3029. Speed = 16
  3030. end
  3031. end
  3032.  
  3033. function KeyUp(Key)
  3034. KEYHOLD = false
  3035. end
  3036.  
  3037. Mouse.Button1Down:connect(function(NEWKEY)
  3038. MouseDown(NEWKEY)
  3039. end)
  3040. Mouse.Button1Up:connect(function(NEWKEY)
  3041. MouseUp(NEWKEY)
  3042. end)
  3043. Mouse.KeyDown:connect(function(NEWKEY)
  3044. KeyDown(NEWKEY)
  3045. end)
  3046. Mouse.KeyUp:connect(function(NEWKEY)
  3047. KeyUp(NEWKEY)
  3048. end)
  3049.  
  3050.  
  3051. local ActualVelocity = Vector3.new(0,0,0)
  3052.  
  3053.  
  3054. --><:thinking:
  3055. function unanchor()
  3056. for _, c in pairs(Character:GetChildren()) do
  3057. if c:IsA("BasePart") and c ~= RootPart then
  3058. c.Anchored = false
  3059. end
  3060. end
  3061. if UNANCHOR == true then
  3062. RootPart.Anchored = false
  3063. else
  3064. RootPart.Anchored = true
  3065. end
  3066. end
  3067. ------------------------------------------------------------------------------
  3068. Humanoid.Changed:connect(function(Jump)
  3069. if Jump == "Jump" and (Disable_Jump == true) then
  3070. Humanoid.Jump = false
  3071. end
  3072. end)
  3073.  
  3074. coroutine.wrap(function()
  3075. while true do
  3076. Swait(25)
  3077. for index, CHILD in pairs(workspace:GetDescendants()) do
  3078. if CHILD.ClassName == "Model" and CHILD ~= Character then
  3079. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  3080. if HUM then
  3081. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  3082. if TORSO then
  3083. if (TORSO.Position - RootPart.Position ).Magnitude <= 10 then
  3084. if CHILD:FindFirstChildWhichIsA("Humanoid") then
  3085. Kill(TORSO)
  3086. end
  3087. Lightning(RootPart.Position,TORSO.Position,15,0.25,BrickColor.new("Really black"),math.random(15,35),0.5,0.5,0,true,55) Lightning(RootPart.Position,TORSO.Position,15,0.25,BrickColor.new("Really red"),math.random(15,35),0.5,0.5,0,true,55)
  3088. end
  3089. end
  3090. end
  3091. end
  3092. end
  3093. end
  3094. end)()
  3095. Humanoid.HipHeight = 0
  3096. Humanoid.JumpPower = 100
  3097. local Field = Instance.new("ForceField",Character)
  3098. Field.Visible = false
  3099. Character.Parent = workspace
  3100. warn'Dont get stuffs from darkModz or Plaxif, they literally Orplayz Meat-riders'
  3101. while true do
  3102. Swait()
  3103. ANIMATE.Parent = nil
  3104. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  3105. v:Stop();
  3106. end
  3107. SINE = SINE + CHANGE
  3108. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  3109. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  3110. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  3111. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  3112. if TORSOVERTICALVELOCITY > 20 then
  3113. TORSOVERTICALVELOCITY = 20
  3114. elseif TORSOVERTICALVELOCITY < -20 then
  3115. TORSOVERTICALVELOCITY = -20
  3116. end
  3117. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil and ATTACK == false then
  3118. ANIM = "Jump"
  3119. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -0.1 + 0.1 * COS(SINE / 20)) * ANGLES(RAD(10), RAD(0), RAD(0)), 0.3)
  3120. Neck.C0 = Clerp(Neck.C0, NECKC0 * ANGLES(RAD(-40), RAD(0), RAD(0)), 0.3)
  3121. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / 1.75)
  3122. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0 * 1) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / 1.75)
  3123. 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 / 1.75)
  3124. 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 / 1.75)
  3125. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil and ATTACK == false then
  3126. ANIM = "Fall"
  3127. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -0.1 + 0.1 * COS(SINE / 20)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.3)
  3128. Neck.C0 = Clerp(Neck.C0, NECKC0 * ANGLES(RAD(40), RAD(0), RAD(0)), 0.3)
  3129. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / 1.75)
  3130. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / 1.75)
  3131. 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 / 1.75)
  3132. 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 / 1.75)
  3133. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  3134. ANIM = "Idle"
  3135. DOUBLED = false
  3136. READYTODOUBLE = false
  3137. snap = math.random(1,8)
  3138. if snap == 1 then
  3139. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(MRANDOM(-1000-Sound.PlaybackLoudness/7,1000+Sound.PlaybackLoudness/7)), RAD(MRANDOM(-999-Sound.PlaybackLoudness/7,999+Sound.PlaybackLoudness/7)), RAD(MRANDOM(-200-Sound.PlaybackLoudness/7,48375935+Sound.PlaybackLoudness/7))), 1 / Animation_Speed)
  3140. end
  3141. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+.15*SIN(SINE/32)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3142. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(20 + MRANDOM(-5,5) - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(MRANDOM(-5,5)), RAD(0)), 1 / Animation_Speed)
  3143. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(10+5*SIN(SINE/24))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  3144. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-10-5*SIN(SINE/24))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  3145. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1-.15*SIN(SINE/32), 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8+2.5*SIN(SINE/32)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3146. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1-.15*SIN(SINE/32), 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8+2.5*SIN(SINE/32)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3147. if snap == 1 then
  3148. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(MRANDOM(-1000-Sound.PlaybackLoudness/7,1000+Sound.PlaybackLoudness/7)), RAD(MRANDOM(-999-Sound.PlaybackLoudness/7,999+Sound.PlaybackLoudness/7)), RAD(MRANDOM(-200-Sound.PlaybackLoudness/7,48375935+Sound.PlaybackLoudness/7))), 1 / Animation_Speed)
  3149. end
  3150. WACKYEFFECT({Time = .95, EffectType = "Sphere", Size = VT(7+Sound.PlaybackLoudness/25,0.05,7+Sound.PlaybackLoudness/25), Size2 = VT(7+Sound.PlaybackLoudness/25,0.05,7+Sound.PlaybackLoudness/25), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,-3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(0, 0, 0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  3151. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  3152. if RUNNING == false then
  3153. ANIM = "Walk"
  3154. DOUBLED = false
  3155. READYTODOUBLE = false
  3156. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -0.175 + 0.025 * COS(SINE / 3.5) + -SIN(SINE / 3.5) / 7) * ANGLES(RAD(9-2.5 * COS(SINE / 3.5)), RAD(0), RAD(10 * COS(SINE / 7))), 0.15)
  3157. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(20 + MRANDOM(-5,5) - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(MRANDOM(-5,5)), RAD(0)), 1 / Animation_Speed)
  3158. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.925 - 0.5 * COS(SINE / 7) / 2, 0.5 * COS(SINE / 7) / 2) * ANGLES(RAD(-15 - 35 * COS(SINE / 7)) + -SIN(SINE / 7) / 2.5, RAD(90 - 2 * COS(SINE / 7)), RAD(0)) * ANGLES(RAD(0 + 2.5 * COS(SINE / 7)), RAD(0), RAD(0)), 0.3)
  3159. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.925 + 0.5 * COS(SINE / 7) / 2, -0.5 * COS(SINE / 7) / 2) * ANGLES(RAD(-15 + 35 * COS(SINE / 7)) + SIN(SINE / 7) / 2.5, RAD(-90 - 2 * COS(SINE / 7)), RAD(0)) * ANGLES(RAD(0 - 2.5 * COS(SINE / 7)), RAD(0), RAD(0)), 0.3)
  3160. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.05 * SIN(SINE / 30), 0.025 * COS(SINE / 20)) * ANGLES(RAD(70) * COS(SINE / 7) , RAD(90), RAD(5)), 0.1)
  3161. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5 + 0.05 * SIN(SINE / 30), 0.025 * COS(SINE / 20)) * ANGLES(RAD(-70) * COS(SINE / 7) , RAD(-90), RAD(-5)), 0.1)
  3162. snap = math.random(1,6)
  3163. if snap == 1 then
  3164. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(MRANDOM(-1000-Sound.PlaybackLoudness/7,1000+Sound.PlaybackLoudness/7)), RAD(MRANDOM(-999-Sound.PlaybackLoudness/7,999+Sound.PlaybackLoudness/7)), RAD(MRANDOM(-200-Sound.PlaybackLoudness/7,48375935+Sound.PlaybackLoudness/7))), 1 / Animation_Speed)
  3165. end
  3166. WACKYEFFECT({Time = .95, EffectType = "Sphere", Size = VT(7+Sound.PlaybackLoudness/25,0.05,7+Sound.PlaybackLoudness/25), Size2 = VT(7+Sound.PlaybackLoudness/25,0.05,7+Sound.PlaybackLoudness/25), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,-3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(0, 0, 0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  3167. else
  3168. ANIM = "Run"
  3169. DOUBLED = false
  3170. READYTODOUBLE = false
  3171. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0* 1, 0* 1, -0.175 + 0.025 * COS(SINE / 3.5) + -SIN(SINE / 3.5) / 7* 1) * ANGLES(RAD(26 - 4.5 * COS(SINE / 3.5)), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(15 * COS(SINE / 7))), 0.15)
  3172. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(20 + MRANDOM(-5,5) - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(MRANDOM(-5,5)), RAD(0)), 1 / Animation_Speed)
  3173. RightHip.C0 = Clerp(RightHip.C0, CF(1* 1, -0.925 - 0.5 * COS(SINE / 7) / 2* 1, 0.7 * COS(SINE / 7) / 2* 1) * ANGLES(RAD(-15 - 55 * COS(SINE / 7)) - RightLeg.RotVelocity.Y / 75 + -SIN(SINE / 7) / 2.5, RAD(90 - 0.1 * COS(SINE / 7)), RAD(0)) * ANGLES(RAD(0 + 0.1 * COS(SINE / 7)), RAD(0), RAD(0)), 0.3)
  3174. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1* 1, -0.925 + 0.5 * COS(SINE / 7) / 2* 1, -0.7 * COS(SINE / 7) / 2* 1) * ANGLES(RAD(-15 + 55 * COS(SINE / 7)) + LeftLeg.RotVelocity.Y / 75 + SIN(SINE / 7) / 2.5, RAD(-90 - 0.1 * COS(SINE / 7)), RAD(0)) * ANGLES(RAD(0 - 0.1 * COS(SINE / 7)), RAD(0), RAD(0)), 0.3)
  3175. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.05 * SIN(SINE / 30)* 1, 0.34 * COS(SINE / 7* 1)) * ANGLES(RAD(110) * COS(SINE / 7) , RAD(90), RAD(13) - RightArm.RotVelocity.Y / 75), 0.15)
  3176. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5 + 0.05 * SIN(SINE / 30)* 1, -0.34 * COS(SINE / 7* 1)) * ANGLES(RAD(-110) * COS(SINE / 7) , RAD(-90) , RAD(-13) + LeftArm.RotVelocity.Y / 75), 0.15)
  3177. WACKYEFFECT({Time = .95, EffectType = "Sphere", Size = VT(7+Sound.PlaybackLoudness/25,0.05,7+Sound.PlaybackLoudness/25), Size2 = VT(7+Sound.PlaybackLoudness/25,0.05,7+Sound.PlaybackLoudness/25), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,-3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(0, 0, 0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  3178.  
  3179. end
  3180. end
  3181. if MRANDOM(1,200) == 1 then
  3182. coroutine.resume(coroutine.create(function()
  3183. VALUE1 = true
  3184. for i=1,25 do
  3185. Swait()
  3186. FT.Parent = Torso
  3187. FRA.Parent = RightArm
  3188. FLA.Parent = LeftArm
  3189. FRL.Parent = RightLeg
  3190. FLL.Parent = LeftLeg
  3191. Humanoid.CameraOffset = VT(MRANDOM(-25,25)/2.5,MRANDOM(-25,25)/2.5,MRANDOM(-25,25)/2.5)/30
  3192. local oof = Instance.new("FlangeSoundEffect",Sound)
  3193. for _,v in next, Character:GetDescendants() do
  3194. if(v:IsA'DataModelMesh')then
  3195. v.Offset = VT(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100)
  3196. end
  3197. end
  3198. end
  3199. VALUE1 = false
  3200. FT.Parent = nil
  3201. FRA.Parent = nil
  3202. FLA.Parent = nil
  3203. FRL.Parent = nil
  3204. FLL.Parent = nil
  3205. for _,v in next, Character:GetDescendants() do
  3206. if(v:IsA'DataModelMesh')then
  3207. v.Offset = VT(0,0,0)
  3208. end
  3209. end
  3210. Sound:ClearAllChildren()
  3211. Humanoid.CameraOffset = VT(0,0,0)
  3212. end))
  3213. end
  3214. unanchor()
  3215. HALOWELD.C0 = Clerp(HALOWELD.C0, CF(0, 0, 0) * ANGLES(RAD(90 - 12 * SIN(SINE / 15)), RAD(-12 * COS(SINE / 15)), RAD(0)), 0.2)
  3216. Humanoid.DisplayDistanceType = "None"
  3217. if Rooted == false then
  3218. Disable_Jump = false
  3219. Humanoid.WalkSpeed = Speed
  3220. elseif Rooted == true then
  3221. Disable_Jump = true
  3222. Humanoid.WalkSpeed = 0
  3223. end
  3224. for _, c in pairs(Character:GetChildren()) do
  3225. if c == LeftArm then
  3226. c.Color = C3(0,0,0)
  3227. elseif c == LeftLeg then
  3228. c.Color = C3(0,0,0)
  3229. elseif c == RightLeg then
  3230. c.Color = C3(0,0,0)
  3231. elseif c == RightArm then
  3232. c.Color = C3(0,0,0)
  3233. elseif c == Torso then
  3234. c.Color = C3(0,0,0)
  3235. elseif c == Head then
  3236. c.Color = C3(0,0,0)
  3237. end
  3238. end
  3239. for _, c in pairs(Effects:GetChildren()) do
  3240. if c:IsA("Part") or c:IsA("MeshPart") then
  3241. c.Color = C3(0,0,0)
  3242. end
  3243. end
  3244. if Sound then
  3245. Sound.Name = "Epic Song isn't it?"
  3246. end
  3247. if ATTACK == false then
  3248. for _, c in pairs(Character:GetChildren()) do
  3249. if c:IsA("Part") or c:IsA("MeshPart") then
  3250. c.Anchored = false
  3251. end
  3252. end
  3253. end
  3254. LeftArm.Material = "Neon"
  3255. LeftLeg.Material = "Neon"
  3256. RWingWld.C0 = CFrame.new(0.25, 0.5, 0.5)*CFrame.fromEulerAnglesXYZ(0, 1.57, 0)
  3257. RWingWld.C1 = CFrame.new(1.1, 1, -0.95)
  3258. LWingWld.C0 = CFrame.new(-0.25, 0.5, 0.5)*CFrame.fromEulerAnglesXYZ(0, 1.57, 0)
  3259. LWingWld.C1 = CFrame.new(1.1, 1, 0.95)
  3260. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement