Advertisement
Michael91

Sungod

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