Advertisement
CHARA-SCRIPTER

StormBringer

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