xdfromxd

ami i lookin like dis

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