Advertisement
denchick2

TORNADO POWERS 2

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