Advertisement
yabagaba

Untitled

Jul 1st, 2019
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 73.23 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 = ""
  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. local Decal = IT("Decal")
  763.  
  764. function CreateMagicCircle(size,doesrotate,rotatedirection,waitt,cframe,alwaysfade)
  765. local sinkhole = IT("Part")
  766. sinkhole.Size = VT(size,0,size)
  767. sinkhole.CFrame = cframe
  768. --sinkhole.Orientation = VT(0,0,0)
  769. sinkhole.Parent = Effects
  770. sinkhole.Material = "Neon"
  771. sinkhole.Color = C3(1,0,0)
  772. sinkhole.Anchored = true
  773. sinkhole.CanCollide = false
  774. sinkhole.Transparency = 1
  775. local decal = Decal:Clone()
  776. decal.Parent = sinkhole
  777. decal.Face = "Top"
  778. decal.Texture = "http://www.roblox.com/asset/?id="..TOP
  779. local decal2 = Decal:Clone()
  780. decal2.Parent = sinkhole
  781. decal2.Face = "Bottom"
  782. decal2.Texture = "http://www.roblox.com/asset/?id="..BOTTOM
  783. coroutine.resume(coroutine.create(function(PART)
  784. for i = 1, waitt do
  785. Swait()
  786. if doesrotate == true then
  787. sinkhole.CFrame = sinkhole.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  788. end
  789. if alwaysfade == true then
  790. decal.Transparency = decal.Transparency + (1/waitt)
  791. decal2.Transparency = decal.Transparency + (1/waitt)
  792. end
  793. if i > waitt-11 and (alwaysfade ~= true) then
  794. decal.Transparency = decal.Transparency + 0.1
  795. decal2.Transparency = decal.Transparency + 0.1
  796. end
  797. end
  798. sinkhole.Parent = nil
  799. end))
  800. return sinkhole
  801. end
  802.  
  803. --//=================================\\
  804. --\\=================================//
  805.  
  806.  
  807. --//=================================\\
  808. --|| WEAPON CREATION
  809. --\\=================================//
  810.  
  811. if Player_Size ~= 1 then
  812. for _, v in pairs (Weapon:GetChildren()) do
  813. if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then
  814. local p1 = v.Part1
  815. v.Part1 = nil
  816. local cf1, cf2, cf3, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12 = v.C1:components()
  817. v.C1 = CF(cf1 * Player_Size, cf2 * Player_Size, cf3 * Player_Size, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12)
  818. v.Part1 = p1
  819. elseif v.ClassName == "Part" then
  820. for _, b in pairs (v:GetChildren()) do
  821. if b.ClassName == "SpecialMesh" or b.ClassName == "BlockMesh" then
  822. b.Scale = VT(b.Scale.x * Player_Size, b.Scale.y * Player_Size, b.Scale.z * Player_Size)
  823. end
  824. end
  825. end
  826. end
  827. end
  828.  
  829. for _, c in pairs(Weapon:GetChildren()) do
  830. if c.ClassName == "Part" then
  831. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  832. end
  833. end
  834.  
  835. Weapon.Parent = Character
  836.  
  837. Humanoid.Died:connect(function()
  838. ATTACK = true
  839. end)
  840.  
  841. print(Class_Name.." loaded.")
  842.  
  843. --//=================================\\
  844. --|| BIG ZAPS
  845. --\\=================================//
  846.  
  847. BaseLightning = IT("Part")
  848. BaseLightning.Anchored = true
  849. BaseLightning.CanCollide = false
  850. BaseLightning.Material = "Neon"
  851.  
  852. function CheckTableForString(Table, String)
  853. for i, v in pairs(Table) do
  854. if string.find(string.lower(String), string.lower(v)) then
  855. return true
  856. end
  857. end
  858. return false
  859. end
  860.  
  861. function CheckIntangible(Hit)
  862. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  863. if Hit and Hit.Parent then
  864. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  865. return true
  866. end
  867. end
  868. return false
  869. end
  870.  
  871. Debris = game:GetService("Debris")
  872.  
  873. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  874. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  875. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Vec * Length), Ignore)
  876. if RayHit and CheckIntangible(RayHit) then
  877. if DelayIfHit then
  878. wait()
  879. end
  880. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  881. end
  882. return RayHit, RayPos, RayNormal
  883. end
  884.  
  885. --Zap({StartPosition = Position, TargetPosition = Position, Character = Character, Color = "Color", Individual = true})
  886. function Zap(Table)
  887. local StartPos, TargetPos, Character, Color = Table.StartPosition, Table.TargetPosition, Table.Character, Table.Color
  888. local Duration = (Table.Duration or 2)
  889. local FadeRate = (Table.FadeRate or 0.05)
  890. local Offset = (Table.Offset or 2)
  891. local Individualize = (Table.Individualize or false)
  892. local MaxRange = (Table.MaxRange or 200)
  893. local DoesKill = (Table.DoesKill or false)
  894. local SegmentLength = (Table.SegmentLength or 5)
  895. local TimeToFade = (Table.TimeToFade or 0.5)
  896. local Ignore = (Table.Ignore or {})
  897. local SIZE = (Table.Size or 0.3)
  898. if not StartPos or not TargetPos or not Character then
  899. return
  900. end
  901. local LightningModel = Effects
  902. for i, v in pairs({Character, LightningModel}) do
  903. table.insert(Ignore, v)
  904. end
  905. local LastPos = StartPos
  906. local Direction = CFrame.new(StartPos, TargetPos).lookVector
  907. local RayHit, RayPos, RayNormal = CastZapRay(StartPos, Direction, MaxRange, Ignore, false)
  908. local RayLength = (StartPos - RayPos).Magnitude
  909. local Struck = false
  910. local TotalSegments = math.ceil(RayLength / SegmentLength)
  911. Direction = CFrame.new(StartPos, RayPos).lookVector
  912. local LightningBolt = IT("Model",Effects)
  913. LightningBolt.Name = "Lightning"
  914. if not Individualize then
  915. table.insert(LightningBolts, LightningBolt)
  916. end
  917. LastBolt = LightningBolt
  918. Debris:AddItem(LightningBolt, Duration)
  919. LightningBolt.Parent = LightningModel
  920. for i = 1, TotalSegments do
  921. if not Struck then
  922. local Entropy = Vector3.new(((math.random() * Offset*2.5) - Offset), ((math.random() * Offset*2.5) - Offset), ((math.random() * Offset*2.5) - Offset))
  923. local NewPos = (StartPos + (Direction * (RayLength * (i / TotalSegments))) + Entropy)
  924. local SegmentVec = (NewPos - LastPos)
  925. local RayHit, RayPos, RayNormal = CastZapRay(LastPos, SegmentVec.Unit, SegmentVec.Magnitude, {Character, LightningModel}, false)
  926. local RayVec = (LastPos - RayPos)
  927. local LightningPart = BaseLightning:Clone()
  928. LightningPart.BrickColor = BrickColor.new(Color)
  929. LightningPart.Size = Vector3.new(SIZE, SIZE, RayVec.Magnitude)
  930. LightningPart.CFrame = (CFrame.new(LastPos, RayPos) * CFrame.new(0, 0, -(RayVec.Magnitude / 2)))
  931. table.insert(Effects2,{LightningPart,"Disappear",0.025,1,1,1,2})
  932. --Make circular
  933. local CylinderMesh = IT("CylinderMesh",LightningPart)
  934. local OrigCF = LightningPart.CFrame
  935. LightningPart.Size = Vector3.new(LightningPart.Size.X, LightningPart.Size.Z, LightningPart.Size.Y)
  936. LightningPart.CFrame = (OrigCF * CFrame.Angles((math.pi / 2), 0, 0))
  937. LightningPart.Parent = LightningBolt
  938. LastPos = NewPos
  939. if DoesKill == true then
  940. killnearest(NewPos,40,100)
  941. AoEDamage(NewPos,75,15,65,0,false,6,3,false)
  942. end
  943. Spawn(function()
  944. local FadeRate = 0.05
  945. local OrigTransparency = LightningPart.Transparency
  946. for i = 1, (TimeToFade / FadeRate) do
  947. wait(FadeRate)
  948. LightningPart.Transparency = (OrigTransparency + (i / (TimeToFade / FadeRate)))
  949. end
  950. end)
  951. end
  952. end
  953. return {RayHit = RayHit, RayPos = RayPos, RayNormal = RayNormal, LightningModel = LightningModel}
  954. end
  955.  
  956.  
  957. --//=================================\\
  958. --|| DAMAGE FUNCTIONS
  959. --\\=================================//
  960.  
  961. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  962. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Fog", "Effect", VT())
  963. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  964. local BODYGYRO = IT("BodyGyro", STATPART)
  965. local BODYPOSITION = IT("BodyPosition", STATPART)
  966. BODYPOSITION.P = 2000
  967. BODYPOSITION.D = 100
  968. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  969. if LABELTYPE == "Normal" then
  970. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  971. elseif LABELTYPE == "Debuff" then
  972. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 8, MRANDOM(-2, 2))
  973. elseif LABELTYPE == "Interruption" then
  974. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2,2), 8, MRANDOM(-2, 2))
  975. end
  976. game:GetService("Debris"):AddItem(STATPART ,5)
  977. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  978. BILLBOARDGUI.Adornee = STATPART
  979. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  980. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  981. BILLBOARDGUI.AlwaysOnTop = false
  982. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  983. TEXTLABEL.BackgroundTransparency = 1
  984. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  985. TEXTLABEL.Text = TEXT
  986. TEXTLABEL.Font = "SciFi"
  987. TEXTLABEL.FontSize="Size42"
  988. TEXTLABEL.TextColor3 = COLOR
  989. TEXTLABEL.TextStrokeTransparency = 1
  990. TEXTLABEL.TextScaled = true
  991. TEXTLABEL.TextWrapped = true
  992. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  993. wait(0.2)
  994. for i=1, 5 do
  995. wait()
  996. THEBODYPOSITION.Position = THEPART.Position - VT(0, 0.5 ,0)
  997. end
  998. wait(1.2)
  999. for i=1, 5 do
  1000. wait()
  1001. THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2
  1002. THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2
  1003. THEBODYPOSITION.position = THEPART.Position + VT(0, 0.5, 0)
  1004. end
  1005. THEPART.Parent = nil
  1006. end),STATPART, BODYPOSITION, TEXTLABEL)
  1007. end
  1008.  
  1009.  
  1010. --//=================================\\
  1011. --|| DAMAGING
  1012. --\\=================================//
  1013.  
  1014. function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier)
  1015. if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then
  1016. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  1017. local dmg = "inf"
  1018. if humanoid.Health > 0 then
  1019. if beserk == true then
  1020. humanoid.Health = 0
  1021. else
  1022. CreateSound("260430060", hit, 1.2, MRANDOM(7, 12) / 10,false)
  1023. hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength
  1024. if math.random(1,100) < critrate+1 then
  1025. humanoid.Health = humanoid.Health - dmg*critmultiplier
  1026. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  1027. else
  1028. humanoid.Health = humanoid.Health - dmg
  1029. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(0, 0, 0))
  1030. end
  1031. local defence = Instance.new("BoolValue",hit.Parent)
  1032. defence.Name = ("HitBy"..Player.Name)
  1033. game:GetService("Debris"):AddItem(defence, 0.5)
  1034. end
  1035. end
  1036. end
  1037. end
  1038.  
  1039. function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping)
  1040. local dmg = "inf"
  1041. for i,v in ipairs(workspace:GetChildren()) do
  1042. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  1043. local body = v:GetChildren()
  1044. for part = 1, #body do
  1045. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1046. if(body[part].Position - position).Magnitude < radius then
  1047. if v.ClassName == "Model" then
  1048. if v:FindFirstChild("Humanoid") then
  1049. if v.Humanoid.Health ~= 0 then
  1050. if CanBeDodgedByJumping == true then
  1051. if body[part].Position.Y < position.Y+5 then
  1052. if math.random(1,100) < critrate+1 then
  1053. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  1054. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  1055. else
  1056. v.Humanoid.Health = v.Humanoid.Health - dmg
  1057. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  1058. end
  1059. local defence = Instance.new("BoolValue",v)
  1060. defence.Name = ("HitBy"..Player.Name)
  1061. game:GetService("Debris"):AddItem(defence, 0.5)
  1062. end
  1063. else
  1064. if beserk == true then
  1065. v.Humanoid.Health = 0
  1066. end
  1067. if math.random(1,100) < critrate+1 then
  1068. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  1069. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  1070. else
  1071. v.Humanoid.Health = v.Humanoid.Health - dmg
  1072. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  1073. end
  1074. local defence = Instance.new("BoolValue",v)
  1075. defence.Name = ("HitBy"..Player.Name)
  1076. game:GetService("Debris"):AddItem(defence, 0.5)
  1077. end
  1078. end
  1079. elseif v:FindFirstChild("Humanoid") == nil then
  1080. v:BreakJoints()
  1081. end
  1082. end
  1083. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*-maxstrength
  1084. end
  1085. end
  1086. end
  1087. if v.ClassName == "Part" then
  1088. if v.Anchored == false and (v.Position - position).Magnitude < radius then
  1089. v.Velocity = CFrame.new(position,v.Position).lookVector*-maxstrength
  1090. end
  1091. end
  1092. end
  1093. end
  1094. end
  1095.  
  1096. function killnearest(position,range,maxstrength)
  1097. for i,v in ipairs(workspace:GetChildren()) do
  1098. local body = v:GetChildren()
  1099. for part = 1, #body do
  1100. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1101. if(body[part].Position - position).Magnitude < range then
  1102. if v.ClassName == "Model" then
  1103. v:BreakJoints()
  1104. end
  1105. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  1106. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  1107. end
  1108. end
  1109. end
  1110. if v.ClassName == "Part" then
  1111. if v.Anchored == false and (v.Position - position).Magnitude < range then
  1112. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  1113. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  1114. end
  1115. end
  1116. end
  1117. end
  1118.  
  1119. --//=================================\\
  1120. --|| ATTACK FUNCTIONS AND STUFF
  1121. --\\=================================//
  1122.  
  1123. function turnto(pos)
  1124. RootPart.CFrame = CF(RootPart.Position,VT(pos.X,RootPart.Position.Y,pos.Z))
  1125. end
  1126.  
  1127. function RayCast(Position, Direction, MaxDistance, IgnoreList)
  1128. return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList)
  1129. end
  1130.  
  1131. function attacktemplate()
  1132. ATTACK = true
  1133. for i=0, 1, 0.1 / Animation_Speed do
  1134. Swait()
  1135. 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)
  1136. 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)
  1137. 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)
  1138. 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)
  1139. 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)
  1140. 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)
  1141. end
  1142. ATTACK = false
  1143. end
  1144.  
  1145. function GaleForce()
  1146. ATTACK = true
  1147. for i=0, 1.5, 0.1 / Animation_Speed do
  1148. Swait()
  1149. turnto(Mouse.Hit.p)
  1150. 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)
  1151. 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)
  1152. 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)
  1153. 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)
  1154. 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)
  1155. 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)
  1156. end
  1157. local SIZE = 5
  1158. local loop = 0
  1159. repeat
  1160. Swait()
  1161. turnto(Mouse.Hit.p)
  1162. loop = loop + 1
  1163. if SIZE < 40 then
  1164. if loop == 5 then
  1165. SIZE = SIZE + 1
  1166. loop = 0
  1167. end
  1168. end
  1169. CreateMagicCircle(SIZE/3,false,-0.2,3*2,RightArm.CFrame * CF(0,-1.1,0),true)
  1170. until KEYHOLD == false
  1171. local force = IT("Part",Effects)
  1172. force.Size = VT(0,0,0)
  1173. force.CanCollide = false
  1174. force.Anchored = false
  1175. force.CFrame = RightArm.CFrame * CF(0,-1.1-(SIZE/10),0)
  1176. local bv = Instance.new("BodyVelocity")
  1177. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1178. bv.velocity = RootPart.CFrame.lookVector*70
  1179. bv.Parent = force
  1180. bv.Name = "DASH"
  1181. local loop = CreateSound(TORNADOSOUND, force, SIZE, MRANDOM(7, 12) / 10,true)
  1182. CreateSound(CASTSOUNDS[MRANDOM(1,#CASTSOUNDS)], RightArm, 5, 1 ,false)
  1183. coroutine.resume(coroutine.create(function()
  1184. Swait(SIZE*10)
  1185. force.Parent = nil
  1186. end))
  1187. coroutine.resume(coroutine.create(function()
  1188. repeat
  1189. Swait()
  1190. CreateSwirl(0,SIZE,true,-2,5,force,0,"Stone grey")
  1191. CreateSwirl(0,SIZE*0.7,true,2,5,force,0,"Stone grey")
  1192. AoEDamage(force.Position,SIZE*1.5,45,65,100,false,7,2,false)
  1193. until force.Parent == nil
  1194. end))
  1195. for i=0, 1.5, 0.1 / Animation_Speed do
  1196. Swait()
  1197. 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)
  1198. 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)
  1199. 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)
  1200. 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)
  1201. 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)
  1202. 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)
  1203. end
  1204. ATTACK = false
  1205. end
  1206.  
  1207. function ThunderStorm()
  1208. ATTACK = true
  1209. Rooted = true
  1210. CreateSound("305685800", Head, 10, 1.1 ,false)
  1211. for i=0, 1, 0.1 / Animation_Speed do
  1212. Swait()
  1213. 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)
  1214. 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)
  1215. 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)
  1216. 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)
  1217. 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)
  1218. 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)
  1219. end
  1220. local SIZE = 1
  1221. local cloud = IT("Part",Effects)
  1222. cloud.Size = VT(0,0,0)
  1223. cloud.Color = C3(0.3,0.3,0.3)
  1224. cloud.Anchored = true
  1225. cloud.CanCollide = false
  1226. cloud.CFrame = CF(RootPart.Position) * CF(0,125,0)
  1227. local mesh = IT("SpecialMesh",cloud)
  1228. mesh.MeshType = "FileMesh"
  1229. mesh.MeshId = "http://www.roblox.com/asset/?id=111820358"
  1230. mesh.Scale = VT(1000,50,1000)
  1231. cloud.Transparency = 1
  1232. CreateSound("267154400", Effects, 5, 1 ,false)
  1233. for i = 1, 500 do
  1234. Swait()
  1235. if math.random(1,50) == 1 then
  1236. Zap({MaxRange = 125 ,StartPosition = RootPart.Position, TargetPosition = cloud.Position, Character = Character, Color = "Bright blue", Individual = true})
  1237. end
  1238. cloud.CFrame = CF(RootPart.Position) * CF(0,125,0)
  1239. CreateMagicCircle(SIZE/25,false,-0.2,3*2,RootPart.CFrame * CF(0,-2.9,0),true)
  1240. CreateMagicCircle(SIZE,false,-0.2,3*2,cloud.CFrame,true)
  1241. cloud.Transparency = cloud.Transparency - (1/500)
  1242. SIZE = SIZE + 1
  1243. end
  1244. cloud.Transparency = 0
  1245. local sound = CreateSound("236148388", Effects, 3, 1 ,true)
  1246. local lighteffect = IT("BlurEffect",game.Lighting)
  1247. lighteffect.Size = 0
  1248. coroutine.resume(coroutine.create(function()
  1249. for i =1, 12 do
  1250. Swait()
  1251. lighteffect.Size = lighteffect.Size + 0.2
  1252. end
  1253. end))
  1254. coroutine.resume(coroutine.create(function()
  1255. for i = 1, 1200 do
  1256. Swait()
  1257. CreateMagicCircle(SIZE/25,false,-0.2,3*2,RootPart.CFrame * CF(0,-2.9,0),true)
  1258. cloud.CFrame = CF(RootPart.Position) * CF(0,125,0)
  1259. for i =1, 2 do
  1260. local droplet = IT("Part",Effects)
  1261. droplet.Size = VT(1,2,1)
  1262. droplet.CanCollide = false
  1263. droplet.Color = BRICKC("Steel blue").Color
  1264. local mesh = IT("SpecialMesh",droplet)
  1265. mesh.MeshType = "Sphere"
  1266. droplet.Position = VT(cloud.Position.X+math.random(-600,600),cloud.Position.Y,cloud.Position.Z+math.random(-600,600))
  1267. end
  1268. CreateMagicCircle(SIZE,false,-0.2,3*2,cloud.CFrame,true)
  1269. if math.random(1,15) == 1 then
  1270. local POS = VT(RootPart.Position.X+math.random(-200,200),cloud.Position.Y,RootPart.Position.Z+math.random(-200,200))
  1271. local POS2 = VT(POS.X+math.random(-30,30),RootPart.Position.Y,POS.Z+math.random(-30,30))
  1272. local RayData = Zap({Offset = 12, Size = 6, SegmentLength = 8, StartPosition = POS, TargetPosition = POS2, Character = Character, Color = "Bright blue", Individual = true, DoesKill = true})
  1273. if RayData then
  1274. CreateSound(BOLTSOUNDS[MRANDOM(1,#BOLTSOUNDS)], Effects, 1, 1 ,false)
  1275. --MagicBlock(2.5,50,RayData.RayPos,0,BRICKC("Bright blue").Color)
  1276. end
  1277. end
  1278. end
  1279. sound:remove()
  1280. coroutine.resume(coroutine.create(function()
  1281. for i =1, 12 do
  1282. Swait()
  1283. lighteffect.Size = lighteffect.Size - 0.2
  1284. end
  1285. lighteffect:remove()
  1286. end))
  1287. for i = 1, 500 do
  1288. Swait()
  1289. CreateMagicCircle(SIZE/25,false,-0.2,3*2,cloud.CFrame * CF(0,-125-2.9,0),true)
  1290. CreateMagicCircle(SIZE,false,-0.2,3*2,cloud.CFrame,true)
  1291. cloud.Transparency = cloud.Transparency + (1/500)
  1292. SIZE = SIZE - 1
  1293. end
  1294. MagicBlock(5,50,cloud,0,BRICKC("Fog").Color)
  1295. MagicBlock(2.5,50,cloud,0,BRICKC("Fog").Color)
  1296. cloud:remove()
  1297. end))
  1298. Rooted = false
  1299. ATTACK = false
  1300. end
  1301.  
  1302. function TornadoAlley()
  1303. ATTACK = true
  1304. for i=0, 1, 0.1 / Animation_Speed do
  1305. Swait()
  1306. 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)
  1307. 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)
  1308. 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)
  1309. 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)
  1310. 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)
  1311. 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)
  1312. end
  1313. local SIZE = 6
  1314. repeat
  1315. Swait()
  1316. if SIZE < 200 then
  1317. SIZE = SIZE*1.004
  1318. end
  1319. CreateMagicCircle(SIZE/3,false,-0.2,3*2,LeftLeg.CFrame * CF(0,-1.1,0),true)
  1320. until KEYHOLD == false
  1321. local Animation_Speed2 = Animation_Speed/8
  1322. for i=0, 1, 0.1 / Animation_Speed2 do
  1323. Swait()
  1324. 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)
  1325. 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)
  1326. 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)
  1327. 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)
  1328. 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)
  1329. 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)
  1330. end
  1331. CreateSound(CASTSOUNDS[MRANDOM(1,#CASTSOUNDS)], LeftLeg, 5, 1 ,false)
  1332. CreateMagicCircle(SIZE,true,-0.2,35,RootPart.CFrame * CF(0,-2.5,0))
  1333. local nado = CreateTornado(0,SIZE,true,-0.7,35,RootPart,SIZE,"Fog")
  1334. local loop = CreateSound(TORNADOSOUND, Effects, SIZE/10, MRANDOM(7, 12) / 10,true)
  1335. coroutine.resume(coroutine.create(function()
  1336. repeat
  1337. Swait()
  1338. AoEDamage(nado.Position,SIZE*4,15,35,100,false,3,2,false)
  1339. until nado.Parent == nil
  1340. for i = 1, 10 do
  1341. Swait()
  1342. loop.Volume = loop.Volume - ((SIZE/10)/10)
  1343. end
  1344. loop:remove()
  1345. Swait(65)
  1346. if SIZE > 300 then
  1347. CreateSound("305685800", Head, 10, 1.1 ,false)
  1348. end
  1349. end))
  1350. local RayHit, RayPos = RayCast(Torso.Position, Vector3.new(0, -1, 0), (Torso.Size.Y * 2.5), {Character})
  1351. local SpawnPosition = RayPos
  1352. local floor = RayHit
  1353. local cframe = RootPart.CFrame
  1354. local LastPosition = RootPart.Position
  1355. coroutine.resume(coroutine.create(function()
  1356. for i = 1, 20 do
  1357. if i == 20 then
  1358. SIZE = SIZE*1.3
  1359. end
  1360. local RayHit, RayPos = RayCast(LastPosition, cframe.lookVector, SIZE, {workspace})
  1361. local End = RayPos
  1362. LastPosition = End
  1363. local locatepart = Instance.new("Part",Effects)
  1364. locatepart.Position = End
  1365. locatepart.CanCollide = false
  1366. locatepart.Anchored = true
  1367. locatepart.Transparency = 1
  1368. CreateSound(CASTSOUNDS[MRANDOM(1,#CASTSOUNDS)], locatepart, 5, 1 ,false)
  1369. CreateMagicCircle(SIZE*0.9,true,-0.2,35,locatepart.CFrame * CF(0,-2.5,0))
  1370. CreateTornado(0,SIZE,true,0.7,35,locatepart,SIZE,"Fog")
  1371. local nado = CreateTornado(0,SIZE,true,-0.7,35,locatepart,SIZE,"Fog")
  1372. local loop = CreateSound(TORNADOSOUND, Effects, SIZE/10, MRANDOM(7, 12) / 10,true)
  1373. coroutine.resume(coroutine.create(function()
  1374. repeat
  1375. Swait()
  1376. AoEDamage(nado.Position,SIZE*4,25,45,100,false,3,2,false)
  1377. until nado.Parent == nil
  1378. for i = 1, 10 do
  1379. Swait()
  1380. loop.Volume = loop.Volume - ((SIZE/10)/10)
  1381. end
  1382. loop:remove()
  1383. end))
  1384. Swait(10)
  1385. end
  1386. end))
  1387. ATTACK = false
  1388. end
  1389.  
  1390. function Tornado()
  1391. ATTACK = true
  1392. for i=0, 1, 0.1 / Animation_Speed do
  1393. Swait()
  1394. 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)
  1395. 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)
  1396. 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)
  1397. 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)
  1398. 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)
  1399. 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)
  1400. end
  1401. local SIZE = 6
  1402. repeat
  1403. Swait()
  1404. if SIZE < 250 then
  1405. SIZE = SIZE*1.012
  1406. end
  1407. CreateMagicCircle(SIZE/10,false,-0.2,3*2,LeftLeg.CFrame * CF(0,-1.1,0),true)
  1408. until KEYHOLD == false
  1409. local Animation_Speed2 = Animation_Speed/8
  1410. for i=0, 1, 0.1 / Animation_Speed2 do
  1411. Swait()
  1412. 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)
  1413. 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)
  1414. 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)
  1415. 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)
  1416. 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)
  1417. 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)
  1418. end
  1419. CreateSound(CASTSOUNDS[MRANDOM(1,#CASTSOUNDS)], LeftLeg, 5, 1 ,false)
  1420. CreateMagicCircle(SIZE,true,-0.2,SIZE+45*3,RootPart.CFrame * CF(0,-2.5,0))
  1421. CreateTornado(0,SIZE*0.9,true,0.7,SIZE+45*3,RootPart,SIZE,"Fog")
  1422. local nado = CreateTornado(0,SIZE,true,-0.7,SIZE+45*3,RootPart,SIZE,"Fog")
  1423. local loop = CreateSound(TORNADOSOUND, Effects, SIZE/10, MRANDOM(7, 12) / 10,true)
  1424. coroutine.resume(coroutine.create(function()
  1425. repeat
  1426. Swait()
  1427. AoEDamage(nado.Position,SIZE*2,15,35,100,false,3,2,false)
  1428. until nado.Parent == nil
  1429. for i = 1, 10 do
  1430. Swait()
  1431. loop.Volume = loop.Volume - ((SIZE/10)/10)
  1432. end
  1433. loop:remove()
  1434. Swait(65)
  1435. if SIZE > 100 then
  1436. CreateSound("305685800", Head, 10, 1.1 ,false)
  1437. end
  1438. end))
  1439. ATTACK = false
  1440. end
  1441.  
  1442. function grasp()
  1443. ATTACK = true
  1444. local GRAB = nil
  1445. for i=0, 1, 0.1 / Animation_Speed do
  1446. Swait()
  1447. 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)
  1448. 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)
  1449. 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)
  1450. 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)
  1451. 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)
  1452. 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)
  1453. end
  1454. local paw = RightArm.Touched:Connect(function(hit)
  1455. if GRAB == nil then
  1456. if hit.Parent:FindFirstChild("Humanoid") then
  1457. GRAB = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  1458. MagicBlock(1,20,GRAB,0,BRICKC("Fog").Color)
  1459. end
  1460. end
  1461. end)
  1462. for i=0, 1, 0.1 / Animation_Speed do
  1463. Swait()
  1464. 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)
  1465. 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)
  1466. 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)
  1467. 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)
  1468. 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)
  1469. 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)
  1470. end
  1471. if GRAB ~= nil then
  1472. GRAB.Anchored = true
  1473. for i=0, 2, 0.1 / Animation_Speed do
  1474. Swait()
  1475. turnto(GRAB.Position)
  1476. Rooted = true
  1477. 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)
  1478. 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)
  1479. 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)
  1480. 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)
  1481. 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)
  1482. 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)
  1483. end
  1484. coroutine.resume(coroutine.create(function()
  1485. CreateSound(CASTSOUNDS[MRANDOM(1,#CASTSOUNDS)], GRAB, 5, 1 ,false)
  1486. for i = 1, 150 do
  1487. if GRAB then
  1488. Swait()
  1489. GRAB.CFrame = GRAB.CFrame * CF(0,0.5,0)
  1490. CreateMagicCircle(15,false,-0.2,3*2,GRAB.CFrame * CF(0,-4.1,0),true)
  1491. end
  1492. end
  1493. for i = 1, 50 do
  1494. if GRAB then
  1495. Swait()
  1496. CreateMagicCircle(15,false,-0.2,3*2,GRAB.CFrame * CF(0,-4.1,0),true)
  1497. end
  1498. end
  1499. if GRAB then
  1500. GRAB.Parent:BreakJoints()
  1501. GRAB.Anchored = false
  1502. CreateSound(CASTSOUNDS[MRANDOM(1,#CASTSOUNDS)], GRAB, 5, 1 ,false)
  1503. CreateMagicCircle(15,true,-0.2,45+45*3,GRAB.CFrame * CF(0,-2.5-15,0))
  1504. local nado = CreateTornado(0,15,true,-0.7,45+45*3,GRAB,0,"Fog")
  1505. local loop = CreateSound(TORNADOSOUND, Effects, 35/10, MRANDOM(7, 12) / 10,true)
  1506. coroutine.resume(coroutine.create(function()
  1507. repeat
  1508. Swait()
  1509. AoEDamage(nado.Position,15*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 - ((10/10)/10)
  1514. end
  1515. loop:remove()
  1516. Swait(65)
  1517. end))
  1518. end
  1519. end))
  1520. local Animation_Speed2 = Animation_Speed/2
  1521. for i=0, 1, 0.1 / Animation_Speed2 do
  1522. Swait()
  1523. Rooted = true
  1524. turnto(GRAB.Position)
  1525. 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)
  1526. 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)
  1527. 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)
  1528. 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)
  1529. 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)
  1530. 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)
  1531. end
  1532. end
  1533. Rooted = false
  1534. ATTACK = false
  1535. end
  1536.  
  1537. function warp()
  1538. local ori = RootPart.Position
  1539. MagicBlock(3,50,RootPart,0,BRICKC("Bright blue").Color)
  1540. local RayData = Zap({MaxRange = 75 ,StartPosition = RootPart.Position, TargetPosition = Mouse.Hit.p, Character = Character, Color = "Bright blue", Individual = true})
  1541. if RayData then
  1542. local Pos = RayData.RayPos
  1543. RootPart.CFrame = CF(Pos)
  1544. turnto(ori)
  1545. MagicBlock(3,50,RootPart,0,BRICKC("Bright blue").Color)
  1546. CreateMagicCircle(35,true,-0.2,75,CF(Pos),false)
  1547. CreateSound(BOLTSOUNDS[MRANDOM(1,#BOLTSOUNDS)], Effects, 1, 1 ,false)
  1548. end
  1549. end
  1550.  
  1551. --//=================================\\
  1552. --|| ASSIGN THINGS TO KEYS
  1553. --\\=================================//
  1554.  
  1555. Humanoid.Changed:connect(function(Jump)
  1556. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  1557. Humanoid.Jump = false
  1558. end
  1559. end)
  1560.  
  1561. function MouseDown(Mouse)
  1562. if ATTACK == false then
  1563. end
  1564. end
  1565.  
  1566. function MouseUp(Mouse)
  1567. HOLD = false
  1568. end
  1569.  
  1570. function KeyDown(Key)
  1571. KEYHOLD = true
  1572. if Key == "k" and ATTACK == false then
  1573. warp()
  1574. end
  1575. if Key == "e" and ATTACK == false then
  1576. Tornado()
  1577. end
  1578. if Key == "x" and ATTACK == false then
  1579. ThunderStorm()
  1580. end
  1581. if Key == "j" and ATTACK == false then
  1582. grasp()
  1583. end
  1584. if Key == "g" and ATTACK == false then
  1585. TornadoAlley()
  1586. end
  1587. if Key == "q" and ATTACK == false then
  1588. GaleForce()
  1589. end
  1590. if Key == "t" and ATTACK == false then
  1591. CreateSound("305685800", Head, 10, 1.1 ,false)
  1592. end
  1593. end
  1594.  
  1595. function KeyUp(Key)
  1596. KEYHOLD = false
  1597. end
  1598.  
  1599. Mouse.Button1Down:connect(function(NEWKEY)
  1600. MouseDown(NEWKEY)
  1601. end)
  1602. Mouse.Button1Up:connect(function(NEWKEY)
  1603. MouseUp(NEWKEY)
  1604. end)
  1605. Mouse.KeyDown:connect(function(NEWKEY)
  1606. KeyDown(NEWKEY)
  1607. end)
  1608. Mouse.KeyUp:connect(function(NEWKEY)
  1609. KeyUp(NEWKEY)
  1610. end)
  1611.  
  1612. --//=================================\\
  1613. --\\=================================//
  1614.  
  1615.  
  1616. function unanchor()
  1617. if UNANCHOR == true then
  1618. g = Character:GetChildren()
  1619. for i = 1, #g do
  1620. if g[i].ClassName == "Part" then
  1621. g[i].Anchored = false
  1622. end
  1623. end
  1624. end
  1625. end
  1626.  
  1627.  
  1628. --//=================================\\
  1629. --|| WRAP THE WHOLE SCRIPT UP
  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. createbodypart("Eye","Fog",Head,VT(0.25, 0, -0.5),VT(3,3,3))
  1639. createbodypart("Eye","Fog",Head,VT(-0.25, 0, -0.5),VT(3,3,3))
  1640. createbodypart("Eye","Fog",Head,VT(0, 0.2, -0.55),VT(5,5,3))
  1641.  
  1642. ANIMATE.Parent = nil
  1643. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1644. IDLEANIMATION:Play()
  1645.  
  1646. while true do
  1647. Swait()
  1648. if Character:FindFirstChildOfClass("Humanoid") == nil then
  1649. Humanoid = IT("Humanoid",Character)
  1650. end
  1651. Effects.Parent = Character
  1652. script.Parent = WEAPONGUI
  1653. ANIMATE.Parent = nil
  1654. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1655. v:Stop();
  1656. end
  1657. SINE = SINE + CHANGE
  1658. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1659. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1660. Ignore = {Torso,RootPart,RightLeg,LeftLeg,RightLeg,Head,RightArm,LeftArm,Effects}
  1661. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  1662. local HITFLOOR,HITPOS = CastProperRay(RootPart.Position, RootPart.Position-VT(0,15,0), 4, Ignore)
  1663. local WALKSPEEDVALUE = 5
  1664. if SEARING == false then
  1665. if ANIM == "Walk" and TORSOVELOCITY > 1 and SEARING == false and Rooted == false then
  1666. if Humanoid.WalkSpeed <= 20 then
  1667. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.05 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * 1 / Animation_Speed)
  1668. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * 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)
  1669. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.05 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2 -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed)
  1670. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.05 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2 +0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed)
  1671. elseif SEARING == false and Humanoid.WalkSpeed > 20 and Rooted == false then
  1672. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / (2*1.3)))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * 1 / Animation_Speed)
  1673. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / (2*1.3)))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1674. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE*1.3) - 0.15 * COS(SINE / WALKSPEEDVALUE*(2*1.3)), -0.125 * COS(SINE / WALKSPEEDVALUE*1.3) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE*1.3)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(75 * COS(SINE / WALKSPEEDVALUE*1.3))), 0.5 / Animation_Speed)
  1675. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE*1.3) - 0.15 * COS(SINE / WALKSPEEDVALUE*(2*1.3)), 0.125 * COS(SINE / WALKSPEEDVALUE*1.3) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE*1.3)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(75 * COS(SINE / WALKSPEEDVALUE*1.3))), 0.5 / Animation_Speed)
  1676. end
  1677. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or SEARING == true or Rooted == true then
  1678. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1679. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1680. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1681. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1682. end
  1683. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1684. ANIM = "Jump"
  1685. if ATTACK == false then
  1686. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1687. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  1688. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, 0) * ANGLES(RAD(-5), RAD(0), RAD(-5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1689. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(-5), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1690. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(2), RAD(0), RAD(0)), 1 / Animation_Speed)
  1691. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(2), RAD(0), RAD(0)), 1 / Animation_Speed)
  1692. end
  1693. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1694. ANIM = "Fall"
  1695. if ATTACK == false then
  1696. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(8*COS(SINE / 6))), 1 / Animation_Speed)
  1697. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(-8*COS(SINE / 6))), 1 / Animation_Speed)
  1698. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.85, 0) * ANGLES(RAD(0), RAD(0), RAD(110)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1699. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.85, 0) * ANGLES(RAD(0), RAD(0), RAD(-110)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1700. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed)
  1701. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed)
  1702. end
  1703. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1704. ANIM = "Idle"
  1705. if ATTACK == false then
  1706. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed)
  1707. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed)
  1708. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.70, 0.05) * ANGLES(RAD(-15 - 2 * COS(SINE / 12)), RAD(-25), RAD(-10 - 1 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1709. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.70, 0.05) * ANGLES(RAD(-15 - 1 * COS(SINE / 12)), RAD(25), RAD(20 - 1 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1710. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(50), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  1711. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(-74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  1712. end
  1713. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1714. ANIM = "Walk"
  1715. if ATTACK == false then
  1716. if Humanoid.WalkSpeed <= 20 then
  1717. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1718. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1719. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.70, 0) * ANGLES(RAD(30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.85 / Animation_Speed)
  1720. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.70, 0) * ANGLES(RAD(-30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.85 / Animation_Speed)
  1721. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1722. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1723. elseif Humanoid.WalkSpeed > 20 then
  1724. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(35), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1725. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1726. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.70, 0) * ANGLES(RAD(35), RAD(35), RAD(0)) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE*1.3)), RAD(0), RAD(2)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1727. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.70, 0) * ANGLES(RAD(35), RAD(-35), RAD(0)) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE*1.3)), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1728. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(6)), 2 / Animation_Speed)
  1729. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-6)), 2 / Animation_Speed)
  1730. end
  1731. end
  1732. end
  1733. if #Effects2>0 then
  1734. for e=1,#Effects2 do
  1735. if Effects2[e]~=nil then
  1736. local Thing=Effects2[e]
  1737. if Thing~=nil then
  1738. local Part=Thing[1]
  1739. local Mode=Thing[2]
  1740. local Delay=Thing[3]
  1741. local IncX=Thing[4]
  1742. local IncY=Thing[5]
  1743. local IncZ=Thing[6]
  1744. local Part2=Thing[8]
  1745. if Thing[1].Transparency<=1 then
  1746. if Thing[2]=="Block1" then
  1747. Thing[1].CFrame=Thing[1].CFrame
  1748. Mesh=Thing[1].Mesh
  1749. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1750. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1751. elseif Thing[2]=="Cylinder" then
  1752. Mesh=Thing[1].Mesh
  1753. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1754. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1755. elseif Thing[2]=="Blood" then
  1756. Mesh=Thing[7]
  1757. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  1758. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1759. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1760. elseif Thing[2]=="Elec" then
  1761. Mesh=Thing[1].Mesh
  1762. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  1763. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1764. elseif Thing[2]=="Disappear" then
  1765. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1766. end
  1767. else
  1768. Part.Parent=nil
  1769. table.remove(Effects2,e)
  1770. end
  1771. end
  1772. end
  1773. end
  1774. end
  1775. unanchor()
  1776. Humanoid.MaxHealth = "inf"
  1777. Humanoid.Health = "inf"
  1778. if Rooted == false then
  1779. Disable_Jump = false
  1780. Humanoid.WalkSpeed = Speed
  1781. elseif Rooted == true then
  1782. Disable_Jump = true
  1783. Humanoid.WalkSpeed = 0
  1784. end
  1785. Humanoid.DisplayDistanceType = "None"
  1786. q = Character:GetChildren()
  1787. for u = 1, #q do
  1788. if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then
  1789. if q[u].Handle:FindFirstChild("FaceFrontAttachment") then
  1790. q[u]:remove()
  1791. end
  1792. end
  1793. end
  1794. if Head:FindFirstChild("face") then
  1795. Head.face:remove()
  1796. end
  1797. end
  1798.  
  1799. --//=================================\\
  1800. --\\=================================//
  1801.  
  1802.  
  1803.  
  1804.  
  1805.  
  1806. --//====================================================\\--
  1807. --|| END OF SCRIPT
  1808. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement