Advertisement
StarzoZero

Roblox FE Sun God (TRUE SUN GOD!)

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