Advertisement
Code_X

Roblox Script Ravager Of Death

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