Advertisement
AxeuerAlt

Untitled

Jul 4th, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 76.28 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. local rp = RealPlayer
  6. script.Parent = rp.Character
  7.  
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. local function fakeEvent()
  12. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  13. t.connect = t.Connect
  14. return t
  15. end
  16.  
  17. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  18. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  19. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  20. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  21. end}
  22. CAS.UnbindAction = CAS.BindAction
  23. local function te(self,ev,...)
  24. local t = m[ev]
  25. if t and t._fakeEvent then
  26. for _,f in pairs(t.Functions) do
  27. f(...)
  28. end
  29. end
  30. end
  31. m.TrigEvent = te
  32. UIS.TrigEvent = te
  33.  
  34. Event.OnServerEvent:Connect(function(plr,io)
  35. if plr~=rp then return end
  36. m.Target = io.Target
  37. m.Hit = io.Hit
  38. if not io.isMouse then
  39. local b = io.UserInputState == Enum.UserInputState.Begin
  40. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  41. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  42. end
  43. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  44. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  45. end
  46. for _,t in pairs(CAS.Actions) do
  47. for _,k in pairs(t.Keys) do
  48. if k==io.KeyCode then
  49. t.Function(t.Name,io.UserInputState,io)
  50. end
  51. end
  52. end
  53. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  54. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  55. end
  56. end)
  57. Event.Parent = NLS([==[
  58. local Player = game:GetService("Players").LocalPlayer
  59. local Event = script:WaitForChild("UserInput_Event")
  60. local Mouse = Player:GetMouse()
  61. local UIS = game:GetService("UserInputService")
  62. local input = function(io,a)
  63. if a then return end
  64. --Since InputObject is a client-side instance, we create and pass table instead
  65. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  66. end
  67. UIS.InputBegan:Connect(input)
  68. UIS.InputEnded:Connect(input)
  69. local h,t
  70. while wait(1/30) do
  71. if h~=Mouse.Hit or t~=Mouse.Target then
  72. h,t=Mouse.Hit,Mouse.Target
  73. Event:FireServer({isMouse=true,Target=t,Hit=h})
  74. end
  75. end]==],Player.Character)
  76.  
  77. local _rg = game
  78.  
  79. local fsmt = {
  80. __index = function(self,k)
  81. local s = rawget(self,"_RealService")
  82. if s then
  83. return typeof(s[k])=="function"
  84. and function(_,...)return s[k](s,...)end or s[k]
  85. end
  86. end,
  87. __newindex = function(self,k,v)
  88. local s = rawget(self,"_RealService")
  89. if s then s[k]=v end
  90. end
  91. }
  92. local function FakeService(t,RealService)
  93. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  94. return setmetatable(t,fsmt)
  95. end
  96. local g = {
  97. GetService = function(self,s)
  98. return rawget(self,s) or _rg:GetService(s)
  99. end,
  100. Players = FakeService({
  101. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  102. },"Players"),
  103. UserInputService = FakeService(UIS,"UserInputService"),
  104. ContextActionService = FakeService(CAS,"ContextActionService"),
  105. RunService = FakeService({
  106. _btrs = {},
  107. RenderStepped = _rg:GetService("RunService").Heartbeat,
  108. BindToRenderStep = function(self,name,_,fun)
  109. self._btrs[name] = self.Heartbeat:Connect(fun)
  110. end,
  111. UnbindFromRenderStep = function(self,name)
  112. self._btrs[name]:Disconnect()
  113. end,
  114. },"RunService")
  115. }
  116. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  117. g.service = g.GetService
  118. FakeService(g,game)
  119. game,owner = g,g.Players.LocalPlayer
  120. end
  121.  
  122. ---Made by AxeuerAlt---
  123.  
  124. wait(0.2)
  125.  
  126. CV = "Really Red"
  127. local P = owner
  128. local Char = P.Character
  129. local Create = Instance.new
  130.  
  131.  
  132. for i,v in pairs(Char:GetChildren()) do
  133. if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" then
  134. v:Destroy()
  135. end
  136.  
  137. local shadowhead = Create("Part",Char.Head)
  138. shadowhead.BrickColor = BrickColor.new("Black")
  139. shadowhead.Size = Vector3.new(1.2, 0.6, 1)
  140. shadowhead.CanCollide = false
  141. local shadowheadmesh = Create("SpecialMesh",shadowhead)
  142. shadowheadmesh.MeshType = "Head"
  143. shadowheadmesh.Scale = Vector3.new(1.26, 1.5, 1.26)
  144. local weld2 = Create("Weld",shadowhead)
  145. weld2.Part0 = shadowhead
  146. weld2.Part1 = Char.Head
  147. weld2.C1 = CFrame.new(0, 0.200000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  148.  
  149. local shirt = Instance.new("Shirt",char)
  150. shirt.ShirtTemplate = "rbxassetid://140269917"
  151. local pants = Instance.new("Pants",char)
  152. pants.PantsTemplate = "rbxassetid://140270255"
  153.  
  154.  
  155. wait(0.2)
  156.  
  157.  
  158.  
  159. Player = owner
  160. PlayerGui = Player.PlayerGui
  161. Cam = workspace.CurrentCamera
  162. Backpack = Player.Backpack
  163. Character = Player.Character
  164. Humanoid = Character.Humanoid
  165. mouse = Player:GetMouse()
  166. RootPart = Character["HumanoidRootPart"]
  167. Torso = Character["Torso"]
  168. Head = Character["Head"]
  169. RightArm = Character["Right Arm"]
  170. LeftArm = Character["Left Arm"]
  171. RightLeg = Character["Right Leg"]
  172. LeftLeg = Character["Left Leg"]
  173. RootJoint = RootPart["RootJoint"]
  174. Neck = Torso["Neck"]
  175. RightShoulder = Torso["Right Shoulder"]
  176. LeftShoulder = Torso["Left Shoulder"]
  177. RightHip = Torso["Right Hip"]
  178. LeftHip = Torso["Left Hip"]
  179. local sick = Instance.new("Sound",Character)
  180. sick.SoundId = "rbxassetid://"
  181. sick.Looped = true
  182. sick.Pitch = 1
  183. sick.Volume = 4
  184. sick:Play()
  185.  
  186. IT = Instance.new
  187. CF = CFrame.new
  188. VT = Vector3.new
  189. RAD = math.rad
  190. C3 = Color3.new
  191. UD2 = UDim2.new
  192. BRICKC = BrickColor.new
  193. ANGLES = CFrame.Angles
  194. EULER = CFrame.fromEulerAnglesXYZ
  195. COS = math.cos
  196. ACOS = math.acos
  197. SIN = math.sin
  198. ASIN = math.asin
  199. ABS = math.abs
  200. MRANDOM = math.random
  201. FLOOR = math.floor
  202.  
  203. local FIREHAND = IT("Attachment",RightArm)
  204. FIREHAND.Position = VT(0,-1.2,0)
  205.  
  206. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  207. local NEWMESH = IT(MESH)
  208. if MESH == "SpecialMesh" then
  209. NEWMESH.MeshType = MESHTYPE
  210. if MESHID ~= "nil" and MESHID ~= "" then
  211. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  212. end
  213. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  214. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  215. end
  216. end
  217. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  218. NEWMESH.Scale = SCALE
  219. NEWMESH.Parent = PARENT
  220. return NEWMESH
  221. end
  222.  
  223. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE)
  224. local NEWPART = IT("Part")
  225. NEWPART.formFactor = FORMFACTOR
  226. NEWPART.Reflectance = REFLECTANCE
  227. NEWPART.Transparency = TRANSPARENCY
  228. NEWPART.CanCollide = false
  229. NEWPART.Locked = true
  230. NEWPART.Anchored = true
  231. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  232. NEWPART.Name = NAME
  233. NEWPART.Size = SIZE
  234. NEWPART.Position = Torso.Position
  235. NEWPART.Material = MATERIAL
  236. NEWPART:BreakJoints()
  237. NEWPART.Parent = PARENT
  238. return NEWPART
  239. end
  240.  
  241.  
  242.  
  243. Class_Name = "Template"
  244. Weapon_Name = "Add-ons"
  245.  
  246. Custom_Colors = {
  247. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  248. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  249.  
  250. Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
  251. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  252. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  253. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  254. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  255.  
  256. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  257. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  258. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  259. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  260. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  261. }
  262.  
  263.  
  264. Player_Size = 1 --Size of the player.
  265. Animation_Speed = 3
  266. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  267.  
  268. local Speed = 50
  269. local Effects2 = {}
  270.  
  271. local function weldBetween(a, b)
  272. local weldd = Instance.new("ManualWeld")
  273. weldd.Part0 = a
  274. weldd.Part1 = b
  275. weldd.C0 = CFrame.new()
  276. weldd.C1 = b.CFrame:inverse() * a.CFrame
  277. weldd.Parent = a
  278. return weldd
  279. end
  280.  
  281. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  282. local acs = Instance.new("Part")
  283. acs.CanCollide = false
  284. acs.Anchored = false
  285. acs.Size = Vector3.new(0,0,0)
  286. acs.CFrame = attachmentpart.CFrame
  287. acs.Parent = Character
  288. acs.BrickColor = color
  289. local meshs = Instance.new("SpecialMesh")
  290. meshs.MeshId = mesh
  291. meshs.TextureId = texture
  292. meshs.Parent = acs
  293. meshs.Scale = scale
  294. meshs.Offset = offset
  295. weldBetween(attachmentpart,acs)
  296. end
  297.  
  298. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  299. if TYPE == "Gem" then
  300. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  301. acs.Anchored = false
  302. acs.CanCollide = false
  303. acs.CFrame = PART.CFrame
  304. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  305. weldBetween(PART,acs)
  306. elseif TYPE == "Skull" then
  307. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  308. acs.Anchored = false
  309. acs.CanCollide = false
  310. acs.CFrame = PART.CFrame
  311. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  312. weldBetween(PART,acs)
  313. elseif TYPE == "Eye" then
  314. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  315. acs.Anchored = false
  316. acs.CanCollide = false
  317. acs.CFrame = PART.CFrame
  318. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  319. weldBetween(PART,acs)
  320. end
  321. end
  322.  
  323. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  324. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  325. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  326. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  327. local CO1 = 0
  328. local CO2 = 0
  329. local CO3 = 0
  330. local CO4 = 0
  331. local CHANGEDEFENSE = 0
  332. local CHANGEDAMAGE = 0
  333. local CHANGEMOVEMENT = 0
  334. local ANIM = "Idle"
  335. local ATTACK = false
  336. local EQUIPPED = false
  337. local HOLD = false
  338. local COMBO = 1
  339. local LASTPOINT = nil
  340. local BLCF = nil
  341. local SCFR = nil
  342. local ULTCOOLDOWN = 0
  343. local STAGGERHITANIM = false
  344. local STAGGERANIM = false
  345. local STUNANIM = false
  346. local CRITCHANCENUMBER = 0
  347. local IDLENUMBER = 0
  348. local DONUMBER = 0
  349. local HANDIDLE = false
  350. local SINE = 0
  351. local CHANGE = 2 / Animation_Speed
  352. local WALKINGANIM = false
  353. local WALK = 0
  354. local DISABLEJUMPING = false
  355. local HASBEENBLOCKED = false
  356. local STUNDELAYNUMBER = 0
  357. local MANADELAYNUMBER = 0
  358. local SECONDARYMANADELAYNUMBER = 0
  359. local ROBLOXIDLEANIMATION = IT("Animation")
  360. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  361. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  362. --ROBLOXIDLEANIMATION.Parent = Humanoid
  363. local WEAPONGUI = IT("ScreenGui", nil)
  364. WEAPONGUI.Name = "Weapon GUI"
  365. local WEAPONTOOL = IT("HopperBin", nil)
  366. WEAPONTOOL.Name = Weapon_Name
  367. local Weapon = IT("Model")
  368. Weapon.Name = Weapon_Name
  369. local Effects = IT("Folder", Weapon)
  370. Effects.Name = "Effects"
  371. local ANIMATOR = Humanoid.Animator
  372. local ANIMATE = Character.Animate
  373. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  374. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  375. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  376. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  377. local RINGSPAWNSOUND = "1271173088"
  378. local FIREBALLSOUND = "463593339"
  379. local EXPLOSIONSOUND = "439342426"
  380. local UNANCHOR = true
  381. local MAGICPARTICLE = "655109389"
  382.  
  383. if Character:FindFirstChild("Stats") ~= nil then
  384. Character:FindFirstChild("Stats").Parent = nil
  385. end
  386.  
  387. local Stats = IT("Folder", nil)
  388. Stats.Name = "Stats"
  389. local ChangeStat = IT("Folder", Stats)
  390. ChangeStat.Name = "ChangeStat"
  391. local Defense = IT("NumberValue", Stats)
  392. Defense.Name = "Defense"
  393. Defense.Value = 0
  394. local Movement = IT("NumberValue", Stats)
  395. Movement.Name = "Movement"
  396. Movement.Value = 1
  397. local Damage = IT("NumberValue", Stats)
  398. Damage.Name = "Damage"
  399. Damage.Value = 1
  400. local Mana = IT("NumberValue", Stats)
  401. Mana.Name = "Mana"
  402. Mana.Value = 0
  403. local SecondaryMana = IT("NumberValue", Stats)
  404. SecondaryMana.Name = "SecondaryMana"
  405. SecondaryMana.Value = 0
  406. local CanCrit = IT("BoolValue", Stats)
  407. CanCrit.Name = "CanCrit"
  408. CanCrit.Value = false
  409. local CritChance = IT("NumberValue", Stats)
  410. CritChance.Name = "CritChance"
  411. CritChance.Value = 0
  412. local CanPenetrateArmor = IT("BoolValue", Stats)
  413. CanPenetrateArmor.Name = "CanPenetrateArmor"
  414. CanPenetrateArmor.Value = false
  415. local AntiTeamKill = IT("BoolValue", Stats)
  416. AntiTeamKill.Name = "AntiTeamKill"
  417. AntiTeamKill.Value = false
  418. local Rooted = IT("BoolValue", Stats)
  419. Rooted.Name = "Rooted"
  420. Rooted.Value = false
  421. local Block = IT("BoolValue", Stats)
  422. Block.Name = "Block"
  423. Block.Value = false
  424. local RecentEnemy = IT("ObjectValue", Stats)
  425. RecentEnemy.Name = "RecentEnemy"
  426. RecentEnemy.Value = nil
  427. local StaggerHit = IT("BoolValue", Stats)
  428. StaggerHit.Name = "StaggerHit"
  429. StaggerHit.Value = false
  430. local Stagger = IT("BoolValue", Stats)
  431. Stagger.Name = "Stagger"
  432. Stagger.Value = false
  433. local Stun = IT("BoolValue", Stats)
  434. Stun.Name = "Stun"
  435. Stun.Value = false
  436. local StunValue = IT("NumberValue", Stats)
  437. StunValue.Name = "StunValue"
  438. StunValue.Value = 0
  439.  
  440.  
  441. local DEFENSECHANGE1 = IT("NumberValue", ChangeStat)
  442. DEFENSECHANGE1.Name = "ChangeDefense"
  443. DEFENSECHANGE1.Value = 0
  444.  
  445. local MOVEMENTCHANGE1 = IT("NumberValue", nil)
  446. MOVEMENTCHANGE1.Name = "ChangeMovement"
  447. MOVEMENTCHANGE1.Value = 0
  448.  
  449.  
  450.  
  451.  
  452.  
  453. ArtificialHB = Instance.new("BindableEvent", script)
  454. ArtificialHB.Name = "ArtificialHB"
  455.  
  456. script:WaitForChild("ArtificialHB")
  457.  
  458. frame = Frame_Speed
  459. tf = 0
  460. allowframeloss = false
  461. tossremainder = false
  462. lastframe = tick()
  463. script.ArtificialHB:Fire()
  464.  
  465. game:GetService("RunService").Heartbeat:connect(function(s, p)
  466. tf = tf + s
  467. if tf >= frame then
  468. if allowframeloss then
  469. script.ArtificialHB:Fire()
  470. lastframe = tick()
  471. else
  472. for i = 1, math.floor(tf / frame) do
  473. script.ArtificialHB:Fire()
  474. end
  475. lastframe = tick()
  476. end
  477. if tossremainder then
  478. tf = 0
  479. else
  480. tf = tf - frame * math.floor(tf / frame)
  481. end
  482. end
  483. end)
  484.  
  485.  
  486. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  487. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  488. end
  489.  
  490. function PositiveAngle(NUMBER)
  491. if NUMBER >= 0 then
  492. NUMBER = 0
  493. end
  494. return NUMBER
  495. end
  496.  
  497. function NegativeAngle(NUMBER)
  498. if NUMBER <= 0 then
  499. NUMBER = 0
  500. end
  501. return NUMBER
  502. end
  503.  
  504. function Swait(NUMBER)
  505. if NUMBER == 0 or NUMBER == nil then
  506. ArtificialHB.Event:wait()
  507. else
  508. for i = 1, NUMBER do
  509. ArtificialHB.Event:wait()
  510. end
  511. end
  512. end
  513.  
  514. function QuaternionFromCFrame(cf)
  515. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  516. local trace = m00 + m11 + m22
  517. if trace > 0 then
  518. local s = math.sqrt(1 + trace)
  519. local recip = 0.5 / s
  520. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  521. else
  522. local i = 0
  523. if m11 > m00 then
  524. i = 1
  525. end
  526. if m22 > (i == 0 and m00 or m11) then
  527. i = 2
  528. end
  529. if i == 0 then
  530. local s = math.sqrt(m00 - m11 - m22 + 1)
  531. local recip = 0.5 / s
  532. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  533. elseif i == 1 then
  534. local s = math.sqrt(m11 - m22 - m00 + 1)
  535. local recip = 0.5 / s
  536. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  537. elseif i == 2 then
  538. local s = math.sqrt(m22 - m00 - m11 + 1)
  539. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  540. end
  541. end
  542. end
  543.  
  544. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  545. local xs, ys, zs = x + x, y + y, z + z
  546. local wx, wy, wz = w * xs, w * ys, w * zs
  547. local xx = x * xs
  548. local xy = x * ys
  549. local xz = x * zs
  550. local yy = y * ys
  551. local yz = y * zs
  552. local zz = z * zs
  553. 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))
  554. end
  555.  
  556. function QuaternionSlerp(a, b, t)
  557. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  558. local startInterp, finishInterp;
  559. if cosTheta >= 0.0001 then
  560. if (1 - cosTheta) > 0.0001 then
  561. local theta = ACOS(cosTheta)
  562. local invSinTheta = 1 / SIN(theta)
  563. startInterp = SIN((1 - t) * theta) * invSinTheta
  564. finishInterp = SIN(t * theta) * invSinTheta
  565. else
  566. startInterp = 1 - t
  567. finishInterp = t
  568. end
  569. else
  570. if (1 + cosTheta) > 0.0001 then
  571. local theta = ACOS(-cosTheta)
  572. local invSinTheta = 1 / SIN(theta)
  573. startInterp = SIN((t - 1) * theta) * invSinTheta
  574. finishInterp = SIN(t * theta) * invSinTheta
  575. else
  576. startInterp = t - 1
  577. finishInterp = t
  578. end
  579. end
  580. 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
  581. end
  582.  
  583. function Clerp(a, b, t)
  584. local qa = {QuaternionFromCFrame(a)}
  585. local qb = {QuaternionFromCFrame(b)}
  586. local ax, ay, az = a.x, a.y, a.z
  587. local bx, by, bz = b.x, b.y, b.z
  588. local _t = 1 - t
  589. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  590. end
  591.  
  592. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  593. local frame = IT("Frame")
  594. frame.BackgroundTransparency = TRANSPARENCY
  595. frame.BorderSizePixel = BORDERSIZEPIXEL
  596. frame.Position = POSITION
  597. frame.Size = SIZE
  598. frame.BackgroundColor3 = COLOR
  599. frame.BorderColor3 = BORDERCOLOR
  600. frame.Name = NAME
  601. frame.Parent = PARENT
  602. return frame
  603. end
  604.  
  605. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  606. local label = IT("TextLabel")
  607. label.BackgroundTransparency = 1
  608. label.Size = UD2(1, 0, 1, 0)
  609. label.Position = UD2(0, 0, 0, 0)
  610. label.TextColor3 = C3(255, 255, 255)
  611. label.TextStrokeTransparency = STROKETRANSPARENCY
  612. label.TextTransparency = TRANSPARENCY
  613. label.FontSize = TEXTFONTSIZE
  614. label.Font = TEXTFONT
  615. label.BorderSizePixel = BORDERSIZEPIXEL
  616. label.TextScaled = true
  617. label.Text = TEXT
  618. label.Name = NAME
  619. label.Parent = PARENT
  620. return label
  621. end
  622.  
  623. function NoOutlines(PART)
  624. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  625. end
  626.  
  627.  
  628. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  629. local NEWWELD = IT(TYPE)
  630. NEWWELD.Part0 = PART0
  631. NEWWELD.Part1 = PART1
  632. NEWWELD.C0 = C0
  633. NEWWELD.C1 = C1
  634. NEWWELD.Parent = PARENT
  635. return NEWWELD
  636. end
  637.  
  638. local sound = IT("Sound")
  639.  
  640. function CreateSound(ID, PARENT, VOLUME, PITCH)
  641. local NEWSOUND = nil
  642. coroutine.resume(coroutine.create(function()
  643. NEWSOUND = sound:Clone()
  644. NEWSOUND.Parent = PARENT
  645. NEWSOUND.Volume = VOLUME
  646. NEWSOUND.Pitch = PITCH
  647. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  648. Swait()
  649. NEWSOUND:play()
  650. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  651. end))
  652. return NEWSOUND
  653. end
  654.  
  655. function CFrameFromTopBack(at, top, back)
  656. local right = top:Cross(back)
  657. 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)
  658. end
  659.  
  660. function CreateWave(inair,size,doesrotate,rotatedirection,waitt,part,offset,color)
  661. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  662. local mesh = IT("SpecialMesh",wave)
  663. mesh.MeshType = "FileMesh"
  664. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  665. mesh.Scale = VT(size,size,size)
  666. mesh.Offset = VT(0,0,-size/8)
  667. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  668. coroutine.resume(coroutine.create(function(PART)
  669. for i = 1, waitt do
  670. Swait()
  671. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  672. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  673. if doesrotate == true then
  674. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  675. end
  676. wave.Transparency = wave.Transparency + (0.5/waitt)
  677. if wave.Transparency > 0.99 then
  678. wave:remove()
  679. end
  680. end
  681. end))
  682. end
  683.  
  684. function CreateSwirl(inair,size,doesrotate,rotatedirection,waitt,part,offset,color,grow)
  685. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  686. local mesh = IT("SpecialMesh",wave)
  687. mesh.MeshType = "FileMesh"
  688. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  689. mesh.Scale = VT(size,size,size)
  690. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  691. coroutine.resume(coroutine.create(function(PART)
  692. for i = 1, waitt do
  693. Swait()
  694. mesh.Scale = mesh.Scale + grow
  695. if doesrotate == true then
  696. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  697. end
  698. wave.Transparency = wave.Transparency + (0.5/waitt)
  699. if wave.Transparency > 0.99 then
  700. wave:remove()
  701. end
  702. end
  703. end))
  704. end
  705.  
  706. function CreateTornado(inair,size,doesrotate,rotatedirection,waitt,part,offset,color)
  707. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  708. local mesh = IT("SpecialMesh",wave)
  709. mesh.MeshType = "FileMesh"
  710. mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
  711. mesh.Scale = VT(size,size,size)
  712. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  713. coroutine.resume(coroutine.create(function(PART)
  714. for i = 1, waitt do
  715. Swait()
  716. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  717. if doesrotate == true then
  718. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  719. end
  720. wave.Transparency = wave.Transparency + (0.5/waitt)
  721. if wave.Transparency > 0.99 then
  722. wave:remove()
  723. end
  724. end
  725. end))
  726. end
  727.  
  728. function CreateRing(inair,size,doesrotate,rotatedirection,waitt,part,offset,spin1,spin2,color)
  729. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  730. local mesh = IT("SpecialMesh",wave)
  731. mesh.MeshType = "FileMesh"
  732. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  733. mesh.Scale = VT(size,size,size)
  734. mesh.Offset = VT(0,0,0)
  735. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  736. coroutine.resume(coroutine.create(function(PART)
  737. for i = 1, waitt do
  738. Swait()
  739. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  740. if doesrotate == true then
  741. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(spin2, rotatedirection, spin1)
  742. end
  743. wave.Transparency = wave.Transparency + (0.5/waitt)
  744. if wave.Transparency > 0.99 then
  745. wave:remove()
  746. end
  747. end
  748. end))
  749. end
  750.  
  751. function MagicSphere(size,waitt,part,offset,color)
  752. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(1,1,1))
  753. local mesh = IT("SpecialMesh",wave)
  754. mesh.MeshType = "Sphere"
  755. mesh.Scale = VT(size,size,size)
  756. mesh.Offset = VT(0,0,0)
  757. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(0),RAD(0),RAD(0))
  758. coroutine.resume(coroutine.create(function(PART)
  759. for i = 1, waitt do
  760. Swait()
  761. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  762. wave.Transparency = wave.Transparency + (1/waitt)
  763. if wave.Transparency > 0.99 then
  764. wave:remove()
  765. end
  766. end
  767. end))
  768. end
  769.  
  770. function MagicBlock(size,waitt,part,offset,color)
  771. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(size,size,size))
  772. local mesh = IT("BlockMesh",wave)
  773. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(0),RAD(0),RAD(0))
  774. coroutine.resume(coroutine.create(function(PART)
  775. for i = 1, waitt do
  776. Swait()
  777. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  778. wave.CFrame = CF(wave.Position) * ANGLES(RAD(math(-360,360)),RAD(math(-360,360)),RAD(math(-360,360)))
  779. wave.Transparency = wave.Transparency + (1/waitt)
  780. if wave.Transparency > 0.99 then
  781. wave:remove()
  782. end
  783. end
  784. end))
  785. end
  786.  
  787. local EyeSizes={
  788. NumberSequenceKeypoint.new(0,1,0),
  789. NumberSequenceKeypoint.new(1,0.2,0)
  790. }
  791. local EyeTrans={
  792. NumberSequenceKeypoint.new(0,0.8,0),
  793. NumberSequenceKeypoint.new(1,1,0)
  794. }
  795. local PE=Instance.new("ParticleEmitter")
  796. PE.LightEmission=0.7
  797. PE.Size=NumberSequence.new(EyeSizes)
  798. PE.Transparency=NumberSequence.new(EyeTrans)
  799. PE.Lifetime=NumberRange.new(0.35,0.35,0.35)
  800. PE.Rotation=NumberRange.new(0,360)
  801. PE.Rate=15
  802. PE.Acceleration = Vector3.new(0,75,0)
  803. PE.Drag = 5
  804. PE.Enabled = false
  805. PE.VelocitySpread = 999
  806. PE.Speed = NumberRange.new(0,0,0)
  807. PE.Texture="http://www.roblox.com/asset/?id=1179557490"
  808. PE.ZOffset = 0
  809. PE.Name = "Particles"
  810. function CreateParticles(art,accel,drag,lifetime,type,isenabledbydefault,locked,size,speed)
  811. local particle = nil
  812. coroutine.resume(coroutine.create(function(PART)
  813. particle = PE:Clone()
  814. Swait()
  815. particle.Rate = 999
  816. particle.Parent = art
  817. particle.Acceleration = accel
  818. if type == "Fire" then
  819. local EyeSizes={
  820. NumberSequenceKeypoint.new(0,size,size/2),
  821. NumberSequenceKeypoint.new(1,size/4,size/8)
  822. }
  823. particle.Size = NumberSequence.new(EyeSizes)
  824. elseif type == "Smoke" then
  825. local EyeSizes={
  826. NumberSequenceKeypoint.new(0,0.5,0),
  827. NumberSequenceKeypoint.new(1,5,0.5)
  828. }
  829. particle.Size = NumberSequence.new(EyeSizes)
  830. elseif type == "Solid" then
  831. local EyeSizes={
  832. NumberSequenceKeypoint.new(0,0.5,0),
  833. NumberSequenceKeypoint.new(1,0.5,0)
  834. }
  835. particle.Size = NumberSequence.new(EyeSizes)
  836. end
  837. particle.Lifetime=NumberRange.new(lifetime)
  838. particle.Drag = drag
  839. if locked == true then
  840. particle.LockedToPart = true
  841. end
  842. particle.Speed = NumberRange.new(speed,speed,speed)
  843. particle.Texture = "http://www.roblox.com/asset/?id=296874871"
  844. particle.Enabled = isenabledbydefault
  845. particle.Color = ColorSequence.new(Color3.new(255/255, 75/255, 0))
  846. end))
  847. return particle
  848. end
  849.  
  850. Decal = IT("Decal")
  851.  
  852. function CreateMagicCircle(size,doesrotate,rotatedirection,waitt,cframe,alwaysfade)
  853. local sinkhole = IT("Part")
  854. sinkhole.Size = VT(size,0,size)
  855. sinkhole.CFrame = cframe
  856. --sinkhole.Orientation = VT(0,0,0)
  857. sinkhole.Parent = Effects
  858. sinkhole.Material = "Neon"
  859. sinkhole.Color = C3(1,0,0)
  860. sinkhole.Anchored = true
  861. sinkhole.CanCollide = false
  862. sinkhole.Transparency = 1
  863. local decal = Decal:Clone()
  864. decal.Parent = sinkhole
  865. decal.Face = "Top"
  866. decal.Texture = "http://www.roblox.com/asset/?id=1222222911"
  867. local decal2 = Decal:Clone()
  868. decal2.Parent = sinkhole
  869. decal2.Face = "Bottom"
  870. decal2.Texture = "http://www.roblox.com/asset/?id=1222223218"
  871. coroutine.resume(coroutine.create(function(PART)
  872. for i = 1, waitt do
  873. Swait()
  874. if doesrotate == true then
  875. sinkhole.CFrame = sinkhole.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  876. end
  877. if alwaysfade == true then
  878. decal.Transparency = decal.Transparency + (1/waitt)
  879. decal2.Transparency = decal.Transparency + (1/waitt)
  880. end
  881. if i > waitt-11 and (alwaysfade ~= true) then
  882. decal.Transparency = decal.Transparency + 0.1
  883. decal2.Transparency = decal.Transparency + 0.1
  884. end
  885. end
  886. sinkhole.Parent = nil
  887. end))
  888. return sinkhole
  889. end
  890.  
  891. function CreateMagicRingTilSize(cframe,size,waitt)
  892. for i = 1, size do
  893. CreateMagicCircle(i/5,false,0,3,cframe,true)
  894. Swait()
  895. end
  896. CreateMagicCircle(size/5,false,0,waitt,cframe,false)
  897. end
  898.  
  899.  
  900.  
  901.  
  902. if Player_Size ~= 1 then
  903. for _, v in pairs (Weapon:GetChildren()) do
  904. if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then
  905. local p1 = v.Part1
  906. v.Part1 = nil
  907. local cf1, cf2, cf3, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12 = v.C1:components()
  908. v.C1 = CF(cf1 * Player_Size, cf2 * Player_Size, cf3 * Player_Size, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12)
  909. v.Part1 = p1
  910. elseif v.ClassName == "Part" then
  911. for _, b in pairs (v:GetChildren()) do
  912. if b.ClassName == "SpecialMesh" or b.ClassName == "BlockMesh" then
  913. b.Scale = VT(b.Scale.x * Player_Size, b.Scale.y * Player_Size, b.Scale.z * Player_Size)
  914. end
  915. end
  916. end
  917. end
  918. end
  919.  
  920. for _, c in pairs(Weapon:GetChildren()) do
  921. if c.ClassName == "Part" then
  922. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  923. end
  924. end
  925.  
  926. Weapon.Parent = Character
  927.  
  928. Humanoid.Died:connect(function()
  929. ATTACK = true
  930. end)
  931.  
  932. print("Fire Magic Titan Loaded")
  933. print("Burn your opponents to the ground!")
  934. print("And become A titan!")
  935.  
  936.  
  937. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  938. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  939. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  940. local BODYGYRO = IT("BodyGyro", STATPART)
  941. local BODYPOSITION = IT("BodyPosition", STATPART)
  942. BODYPOSITION.P = 2000
  943. BODYPOSITION.D = 100
  944. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  945. if LABELTYPE == "Normal" then
  946. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  947. elseif LABELTYPE == "Debuff" then
  948. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 8, MRANDOM(-2, 2))
  949. elseif LABELTYPE == "Interruption" then
  950. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2,2), 8, MRANDOM(-2, 2))
  951. end
  952. game:GetService("Debris"):AddItem(STATPART ,5)
  953. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  954. BILLBOARDGUI.Adornee = STATPART
  955. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  956. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  957. BILLBOARDGUI.AlwaysOnTop = false
  958. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  959. TEXTLABEL.BackgroundTransparency = 1
  960. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  961. TEXTLABEL.Text = TEXT
  962. TEXTLABEL.Font = "SciFi"
  963. TEXTLABEL.FontSize="Size42"
  964. TEXTLABEL.TextColor3 = COLOR
  965. TEXTLABEL.TextStrokeTransparency = 1
  966. TEXTLABEL.TextScaled = true
  967. TEXTLABEL.TextWrapped = true
  968. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  969. wait(0.2)
  970. for i=1, 5 do
  971. wait()
  972. THEBODYPOSITION.Position = THEPART.Position - VT(0, 0.5 ,0)
  973. end
  974. wait(1.2)
  975. for i=1, 5 do
  976. wait()
  977. THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2
  978. THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2
  979. THEBODYPOSITION.position = THEPART.Position + VT(0, 0.5, 0)
  980. end
  981. THEPART.Parent = nil
  982. end),STATPART, BODYPOSITION, TEXTLABEL)
  983. end
  984.  
  985.  
  986. function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier,isafterburn)
  987. if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then
  988. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  989. local dmg = math.random(min,max)
  990. if humanoid.Health > 0 then
  991. if beserk == true then
  992. humanoid.Health = 0
  993. else
  994. CreateSound("298181829", hit, 1.2, MRANDOM(7, 12) / 10)
  995. hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength
  996. if math.random(1,100) < critrate+1 then
  997. humanoid.Health = humanoid.Health - dmg*critmultiplier
  998. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  999. else
  1000. humanoid.Health = humanoid.Health - dmg
  1001. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(0, 0, 0))
  1002. end
  1003. local defence = Instance.new("BoolValue",hit.Parent)
  1004. defence.Name = ("HitBy"..Player.Name)
  1005. game:GetService("Debris"):AddItem(defence, 0.5)
  1006. end
  1007. end
  1008. end
  1009. end
  1010.  
  1011. function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping,causeafterburn)
  1012. local dmg = math.random(min,max)
  1013. for i,v in ipairs(workspace:GetChildren()) do
  1014. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  1015. local body = v:GetChildren()
  1016. for part = 1, #body do
  1017. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1018. if(body[part].Position - position).Magnitude < radius then
  1019. if v.ClassName == "Model" then
  1020. if v:FindFirstChild("Humanoid") then
  1021. if v.Humanoid.Health ~= 0 then
  1022. if CanBeDodgedByJumping == true then
  1023. if body[part].Position.Y < position.Y+5 then
  1024. if math.random(1,100) < critrate+1 then
  1025. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  1026. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  1027. else
  1028. v.Humanoid.Health = v.Humanoid.Health - dmg
  1029. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  1030. end
  1031. local defence = Instance.new("BoolValue",v)
  1032. defence.Name = ("HitBy"..Player.Name)
  1033. game:GetService("Debris"):AddItem(defence, 0.01)
  1034. if causeafterburn == true then
  1035. afterburn(2,3,body[part])
  1036. end
  1037. end
  1038. else
  1039. if beserk == true then
  1040. v.Humanoid.Health = 0
  1041. end
  1042. if math.random(1,100) < critrate+1 then
  1043. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  1044. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  1045. else
  1046. v.Humanoid.Health = v.Humanoid.Health - dmg
  1047. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  1048. end
  1049. local defence = Instance.new("BoolValue",v)
  1050. defence.Name = ("HitBy"..Player.Name)
  1051. game:GetService("Debris"):AddItem(defence, 0.01)
  1052. if causeafterburn == true then
  1053. afterburn(2,5,body[part])
  1054. end
  1055. end
  1056. end
  1057. end
  1058. end
  1059. --body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  1060. end
  1061. end
  1062. end
  1063. if v.ClassName == "Part" then
  1064. if v.Anchored == false and (v.Position - position).Magnitude < radius then
  1065. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  1066. end
  1067. end
  1068. end
  1069. end
  1070. end
  1071.  
  1072. function killnearest(position,range,maxstrength)
  1073. for i,v in ipairs(workspace:GetChildren()) do
  1074. local body = v:GetChildren()
  1075. for part = 1, #body do
  1076. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1077. if(body[part].Position - position).Magnitude < range then
  1078. if v.ClassName == "Model" then
  1079. v:BreakJoints()
  1080. end
  1081. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  1082. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  1083. end
  1084. end
  1085. end
  1086. if v.ClassName == "Part" then
  1087. if v.Anchored == false and (v.Position - position).Magnitude < range then
  1088. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  1089. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  1090. end
  1091. end
  1092. end
  1093. end
  1094.  
  1095. function afterburndamage(hit,min,max)
  1096. if hit.Parent:FindFirstChildOfClass("Humanoid") then
  1097. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  1098. local dmg = math.random(min,max)
  1099. if humanoid.Health > 0 then
  1100. CreateSound("298181829", hit, 1.2, MRANDOM(7, 12) / 10)
  1101. humanoid.Health = humanoid.Health - dmg
  1102. StatLabel("Normal", hit.CFrame * CF(0 + (hit.Size.x - math.random(-1,1)), 0 + (hit.Size.y - math.random(-1,1)), 0 + (hit.Size.z - math.random(-1,1))), dmg, C3(0, 0, 0))
  1103. end
  1104. end
  1105. end
  1106.  
  1107. function afterburn(min,max,part)
  1108. coroutine.resume(coroutine.create(function()
  1109. local tors = part.Parent:FindFirstChild("Torso") or part.Parent:FindFirstChild("UpperTorso")
  1110. local PARTICLES = CreateParticles(tors,VT(0,35,0),2,1,"Fire",true,false,0.5,0)
  1111. for i = 1, 430 do
  1112. Swait(35)
  1113. afterburndamage(tors,min,max)
  1114. end
  1115. Swait(15)
  1116. PARTICLES.Enabled = false
  1117. Swait(50)
  1118. PARTICLES:remove()
  1119. end))
  1120. end
  1121.  
  1122. function chatfunc(text,waitt)
  1123. local chat = coroutine.wrap(function()
  1124. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  1125. Character:FindFirstChild("TalkingBillBoard"):destroy()
  1126. end
  1127. local naeeym2 = Instance.new("BillboardGui",Character)
  1128. naeeym2.Size = UDim2.new(0,100,0,40)
  1129. naeeym2.StudsOffset = Vector3.new(0,2,0)
  1130. naeeym2.Adornee = Character.Head
  1131. naeeym2.Name = "TalkingBillBoard"
  1132. naeeym2.AlwaysOnTop = true
  1133. local tecks2 = Instance.new("TextLabel",naeeym2)
  1134. tecks2.BackgroundTransparency = 1
  1135. tecks2.BorderSizePixel = 0
  1136. tecks2.Text = "Dragon | Infernal Obliterator"
  1137. tecks2.Font = "Fantasy"
  1138. tecks2.TextSize = 30
  1139. tecks2.TextStrokeTransparency = 1
  1140. tecks2.TextColor3 = Color3.new(255/255, 75/255, 0)
  1141. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  1142. tecks2.Size = UDim2.new(1,0,0.5,0)
  1143. local tecks3 = Instance.new("TextLabel",naeeym2)
  1144. tecks3.BackgroundTransparency = 1
  1145. tecks3.BorderSizePixel = 0
  1146. tecks3.Text = ""
  1147. tecks3.Font = "Fantasy"
  1148. tecks3.TextSize = 30
  1149. tecks3.TextStrokeTransparency = 1
  1150. tecks3.TextColor3 = Color3.new(255/255, 75/255, 0)
  1151. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  1152. tecks3.Size = UDim2.new(1,0,0.5,0)
  1153. for i = 1,string.len(text),1 do
  1154. tecks2.Text = string.sub(text,1,i)
  1155. tecks3.Text = string.sub(text,1,i)
  1156. wait(0.01)
  1157. end
  1158. wait(waitt)
  1159. naeeym2:Destroy()
  1160. end)
  1161. chat()
  1162. end
  1163.  
  1164. function turnto(pos,part)
  1165. part.CFrame = CF(part.Position,VT(pos.X,RootPart.Position.Y,pos.Z))
  1166. end
  1167.  
  1168. function createfireball(size,explosionsize,pos,velocity)
  1169. local FIREBALL = IT("Part",Effects)
  1170. FIREBALL.Shape = "Ball"
  1171. FIREBALL.Size = VT(size,size,size)
  1172. FIREBALL.Material = "Neon"
  1173. FIREBALL.CFrame = CF(pos)
  1174. local bv = Instance.new("BodyVelocity")
  1175. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1176. bv.velocity = velocity
  1177. bv.Parent = FIREBALL
  1178. bv.Name = "MOVE"
  1179. local BURST = CreateParticles(FIREBALL,VT(0,0,0),0,2,"Fire",false,true,explosionsize*3,explosionsize*3)
  1180. FIREBALL.BrickColor = BRICKC("Crimson")
  1181. local PARTICLES = CreateParticles(FIREBALL,VT(0,0,0),2,1,"Fire",true,false,explosionsize*1.5,5)
  1182. local HIT = false
  1183. local harm = FIREBALL.Touched:Connect(function(hit)
  1184. if HIT == false and hit.Parent ~= Character and hit.Parent ~= Weapon and hit.Parent ~= Effects then
  1185. HIT = true
  1186. coroutine.resume(coroutine.create(function()
  1187. FIREBALL.Anchored = true
  1188. FIREBALL.CanCollide = false
  1189. PARTICLES.Enabled = false
  1190. CreateSound(EXPLOSIONSOUND, FIREBALL, 10, 1)
  1191. BURST:Emit(750)
  1192. AoEDamage(FIREBALL.Position,explosionsize*5,35,45,25,false,3,2,false,true)
  1193. for i = 1, 35 do
  1194. Swait()
  1195. FIREBALL.Size = FIREBALL.Size + VT(explosionsize/5,explosionsize/5,explosionsize/5)
  1196. FIREBALL.Transparency = FIREBALL.Transparency + (1/35)
  1197. end
  1198. Swait(250)
  1199. FIREBALL:remove()
  1200. end))
  1201. end
  1202. end)
  1203. return FIREBALL
  1204. end
  1205.  
  1206. function Fireball()
  1207. ATTACK = true
  1208. for i=0, 1.5, 0.1 / Animation_Speed do
  1209. Swait()
  1210. turnto(mouse.Hit.p,RootPart)
  1211. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.4 / Animation_Speed)
  1212. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(-75)), 0.2 / Animation_Speed)
  1213. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(100)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1214. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(25), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1215. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1216. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1217. end
  1218. local aimpos = mouse.Hit.p
  1219. CreateSound(RINGSPAWNSOUND, RightArm, 2, 1.4)
  1220. CreateMagicRingTilSize(RightArm.CFrame*CF(0,-1.2,0)*ANGLES(RAD(0),RAD(90),RAD(0)),25,25)
  1221. chatfunc("FIREBALL!!",2)
  1222. local pos = RightArm.CFrame*CF(0,-1.2,0).p
  1223. local FIRE,PARTICLES = createfireball(3.5,3.5,pos,CF(pos,aimpos).lookVector*50)
  1224. CreateSound(FIREBALLSOUND, FIRE, 2, 1)
  1225. local bv = Instance.new("BodyVelocity")
  1226. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1227. bv.velocity = CF(FIRE.Position,aimpos).lookVector*50
  1228. bv.Parent = FIRE
  1229. bv.Name = "MOVE"
  1230. ATTACK = false
  1231. end
  1232. function Blastburn()
  1233. ATTACK = true
  1234. for i=0, 1.5, 0.1 / Animation_Speed do
  1235. Swait()
  1236. turnto(mouse.Hit.p,RootPart)
  1237. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.4 / Animation_Speed)
  1238. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(-75)), 0.2 / Animation_Speed)
  1239. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(100)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1240. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(25), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1241. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1242. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1243. end
  1244. local aimpos = mouse.Hit.p
  1245. CreateSound(RINGSPAWNSOUND, RightArm, 2, 1.4)
  1246. CreateMagicRingTilSize(RightArm.CFrame*CF(0,-1.2,0)*ANGLES(RAD(0),RAD(90),RAD(0)),25,25)
  1247. chatfunc("FLAME SPLASH!!",2)
  1248. local pos = RightArm.CFrame*CF(0,-1.2,0).p
  1249. local FIRE,PARTICLES = createfireball(20,20,pos,CF(pos,aimpos).lookVector*50)
  1250. CreateSound(FIREBALLSOUND, FIRE, 2, 1)
  1251. local bv = Instance.new("BodyVelocity")
  1252. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1253. bv.velocity = CF(FIRE.Position,aimpos).lookVector*50
  1254. bv.Parent = FIRE
  1255. bv.Name = "MOVE"
  1256. ATTACK = false
  1257. end
  1258.  
  1259. function DragonFirePillar()
  1260. ATTACK = true
  1261. for i=0, 1.5, 0.1 / Animation_Speed do
  1262. Swait()
  1263. turnto(mouse.Hit.p,RootPart)
  1264. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.4 / Animation_Speed)
  1265. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(-75)), 0.2 / Animation_Speed)
  1266. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(100)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1267. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(25), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1268. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1269. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1270. end
  1271. local aimpos = mouse.Hit.p
  1272. local cframe = CF(mouse.Hit.p,VT(RootPart.Position.X,mouse.Hit.p.Y,RootPart.Position.Z))
  1273. local part = IT("Part",Effects)
  1274. part.Anchored = true
  1275. part.CanCollide = false
  1276. part.Transparency = 1
  1277. part.CFrame = CF(mouse.Hit.p)
  1278. CreateSound(RINGSPAWNSOUND, part, 5, 0.3)
  1279. CreateMagicRingTilSize(cframe,450,550)
  1280. chatfunc("BLAZE OF GLORY!",4)
  1281. ATTACK = false
  1282. coroutine.resume(coroutine.create(function()
  1283. coroutine.resume(coroutine.create(function()
  1284. local pillar = IT("Part",Effects)
  1285. pillar.Anchored = true
  1286. pillar.CanCollide = false
  1287. pillar.Material = "Neon"
  1288. pillar.BrickColor = BrickColor.new("CGA brown")
  1289. pillar.CFrame = cframe
  1290. pillar.Size = VT(15,1000,15)
  1291. local mesh = IT("SpecialMesh",pillar)
  1292. mesh.MeshType = "Sphere"
  1293. table.insert(Effects2,{pillar,"Block1",0.0025,0,2,0,2})
  1294. end))
  1295. for i = 1, 6 do
  1296. AoEDamage(part.Position,28,25,35,5,false,3,2,false,true)
  1297. CreateSound(EXPLOSIONSOUND, part, 7, 1)
  1298. MagicSphere(4,125,part,0,"CGA brown")
  1299. MagicSphere(3,125,part,0,"CGA brown")
  1300. CreateSwirl(0,6,true,0.3,125,part,0,"Bright red",VT(1,1,1))
  1301. CreateSwirl(0,25,true,0.3,125,part,0,"Bright red",VT(0,15,0))
  1302. CreateSwirl(0,2,true,0.3,125,part,0,"Bright red",VT(1,1,1))
  1303. for i = 1, 45 do
  1304. Swait()
  1305. end
  1306. end
  1307. game:GetService("Debris"):AddItem(part, 5)
  1308. end))
  1309. end
  1310.  
  1311. function UnholyPillah()
  1312. ATTACK = true
  1313. for i=0, 1.5, 0.1 / Animation_Speed do
  1314. Swait()
  1315. turnto(mouse.Hit.p,RootPart)
  1316. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.4 / Animation_Speed)
  1317. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(-75)), 0.2 / Animation_Speed)
  1318. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(100)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1319. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(25), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1320. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1321. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1322. end
  1323. local aimpos = mouse.Hit.p
  1324. local cframe = CF(mouse.Hit.p,VT(RootPart.Position.X,mouse.Hit.p.Y,RootPart.Position.Z))
  1325. local part = IT("Part",Effects)
  1326. part.Anchored = true
  1327. part.CanCollide = false
  1328. part.Transparency = 1
  1329. part.CFrame = CF(mouse.Hit.p)
  1330. CreateSound(RINGSPAWNSOUND, part, 5, 0.3)
  1331. CreateMagicRingTilSize(cframe,600,750)
  1332. chatfunc("EAT THIS!")
  1333. wait(1)
  1334. chatfunc("HELLFIRE STRIKE!!",4)
  1335. ATTACK = false
  1336. coroutine.resume(coroutine.create(function()
  1337. coroutine.resume(coroutine.create(function()
  1338. local pillar = IT("Part",Effects)
  1339. pillar.Anchored = true
  1340. pillar.CanCollide = false
  1341. pillar.Material = "Neon"
  1342. pillar.BrickColor = BrickColor.new("Crimson")
  1343. pillar.CFrame = cframe
  1344. pillar.Size = VT(120,8000,120)
  1345. local mesh = IT("SpecialMesh",pillar)
  1346. mesh.MeshType = "Sphere"
  1347. table.insert(Effects2,{pillar,"Block1",0.0025,0,2,0,2})
  1348. end))
  1349. for i = 1, 6 do
  1350. AoEDamage(part.Position,28,25,35,5,false,3,2,false,true)
  1351. CreateSound(EXPLOSIONSOUND, part, 7, 1)
  1352. MagicSphere(4,125,part,0,"Bright red")
  1353. MagicSphere(3,125,part,0,"Orange")
  1354. CreateSwirl(0,6,true,0.3,125,part,0,"Crimson",VT(1,1,1))
  1355. CreateSwirl(0,25,true,0.3,125,part,0,"Crimson",VT(0,15,0))
  1356. CreateSwirl(0,2,true,0.3,125,part,0,"Bright red",VT(1,1,1))
  1357. for i = 1, 45 do
  1358. Swait()
  1359. end
  1360. end
  1361. game:GetService("Debris"):AddItem(part, 5)
  1362. end))
  1363. end
  1364.  
  1365.  
  1366. function FireBody()
  1367. ATTACK = true
  1368. Rooted = true
  1369. for i=0, 1.5, 0.1 / Animation_Speed do
  1370. Swait()
  1371. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-40)), 0.4 / Animation_Speed)
  1372. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(15)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  1373. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(20), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1374. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(50)) * ANGLES(RAD(80), RAD(-20), RAD(-30)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  1375. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1376. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1377. end
  1378. CreateSound(RINGSPAWNSOUND, RootPart, 3, 1)
  1379. CreateMagicRingTilSize(CF(RootPart.CFrame*CF(0,-2.8,0).p,VT(RootPart.Position.X,mouse.Hit.p.Y,RootPart.Position.Z))*ANGLES(RAD(90),RAD(0),RAD(0)),50,20)
  1380. CreateSound("217767125", LeftArm, 3, 1)
  1381. coroutine.resume(coroutine.create(function()
  1382. Speed = 75
  1383. q = Character:GetChildren()
  1384. for i = 1, #q do
  1385. if q[i].ClassName == "Part" and q[i].Name ~= "HumanoidRootPart" then
  1386. local PARTICLES = CreateParticles(q[i],VT(0,5,0),2,1,"Fire",true,false,1,0)
  1387. coroutine.resume(coroutine.create(function()
  1388. Swait(1000)
  1389. PARTICLES.Enabled = false
  1390. Swait(150)
  1391. PARTICLES:remove()
  1392. end))
  1393. end
  1394. end
  1395. for i = 1, 50 do
  1396. Swait(20)
  1397. AoEDamage(Torso.Position,8,5,15,5,false,3,2,false,false)
  1398. end
  1399. Speed = 50
  1400. end))
  1401. for i=0, 1.5, 0.1 / Animation_Speed do
  1402. Swait()
  1403. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-40)), 0.4 / Animation_Speed)
  1404. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(35)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  1405. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.35 * Player_Size, 0 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1406. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(30)) * ANGLES(RAD(80), RAD(-10), RAD(-20)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  1407. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1408. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1409. end
  1410. Rooted = false
  1411. ATTACK = false
  1412. end
  1413.  
  1414. function DragonClaw()
  1415. ATTACK = true
  1416. for i=0, 0.5, 0.1 / Animation_Speed do
  1417. Swait()
  1418. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-25)), 0.15 / Animation_Speed)
  1419. 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(15)), 0.15 / Animation_Speed)
  1420. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1421. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1422. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed)
  1423. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(-15), RAD(-75), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-15)), 0.15 / Animation_Speed)
  1424. end
  1425. local GRAB = nil
  1426. local HIT = false
  1427. local hitting = RightArm.Touched:connect(function(hit)
  1428. if GRAB == nil then
  1429. if hit.Parent:FindFirstChild("Humanoid") then
  1430. if hit.Parent.Humanoid.Health ~= 0 then
  1431. HIT = true
  1432. GRAB = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  1433. GRAB.Anchored = true
  1434. CreateSound("131237241", GRAB, 3, 1)
  1435. end
  1436. end
  1437. end
  1438. end)
  1439. for i=0, 1, 0.1 / Animation_Speed do
  1440. Swait()
  1441. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(55)), 0.15 / Animation_Speed)
  1442. 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(-25)), 0.45 / Animation_Speed)
  1443. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(60), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1444. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1445. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed)
  1446. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(-35), RAD(-75), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-15)), 0.15 / Animation_Speed)
  1447. if HIT == true then
  1448. break
  1449. end
  1450. end
  1451. hitting:disconnect()
  1452. if GRAB ~= nil then
  1453. Rooted = true
  1454. local BURST = CreateParticles(FIREHAND,VT(0,0,0),1,2,"Fire",true,false,1,2)
  1455. turnto(RootPart.Position,GRAB)
  1456. RootPart.CFrame = GRAB.CFrame * CF(0,0,-4) * ANGLES(RAD(0),RAD(180),RAD(0))
  1457. for i=0, 3, 0.1 / Animation_Speed*4 do
  1458. if GRAB ~= nil then
  1459. Swait()
  1460. turnto(GRAB.Position,RootPart)
  1461. turnto(RootPart.Position,GRAB)
  1462. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.2 / Animation_Speed*8)
  1463. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.2 / Animation_Speed*8)
  1464. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*8)
  1465. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1 * Player_Size, 0.5 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-30)) * LEFTSHOULDERC0, 0.15 / Animation_Speed*8)
  1466. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed*8)
  1467. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed*8)
  1468. end
  1469. end
  1470. chatfunc("FIERY...",100)
  1471. CreateSound(RINGSPAWNSOUND, GRAB, 2, 1)
  1472. CreateMagicRingTilSize(GRAB.CFrame * CF(0,0,2) * ANGLES(RAD(90),RAD(0),RAD(0)),45,25)
  1473. BURST.Enabled = false
  1474. local BURST = CreateParticles(FIREHAND,VT(0,0,0),1,2,"Fire",false,false,6,5)
  1475. for i=0, 1, 0.1 / Animation_Speed*6 do
  1476. if GRAB ~= nil then
  1477. Swait()
  1478. turnto(GRAB.Position,RootPart)
  1479. turnto(RootPart.Position,GRAB)
  1480. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.2 / Animation_Speed*8)
  1481. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.2 / Animation_Speed*8)
  1482. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1 * Player_Size, 0.5 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*8)
  1483. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed*8)
  1484. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed*3)
  1485. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed*3)
  1486. end
  1487. end
  1488. chatfunc("DRAGON IMPACT!!",2)
  1489. if GRAB ~= nil then
  1490. CreateSound(EXPLOSIONSOUND, GRAB, 10, 1)
  1491. BURST:Emit(300)
  1492. afterburn(5,10,GRAB)
  1493. AoEDamage(GRAB.Position,2,65,85,5,false,3,2,false,false)
  1494. GRAB.Anchored = false
  1495. Swait(15)
  1496. coroutine.resume(coroutine.create(function()
  1497. Swait(150)
  1498. FIREHAND:ClearAllChildren()
  1499. end))
  1500. end
  1501. end
  1502. GRAB = nil
  1503. Rooted = false
  1504. HIT = nil
  1505. ATTACK = false
  1506. end
  1507. function obliteration()
  1508. ATTACK = true
  1509. for i=0, 1.5, 0.1 / Animation_Speed do
  1510. Swait()
  1511. turnto(mouse.Hit.p,RootPart)
  1512. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.4 / Animation_Speed)
  1513. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(-75)), 0.2 / Animation_Speed)
  1514. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(100)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1515. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(25), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1516. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1517. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1518. end
  1519. local aimpos = mouse.Hit.p
  1520. CreateSound(RINGSPAWNSOUND, RightArm, 2, 1.4)
  1521. CreateMagicRingTilSize(RightArm.CFrame*CF(0,-1.2,0)*ANGLES(RAD(0),RAD(90),RAD(0)),25,25)
  1522. chatfunc("FIRE FIELD!!",2)
  1523. local pos = RightArm.CFrame*CF(0,-1.2,0).p
  1524. local FIRE,PARTICLES = createfireball(100,100,pos,CF(pos,aimpos).lookVector*50)
  1525. CreateSound(FIREBALLSOUND, FIRE, 2, 1)
  1526. local bv = Instance.new("BodyVelocity")
  1527. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1528. bv.velocity = CF(FIRE.Position,aimpos).lookVector*50
  1529. bv.Parent = FIRE
  1530. bv.Name = "MOVE"
  1531. ATTACK = false
  1532. end
  1533.  
  1534. function RagingDragonFireStorm()
  1535. Rooted = true
  1536. for i=0, 2, 0.1 / Animation_Speed do
  1537. Swait()
  1538. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1.2 * Player_Size) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1539. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1540. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1541. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1542. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1543. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1544. end
  1545. CreateSound("2767090", Torso, 5, MRANDOM(7, 12) / 10)
  1546. CreateWave(0,3.5,true,0.02,150,RootPart,-2,"Deep orange")
  1547. CreateWave(0,5,true,-0.02,150,RootPart,-2,"Deep orange")
  1548. local bv = Instance.new("BodyVelocity")
  1549. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1550. bv.velocity = Vector3.new(0,300,0)
  1551. bv.Parent = Torso
  1552. bv.Name = "DASH"
  1553. game:GetService("Debris"):AddItem(bv, 0.5)
  1554. Swait(125)
  1555. ATTACK = true
  1556. UNANCHOR = false
  1557. RootPart.Anchored = true
  1558. for i=0, 1.5, 0.1 / Animation_Speed do
  1559. Swait()
  1560. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,mouse.Hit.p) * CFrame.new(0, 0, 0)
  1561. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(75)), 0.4 / Animation_Speed)
  1562. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.2 / Animation_Speed)
  1563. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1564. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(25), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1565. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1566. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1567. end
  1568. chatfunc("FLAMING DRAGON...",1000)
  1569. local ring = IT("Part",Effects)
  1570. ring.Size = VT(0,0,0)
  1571. ring.CFrame = CF(mouse.Hit.p)
  1572. ring.Material = "Neon"
  1573. ring.Color = C3(1,0,0)
  1574. ring.Anchored = true
  1575. ring.CanCollide = false
  1576. ring.Transparency = 1
  1577. local decal = Decal:Clone()
  1578. decal.Parent = ring
  1579. decal.Face = "Top"
  1580. decal.Texture = "http://www.roblox.com/asset/?id=1222222911"
  1581. local decal2 = Decal:Clone()
  1582. decal2.Parent = ring
  1583. decal2.Face = "Bottom"
  1584. decal2.Texture = "http://www.roblox.com/asset/?id=1222223218"
  1585. CreateSound(RINGSPAWNSOUND, ring, 10, 0.6)
  1586. for i = 1, 250 do
  1587. ring.Size = ring.Size + VT(0.5,0,0.5)
  1588. ring.CFrame = CF(mouse.Hit.p,VT(RootPart.Position.X,mouse.Hit.p.Y,RootPart.Position.Z))
  1589. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,mouse.Hit.p) * CFrame.new(0, 0, 0)
  1590. Swait()
  1591. end
  1592. chatfunc("WRATH!!",8)
  1593. for i = 1, 35 do
  1594. for i = 1, 5 do
  1595. ring.CFrame = CF(mouse.Hit.p,VT(RootPart.Position.X,mouse.Hit.p.Y,RootPart.Position.Z))
  1596. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,mouse.Hit.p) * CFrame.new(0, 0, 0)
  1597. Swait()
  1598. end
  1599. coroutine.resume(coroutine.create(function()
  1600. local pos = CF(mouse.Hit.p.X+math.random(-45,45),mouse.Hit.p.Y,mouse.Hit.p.Z+math.random(-45,45))
  1601. local pos2 = CF(pos.X,pos.Y+250,pos.Z).p
  1602. local part = IT("Part",Effects)
  1603. part.Anchored = true
  1604. part.CanCollide = false
  1605. part.Transparency = 1
  1606. part.CFrame = pos
  1607. CreateSound(RINGSPAWNSOUND, part, 10, 0.8)
  1608. CreateMagicRingTilSize(pos,100,150)
  1609. part:remove()
  1610. local size = MRANDOM(3,6)
  1611. local FIRE,PARTICLES = createfireball(size,size*2,pos2,CF(pos2,pos.p).lookVector*150)
  1612. CreateSound(FIREBALLSOUND, FIRE, 2, 1)
  1613. end))
  1614. end
  1615. coroutine.resume(coroutine.create(function()
  1616. for i = 1, 250 do
  1617. ring.Size = ring.Size - VT(0.5,0,0.5)
  1618. decal.Transparency = decal.Transparency + (1/250)
  1619. decal2.Transparency = decal.Transparency
  1620. Swait()
  1621. end
  1622. ring:remove()
  1623. end))
  1624. ATTACK = false
  1625. UNANCHOR = true
  1626. Rooted = false
  1627. RootPart.Anchored = false
  1628. ULTCOOLDOWN = 0
  1629. end
  1630.  
  1631. Humanoid.Changed:connect(function(Jump)
  1632. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  1633. Humanoid.Jump = false
  1634. end
  1635. end)
  1636.  
  1637. function mouseDown(mouse)
  1638. if ATTACK == false then
  1639. end
  1640. end
  1641.  
  1642. function mouseUp(mouse)
  1643. HOLD = false
  1644. end
  1645.  
  1646. function KeyDown(Key)
  1647. if Rooted == false then
  1648. if Key == "q" and ATTACK == false then
  1649. Fireball()
  1650. end
  1651. if Key == "c" and ATTACK == false then
  1652. UnholyPillah()
  1653. end
  1654. if Key == "z" and ATTACK == false then
  1655. Blastburn()
  1656. end
  1657.  
  1658. if Key == "e" and ATTACK == false then
  1659. DragonFirePillar()
  1660. end
  1661.  
  1662. if Key == "r" and ATTACK == false then
  1663. FireBody()
  1664. end
  1665.  
  1666. if Key == "f" and ATTACK == false then
  1667. DragonClaw()
  1668. end
  1669.  
  1670. if Key == "x" and ATTACK == false and ULTCOOLDOWN == 0 then
  1671. RagingDragonFireStorm()
  1672. end
  1673.  
  1674. if Key == "" and ATTACK == false and ULTCOOLDOWN == 0 then
  1675. obliteration()
  1676. end
  1677. end
  1678. end
  1679.  
  1680. function KeyUp(Key)
  1681. end
  1682.  
  1683. mouse.Button1Down:connect(function(NEWKEY)
  1684. mouseDown(NEWKEY)
  1685. end)
  1686. mouse.Button1Up:connect(function(NEWKEY)
  1687. mouseUp(NEWKEY)
  1688. end)
  1689. mouse.KeyDown:connect(function(NEWKEY)
  1690. KeyDown(NEWKEY)
  1691. end)
  1692. mouse.KeyUp:connect(function(NEWKEY)
  1693. KeyUp(NEWKEY)
  1694. end)
  1695.  
  1696.  
  1697.  
  1698. function unanchor()
  1699. if UNANCHOR == true then
  1700. g = Character:GetChildren()
  1701. for i = 1, #g do
  1702. if g[i].ClassName == "Part" then
  1703. g[i].Anchored = false
  1704. end
  1705. end
  1706. end
  1707. end
  1708.  
  1709.  
  1710.  
  1711. Humanoid.Changed:connect(function(Jump)
  1712. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  1713. Humanoid.Jump = false
  1714. end
  1715. end)
  1716.  
  1717. ANIMATE.Parent = nil
  1718. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1719. IDLEANIMATION:Play()
  1720. Rooted = false
  1721.  
  1722. while true do
  1723. Swait()
  1724. SINE = SINE + CHANGE
  1725. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1726. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1727. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1728. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1729. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1730. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1731. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1732. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1733. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1734. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1735. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1736. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1737. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1738. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1739. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1740. end
  1741. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1742. ANIM = "Jump"
  1743. if ATTACK == false then
  1744. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1745. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1746. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1747. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1748. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1749. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1750. end
  1751. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1752. ANIM = "Fall"
  1753. if ATTACK == false then
  1754. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1755. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1756. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1757. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1758. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1759. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1760. end
  1761. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1762. ANIM = "Idle"
  1763. if ATTACK == false then
  1764. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1765. 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)
  1766. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1767. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1768. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1769. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1770. end
  1771. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1772. ANIM = "Walk"
  1773. WALK = WALK + 1 / Animation_Speed
  1774. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1775. WALK = 0
  1776. if WALKINGANIM == true then
  1777. WALKINGANIM = false
  1778. elseif WALKINGANIM == false then
  1779. WALKINGANIM = true
  1780. end
  1781. end
  1782. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1783. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1784. if ATTACK == false and Speed < 20 then
  1785. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1786. 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)
  1787. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1788. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1789. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1790. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1791. elseif ATTACK == false and Speed >= 20 then
  1792. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1793. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1794. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(120 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1795. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-120 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1796. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1797. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1798. end
  1799. end
  1800. if #Effects2>0 then
  1801. for e=1,#Effects2 do
  1802. if Effects2[e]~=nil then
  1803. local Thing=Effects2[e]
  1804. if Thing~=nil then
  1805. local Part=Thing[1]
  1806. local Mode=Thing[2]
  1807. local Delay=Thing[3]
  1808. local IncX=Thing[4]
  1809. local IncY=Thing[5]
  1810. local IncZ=Thing[6]
  1811. local Part2=Thing[8]
  1812. if Thing[1].Transparency<=1 then
  1813. if Thing[2]=="Block1" then
  1814. Thing[1].CFrame=Thing[1].CFrame
  1815. Mesh=Thing[1].Mesh
  1816. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1817. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1818. elseif Thing[2]=="Cylinder" then
  1819. Mesh=Thing[1].Mesh
  1820. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1821. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1822. elseif Thing[2]=="Blood" then
  1823. Mesh=Thing[7]
  1824. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  1825. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1826. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1827. elseif Thing[2]=="Elec" then
  1828. Mesh=Thing[1].Mesh
  1829. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  1830. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1831. elseif Thing[2]=="Disappear" then
  1832. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1833. end
  1834. else
  1835. Part.Parent=nil
  1836. table.remove(Effects2,e)
  1837. end
  1838. end
  1839. end
  1840. end
  1841. end
  1842. unanchor()
  1843. Humanoid.MaxHealth = "inf"
  1844. Humanoid.Health = "inf"
  1845. if Rooted == false then
  1846. Disable_Jump = false
  1847. Humanoid.WalkSpeed = Speed
  1848. elseif Rooted == true then
  1849. Disable_Jump = true
  1850. Humanoid.WalkSpeed = 0
  1851. end
  1852. if ULTCOOLDOWN > 0 then
  1853. ULTCOOLDOWN = ULTCOOLDOWN - 1
  1854. end
  1855. end
  1856. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement