Advertisement
PierceTheCakeKeeper

SUN GOD Fe

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