Advertisement
DatOneTrap

Untitled

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