Advertisement
Shocker130000

Gen

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