Advertisement
Sheckles

Nebula

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