Advertisement
Sheckles

mmm

May 18th, 2018
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 91.57 KB | None | 0 0
  1. --Made by OmegaNoscope, you should ask me before you leak it.
  2. --You can contact me on discord. My user/tag is "hecc#5638" Thanks.
  3. warn ([[Why do you have this?
  4. ]])
  5. print([[Icons:
  6. ! = New
  7. ? = Spoilers
  8. * = Exclusivity
  9. ]])
  10. warn([[V 3.3 (ON PROGRESS) Update Log:
  11. ! - Calamity's "Z" has changed
  12. ! - Starfall EX added.
  13. ! - Mayhem has DESTRUCTION mode, which is new.
  14. * - Destruction will be an ultimate exclusivity.
  15. ! - Corruption now has teleportation move "X"
  16. ? - Divinity has a move named Judgement, which is made by danny19990.
  17. ! - Exclusive secrets :v
  18. ! - Chaos theme has been changed
  19. ! - Purity's theme has been extended
  20. ? - Corruption's "Z" will have animation sooner
  21. ! - Calamity's "X" is added, named Starfall
  22. * - Mayhem now has MAJOR exclusivity, so far its still wip and yet to be done.
  23. * - Catastrophe's "Z" coming soon, same as Calamity's "Z" but more powerful.]])
  24. --- its obs smooth af do not touch
  25. ---- Sources and functions might be taken from others
  26. plr = game:GetService("Players").LocalPlayer
  27. char = plr.Character
  28. hum = char.Humanoid
  29. local cam = game.Workspace.CurrentCamera
  30. local Controller = plr.PlayerScripts:WaitForChild("ControlScript")
  31. Camera = cam
  32. local CamInterrupt = false
  33. local TwoD = false
  34. local TargetInfo = {nil, nil}
  35. cam.CameraType = "Custom"
  36. t = char.Torso
  37. h = char.Head
  38. ra = char["Right Arm"]
  39. la = char["Left Arm"]
  40. rl = char["Right Leg"]
  41. ll = char["Left Leg"]
  42. tors = char.Torso
  43. lleg = char["Left Leg"]
  44. root = char.HumanoidRootPart
  45. hed = char.Head
  46. rleg = char["Right Leg"]
  47. rarm = char["Right Arm"]
  48. larm = char["Left Arm"]
  49. radian = math.rad
  50. random = math.random
  51. Vec3 = Vector3.new
  52. Inst = Instance.new
  53. cFrame = CFrame.new
  54. Euler = CFrame.fromEulerAnglesXYZ
  55. vt = Vector3.new
  56. bc = BrickColor.new
  57. br = BrickColor.random
  58. it = Instance.new
  59. cf = CFrame.new
  60. local eff = true
  61. local shielding = false
  62.  
  63. local Booleans = {
  64. CamFollow = true,
  65. GyroUse = true
  66. }
  67.  
  68. function lerp(object, newCFrame, alpha)
  69. return object:lerp(newCFrame, alpha)
  70. end
  71.  
  72. local Directer = Inst("BodyGyro", root)
  73. Directer.MaxTorque = Vec3(0, 0, 0)
  74. Directer.P = 600000
  75. local CPart = Inst("Part")
  76. CPart.Anchored = true
  77. CPart.CanCollide = false
  78. CPart.Locked = true
  79. CPart.Transparency = 1
  80.  
  81. local rainbowmode = false
  82. local chaosmode = false
  83.  
  84. kan = Instance.new("Sound",char)
  85. kan.Volume = 1.25
  86. kan.TimePosition = 0
  87. kan.PlaybackSpeed = 1
  88. kan.Pitch = 1
  89. kan.SoundId = "rbxassetid://1703475948"
  90. kan.Name = "wrecked"
  91. kan.Looped = true
  92. kan:Play()
  93.  
  94. function newTheme(ID,timepos,pitch,vol)
  95. local kanz = kan
  96. --kanz:Stop()
  97. --kanz.Volume = vol
  98. --kanz.TimePosition = timepos
  99. kanz.PlaybackSpeed = pitch
  100. kanz.Pitch = pitch
  101. kanz.SoundId = ID
  102. kanz.Name = "wrecked"
  103. kanz.Looped = true
  104. kanz.Volume = 0.3
  105. --kanz:Play()
  106. --coroutine.resume(coroutine.create(function()
  107. --wait(0.05)
  108. --end))
  109. end
  110.  
  111. function newThemeCust(ID,timepos,pitch,vol)
  112. local kanz = kan
  113. kanz:Stop()
  114. kanz.Volume = vol
  115. kanz.TimePosition = timepos
  116. kanz.PlaybackSpeed = pitch
  117. kanz.Pitch = pitch
  118. kanz.SoundId = ID
  119. kanz.Name = "wrecked"
  120. kanz.Looped = true
  121. kanz:Play()
  122. coroutine.resume(coroutine.create(function()
  123. wait(0.05)
  124. end))
  125. end
  126.  
  127.  
  128.  
  129. function CameraShake(Times, Power, PlayerTarget)
  130. coroutine.resume(coroutine.create(function()
  131. FV = Instance.new("BoolValue", PlayerTarget)
  132. FV.Name = "CameraShake"
  133. for ShakeNum=1,Times do
  134. swait()
  135. local ef=Power
  136. if ef>=1 then
  137. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  138. else
  139. ef=Power*10
  140. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  141. end
  142. end
  143. Humanoid.CameraOffset = Vector3.new(0,0,0)
  144. FV:Destroy()
  145. end))
  146. end
  147.  
  148. function CameraEnshaking(Length,Intensity)
  149. coroutine.resume(coroutine.create(function()
  150. local intensity = 1*Intensity
  151. local rotM = 0.01*Intensity
  152. for i = 0, Length, 0.1 do
  153. swait()
  154. intensity = intensity - 0.05*Intensity/Length
  155. rotM = rotM - 0.0005*Intensity/Length
  156. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  157. cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
  158. end
  159. Humanoid.CameraOffset = Vec3(0, 0, 0)
  160. end))
  161. end
  162. CamShake=function(Part,Distan,Power,Times)
  163. local de=Part.Position
  164. for i,v in pairs(workspace:children()) do
  165. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  166. for _,c in pairs(v:children()) do
  167. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  168. local Noob=v.Humanoid
  169. if Noob~=nil then
  170. coroutine.resume(coroutine.create(function()
  171. FV = Instance.new("BoolValue", Noob)
  172. FV.Name = "CameraShake"
  173. for ShakeNum=1,Times do
  174. swait()
  175. local ef=Power
  176. if ef>=1 then
  177. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  178. else
  179. ef=Power*10
  180. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  181. end
  182. end
  183. Humanoid.CameraOffset = Vector3.new(0,0,0)
  184. FV:Destroy()
  185. end))
  186. CameraShake(Times, Power, Noob)
  187. end
  188. end
  189. end
  190. end
  191. end
  192. end
  193.  
  194. function chatfunc(text,color)
  195. local chat = coroutine.wrap(function()
  196. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  197. Character:FindFirstChild("TalkingBillBoard"):destroy()
  198. end
  199. local naeeym2 = Instance.new("BillboardGui",Character)
  200. naeeym2.Size = UDim2.new(0,100,0,40)
  201. naeeym2.StudsOffset = Vector3.new(0,3,0)
  202. naeeym2.Adornee = Character.Head
  203. naeeym2.Name = "TalkingBillBoard"
  204. local tecks2 = Instance.new("TextLabel",naeeym2)
  205. tecks2.BackgroundTransparency = 1
  206. tecks2.BorderSizePixel = 0
  207. tecks2.Text = ""
  208. tecks2.Font = "SciFi"
  209. tecks2.TextSize = 30
  210. tecks2.TextStrokeTransparency = 0
  211. tecks2.TextColor3 = color
  212. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  213. tecks2.Size = UDim2.new(1,0,0.5,0)
  214. local tecks3 = Instance.new("TextLabel",naeeym2)
  215. tecks3.BackgroundTransparency = 1
  216. tecks3.BorderSizePixel = 0
  217. tecks3.Text = ""
  218. tecks3.Font = "SciFi"
  219. tecks3.TextSize = 30
  220. tecks3.TextStrokeTransparency = 0
  221. tecks3.TextColor3 = Color3.new(0,0,0)
  222. tecks3.TextStrokeColor3 = color
  223. tecks3.Size = UDim2.new(1,0,0.5,0)
  224. coroutine.resume(coroutine.create(function()
  225. while true do
  226. swait(1)
  227. plr.Character.wrecked.Volume = 0.3
  228. if chaosmode == true then
  229. tecks2.TextColor3 = BrickColor.random().Color
  230. tecks3.TextStrokeColor3 = BrickColor.random().Color
  231. end
  232. tecks2.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  233. tecks3.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  234. tecks2.Rotation = math.random(-5,5)
  235. tecks3.Rotation = math.random(-5,5)
  236. end
  237. end))
  238. for i = 1,string.len(text),1 do
  239. CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115)
  240. tecks2.Text = string.sub(text,1,i)
  241. tecks3.Text = string.sub(text,1,i)
  242. swait(1)
  243. end
  244. wait(1)
  245. local randomrot = math.random(1,2)
  246. if randomrot == 1 then
  247. for i = 1, 50 do
  248. swait()
  249. tecks2.Rotation = tecks2.Rotation - .75
  250. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  251. tecks2.TextTransparency = tecks2.TextTransparency + .04
  252. tecks3.Rotation = tecks2.Rotation + .75
  253. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  254. tecks3.TextTransparency = tecks2.TextTransparency + .04
  255. end
  256. elseif randomrot == 2 then
  257. for i = 1, 50 do
  258. swait()
  259. tecks2.Rotation = tecks2.Rotation + .75
  260. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  261. tecks2.TextTransparency = tecks2.TextTransparency + .04
  262. tecks3.Rotation = tecks2.Rotation - .75
  263. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  264. tecks3.TextTransparency = tecks2.TextTransparency + .04
  265. end
  266. end
  267. naeeym2:Destroy()
  268. end)
  269. chat()
  270. end
  271.  
  272.  
  273. local Create = LoadLibrary("RbxUtility").Create
  274.  
  275. CFuncs = {
  276. ["Part"] = {
  277. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  278. local Part = Create("Part"){
  279. Parent = Parent,
  280. Reflectance = Reflectance,
  281. Transparency = Transparency,
  282. CanCollide = false,
  283. Locked = true,
  284. BrickColor = BrickColor.new(tostring(BColor)),
  285. Name = Name,
  286. Size = Size,
  287. Material = Material,
  288. }
  289. RemoveOutlines(Part)
  290. return Part
  291. end;
  292. };
  293.  
  294. ["Mesh"] = {
  295. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  296. local Msh = Create(Mesh){
  297. Parent = Part,
  298. Offset = OffSet,
  299. Scale = Scale,
  300. }
  301. if Mesh == "SpecialMesh" then
  302. Msh.MeshType = MeshType
  303. Msh.MeshId = MeshId
  304. end
  305. return Msh
  306. end;
  307. };
  308.  
  309. ["Mesh"] = {
  310. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  311. local Msh = Create(Mesh){
  312. Parent = Part,
  313. Offset = OffSet,
  314. Scale = Scale,
  315. }
  316. if Mesh == "SpecialMesh" then
  317. Msh.MeshType = MeshType
  318. Msh.MeshId = MeshId
  319. end
  320. return Msh
  321. end;
  322. };
  323.  
  324. ["Weld"] = {
  325. Create = function(Parent, Part0, Part1, C0, C1)
  326. local Weld = Create("Weld"){
  327. Parent = Parent,
  328. Part0 = Part0,
  329. Part1 = Part1,
  330. C0 = C0,
  331. C1 = C1,
  332. }
  333. return Weld
  334. end;
  335. };
  336.  
  337. ["Sound"] = {
  338. Create = function(id, par, vol, pit)
  339. coroutine.resume(coroutine.create(function()
  340. local S = Create("Sound"){
  341. Volume = vol,
  342. Name = "EffectSoundo",
  343. Pitch = pit or 1,
  344. SoundId = id,
  345. Parent = par or workspace,
  346. }
  347. wait()
  348. S:play()
  349. game:GetService("Debris"):AddItem(S, 10)
  350. end))
  351. end;
  352. };
  353.  
  354. ["LongSound"] = {
  355. Create = function(id, par, vol, pit)
  356. coroutine.resume(coroutine.create(function()
  357. local S = Create("Sound"){
  358. Volume = vol,
  359. Pitch = pit or 1,
  360. SoundId = id,
  361. Parent = par or workspace,
  362. }
  363. wait()
  364. S:play()
  365. game:GetService("Debris"):AddItem(S, 30)
  366. end))
  367. end;
  368. };
  369.  
  370. ["ParticleEmitter"] = {
  371. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  372. local fp = Create("ParticleEmitter"){
  373. Parent = Parent,
  374. Color = ColorSequence.new(Color1, Color2),
  375. LightEmission = LightEmission,
  376. Size = Size,
  377. Texture = Texture,
  378. Transparency = Transparency,
  379. ZOffset = ZOffset,
  380. Acceleration = Accel,
  381. Drag = Drag,
  382. LockedToPart = LockedToPart,
  383. VelocityInheritance = VelocityInheritance,
  384. EmissionDirection = EmissionDirection,
  385. Enabled = Enabled,
  386. Lifetime = LifeTime,
  387. Rate = Rate,
  388. Rotation = Rotation,
  389. RotSpeed = RotSpeed,
  390. Speed = Speed,
  391. VelocitySpread = VelocitySpread,
  392. }
  393. return fp
  394. end;
  395. };
  396.  
  397. CreateTemplate = {
  398.  
  399. };
  400. }
  401.  
  402.  
  403.  
  404. New = function(Object, Parent, Name, Data)
  405. local Object = Instance.new(Object)
  406. for Index, Value in pairs(Data or {}) do
  407. Object[Index] = Value
  408. end
  409. Object.Parent = Parent
  410. Object.Name = Name
  411. return Object
  412. end
  413. local halocolor = BrickColor.new("Really black")
  414. local halocolor2 = BrickColor.new("Really black")
  415. local starcolor = BrickColor.new("Really black")
  416. local lunacolor = BrickColor.new("Really black")
  417. local lunacolor2 = BrickColor.new("Really black")
  418. local wepcolor = BrickColor.new("Really black")
  419. local maincolor = BrickColor.new("Really black")
  420. local m = Instance.new("Model",char)
  421. local m2 = Instance.new("Model",char)
  422. local m3 = Instance.new("Model",char)
  423. local mw1 = Instance.new("Model",char)
  424. local mw2 = Instance.new("Model",char)
  425.  
  426. local extrawingmod1 = Instance.new("Model",char)
  427. local extrawingmod2 = Instance.new("Model",char)
  428.  
  429. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  430. local p = Instance.new("Part")
  431. p.TopSurface = 0
  432. p.BottomSurface = 0
  433. p.Parent = parent
  434. p.Size = Vector3.new(0.1,0.1,0.1)
  435. p.Transparency = transparency
  436. p.Reflectance = reflectance
  437. p.CanCollide = false
  438. p.Locked = true
  439. p.BrickColor = brickcolor
  440. p.Material = material
  441. return p
  442. end
  443.  
  444. function CreateMesh(parent,meshtype,x1,y1,z1)
  445. local mesh = Instance.new("SpecialMesh",parent)
  446. mesh.MeshType = meshtype
  447. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  448. return mesh
  449. end
  450.  
  451. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  452. local mesh = Instance.new("SpecialMesh",parent)
  453. mesh.MeshType = "FileMesh"
  454. mesh.MeshId = meshid
  455. mesh.Scale = Vector3.new(x1,y1,z1)
  456. return mesh
  457. end
  458.  
  459.  
  460. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  461. local mesh = Instance.new("SpecialMesh",parent)
  462. mesh.MeshType = "FileMesh"
  463. mesh.MeshId = meshid
  464. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  465. mesh.Scale = Vector3.new(x1,y1,z1)
  466. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  467. return mesh
  468. end
  469.  
  470. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  471. local weld = Instance.new("Weld")
  472. weld.Parent = parent
  473. weld.Part0 = part0
  474. weld.Part1 = part1
  475. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  476. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  477. return weld
  478. end
  479.  
  480.  
  481. --------------
  482. local secondchar = Instance.new("Model",char)
  483. local GhostCol = BrickColor.new("Really black")
  484. local sectors = CreateParta(secondchar,1,0,"Neon",GhostCol)
  485. CreateMesh(sectors,"Brick",2*8,2*8,1*8)
  486. local torsweld = CreateWeld(sectors,root,sectors,1,-1,-2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  487.  
  488. local seclarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
  489. CreateMesh(seclarm,"Brick",1*8,2*8,1*8)
  490. local larmsweld = CreateWeld(seclarm,sectors,seclarm,1.5,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  491.  
  492. local secrarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
  493. CreateMesh(secrarm,"Brick",1*8,2*8,1*8)
  494. local rarmsweld = CreateWeld(secrarm,sectors,secrarm,-1.5,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  495.  
  496. local seclleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
  497. CreateMesh(seclleg,"Brick",1*8,2*8,1*8)
  498. local llegsweld = CreateWeld(seclleg,sectors,seclleg,0.5,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  499.  
  500. local secrleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
  501. CreateMesh(secrleg,"Brick",1*8,2*8,1*8)
  502. local rlegsweld = CreateWeld(secrleg,sectors,secrleg,-0.5,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  503.  
  504. local seched = CreateParta(secondchar,1,0,"Neon",GhostCol)
  505. CreateMesh(seched,"Brick",1*8,1*8,1*8)
  506. local hedsweld = CreateWeld(seched,sectors,seched,0,-1.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  507. --------------
  508. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  509. CreateWeld(sorb,rarm,sorb,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  510. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  511. CreateWeld(sorb2,larm,sorb2,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  512.  
  513. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  514. CreateMesh(handle,"Brick",0,0,0)
  515. local handlexweld = CreateWeld(handlex,tors,handlex,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  516. local valuaring = 10
  517. for i = 0, 49 do
  518. valuaring = valuaring + 10
  519. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  520. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  521. CreateWeld(rn,handlex,rn,0,1,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  522. end
  523.  
  524. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  525. CreateMesh(handle,"Brick",0,0,0)
  526. CreateWeld(handlex,tors,handlex,0,-3,-2.1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  527. local valuaring = 10
  528. for i = 0, 49 do
  529. valuaring = valuaring + 10
  530. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  531. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  532. CreateWeld(rn,handlex,rn,0,2,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  533. end
  534.  
  535.  
  536. local handle = CreateParta(m,1,1,"Neon",maincolor)
  537. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  538. local handleweld = CreateWeld(handle,tors,handle,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  539.  
  540. -- Right wing.
  541.  
  542. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  543. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  544. local rwing1weld = CreateWeld(rwing1,handle,rwing1,-3,0,0,math.rad(5),math.rad(0),math.rad(-12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  545.  
  546. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  547. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  548. CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  549. A0 = Instance.new('Attachment',wed)
  550. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  551. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  552. CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  553. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  554. CreateMesh(wed,"Wedge",0.05,0.5,3)
  555. CreateWeld(wed,rwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  556. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  557. CreateMesh(wed,"Wedge",0.05,3,0.5)
  558. CreateWeld(wed,rwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  559. A1 = Instance.new('Attachment',wed)
  560.  
  561. tr1 = Instance.new('Trail',wed)
  562. tr1.Attachment0 = A0
  563. tr1.Attachment1 = A1
  564. --tr1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  565. tr1.LightEmission = 1
  566. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  567. tr1.Color = ColorSequence.new(BrickColor.new('Really black').Color)
  568. tr1.Lifetime = 0.6
  569.  
  570. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  571. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  572. local rwing2weld = CreateWeld(rwing2,handle,rwing2,-4,1,0,math.rad(10),math.rad(0),math.rad(-25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  573.  
  574. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  575. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  576. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  577. A0 = Instance.new('Attachment',wed)
  578. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  579. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  580. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  581. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  582. CreateMesh(wed,"Wedge",0.05,0.5,3)
  583. CreateWeld(wed,rwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  584. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  585. CreateMesh(wed,"Wedge",0.05,3,0.5)
  586. CreateWeld(wed,rwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  587. A1 = Instance.new('Attachment',wed)
  588.  
  589. tr2 = Instance.new('Trail',wed)
  590. tr2.Attachment0 = A0
  591. tr2.Attachment1 = A1
  592. --tr2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  593. tr2.LightEmission = 1
  594. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  595. tr2.Color = ColorSequence.new(BrickColor.new('Really black').Color)
  596. tr2.Lifetime = 0.6
  597.  
  598. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  599. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  600. local rwing3weld = CreateWeld(rwing3,handle,rwing3,-4.75,2,0,math.rad(15),math.rad(0),math.rad(-37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  601.  
  602. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  603. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  604. CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  605. A0 = Instance.new('Attachment',wed)
  606. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  607. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  608. CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  609. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  610. CreateMesh(wed,"Wedge",0.05,0.5,3)
  611. CreateWeld(wed,rwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  612. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  613. CreateMesh(wed,"Wedge",0.05,3,0.5)
  614. CreateWeld(wed,rwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  615. A1 = Instance.new('Attachment',wed)
  616.  
  617. tr3 = Instance.new('Trail',wed)
  618. tr3.Attachment0 = A0
  619. tr3.Attachment1 = A1
  620. --tr3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  621. tr3.LightEmission = 1
  622. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  623. tr3.Color = ColorSequence.new(BrickColor.new('Really black').Color)
  624. tr3.Lifetime = 0.6
  625.  
  626. --//====================================================\\--
  627. --|| CREATED BY OmegaNoscope
  628. --\\====================================================//--
  629.  
  630.  
  631.  
  632. wait(0.2)
  633.  
  634.  
  635.  
  636. Player = game:GetService("Players").LocalPlayer
  637. PlayerGui = Player.PlayerGui
  638. Cam = workspace.CurrentCamera
  639. Backpack = Player.Backpack
  640. Character = Player.Character
  641. Humanoid = Character.Humanoid
  642. Mouse = Player:GetMouse()
  643. RootPart = Character["HumanoidRootPart"]
  644. Torso = Character["Torso"]
  645. Head = Character["Head"]
  646. RightArm = Character["Right Arm"]
  647. LeftArm = Character["Left Arm"]
  648. RightLeg = Character["Right Leg"]
  649. LeftLeg = Character["Left Leg"]
  650. RootJoint = RootPart["RootJoint"]
  651. Neck = Torso["Neck"]
  652. RightShoulder = Torso["Right Shoulder"]
  653. LeftShoulder = Torso["Left Shoulder"]
  654. RightHip = Torso["Right Hip"]
  655. LeftHip = Torso["Left Hip"]
  656. local sick = Instance.new("Sound",Character)
  657. sick.SoundId = "rbxassetid://434297181"
  658. sick.Looped = true
  659. sick.Pitch = 1
  660. sick.Volume = 1
  661. sick:Play()
  662.  
  663. local FF = Instance.new("ForceField",Character)
  664. FF.Visible = false
  665.  
  666. IT = Instance.new
  667. CF = CFrame.new
  668. VT = Vector3.new
  669. RAD = math.rad
  670. C3 = Color3.new
  671. UD2 = UDim2.new
  672. BRICKC = BrickColor.new
  673. ANGLES = CFrame.Angles
  674. EULER = CFrame.fromEulerAnglesXYZ
  675. COS = math.cos
  676. ACOS = math.acos
  677. SIN = math.sin
  678. ASIN = math.asin
  679. ABS = math.abs
  680. MRANDOM = math.random
  681. FLOOR = math.floor
  682.  
  683. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  684. local NEWMESH = IT(MESH)
  685. if MESH == "SpecialMesh" then
  686. NEWMESH.MeshType = MESHTYPE
  687. if MESHID ~= "nil" and MESHID ~= "" then
  688. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  689. end
  690. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  691. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  692. end
  693. end
  694. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  695. NEWMESH.Scale = SCALE
  696. NEWMESH.Parent = PARENT
  697. return NEWMESH
  698. end
  699.  
  700. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE)
  701. local NEWPART = IT("Part")
  702. NEWPART.formFactor = FORMFACTOR
  703. NEWPART.Reflectance = REFLECTANCE
  704. NEWPART.Transparency = TRANSPARENCY
  705. NEWPART.CanCollide = false
  706. NEWPART.Locked = true
  707. NEWPART.Anchored = true
  708. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  709. NEWPART.Name = NAME
  710. NEWPART.Size = SIZE
  711. NEWPART.Position = Torso.Position
  712. NEWPART.Material = MATERIAL
  713. NEWPART:BreakJoints()
  714. NEWPART.Parent = PARENT
  715. return NEWPART
  716. end
  717.  
  718.  
  719. --//=================================\\
  720. --|| CUSTOMIZATION
  721. --\\=================================//
  722.  
  723. Class_Name = "Template"
  724. Weapon_Name = "Add-ons"
  725.  
  726. Custom_Colors = {
  727. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  728. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  729.  
  730. Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
  731. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  732. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  733. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  734. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  735.  
  736. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  737. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  738. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  739. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  740. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  741. }
  742.  
  743.  
  744. Player_Size = 1 --Size of the player.
  745. Animation_Speed = 3
  746. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  747.  
  748. local Speed = 16
  749. local Effects2 = {}
  750.  
  751. --//=================================\\
  752. --|| END OF CUSTOMIZATION
  753. --\\=================================//
  754.  
  755. local function weldBetween(a, b)
  756. local weldd = Instance.new("ManualWeld")
  757. weldd.Part0 = a
  758. weldd.Part1 = b
  759. weldd.C0 = CFrame.new()
  760. weldd.C1 = b.CFrame:inverse() * a.CFrame
  761. weldd.Parent = a
  762. return weldd
  763. end
  764.  
  765. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  766. local acs = Instance.new("Part")
  767. acs.CanCollide = false
  768. acs.Anchored = false
  769. acs.Size = Vector3.new(0,0,0)
  770. acs.CFrame = attachmentpart.CFrame
  771. acs.Parent = Character
  772. acs.BrickColor = color
  773. local meshs = Instance.new("SpecialMesh")
  774. meshs.MeshId = mesh
  775. meshs.TextureId = texture
  776. meshs.Parent = acs
  777. meshs.Scale = scale
  778. meshs.Offset = offset
  779. weldBetween(attachmentpart,acs)
  780. end
  781.  
  782. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  783. if TYPE == "Gem" then
  784. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  785. acs.Anchored = false
  786. acs.CanCollide = false
  787. acs.CFrame = PART.CFrame
  788. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  789. weldBetween(PART,acs)
  790. elseif TYPE == "Skull" then
  791. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  792. acs.Anchored = false
  793. acs.CanCollide = false
  794. acs.CFrame = PART.CFrame
  795. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  796. weldBetween(PART,acs)
  797. elseif TYPE == "Eye" then
  798. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  799. acs.Anchored = false
  800. acs.CanCollide = false
  801. acs.CFrame = PART.CFrame
  802. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  803. weldBetween(PART,acs)
  804. end
  805. end
  806.  
  807. local FIREHAND = IT("Attachment",RightArm)
  808. FIREHAND.Position = VT(0,-1.2,0)
  809.  
  810. --//=================================\\
  811. --|| USEFUL VALUES
  812. --\\=================================//
  813.  
  814. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  815. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  816. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  817. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  818. local CO1 = 0
  819. local CO2 = 0
  820. local CO3 = 0
  821. local CO4 = 0
  822. local CHANGEDEFENSE = 0
  823. local CHANGEDAMAGE = 0
  824. local CHANGEMOVEMENT = 0
  825. local ANIM = "Idle"
  826. local ATTACK = false
  827. local EQUIPPED = false
  828. local HOLD = false
  829. local COMBO = 1
  830. local LASTPOINT = nil
  831. local BLCF = nil
  832. local SCFR = nil
  833. local STAGGERHITANIM = false
  834. local STAGGERANIM = false
  835. local STUNANIM = false
  836. local CRITCHANCENUMBER = 0
  837. local IDLENUMBER = 0
  838. local DONUMBER = 0
  839. local HANDIDLE = false
  840. local SINE = 0
  841. local CHANGE = 2 / Animation_Speed
  842. local WALKINGANIM = false
  843. local WALK = 0
  844. local DISABLEJUMPING = false
  845. local HASBEENBLOCKED = false
  846. local STUNDELAYNUMBER = 0
  847. local MANADELAYNUMBER = 0
  848. local SECONDARYMANADELAYNUMBER = 0
  849. local ROBLOXIDLEANIMATION = IT("Animation")
  850. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  851. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  852. --ROBLOXIDLEANIMATION.Parent = Humanoid
  853. local WEAPONGUI = IT("ScreenGui", nil)
  854. WEAPONGUI.Name = "Weapon GUI"
  855. local WEAPONTOOL = IT("HopperBin", nil)
  856. WEAPONTOOL.Name = Weapon_Name
  857. local Weapon = IT("Model")
  858. Weapon.Name = Weapon_Name
  859. local Effects = IT("Folder", Weapon)
  860. Effects.Name = "Effects"
  861. local ANIMATOR = Humanoid.Animator
  862. local ANIMATE = Character.Animate
  863. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  864. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  865. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  866. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  867. local UNANCHOR = true
  868. local CIRCLESOUND = "462809305"
  869. local FIREBALL = "463598785"
  870. local EXPLOSION = "416328540"
  871. local RING1 = "462798941"
  872. local RING2 = "462798912"
  873.  
  874. --//=================================\\
  875. --\\=================================//
  876.  
  877. --//=================================\\
  878. --|| STATS
  879. --\\=================================//
  880.  
  881. if Character:FindFirstChild("Stats") ~= nil then
  882. Character:FindFirstChild("Stats").Parent = nil
  883. end
  884.  
  885. local Stats = IT("Folder", nil)
  886. Stats.Name = "Stats"
  887. local ChangeStat = IT("Folder", Stats)
  888. ChangeStat.Name = "ChangeStat"
  889. local Defense = IT("NumberValue", Stats)
  890. Defense.Name = "Defense"
  891. Defense.Value = 1
  892. local Movement = IT("NumberValue", Stats)
  893. Movement.Name = "Movement"
  894. Movement.Value = 1
  895. local Damage = IT("NumberValue", Stats)
  896. Damage.Name = "Damage"
  897. Damage.Value = 1
  898. local Mana = IT("NumberValue", Stats)
  899. Mana.Name = "Mana"
  900. Mana.Value = 0
  901. local SecondaryMana = IT("NumberValue", Stats)
  902. SecondaryMana.Name = "SecondaryMana"
  903. SecondaryMana.Value = 0
  904. local CanCrit = IT("BoolValue", Stats)
  905. CanCrit.Name = "CanCrit"
  906. CanCrit.Value = false
  907. local CritChance = IT("NumberValue", Stats)
  908. CritChance.Name = "CritChance"
  909. CritChance.Value = 20
  910. local CanPenetrateArmor = IT("BoolValue", Stats)
  911. CanPenetrateArmor.Name = "CanPenetrateArmor"
  912. CanPenetrateArmor.Value = false
  913. local AntiTeamKill = IT("BoolValue", Stats)
  914. AntiTeamKill.Name = "AntiTeamKill"
  915. AntiTeamKill.Value = false
  916. local Rooted = IT("BoolValue", Stats)
  917. Rooted.Name = "Rooted"
  918. Rooted.Value = false
  919. local Block = IT("BoolValue", Stats)
  920. Block.Name = "Block"
  921. Block.Value = false
  922. local RecentEnemy = IT("ObjectValue", Stats)
  923. RecentEnemy.Name = "RecentEnemy"
  924. RecentEnemy.Value = nil
  925. local StaggerHit = IT("BoolValue", Stats)
  926. StaggerHit.Name = "StaggerHit"
  927. StaggerHit.Value = false
  928. local Stagger = IT("BoolValue", Stats)
  929. Stagger.Name = "Stagger"
  930. Stagger.Value = false
  931. local Stun = IT("BoolValue", Stats)
  932. Stun.Name = "Stun"
  933. Stun.Value = false
  934. local StunValue = IT("NumberValue", Stats)
  935. StunValue.Name = "StunValue"
  936. StunValue.Value = 0
  937.  
  938.  
  939. --//=================================\\
  940. --\\=================================//
  941.  
  942.  
  943.  
  944.  
  945.  
  946. --//=================================\\
  947. --|| DEBUFFS / BUFFS
  948. --\\=================================//
  949.  
  950. local DEFENSECHANGE1 = IT("NumberValue", ChangeStat)
  951. DEFENSECHANGE1.Name = "ChangeDefense"
  952. DEFENSECHANGE1.Value = 0
  953.  
  954. local MOVEMENTCHANGE1 = IT("NumberValue", nil)
  955. MOVEMENTCHANGE1.Name = "ChangeMovement"
  956. MOVEMENTCHANGE1.Value = 0
  957.  
  958. --//=================================\\
  959. --\\=================================//
  960.  
  961.  
  962.  
  963.  
  964.  
  965. --//=================================\\
  966. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  967. --\\=================================//
  968.  
  969. ArtificialHB = Instance.new("BindableEvent", script)
  970. ArtificialHB.Name = "ArtificialHB"
  971.  
  972. script:WaitForChild("ArtificialHB")
  973.  
  974. frame = Frame_Speed
  975. tf = 0
  976. allowframeloss = false
  977. tossremainder = false
  978. lastframe = tick()
  979. script.ArtificialHB:Fire()
  980.  
  981. game:GetService("RunService").Heartbeat:connect(function(s, p)
  982. tf = tf + s
  983. if tf >= frame then
  984. if allowframeloss then
  985. script.ArtificialHB:Fire()
  986. lastframe = tick()
  987. else
  988. for i = 1, math.floor(tf / frame) do
  989. script.ArtificialHB:Fire()
  990. end
  991. lastframe = tick()
  992. end
  993. if tossremainder then
  994. tf = 0
  995. else
  996. tf = tf - frame * math.floor(tf / frame)
  997. end
  998. end
  999. end)
  1000.  
  1001. --//=================================\\
  1002. --\\=================================//
  1003.  
  1004.  
  1005.  
  1006.  
  1007.  
  1008. --//=================================\\
  1009. --|| SOME FUNCTIONS
  1010. --\\=================================//
  1011.  
  1012. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  1013. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  1014. end
  1015.  
  1016. function PositiveAngle(NUMBER)
  1017. if NUMBER >= 0 then
  1018. NUMBER = 0
  1019. end
  1020. return NUMBER
  1021. end
  1022.  
  1023. function NegativeAngle(NUMBER)
  1024. if NUMBER <= 0 then
  1025. NUMBER = 0
  1026. end
  1027. return NUMBER
  1028. end
  1029.  
  1030. function Swait(NUMBER)
  1031. if NUMBER == 0 or NUMBER == nil then
  1032. ArtificialHB.Event:wait()
  1033. else
  1034. for i = 1, NUMBER do
  1035. ArtificialHB.Event:wait()
  1036. end
  1037. end
  1038. end
  1039.  
  1040. function QuaternionFromCFrame(cf)
  1041. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1042. local trace = m00 + m11 + m22
  1043. if trace > 0 then
  1044. local s = math.sqrt(1 + trace)
  1045. local recip = 0.5 / s
  1046. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1047. else
  1048. local i = 0
  1049. if m11 > m00 then
  1050. i = 1
  1051. end
  1052. if m22 > (i == 0 and m00 or m11) then
  1053. i = 2
  1054. end
  1055. if i == 0 then
  1056. local s = math.sqrt(m00 - m11 - m22 + 1)
  1057. local recip = 0.5 / s
  1058. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1059. elseif i == 1 then
  1060. local s = math.sqrt(m11 - m22 - m00 + 1)
  1061. local recip = 0.5 / s
  1062. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1063. elseif i == 2 then
  1064. local s = math.sqrt(m22 - m00 - m11 + 1)
  1065. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1066. end
  1067. end
  1068. end
  1069.  
  1070. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1071. local xs, ys, zs = x + x, y + y, z + z
  1072. local wx, wy, wz = w * xs, w * ys, w * zs
  1073. local xx = x * xs
  1074. local xy = x * ys
  1075. local xz = x * zs
  1076. local yy = y * ys
  1077. local yz = y * zs
  1078. local zz = z * zs
  1079. 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))
  1080. end
  1081.  
  1082. function QuaternionSlerp(a, b, t)
  1083. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1084. local startInterp, finishInterp;
  1085. if cosTheta >= 0.0001 then
  1086. if (1 - cosTheta) > 0.0001 then
  1087. local theta = ACOS(cosTheta)
  1088. local invSinTheta = 1 / SIN(theta)
  1089. startInterp = SIN((1 - t) * theta) * invSinTheta
  1090. finishInterp = SIN(t * theta) * invSinTheta
  1091. else
  1092. startInterp = 1 - t
  1093. finishInterp = t
  1094. end
  1095. else
  1096. if (1 + cosTheta) > 0.0001 then
  1097. local theta = ACOS(-cosTheta)
  1098. local invSinTheta = 1 / SIN(theta)
  1099. startInterp = SIN((t - 1) * theta) * invSinTheta
  1100. finishInterp = SIN(t * theta) * invSinTheta
  1101. else
  1102. startInterp = t - 1
  1103. finishInterp = t
  1104. end
  1105. end
  1106. 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
  1107. end
  1108.  
  1109. function Clerp(a, b, t)
  1110. local qa = {QuaternionFromCFrame(a)}
  1111. local qb = {QuaternionFromCFrame(b)}
  1112. local ax, ay, az = a.x, a.y, a.z
  1113. local bx, by, bz = b.x, b.y, b.z
  1114. local _t = 1 - t
  1115. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1116. end
  1117.  
  1118. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  1119. local frame = IT("Frame")
  1120. frame.BackgroundTransparency = TRANSPARENCY
  1121. frame.BorderSizePixel = BORDERSIZEPIXEL
  1122. frame.Position = POSITION
  1123. frame.Size = SIZE
  1124. frame.BackgroundColor3 = COLOR
  1125. frame.BorderColor3 = BORDERCOLOR
  1126. frame.Name = NAME
  1127. frame.Parent = PARENT
  1128. return frame
  1129. end
  1130.  
  1131. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  1132. local label = IT("TextLabel")
  1133. label.BackgroundTransparency = 1
  1134. label.Size = UD2(1, 0, 1, 0)
  1135. label.Position = UD2(0, 0, 0, 0)
  1136. label.TextColor3 = C3(255, 255, 255)
  1137. label.TextStrokeTransparency = STROKETRANSPARENCY
  1138. label.TextTransparency = TRANSPARENCY
  1139. label.FontSize = TEXTFONTSIZE
  1140. label.Font = TEXTFONT
  1141. label.BorderSizePixel = BORDERSIZEPIXEL
  1142. label.TextScaled = true
  1143. label.Text = TEXT
  1144. label.Name = NAME
  1145. label.Parent = PARENT
  1146. return label
  1147. end
  1148.  
  1149. function NoOutlines(PART)
  1150. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  1151. end
  1152.  
  1153.  
  1154. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  1155. local NEWWELD = IT(TYPE)
  1156. NEWWELD.Part0 = PART0
  1157. NEWWELD.Part1 = PART1
  1158. NEWWELD.C0 = C0
  1159. NEWWELD.C1 = C1
  1160. NEWWELD.Parent = PARENT
  1161. return NEWWELD
  1162. end
  1163.  
  1164. function CreateSound(ID, PARENT, VOLUME, PITCH)
  1165. coroutine.resume(coroutine.create(function()
  1166. local NEWSOUND = IT("Sound", PARENT)
  1167. NEWSOUND.Volume = VOLUME
  1168. NEWSOUND.Pitch = PITCH
  1169. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  1170. Swait()
  1171. NEWSOUND:play()
  1172. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  1173. end))
  1174. end
  1175.  
  1176. function CFrameFromTopBack(at, top, back)
  1177. local right = top:Cross(back)
  1178. 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)
  1179. end
  1180.  
  1181. function CreateWave(inair,size,doesrotate,rotatedirection,waitt,part,offset,color)
  1182. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  1183. local mesh = IT("SpecialMesh",wave)
  1184. mesh.MeshType = "FileMesh"
  1185. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1186. mesh.Scale = VT(size,size,size)
  1187. mesh.Offset = VT(0,0,-size/8)
  1188. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  1189. coroutine.resume(coroutine.create(function(PART)
  1190. for i = 1, waitt do
  1191. Swait()
  1192. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  1193. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  1194. if doesrotate == true then
  1195. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  1196. end
  1197. wave.Transparency = wave.Transparency + (0.5/waitt)
  1198. if wave.Transparency > 0.99 then
  1199. wave:remove()
  1200. end
  1201. end
  1202. end))
  1203. end
  1204.  
  1205. function CreateSwirl(inair,size,doesrotate,rotatedirection,waitt,part,offset,color)
  1206. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  1207. local mesh = IT("SpecialMesh",wave)
  1208. mesh.MeshType = "FileMesh"
  1209. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  1210. mesh.Scale = VT(size,size,size)
  1211. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  1212. coroutine.resume(coroutine.create(function(PART)
  1213. for i = 1, waitt do
  1214. Swait()
  1215. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  1216. if doesrotate == true then
  1217. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  1218. end
  1219. wave.Transparency = wave.Transparency + (0.5/waitt)
  1220. if wave.Transparency > 0.99 then
  1221. wave:remove()
  1222. end
  1223. end
  1224. end))
  1225. end
  1226.  
  1227. function CreateTornado(inair,size,doesrotate,rotatedirection,waitt,part,offset,color)
  1228. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  1229. local mesh = IT("SpecialMesh",wave)
  1230. mesh.MeshType = "FileMesh"
  1231. mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
  1232. mesh.Scale = VT(size,size,size)
  1233. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  1234. coroutine.resume(coroutine.create(function(PART)
  1235. for i = 1, waitt do
  1236. Swait()
  1237. if doesrotate == true then
  1238. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  1239. end
  1240. wave.Transparency = wave.Transparency + (0.5/waitt)
  1241. if wave.Transparency > 0.99 then
  1242. wave.Parent = nil
  1243. end
  1244. end
  1245. end))
  1246. return wave
  1247. end
  1248.  
  1249. function CreateRing(inair,size,doesrotate,rotatedirection,waitt,part,offset,spin1,spin2,color)
  1250. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  1251. local mesh = IT("SpecialMesh",wave)
  1252. mesh.MeshType = "FileMesh"
  1253. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1254. mesh.Scale = VT(size,size,size)
  1255. mesh.Offset = VT(0,0,0)
  1256. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  1257. coroutine.resume(coroutine.create(function(PART)
  1258. for i = 1, waitt do
  1259. Swait()
  1260. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  1261. if doesrotate == true then
  1262. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(spin2, rotatedirection, spin1)
  1263. end
  1264. wave.Transparency = wave.Transparency + (0.5/waitt)
  1265. if wave.Transparency > 0.99 then
  1266. wave:remove()
  1267. end
  1268. end
  1269. end))
  1270. end
  1271.  
  1272. function MagicSphere(size,waitt,part,offset,color)
  1273. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(0,0,0))
  1274. local mesh = IT("SpecialMesh",wave)
  1275. mesh.MeshType = "FileMesh"
  1276. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1277. mesh.Scale = VT(size,size,size)
  1278. mesh.Offset = VT(0,0,0)
  1279. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(0),RAD(0),RAD(0))
  1280. coroutine.resume(coroutine.create(function(PART)
  1281. for i = 1, waitt do
  1282. Swait()
  1283. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  1284. wave.Transparency = wave.Transparency + (1/waitt)
  1285. if wave.Transparency > 0.99 then
  1286. wave:remove()
  1287. end
  1288. end
  1289. end))
  1290. end
  1291.  
  1292. function MagicBlock(size,waitt,part,offset,color)
  1293. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(size,size,size))
  1294. local mesh = IT("BlockMesh",wave)
  1295. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(0),RAD(0),RAD(0))
  1296. coroutine.resume(coroutine.create(function(PART)
  1297. for i = 1, waitt do
  1298. Swait()
  1299. mesh.Scale = mesh.Scale + VT(size/15,size/15,size/15)
  1300. wave.CFrame = CF(wave.Position) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  1301. wave.Transparency = wave.Transparency + (1/waitt)
  1302. if wave.Transparency > 0.99 then
  1303. wave:remove()
  1304. end
  1305. end
  1306. end))
  1307. end
  1308.  
  1309. local EyeSizes={
  1310. NumberSequenceKeypoint.new(0,0.5,0),
  1311. NumberSequenceKeypoint.new(1,0.2,0)
  1312. }
  1313. local EyeTrans={
  1314. NumberSequenceKeypoint.new(0,0,0),
  1315. NumberSequenceKeypoint.new(1,1,0)
  1316. }
  1317. local PE=Instance.new("ParticleEmitter")
  1318. PE.LightEmission=0.8
  1319. PE.Size=NumberSequence.new(EyeSizes)
  1320. PE.Transparency=NumberSequence.new(EyeTrans)
  1321. PE.Rotation=NumberRange.new(0,360)
  1322. PE.LockedToPart = false
  1323. PE.Speed = NumberRange.new(0,0,0)
  1324. PE.ZOffset = 0.3
  1325. PE.Rate = 999
  1326. PE.VelocitySpread = 90000
  1327. PE.Name = "Particles"
  1328.  
  1329. function CreateParticles(art,accel,drag,lifetime,type,isenabledbydefault,locked,size,speed)
  1330. local particle = nil
  1331. coroutine.resume(coroutine.create(function(PART)
  1332. particle = PE:Clone()
  1333. Swait()
  1334. particle.Rate = 999
  1335. particle.Parent = art
  1336. particle.Acceleration = accel
  1337. if type == "Fire" then
  1338. local EyeSizes={
  1339. NumberSequenceKeypoint.new(0,size,size/2),
  1340. NumberSequenceKeypoint.new(1,size/4,size/8)
  1341. }
  1342. particle.Size = NumberSequence.new(EyeSizes)
  1343. elseif type == "Smoke" then
  1344. local EyeSizes={
  1345. NumberSequenceKeypoint.new(0,0.5,0),
  1346. NumberSequenceKeypoint.new(1,5,0.5)
  1347. }
  1348. particle.Size = NumberSequence.new(EyeSizes)
  1349. elseif type == "Solid" then
  1350. local EyeSizes={
  1351. NumberSequenceKeypoint.new(0,0.5,0),
  1352. NumberSequenceKeypoint.new(1,0.5,0)
  1353. }
  1354. particle.Size = NumberSequence.new(EyeSizes)
  1355. end
  1356. particle.Lifetime=NumberRange.new(lifetime)
  1357. particle.Drag = drag
  1358. if locked == true then
  1359. particle.LockedToPart = true
  1360. end
  1361. particle.Speed = NumberRange.new(speed,speed,speed)
  1362. particle.Texture = "http://www.roblox.com/asset/?id=296874871"
  1363. particle.Enabled = isenabledbydefault
  1364. particle.Color = ColorSequence.new(Color3.new(0, 0, 0))
  1365. end))
  1366. return particle
  1367. end
  1368.  
  1369. local Decal = IT("Decal")
  1370.  
  1371. function CreateMagicCircle(size,doesrotate,rotatedirection,waitt,cframe,alwaysfade)
  1372. local sinkhole = IT("Part")
  1373. sinkhole.Size = VT(size,0,size)
  1374. sinkhole.CFrame = cframe
  1375. --sinkhole.Orientation = VT(0,0,0)
  1376. sinkhole.Parent = Effects
  1377. sinkhole.Material = "Neon"
  1378. sinkhole.Color = C3(1,0,0)
  1379. sinkhole.Anchored = true
  1380. sinkhole.CanCollide = false
  1381. sinkhole.Transparency = 1
  1382. local decal = Decal:Clone()
  1383. decal.Parent = sinkhole
  1384. decal.Face = "Top"
  1385. decal.Texture = "http://www.roblox.com/asset/?id=1795799600"
  1386. local decal2 = Decal:Clone()
  1387. decal2.Parent = sinkhole
  1388. decal2.Face = "Bottom"
  1389. decal2.Texture = "rbxassetid://1795800206"
  1390. coroutine.resume(coroutine.create(function(PART)
  1391. for i = 1, waitt do
  1392. Swait()
  1393. if doesrotate == true then
  1394. sinkhole.CFrame = sinkhole.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  1395. end
  1396. if alwaysfade == true then
  1397. decal.Transparency = decal.Transparency + (1/waitt)
  1398. decal2.Transparency = decal.Transparency + (1/waitt)
  1399. end
  1400. if i > waitt-11 and (alwaysfade ~= true) then
  1401. decal.Transparency = decal.Transparency + 0.1
  1402. decal2.Transparency = decal.Transparency + 0.1
  1403. end
  1404. end
  1405. sinkhole.Parent = nil
  1406. end))
  1407. return sinkhole
  1408. end
  1409.  
  1410. function CreateMagicRingTilSize(cframe,size,waitt)
  1411. for i = 1, size do
  1412. CreateMagicCircle(i/5,false,0,3,cframe,true)
  1413. Swait()
  1414. end
  1415. CreateMagicCircle(size/5,false,0,waitt,cframe,false)
  1416. end
  1417.  
  1418. --//=================================\\
  1419. --\\=================================//
  1420.  
  1421.  
  1422. --//=================================\\
  1423. --|| WEAPON CREATION
  1424. --\\=================================//
  1425.  
  1426. if Player_Size ~= 1 then
  1427. for _, v in pairs (Weapon:GetChildren()) do
  1428. if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then
  1429. local p1 = v.Part1
  1430. v.Part1 = nil
  1431. local cf1, cf2, cf3, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12 = v.C1:components()
  1432. v.C1 = CF(cf1 * Player_Size, cf2 * Player_Size, cf3 * Player_Size, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12)
  1433. v.Part1 = p1
  1434. elseif v.ClassName == "Part" then
  1435. for _, b in pairs (v:GetChildren()) do
  1436. if b.ClassName == "SpecialMesh" or b.ClassName == "BlockMesh" then
  1437. b.Scale = VT(b.Scale.x * Player_Size, b.Scale.y * Player_Size, b.Scale.z * Player_Size)
  1438. end
  1439. end
  1440. end
  1441. end
  1442. end
  1443.  
  1444. for _, c in pairs(Weapon:GetChildren()) do
  1445. if c.ClassName == "Part" then
  1446. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1447. end
  1448. end
  1449.  
  1450. Weapon.Parent = Character
  1451.  
  1452. Humanoid.Died:connect(function()
  1453. ATTACK = true
  1454. end)
  1455.  
  1456. print(Class_Name.." loaded.")
  1457.  
  1458. --//=================================\\
  1459. --\\=================================//
  1460.  
  1461.  
  1462.  
  1463.  
  1464.  
  1465. --//=================================\\
  1466. --|| DAMAGE FUNCTIONS
  1467. --\\=================================//
  1468.  
  1469. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  1470. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  1471. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  1472. local BODYGYRO = IT("BodyGyro", STATPART)
  1473. local BODYPOSITION = IT("BodyPosition", STATPART)
  1474. BODYPOSITION.P = 2000
  1475. BODYPOSITION.D = 100
  1476. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  1477. if LABELTYPE == "Normal" then
  1478. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  1479. elseif LABELTYPE == "Debuff" then
  1480. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 8, MRANDOM(-2, 2))
  1481. elseif LABELTYPE == "Interruption" then
  1482. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2,2), 8, MRANDOM(-2, 2))
  1483. end
  1484. game:GetService("Debris"):AddItem(STATPART ,5)
  1485. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  1486. BILLBOARDGUI.Adornee = STATPART
  1487. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  1488. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  1489. BILLBOARDGUI.AlwaysOnTop = false
  1490. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  1491. TEXTLABEL.BackgroundTransparency = 1
  1492. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  1493. TEXTLABEL.Text = TEXT
  1494. TEXTLABEL.Font = "SciFi"
  1495. TEXTLABEL.FontSize="Size42"
  1496. TEXTLABEL.TextColor3 = COLOR
  1497. TEXTLABEL.TextStrokeTransparency = 1
  1498. TEXTLABEL.TextScaled = true
  1499. TEXTLABEL.TextWrapped = true
  1500. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  1501. wait(0.2)
  1502. for i=1, 5 do
  1503. wait()
  1504. THEBODYPOSITION.Position = THEPART.Position - VT(0, 0.5 ,0)
  1505. end
  1506. wait(1.2)
  1507. for i=1, 5 do
  1508. wait()
  1509. THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2
  1510. THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2
  1511. THEBODYPOSITION.position = THEPART.Position + VT(0, 0.5, 0)
  1512. end
  1513. THEPART.Parent = nil
  1514. end),STATPART, BODYPOSITION, TEXTLABEL)
  1515. end
  1516.  
  1517.  
  1518. --//=================================\\
  1519. --|| DAMAGING
  1520. --\\=================================//
  1521.  
  1522. function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier)
  1523. if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then
  1524. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  1525. local dmg = math.random(min,max)
  1526. if humanoid.Health > 0 then
  1527. if beserk == true then
  1528. humanoid.Health = 0
  1529. else
  1530. CreateSound("260430060", hit, 1.2, MRANDOM(7, 12) / 10)
  1531. hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength
  1532. if math.random(1,100) < critrate+1 then
  1533. humanoid.Health = humanoid.Health - dmg*critmultiplier
  1534. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  1535. else
  1536. humanoid.Health = humanoid.Health - dmg
  1537. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(255/255, 0, 0))
  1538. end
  1539. local defence = Instance.new("BoolValue",hit.Parent)
  1540. defence.Name = ("HitBy"..Player.Name)
  1541. game:GetService("Debris"):AddItem(defence, 0.5)
  1542. end
  1543. end
  1544. end
  1545. end
  1546.  
  1547. function killnearest(position,range,maxstrength)
  1548. for i,v in ipairs(workspace:GetChildren()) do
  1549. local body = v:GetChildren()
  1550. for part = 1, #body do
  1551. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1552. if(body[part].Position - position).Magnitude < range then
  1553. if v.ClassName == "Model" then
  1554. v:BreakJoints()
  1555. end
  1556. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  1557. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  1558. end
  1559. end
  1560. end
  1561. if v.ClassName == "Part" then
  1562. if v.Anchored == false and (v.Position - position).Magnitude < range then
  1563. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  1564. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  1565. end
  1566. end
  1567. end
  1568. end
  1569.  
  1570. --//=================================\\
  1571. --|| ATTACK FUNCTIONS AND STUFF
  1572. --\\=================================//
  1573.  
  1574. function chatfunc(text,waitt)
  1575. local chat = coroutine.wrap(function()
  1576. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  1577. Character:FindFirstChild("TalkingBillBoard"):destroy()
  1578. end
  1579. local naeeym2 = Instance.new("BillboardGui",Character)
  1580. naeeym2.Size = UDim2.new(0,100,0,40)
  1581. naeeym2.StudsOffset = Vector3.new(0,2,0)
  1582. naeeym2.Adornee = Character.Head
  1583. naeeym2.Name = "TalkingBillBoard"
  1584. naeeym2.AlwaysOnTop = true
  1585. local tecks2 = Instance.new("TextLabel",naeeym2)
  1586. tecks2.BackgroundTransparency = 1
  1587. tecks2.BorderSizePixel = 0
  1588. tecks2.Text = ""
  1589. tecks2.Font = "Fantasy"
  1590. tecks2.TextSize = 30
  1591. tecks2.TextStrokeTransparency = 1
  1592. tecks2.TextColor3 = Color3.new(0, 0, 0)
  1593. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  1594. tecks2.Size = UDim2.new(1,0,0.5,0)
  1595. local tecks3 = Instance.new("TextLabel",naeeym2)
  1596. tecks3.BackgroundTransparency = 1
  1597. tecks3.BorderSizePixel = 0
  1598. tecks3.Text = ""
  1599. tecks3.Font = "Fantasy"
  1600. tecks3.TextSize = 30
  1601. tecks3.TextStrokeTransparency = 1
  1602. tecks3.TextColor3 = Color3.new(0, 0, 0)
  1603. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  1604. tecks3.Size = UDim2.new(1,0,0.5,0)
  1605. for i = 1,string.len(text),1 do
  1606. tecks2.Text = string.sub(text,1,i)
  1607. tecks3.Text = string.sub(text,1,i)
  1608. wait(0.01)
  1609. end
  1610. wait(waitt)
  1611. naeeym2:Destroy()
  1612. end)
  1613. chat()
  1614. end
  1615.  
  1616. function turnto(pos,part)
  1617. part.CFrame = CF(part.Position,VT(pos.X,RootPart.Position.Y,pos.Z))
  1618. end
  1619.  
  1620. function createfireball(size,enabled)
  1621. local FIREBALL = IT("Part",Effects)
  1622. FIREBALL.Shape = "Ball"
  1623. FIREBALL.Size = VT(size,size,size)
  1624. FIREBALL.Material = "Neon"
  1625. FIREBALL.BrickColor = BRICKC("Really black")
  1626. local PARTICLES = CreateParticles(FIREBALL,VT(0,0,0),2,1,"Fire",enabled,false,size*1.5,5)
  1627. return FIREBALL,PARTICLES
  1628. end
  1629.  
  1630. function Fireball()
  1631. ATTACK = true
  1632. chatfunc("Dark...",100)
  1633. for i=0, 1.5, 0.1 / Animation_Speed do
  1634. Swait()
  1635. turnto(Mouse.Hit.p,RootPart)
  1636. 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)
  1637. 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)
  1638. 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)
  1639. 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)
  1640. 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)
  1641. 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)
  1642. end
  1643. local aimpos = Mouse.Hit.p
  1644. CreateSound(CIRCLESOUND, RightArm, 2, 1)
  1645. CreateMagicRingTilSize(RightArm.CFrame*CF(0,-1.2,0),35,25)
  1646. chatfunc("Explosion",2)
  1647. local FIRE,PARTICLES = createfireball(3,true)
  1648. CreateSound(FIREBALL, FIRE, 2, 1)
  1649. FIRE.CFrame = RightArm.CFrame*CF(0,-1.2,0)
  1650. local bv = Instance.new("BodyVelocity")
  1651. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1652. bv.velocity = CF(FIRE.Position,aimpos).lookVector*50
  1653. bv.Parent = FIRE
  1654. bv.Name = "MOVE"
  1655. local HIT = false
  1656. local harm = FIRE.Touched:Connect(function(hit)
  1657. if HIT == false and hit.Parent ~= Character and hit.Parent ~= Weapon and hit.Parent ~= Effects then
  1658. HIT = true
  1659. coroutine.resume(coroutine.create(function()
  1660. FIRE.Anchored = true
  1661. FIRE.CanCollide = false
  1662. PARTICLES.Enabled = false
  1663. CreateSound(EXPLOSION, FIRE, 10, 1)
  1664. local BURST = CreateParticles(FIRE,VT(0,0,0),2,4,"Fire",false,true,6,85)
  1665. BURST:Emit(750)
  1666. killnearest(FIRE.Position,35,75)
  1667. for i = 1, 35 do
  1668. Swait()
  1669. FIRE.Size = FIRE.Size + VT(2,2,2)
  1670. FIRE.Transparency = FIRE.Transparency + (1/35)
  1671. end
  1672. Swait(250)
  1673. FIRE:remove()
  1674. end))
  1675. end
  1676. end)
  1677. ATTACK = false
  1678. end
  1679.  
  1680. function SolarPunch()
  1681. ATTACK = true
  1682. for i=0, 0.5, 0.1 / Animation_Speed do
  1683. Swait()
  1684. 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)
  1685. 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)
  1686. 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)
  1687. 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)
  1688. 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)
  1689. 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)
  1690. end
  1691. local GRAB = nil
  1692. local HIT = false
  1693. local hitting = RightArm.Touched:connect(function(hit)
  1694. if GRAB == nil then
  1695. if hit.Parent:FindFirstChild("Humanoid") then
  1696. if hit.Parent.Humanoid.Health ~= 0 then
  1697. HIT = true
  1698. GRAB = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  1699. MagicBlock(1.2,20,GRAB,0,BRICKC("Pearl").Color)
  1700. GRAB.Anchored = true
  1701. CreateSound("131237241", GRAB, 3, 1)
  1702. end
  1703. end
  1704. end
  1705. end)
  1706. for i=0, 1, 0.1 / Animation_Speed do
  1707. Swait()
  1708. 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)
  1709. 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)
  1710. 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)
  1711. 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)
  1712. 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)
  1713. 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)
  1714. if HIT == true then
  1715. break
  1716. end
  1717. end
  1718. hitting:disconnect()
  1719. if GRAB ~= nil then
  1720. Rooted = true
  1721. local BURST = CreateParticles(FIREHAND,VT(0,0,0),1,2,"Fire",true,false,1,2)
  1722. turnto(RootPart.Position,GRAB)
  1723. RootPart.CFrame = GRAB.CFrame * CF(0,0,-4) * ANGLES(RAD(0),RAD(180),RAD(0))
  1724. for i=0, 3, 0.1 / Animation_Speed*4 do
  1725. if GRAB ~= nil then
  1726. Swait()
  1727. turnto(GRAB.Position,RootPart)
  1728. turnto(RootPart.Position,GRAB)
  1729. 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)
  1730. 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)
  1731. 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)
  1732. 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)
  1733. 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)
  1734. 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)
  1735. end
  1736. end
  1737. chatfunc("Dark...",100)
  1738. CreateSound(CIRCLESOUND, GRAB, 2, 1)
  1739. CreateMagicRingTilSize(GRAB.CFrame * CF(0,0,2) * ANGLES(RAD(90),RAD(0),RAD(0)),45,75)
  1740. BURST.Enabled = false
  1741. local BURST = CreateParticles(FIREHAND,VT(0,0,0),1,2,"Fire",false,false,6,25)
  1742. for i=0, 1, 0.1 / Animation_Speed*6 do
  1743. if GRAB ~= nil then
  1744. Swait()
  1745. turnto(GRAB.Position,RootPart)
  1746. turnto(RootPart.Position,GRAB)
  1747. 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)
  1748. 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)
  1749. 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)
  1750. 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)
  1751. 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)
  1752. 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)
  1753. end
  1754. end
  1755. chatfunc("Fist!",2)
  1756. if GRAB ~= nil then
  1757. CreateSound(EXPLOSION, GRAB, 10, 1)
  1758. BURST:Emit(300)
  1759. GRAB.Parent:BreakJoints()
  1760. Swait(150)
  1761. end
  1762. end
  1763. FIREHAND:ClearAllChildren()
  1764. GRAB = nil
  1765. Rooted = false
  1766. HIT = nil
  1767. ATTACK = false
  1768. end
  1769.  
  1770. function SunEruption()
  1771. ATTACK = true
  1772. Rooted = true
  1773. chatfunc("Dark...",100)
  1774. for i=0, 1, 0.1 / Animation_Speed do
  1775. Swait()
  1776. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0.2 * Player_Size, -0.1 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(-12.5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1777. 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)
  1778. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(150), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1779. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(150), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1780. 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(-12.5)), 0.15 / Animation_Speed)
  1781. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.2 * Player_Size, -1.2 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(12.5)), 0.15 / Animation_Speed)
  1782. end
  1783. CreateSound(CIRCLESOUND, LeftLeg, 2, 1)
  1784. CreateMagicRingTilSize(LeftLeg.CFrame*CF(0,-1.2,0),75,25)
  1785. chatfunc("Eruption!",2)
  1786. local Animation_Speed2 = Animation_Speed/8
  1787. for i=0, 1, 0.1 / Animation_Speed2 do
  1788. Swait()
  1789. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, -0.2 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
  1790. 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_Speed2)
  1791. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2)
  1792. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2)
  1793. 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(25)), 0.15 / Animation_Speed2)
  1794. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(5), RAD(-25)), 0.15 / Animation_Speed2)
  1795. end
  1796. RootPart.Anchored = true
  1797. local FIRE,PARTICLES = createfireball(6,false)
  1798. FIRE.CFrame = LeftLeg.CFrame
  1799. PARTICLES:remove()
  1800. CreateMagicCircle(75,true,-0.01,75,CF(LeftLeg.Position) * CF(0,-1,0),false)
  1801. coroutine.resume(coroutine.create(function()
  1802. FIRE.Anchored = true
  1803. FIRE.CanCollide = false
  1804. CreateSound(EXPLOSION, FIRE, 10, 1)
  1805. local BURST = CreateParticles(FIRE,VT(0,0,0),2,4,"Fire",false,true,6,75)
  1806. BURST:Emit(750)
  1807. local BURST = CreateParticles(FIRE,VT(0,0,0),2,4,"Fire",false,true,6,55)
  1808. BURST:Emit(750)
  1809. killnearest(FIRE.Position,45,75)
  1810. local mesh = IT("CylinderMesh",FIRE)
  1811. mesh.Scale = VT(1,10000,1)
  1812. for i = 1, 35 do
  1813. Swait()
  1814. FIRE.Size = FIRE.Size + VT(1,1,1)
  1815. FIRE.Transparency = FIRE.Transparency + (1/35)
  1816. end
  1817. Swait(250)
  1818. FIRE:remove()
  1819. end))
  1820. RootPart.Anchored = false
  1821. Rooted = false
  1822. ATTACK = false
  1823. end
  1824.  
  1825. function SolarImpact()
  1826. ATTACK = true
  1827. for i=0, 0.5, 0.1 / Animation_Speed do
  1828. Swait()
  1829. 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)
  1830. 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)
  1831. 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)
  1832. 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)
  1833. 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)
  1834. 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)
  1835. end
  1836. local GRAB = nil
  1837. local HIT = false
  1838. local hitting = RightArm.Touched:connect(function(hit)
  1839. if GRAB == nil then
  1840. if hit.Parent:FindFirstChild("Humanoid") then
  1841. if hit.Parent.Humanoid.Health ~= 0 then
  1842. HIT = true
  1843. GRAB = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  1844. MagicBlock(1.2,20,GRAB,0,BRICKC("Pearl").Color)
  1845. GRAB.Anchored = true
  1846. CreateSound("131237241", GRAB, 3, 1)
  1847. end
  1848. end
  1849. end
  1850. end)
  1851. for i=0, 1, 0.1 / Animation_Speed do
  1852. Swait()
  1853. 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)
  1854. 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)
  1855. 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)
  1856. 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)
  1857. 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)
  1858. 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)
  1859. if HIT == true then
  1860. break
  1861. end
  1862. end
  1863. hitting:disconnect()
  1864. if GRAB ~= nil then
  1865. Rooted = true
  1866. turnto(RootPart.Position,GRAB)
  1867. RootPart.CFrame = GRAB.CFrame * CF(0,0,-6) * ANGLES(RAD(0),RAD(180),RAD(0))
  1868. for i=0, 2, 0.1 / Animation_Speed do
  1869. Swait()
  1870. 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)
  1871. 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)
  1872. 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)
  1873. 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)
  1874. 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)
  1875. 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)
  1876. end
  1877. CreateSound("2767090", Torso, 5, MRANDOM(7, 12) / 10)
  1878. CreateWave(0,1.5,true,0.02,150,RootPart,-2,"Really black")
  1879. CreateWave(0,3,true,-0.02,150,RootPart,-2,"Really black")
  1880. local bv = Instance.new("BodyVelocity")
  1881. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1882. bv.velocity = Vector3.new(0,300,0)
  1883. bv.Parent = Torso
  1884. bv.Name = "DASH"
  1885. game:GetService("Debris"):AddItem(bv, 0.5)
  1886. coroutine.resume(coroutine.create(function()
  1887. for i=0, 2, 0.1 / Animation_Speed do
  1888. Swait()
  1889. 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)
  1890. 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)
  1891. 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)
  1892. 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)
  1893. 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)
  1894. 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)
  1895. end
  1896. end))
  1897. Swait(125)
  1898. UNANCHOR = false
  1899. RootPart.Anchored = true
  1900. chatfunc("Dark...",100)
  1901. for i=0, 0.5, 0.1 / Animation_Speed do
  1902. Swait()
  1903. turnto(GRAB.Position,RootPart)
  1904. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  1905. 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)
  1906. 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)
  1907. 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)
  1908. 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)
  1909. 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)
  1910. --HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1911. end
  1912. local TRAIL = CreateParticles(Torso,VT(0,0,0),2,2,"Fire",true,true,6,15)
  1913. local A1 = IT("Attachment",Torso)
  1914. A1.Position = Vector3.new(0, 0.5, 0)
  1915. local A2 = IT("Attachment",Torso)
  1916. A2.Position = Vector3.new(0, -0.5, 0)
  1917. local Trail = IT("Trail",Torso)
  1918. Trail.LightEmission = 1
  1919. Trail.FaceCamera = true
  1920. Trail.Texture = "rbxassetid://945758042"
  1921. Trail.Attachment0 = A1
  1922. Trail.Attachment1 = A2
  1923. Trail.Lifetime = 0.6
  1924. Trail.MinLength = 0
  1925. Trail.Transparency = NumberSequence.new(0)
  1926. Trail.Color = ColorSequence.new(BrickColor.new("Really black").Color)
  1927. CreateMagicRingTilSize(GRAB.CFrame * CF(0,0,2) * ANGLES(RAD(90),RAD(0),RAD(0)),45,75)
  1928. Swait(30)
  1929. TRAIL.Enabled = false
  1930. for i=0, 3, 0.1 / Animation_Speed do
  1931. turnto(GRAB.Position,RootPart)
  1932. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1933. 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)
  1934. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1935. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1 * Player_Size, 0.2 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  1936. 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)
  1937. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(5), RAD(0)) * ANGLES(RAD(45), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1938. end
  1939. RootPart.CFrame = GRAB.CFrame * CF(0,0,4) * ANGLES(RAD(0),RAD(180),RAD(0))
  1940. chatfunc("Impact!",2)
  1941. CreateSound(EXPLOSION, Torso, 10, 1)
  1942. killnearest(Torso.Position,5,0)
  1943. local BURST = CreateParticles(Torso,VT(0,0,0),2,2,"Fire",false,true,6,25)
  1944. BURST:Emit(750)
  1945. Swait(150)
  1946. Trail:remove()
  1947. BURST:remove()
  1948. UNANCHOR = true
  1949. TRAIL:remove()
  1950. end
  1951. FIREHAND:ClearAllChildren()
  1952. GRAB = nil
  1953. Rooted = false
  1954. HIT = nil
  1955. ATTACK = false
  1956. end
  1957.  
  1958. function SolarDemise()
  1959. Rooted = true
  1960. for i=0, 2, 0.1 / Animation_Speed do
  1961. Swait()
  1962. 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)
  1963. 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)
  1964. 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)
  1965. 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)
  1966. 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)
  1967. 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)
  1968. end
  1969. CreateSound("2767090", Torso, 5, MRANDOM(7, 12) / 10)
  1970. CreateWave(0,3.5,true,0.02,150,RootPart,-2,"Really black")
  1971. CreateWave(0,5,true,-0.02,150,RootPart,-2,"Really black")
  1972. local bv = Instance.new("BodyVelocity")
  1973. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1974. bv.velocity = Vector3.new(0,300,0)
  1975. bv.Parent = Torso
  1976. bv.Name = "DASH"
  1977. game:GetService("Debris"):AddItem(bv, 0.5)
  1978. Swait(125)
  1979. ATTACK = true
  1980. UNANCHOR = false
  1981. RootPart.Anchored = true
  1982. for i=0, 1, 0.1 / Animation_Speed do
  1983. Swait()
  1984. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0.2 * Player_Size, -0.1 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(-12.5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1985. 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)
  1986. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(150), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1987. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(150), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1988. 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(-12.5)), 0.15 / Animation_Speed)
  1989. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.2 * Player_Size, -1.2 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(12.5)), 0.15 / Animation_Speed)
  1990. end
  1991. chatfunc("DARK...",500)
  1992. CreateSound(CIRCLESOUND, Effects, 10, 0.5)
  1993. local Animation_Speed2 = Animation_Speed/8
  1994. CreateMagicRingTilSize(RootPart.CFrame*CF(0,-4,0),350,750)
  1995. chatfunc("DEMISE!",5)
  1996. for i = 1, 35 do
  1997. for i=0, 1, 0.1 / Animation_Speed2 do
  1998. Swait()
  1999. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0.2 * Player_Size, -0.1 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(-12.5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2000. 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)
  2001. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(150), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2002. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(150), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2003. 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(-12.5)), 0.15 / Animation_Speed)
  2004. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.2 * Player_Size, -1.2 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(12.5)), 0.15 / Animation_Speed)
  2005. end
  2006. local FIRE,PARTICLES = createfireball(7,true)
  2007. CreateSound(FIREBALL, FIRE, 2, 1)
  2008. FIRE.CFrame = RootPart.CFrame*CF(0,-7,0)
  2009. local bv = Instance.new("BodyVelocity")
  2010. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2011. bv.velocity = CF(FIRE.Position,Mouse.Hit.p).lookVector*350
  2012. bv.Parent = FIRE
  2013. bv.Name = "MOVE"
  2014. local HIT = false
  2015. local harm = FIRE.Touched:Connect(function(hit)
  2016. if HIT == false and hit.Parent ~= Character and hit.Parent ~= Weapon and hit.Parent ~= Effects then
  2017. HIT = true
  2018. coroutine.resume(coroutine.create(function()
  2019. FIRE.Anchored = true
  2020. FIRE.CanCollide = false
  2021. PARTICLES.Enabled = false
  2022. CreateSound(EXPLOSION, FIRE, 10, 1)
  2023. local BURST = CreateParticles(FIRE,VT(0,0,0),2,4,"Fire",false,true,6,145)
  2024. BURST:Emit(750)
  2025. killnearest(FIRE.Position,65,75)
  2026. for i = 1, 35 do
  2027. Swait()
  2028. FIRE.Size = FIRE.Size + VT(3,3,3)
  2029. FIRE.Transparency = FIRE.Transparency + (1/35)
  2030. end
  2031. Swait(250)
  2032. FIRE:remove()
  2033. end))
  2034. end
  2035. end)
  2036. for i=0, 1, 0.1 / Animation_Speed2 do
  2037. Swait()
  2038. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, -0.2 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
  2039. 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_Speed2)
  2040. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2)
  2041. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2)
  2042. 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(25)), 0.15 / Animation_Speed2)
  2043. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(5), RAD(-25)), 0.15 / Animation_Speed2)
  2044. end
  2045. end
  2046. UNANCHOR = true
  2047. ATTACK = false
  2048. Rooted = false
  2049. --ATTACK = false
  2050. end
  2051.  
  2052. --//=================================\\
  2053. --|| ASSIGN THINGS TO KEYS
  2054. --\\=================================//
  2055.  
  2056. Humanoid.Changed:connect(function(Jump)
  2057. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  2058. Humanoid.Jump = false
  2059. end
  2060. end)
  2061.  
  2062. function MouseDown(Mouse)
  2063. if ATTACK == false then
  2064. end
  2065. end
  2066.  
  2067. function MouseUp(Mouse)
  2068. HOLD = false
  2069. end
  2070.  
  2071. function KeyDown(Key)
  2072. if Rooted == false then
  2073. if Key == "q" and ATTACK == false then
  2074. Fireball()
  2075. end
  2076.  
  2077. if Key == "e" and ATTACK == false then
  2078. SolarPunch()
  2079. end
  2080.  
  2081. if Key == "r" and ATTACK == false then
  2082. SunEruption()
  2083. end
  2084.  
  2085. if Key == "f" and ATTACK == false then
  2086. SolarImpact()
  2087. end
  2088.  
  2089. if Key == "x" and ATTACK == false then
  2090. SolarDemise()
  2091. end
  2092.  
  2093. if Key == "7" and ATTACK == false then
  2094. CreateSound("907333294", Head, 5, 1.1)
  2095. end
  2096.  
  2097. if Key == "8" and ATTACK == false then
  2098. CreateSound("907333406", Head, 5, 1.1)
  2099. end
  2100.  
  2101. if Key == "9" and ATTACK == false then
  2102. CreateSound("907329293", Head, 5, 1.1)
  2103. end
  2104. end
  2105. end
  2106.  
  2107. function KeyUp(Key)
  2108. end
  2109.  
  2110. Mouse.Button1Down:connect(function(NEWKEY)
  2111. MouseDown(NEWKEY)
  2112. end)
  2113. Mouse.Button1Up:connect(function(NEWKEY)
  2114. MouseUp(NEWKEY)
  2115. end)
  2116. Mouse.KeyDown:connect(function(NEWKEY)
  2117. KeyDown(NEWKEY)
  2118. end)
  2119. Mouse.KeyUp:connect(function(NEWKEY)
  2120. KeyUp(NEWKEY)
  2121. end)
  2122.  
  2123. --//=================================\\
  2124. --\\=================================//
  2125.  
  2126.  
  2127. function unanchor()
  2128. if UNANCHOR == true then
  2129. g = Character:GetChildren()
  2130. for i = 1, #g do
  2131. if g[i].ClassName == "Part" then
  2132. g[i].Anchored = false
  2133. end
  2134. end
  2135. end
  2136. end
  2137.  
  2138.  
  2139. --//=================================\\
  2140. --|| WRAP THE WHOLE SCRIPT UP
  2141. --\\=================================//
  2142.  
  2143. Humanoid.Changed:connect(function(Jump)
  2144. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  2145. Humanoid.Jump = false
  2146. end
  2147. end)
  2148.  
  2149. ANIMATE.Parent = nil
  2150. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  2151. IDLEANIMATION:Play()
  2152. Rooted = false
  2153.  
  2154. local eye = IT("Part",Weapon)
  2155. eye.Size = VT(0.2,0.2,0.2)
  2156. eye.Shape = "Ball"
  2157. eye.CFrame = Head.CFrame * CF(0.15,0.2,-0.55)
  2158. eye.Material = "Neon"
  2159. eye.BrickColor = BRICKC("Really black")
  2160. weldBetween(Head,eye)
  2161. CreateParticles(eye,VT(1,-5,0),1,1,"Fire",true,true,0.1,0)
  2162.  
  2163. local eye = IT("Part",Weapon)
  2164. eye.Size = VT(0.15,0.15,0.15)
  2165. eye.Shape = "Ball"
  2166. eye.CFrame = Head.CFrame * CF(-0.15,0.2,-0.55)
  2167. eye.BrickColor = BRICKC("Black")
  2168. weldBetween(Head,eye)
  2169.  
  2170. while true do
  2171. Swait()
  2172. SINE = SINE + CHANGE
  2173. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2174. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2175. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  2176. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  2177. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  2178. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  2179. 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)
  2180. 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)
  2181. 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)
  2182. 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)
  2183. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  2184. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2185. 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)
  2186. 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)
  2187. 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)
  2188. end
  2189. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  2190. ANIM = "Jump"
  2191. if ATTACK == false then
  2192. 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)
  2193. 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)
  2194. 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)
  2195. 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)
  2196. 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)
  2197. 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)
  2198. end
  2199. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  2200. ANIM = "Fall"
  2201. if ATTACK == false then
  2202. 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)
  2203. 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)
  2204. 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)
  2205. 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)
  2206. 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)
  2207. 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)
  2208. end
  2209. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  2210. ANIM = "Idle"
  2211. if ATTACK == false then
  2212. 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)
  2213. 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)
  2214. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2215. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2216. 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(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2217. 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(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2218. end
  2219. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  2220. ANIM = "Walk"
  2221. WALK = WALK + 1 / Animation_Speed
  2222. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  2223. WALK = 0
  2224. if WALKINGANIM == true then
  2225. WALKINGANIM = false
  2226. elseif WALKINGANIM == false then
  2227. WALKINGANIM = true
  2228. end
  2229. end
  2230. --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)
  2231. --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)
  2232. if ATTACK == false then
  2233. 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)
  2234. 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)
  2235. 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)
  2236. 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)
  2237. 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)
  2238. 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)
  2239. end
  2240. end
  2241. if #Effects2>0 then
  2242. for e=1,#Effects2 do
  2243. if Effects2[e]~=nil then
  2244. local Thing=Effects2[e]
  2245. if Thing~=nil then
  2246. local Part=Thing[1]
  2247. local Mode=Thing[2]
  2248. local Delay=Thing[3]
  2249. local IncX=Thing[4]
  2250. local IncY=Thing[5]
  2251. local IncZ=Thing[6]
  2252. local Part2=Thing[8]
  2253. if Thing[1].Transparency<=1 then
  2254. if Thing[2]=="Block1" then
  2255. Thing[1].CFrame=Thing[1].CFrame
  2256. Mesh=Thing[1].Mesh
  2257. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  2258. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2259. elseif Thing[2]=="Cylinder" then
  2260. Mesh=Thing[1].Mesh
  2261. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  2262. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2263. elseif Thing[2]=="Blood" then
  2264. Mesh=Thing[7]
  2265. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  2266. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  2267. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2268. elseif Thing[2]=="Elec" then
  2269. Mesh=Thing[1].Mesh
  2270. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  2271. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2272. elseif Thing[2]=="Disappear" then
  2273. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2274. end
  2275. else
  2276. Part.Parent=nil
  2277. table.remove(Effects2,e)
  2278. end
  2279. end
  2280. end
  2281. end
  2282. end
  2283. unanchor()
  2284. Humanoid.MaxHealth = "inf"
  2285. Humanoid.Health = "inf"
  2286. if Rooted == false then
  2287. Disable_Jump = false
  2288. Humanoid.WalkSpeed = Speed
  2289. elseif Rooted == true then
  2290. Disable_Jump = true
  2291. Humanoid.WalkSpeed = 0
  2292. end
  2293. if Head:FindFirstChild("face") then
  2294. Head.face:remove()
  2295. end
  2296. end
  2297.  
  2298. --//=================================\\
  2299. --\\=================================//
  2300.  
  2301.  
  2302.  
  2303.  
  2304.  
  2305. --//====================================================\\--
  2306. --|| END OF SCRIPT
  2307. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement