Advertisement
joe201501

....

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