Advertisement
Guest User

Omega SSJ

a guest
Jun 2nd, 2016
3,407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 126.18 KB | None | 0 0
  1. --Mantas ver.0.7 Made by Spalshvined. Enjoy!
  2. local p = game.Players.LocalPlayer
  3. local char = p.Character
  4. local mouse = p:GetMouse()
  5. local larm = char["Left Arm"]
  6. local rarm = char["Right Arm"]
  7. local lleg = char["Left Leg"]
  8. local rleg = char["Right Leg"]
  9. local hed = char.Head
  10. local torso = char.Torso
  11. local hum = char.Humanoid
  12. local cam = game.Workspace.CurrentCamera
  13. local root = char.HumanoidRootPart
  14. local deb = false
  15. local shot = 0
  16. local debris=game:service"Debris"
  17. local l = game:GetService("Lighting")
  18. local rs = game:GetService("RunService").RenderStepped
  19. ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  20. math.randomseed(os.time())
  21. for i,v in pairs (hed:GetChildren()) do
  22. if v:IsA("Sound") then
  23. v:Destroy()
  24. end
  25. end
  26. ----------------------------------------------------
  27. Debounces = {
  28. CanAttack = true;
  29. NoIdl = false;
  30. Slashing = false;
  31. Slashed = false;
  32. RPunch = false;
  33. RPunched = false;
  34. LPunch = false;
  35. LPunched = false;
  36. }
  37. local Touche = {char.Name, }
  38. ----------------------------------------------------
  39. char["Body Colors"].HeadColor = BrickColor.new("Pastel brown")
  40. char["Body Colors"].TorsoColor = BrickColor.new("Pastel brown")
  41. char["Body Colors"].LeftArmColor = BrickColor.new("Pastel brown")
  42. char["Body Colors"].RightArmColor = BrickColor.new("Pastel brown")
  43. ----------------------------------------------------
  44. ypcall(function()
  45. char.Shirt:Destroy()
  46. char.Pants:Destroy()
  47. shirt = Instance.new("Shirt", char)
  48. shirt.Name = "Shirt"
  49. pants = Instance.new("Pants", char)
  50. pants.Name = "Pants"
  51. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=236410507"
  52. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=236412261"
  53. end)
  54. ----------------------------------------------------
  55. function lerp(a, b, t) -- Linear interpolation
  56. return a + (b - a)*t
  57. end
  58.  
  59. function slerp(a, b, t) --Spherical interpolation
  60. dot = a:Dot(b)
  61. if dot > 0.99999 or dot < -0.99999 then
  62. return t <= 0.5 and a or b
  63. else
  64. r = math.acos(dot)
  65. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  66. end
  67. end
  68.  
  69. function matrixInterpolate(a, b, t)
  70. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  71. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  72. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  73. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  74. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  75. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  76. local t = v1:Dot(v2)
  77. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  78. return CFrame.new()
  79. end
  80. return CFrame.new(
  81. v0.x, v0.y, v0.z,
  82. v1.x, v1.y, v1.z,
  83. v2.x, v2.y, v2.z,
  84. v3.x, v3.y, v3.z)
  85. end
  86. ----------------------------------------------------
  87. function genWeld(a,b)
  88. local w = Instance.new("Weld",a)
  89. w.Part0 = a
  90. w.Part1 = b
  91. return w
  92. end
  93. function weld(a, b)
  94. local weld = Instance.new("Weld")
  95. weld.Name = "W"
  96. weld.Part0 = a
  97. weld.Part1 = b
  98. weld.C0 = a.CFrame:inverse() * b.CFrame
  99. weld.Parent = a
  100. return weld;
  101. end
  102. ----------------------------------------------------
  103. function Lerp(c1,c2,al)
  104. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  105. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  106. for i,v in pairs(com1) do
  107. com1[i] = v+(com2[i]-v)*al
  108. end
  109. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  110. end
  111. ----------------------------------------------------
  112. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  113. local wld = Instance.new("Weld", wp1)
  114. wld.Part0 = wp0
  115. wld.Part1 = wp1
  116. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  117. end
  118. ----------------------------------------------------
  119. function weld5(part0, part1, c0, c1)
  120. weeld=Instance.new("Weld", part0)
  121. weeld.Part0=part0
  122. weeld.Part1=part1
  123. weeld.C0=c0
  124. weeld.C1=c1
  125. return weeld
  126. end
  127. ----------------------------------------------------
  128. function HasntTouched(plrname)
  129. local ret = true
  130. for _, v in pairs(Touche) do
  131. if v == plrname then
  132. ret = false
  133. end
  134. end
  135. return ret
  136. end
  137. ----------------------------------------------------
  138. newWeld(torso, larm, -1.5, 0.5, 0)
  139. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  140. newWeld(torso, rarm, 1.5, 0.5, 0)
  141. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  142. newWeld(torso, hed, 0, 1.5, 0)
  143. newWeld(torso, lleg, -0.5, -1, 0)
  144. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  145. newWeld(torso, rleg, 0.5, -1, 0)
  146. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  147. newWeld(root, torso, 0, -1, 0)
  148. torso.Weld.C1 = CFrame.new(0, -1, 0)
  149. ----------------------------------------------------
  150. z = Instance.new("Sound", char)
  151. z.SoundId = "rbxassetid://303570180"--303570180
  152. z.Looped = true
  153. z.Pitch = 1
  154. z.Volume = 1
  155. wait(.1)
  156. z:Play()
  157. ----------------------------------------------------
  158. local Transforming = true
  159. hum.WalkSpeed = 0
  160. local fx = Instance.new("Part",torso)
  161. fx.Anchored = true
  162. fx.Material = "Neon"
  163. fx.CanCollide = false
  164. fx.Locked = true
  165. fx.Transparency = 1
  166. fx.Material = "SmoothPlastic"
  167. fx.Size = Vector3.new(1,1,1)
  168. fx.TopSurface = "SmoothNoOutlines"
  169. fx.BottomSurface = "SmoothNoOutlines"
  170. fx.BrickColor = BrickColor.new("Royal purple")
  171. fxm = Instance.new("SpecialMesh",fx)
  172. fxm.MeshType = "Sphere"
  173. fxm.Scale = Vector3.new(1,1,1)
  174. for i = 1, 20 do rs:wait()
  175. fx.Transparency = fx.Transparency - (1/20)
  176. fx.CFrame = torso.CFrame
  177. fxm.Scale = fxm.Scale + Vector3.new(0.5,0.5,0.5)
  178. rs:wait()
  179. end
  180. GroundWave1 = function()
  181. local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  182. local Colors = {"Royal purple", "Really black"}
  183. local wave = Instance.new("Part", torso)
  184. wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
  185. wave.Anchored = true
  186. wave.CanCollide = false
  187. wave.Locked = true
  188. wave.Size = Vector3.new(1, 1, 1)
  189. wave.TopSurface = "Smooth"
  190. wave.BottomSurface = "Smooth"
  191. wave.Transparency = 0.35
  192. wave.CFrame = HandCF
  193. wm = Instance.new("SpecialMesh", wave)
  194. wm.MeshId = "rbxassetid://3270017"
  195. coroutine.wrap(function()
  196. for i = 1, 30, 1 do
  197. wm.Scale = Vector3.new(1 + i*1.2, 1 + i*1.2, 1)
  198. wave.Size = wm.Scale
  199. wave.CFrame = HandCF
  200. wave.Transparency = i/30
  201. wait()
  202. end
  203. wait()
  204. wave:Destroy()
  205. end)()
  206. end
  207. ----------------------------------------------------
  208. GroundWave = function()
  209. if Transforming == true then
  210. local wave = Instance.new("Part", torso)
  211. wave.BrickColor = BrickColor.new("Really black")
  212. wave.Anchored = true
  213. wave.CanCollide = false
  214. wave.Locked = true
  215. wave.Size = Vector3.new(1, 1, 1)
  216. wave.TopSurface = "Smooth"
  217. wave.BottomSurface = "Smooth"
  218. wave.Transparency = 0.35
  219. wave.CFrame = fx.CFrame
  220. wm = Instance.new("SpecialMesh", wave)
  221. wm.MeshType = "Sphere"
  222. wm.Scale = Vector3.new(1,1,1)
  223. coroutine.wrap(function()
  224. for i = 1, 18, 1 do
  225. wm.Scale = Vector3.new(2 + i*2, 2 + i*2, 2 + i*2)
  226. --wave.Size = wm.Scale
  227. wave.CFrame = fx.CFrame
  228. wave.Transparency = i/14
  229. wait()
  230. end
  231. wait()
  232. wave:Destroy()
  233. end)()
  234. elseif Transforming == false then
  235. wait()
  236. end
  237. end
  238.  
  239. for i = 1, 100 do rs:wait()
  240. fx.CFrame = torso.CFrame
  241. end
  242.  
  243. Spawn(function()
  244. while wait(1) do
  245. GroundWave()
  246. end
  247. end)
  248.  
  249. wait(4)
  250.  
  251. Transforming = false
  252.  
  253. for i = 1, 20 do rs:wait()
  254. fx.Transparency = fx.Transparency + (1/20)
  255. fx.CFrame = torso.CFrame
  256. fxm.Scale = fxm.Scale + Vector3.new(0.5,0.5,0.5)
  257. rs:wait()
  258. end
  259.  
  260. local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  261. local wave = Instance.new("Part", torso)
  262. wave.BrickColor = BrickColor.new("Institutional white")
  263. wave.Anchored = true
  264. wave.CanCollide = false
  265. wave.Locked = true
  266. wave.Size = Vector3.new(1, 1, 1)
  267. wave.TopSurface = "Smooth"
  268. wave.BottomSurface = "Smooth"
  269. wave.Transparency = 0.35
  270. wave.CFrame = HandCF
  271. wm = Instance.new("SpecialMesh", wave)
  272. wm.MeshId = "rbxassetid://3270017"
  273. coroutine.wrap(function()
  274. for i = 1, 14, 1 do
  275. wm.Scale = Vector3.new(1 + i*1.1, 1 + i*1.1, 1)
  276. wave.Size = wm.Scale
  277. wave.CFrame = HandCF
  278. wave.Transparency = i/14
  279. wait()
  280. end
  281. wait()
  282. wave:Destroy()
  283. end)()
  284. hum.WalkSpeed = 16
  285. ----------------------------------------------------
  286. Blast = function()
  287. local Colors = {"Royal purple", "Really black"}
  288. local wave = Instance.new("Part", torso)
  289. wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
  290. wave.Anchored = true
  291. wave.CanCollide = false
  292. wave.Locked = true
  293. wave.Size = Vector3.new(1, 1, 1)
  294. wave.TopSurface = "Smooth"
  295. wave.BottomSurface = "Smooth"
  296. wave.Transparency = 0.35
  297. wave.CFrame = rarm.CFrame
  298. wm = Instance.new("SpecialMesh", wave)
  299. wm.MeshType = "Sphere"
  300. wm.Scale = Vector3.new(1,1,1)
  301. z = Instance.new("Sound",wave)
  302. z.SoundId = "rbxassetid://237035051"
  303. z.Volume = 1
  304. z.Pitch = .9
  305. z:Play()
  306. coroutine.wrap(function()
  307. for i = 1, 30, 1 do
  308. wave.Size = Vector3.new(1 + i*4, 1 + i*4, 1 + i*4)
  309. --wave.Size = wm.Scale
  310. wave.CFrame = rarm.CFrame
  311. wave.Transparency = (1/14)
  312. rs:wait()
  313. end
  314. rs:wait()
  315. wave:Destroy()
  316. z:Destroy()
  317. end)()
  318. end
  319. ----------------------------------------------------
  320. rarm.Touched:connect(function(ht)
  321. hit = ht.Parent
  322. if ht and hit:IsA("Model") then
  323. if hit:FindFirstChild("Humanoid") then
  324. if hit.Name ~= p.Name then
  325. if Debounces.RPunch == true and Debounces.RPunched == false then
  326. Debounces.RPunched = true
  327. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8))
  328. if Debounces.ks==true then
  329. z = Instance.new("Sound",hed)
  330. z.SoundId = "rbxassetid://169380525"
  331. z.Pitch = ptz[math.random(1,#ptz)]
  332. z.Volume = 1
  333. z:Play()
  334. end
  335. wait(.2)
  336. Debounces.RPunched = false
  337. end
  338. end
  339. end
  340. elseif ht and hit:IsA("Hat") then
  341. if hit.Parent.Name ~= p.Name then
  342. if hit.Parent:FindFirstChild("Humanoid") then
  343. if Debounces.RPunch == true and Debounces.RPunched == false then
  344. Debounces.RPunched = true
  345. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8))
  346. if Debounces.ks==true then
  347. z = Instance.new("Sound",hed)
  348. z.SoundId = "rbxassetid://169380525"
  349. z.Pitch = ptz[math.random(1,#ptz)]
  350. z.Volume = 1
  351. z:Play()
  352. end
  353. wait(.2)
  354. Debounces.RPunched = false
  355. end
  356. end
  357. end
  358. end
  359. end)
  360. larm.Touched:connect(function(ht)
  361. hit = ht.Parent
  362. if ht and hit:IsA("Model") then
  363. if hit:FindFirstChild("Humanoid") then
  364. if hit.Name ~= p.Name then
  365. if Debounces.LPunch == true and Debounces.LPunched == false then
  366. Debounces.LPunched = true
  367. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8))
  368. if Debounces.ks2==true then
  369. z = Instance.new("Sound",hed)
  370. z.SoundId = "rbxassetid://169380525"
  371. z.Pitch = ptz[math.random(1,#ptz)]
  372. z.Volume = 1
  373. z:Play()
  374. end
  375. wait(.2)
  376. Debounces.LPunched = false
  377. end
  378. end
  379. end
  380. elseif ht and hit:IsA("Hat") then
  381. if hit.Parent.Name ~= p.Name then
  382. if hit.Parent:FindFirstChild("Humanoid") then
  383. if Debounces.LPunch == true and Debounces.LPunched == false then
  384. Debounces.LPunched = true
  385. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8))
  386. if Debounces.ks2==true then
  387. z = Instance.new("Sound",hed)
  388. z.SoundId = "rbxassetid://169380525"
  389. z.Pitch = ptz[math.random(1,#ptz)]
  390. z.Volume = 1
  391. z:Play()
  392. end
  393. wait(.2)
  394. Debounces.LPunched = false
  395. end
  396. end
  397. end
  398. end
  399. end)
  400. ----------------------------------------------------
  401. mod4 = Instance.new("Model",char)
  402.  
  403. ptez = {0.7, 0.8, 0.9, 1}
  404.  
  405. function FindNearestTorso(Position,Distance,SinglePlayer)
  406. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  407. local List = {}
  408. for i,v in pairs(workspace:GetChildren())do
  409. if v:IsA("Model")then
  410. if v:findFirstChild("Torso")then
  411. if v ~= char then
  412. if(v.Torso.Position -Position).magnitude <= Distance then
  413. table.insert(List,v)
  414. end
  415. end
  416. end
  417. end
  418. end
  419. return List
  420. end
  421.  
  422. function Punch()
  423. part=Instance.new('Part',mod4)
  424. part.Anchored=true
  425. part.CanCollide=false
  426. part.FormFactor='Custom'
  427. part.Size=Vector3.new(.2,.2,.2)
  428. part.CFrame=root.CFrame*CFrame.new(0,1.5,-2.4)*CFrame.Angles(math.rad(0),0,0)
  429. part.Transparency=.7
  430. part.BrickColor=BrickColor.new('Royal purple')
  431. mesh=Instance.new('SpecialMesh',part)
  432. mesh.MeshId='http://www.roblox.com/asset/?id=3270017'
  433. mesh.Scale=Vector3.new(3,3,3)
  434. part2=Instance.new('Part',mod4)
  435. part2.Anchored=true
  436. part2.CanCollide=false
  437. part2.FormFactor='Custom'
  438. part2.Size=Vector3.new(.2,.2,.2)
  439. part2.CFrame=root.CFrame*CFrame.new(0,1.5,-2.4)*CFrame.Angles(math.rad(90),0,0)
  440. part2.Transparency=.7
  441. part2.BrickColor=BrickColor.new('Royal purple')
  442. mesh2=Instance.new('SpecialMesh',part2)
  443. mesh2.MeshId='http://www.roblox.com/asset/?id=20329976'
  444. mesh2.Scale=Vector3.new(3,1.5,3)
  445. for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do
  446. if v:FindFirstChild('Humanoid') then
  447. v.Humanoid:TakeDamage(math.random(2,6))
  448. end
  449. end
  450. coroutine.resume(coroutine.create(function()
  451. for i=0,0.62,0.4 do
  452. wait()
  453. part.CFrame=part.CFrame
  454. part.Transparency=i
  455. mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4)
  456. part2.CFrame=part2.CFrame
  457. part2.Transparency=i
  458. mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4)
  459. end
  460. part.Parent=nil
  461. part2.Parent=nil
  462. end))
  463. end
  464. ----------------------------------------------------
  465. rarm.Touched:connect(function(ht)
  466. hit = ht.Parent
  467. if ht and hit:IsA("Model") then
  468. if hit:FindFirstChild("Humanoid") then
  469. if hit.Name ~= p.Name then
  470. if Debounces.RPunch == true and Debounces.RPunched == false then
  471. Debounces.RPunched = true
  472. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8))
  473. if Debounces.ks==true then
  474. z = Instance.new("Sound",hed)
  475. z.SoundId = "rbxassetid://169380525"
  476. z.Pitch = ptz[math.random(1,#ptz)]
  477. z.Volume = 1
  478. z:Play()
  479. end
  480. wait(.2)
  481. Debounces.RPunched = false
  482. end
  483. end
  484. end
  485. elseif ht and hit:IsA("Hat") then
  486. if hit.Parent.Name ~= p.Name then
  487. if hit.Parent:FindFirstChild("Humanoid") then
  488. if Debounces.RPunch == true and Debounces.RPunched == false then
  489. Debounces.RPunched = true
  490. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8))
  491. if Debounces.ks==true then
  492. z = Instance.new("Sound",hed)
  493. z.SoundId = "rbxassetid://169380525"
  494. z.Pitch = ptz[math.random(1,#ptz)]
  495. z.Volume = 1
  496. z:Play()
  497. end
  498. wait(.2)
  499. Debounces.RPunched = false
  500. end
  501. end
  502. end
  503. end
  504. end)
  505. larm.Touched:connect(function(ht)
  506. hit = ht.Parent
  507. if ht and hit:IsA("Model") then
  508. if hit:FindFirstChild("Humanoid") then
  509. if hit.Name ~= p.Name then
  510. if Debounces.LPunch == true and Debounces.LPunched == false then
  511. Debounces.LPunched = true
  512. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8))
  513. if Debounces.ks2==true then
  514. z = Instance.new("Sound",hed)
  515. z.SoundId = "rbxassetid://169380525"
  516. z.Pitch = ptz[math.random(1,#ptz)]
  517. z.Volume = 1
  518. z:Play()
  519. end
  520. wait(.2)
  521. Debounces.LPunched = false
  522. end
  523. end
  524. end
  525. elseif ht and hit:IsA("Hat") then
  526. if hit.Parent.Name ~= p.Name then
  527. if hit.Parent:FindFirstChild("Humanoid") then
  528. if Debounces.LPunch == true and Debounces.LPunched == false then
  529. Debounces.LPunched = true
  530. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8))
  531. if Debounces.ks2==true then
  532. z = Instance.new("Sound",hed)
  533. z.SoundId = "rbxassetid://169380525"
  534. z.Pitch = ptz[math.random(1,#ptz)]
  535. z.Volume = 1
  536. z:Play()
  537. end
  538. wait(.2)
  539. Debounces.LPunched = false
  540. end
  541. end
  542. end
  543. end
  544. end)
  545. ----------------------------------------------------
  546. local player = game.Players.LocalPlayer
  547. local pchar = player.Character
  548. local mouse = player:GetMouse()
  549. local cam = workspace.CurrentCamera
  550.  
  551. local rad = math.rad
  552.  
  553. local keysDown = {}
  554. local flySpeed = 0
  555. local MAX_FLY_SPEED = 150
  556.  
  557. local canFly = false
  558. local flyToggled = false
  559.  
  560. local forward, side = 0, 0
  561. local lastForward, lastSide = 0, 0
  562.  
  563. local floatBP = Instance.new("BodyPosition")
  564. floatBP.maxForce = Vector3.new(0, math.huge, 0)
  565. local flyBV = Instance.new("BodyVelocity")
  566. flyBV.maxForce = Vector3.new(9e9, 9e9, 9e9)
  567. local turnBG = Instance.new("BodyGyro")
  568. turnBG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  569.  
  570. mouse.KeyDown:connect(function(key)
  571. keysDown[key] = true
  572.  
  573. if key == "f" then
  574. flyToggled = not flyToggled
  575.  
  576. if not flyToggled then
  577. stanceToggle = "Normal"
  578. floatBP.Parent = nil
  579. flyBV.Parent = nil
  580. turnBG.Parent = nil
  581. root.Velocity = Vector3.new()
  582. pchar.Humanoid.PlatformStand = false
  583. end
  584. end
  585.  
  586. end)
  587. mouse.KeyUp:connect(function(key)
  588. keysDown[key] = nil
  589. end)
  590.  
  591. local function updateFly()
  592.  
  593. if not flyToggled then return end
  594.  
  595. lastForward = forward
  596. lastSide = side
  597.  
  598. forward = 0
  599. side = 0
  600.  
  601. if keysDown.w then
  602. forward = forward + 1
  603. end
  604. if keysDown.s then
  605. forward = forward - 1
  606. end
  607. if keysDown.a then
  608. side = side - 1
  609. end
  610. if keysDown.d then
  611. side = side + 1
  612. end
  613.  
  614. canFly = (forward ~= 0 or side ~= 0)
  615.  
  616. if canFly then
  617. stanceToggle = "Floating"
  618. turnBG.Parent = root
  619. floatBP.Parent = nil
  620. flyBV.Parent = root
  621.  
  622. flySpeed = flySpeed + 1 + (flySpeed / MAX_FLY_SPEED)
  623. if flySpeed > MAX_FLY_SPEED then flySpeed = MAX_FLY_SPEED end
  624. else
  625. floatBP.position = root.Position
  626. floatBP.Parent = root
  627.  
  628. flySpeed = flySpeed - 1
  629. if flySpeed < 0 then flySpeed = 0 end
  630. end
  631.  
  632. local camCF = cam.CoordinateFrame
  633. local in_forward = canFly and forward or lastForward
  634. local in_side = canFly and side or lastSide
  635.  
  636. flyBV.velocity = ((camCF.lookVector * in_forward) + (camCF * CFrame.new(in_side,
  637. in_forward * 0.2, 0).p) - camCF.p) * flySpeed
  638.  
  639. turnBG.cframe = camCF * CFrame.Angles(-rad(forward * (flySpeed / MAX_FLY_SPEED)), 0,
  640. 0)
  641. end
  642.  
  643. game:service'RunService'.RenderStepped:connect(function()
  644. if flyToggled then
  645. pchar.Humanoid.PlatformStand = true
  646. end
  647. updateFly()
  648. end)
  649. -------------------------------
  650. mouse.KeyDown:connect(function(key)
  651. if key == "q" then
  652. if Debounces.CanAttack == true then
  653. Debounces.CanAttack = false
  654. Debounces.NoIdl = true
  655. Debounces.on = true
  656. function FindNearestTorso(Position,Distance,SinglePlayer)
  657. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  658. local List = {}
  659. for i,v in pairs(workspace:GetChildren())do
  660. if v:IsA("Model")then
  661. if v:findFirstChild("Torso")then
  662. if v ~= char then
  663. if(v.Torso.Position -Position).magnitude <= Distance then
  664. table.insert(List,v)
  665. end
  666. end
  667. end
  668. end
  669. end
  670. return List
  671. end
  672. z = Instance.new("Sound",hed)
  673. z.SoundId = "rbxassetid://232213955"
  674. z.Pitch = 1
  675. z.Volume = 1
  676. wait(0.2)
  677. z:Play()
  678. sp = Instance.new("Part",rarm)
  679. sp.Anchored = true
  680. sp.CanCollide = false
  681. sp.Locked = true
  682. sp.Transparency = 0
  683. sp.Material = "Neon"
  684. sp.Size = Vector3.new(1,1,1)
  685. sp.TopSurface = "SmoothNoOutlines"
  686. sp.BottomSurface = "SmoothNoOutlines"
  687. sp.BrickColor = BrickColor.new("Royal purple")
  688. spm = Instance.new("SpecialMesh",sp)
  689. spm.MeshType = "Sphere"
  690. spm.Scale = Vector3.new(21,21,21)
  691. sp2 = Instance.new("Part", rarm)
  692. sp2.Name = "Energy"
  693. sp2.BrickColor = BrickColor.new("Royal purple")
  694. sp2.Size = Vector3.new(1, 1, 1)
  695. sp2.Shape = "Ball"
  696. sp2.CanCollide = false
  697. sp2.Anchored = true
  698. sp2.Locked = true
  699. sp2.TopSurface = 0
  700. sp2.BottomSurface = 0
  701. sp2.Transparency = 1
  702. spm2 = Instance.new("SpecialMesh",sp2)
  703. spm2.MeshId = "rbxassetid://9982590"
  704. spm2.Scale = Vector3.new(2,2,2)
  705. for i = 1, 20 do
  706. spm.Scale = spm.Scale - Vector3.new(1,1,1)
  707. sp.CFrame = root.CFrame*CFrame.new(0,1,-2)
  708. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(-6),math.rad(8)), 0.4)
  709. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.4)
  710. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4)
  711. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4)
  712. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4)
  713. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4)
  714. if Debounces.on == false then break end
  715. rs:wait()
  716. end
  717. for i = 1, 100, 20 do rs:wait()
  718. sp.CFrame = root.CFrame*CFrame.new(0,1,-2)
  719. end
  720. for i = 1, 20 do
  721. sp.CFrame = root.CFrame*CFrame.new(0,1,-2)
  722. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(8)), 0.4)
  723. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.4)
  724. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(10),math.rad(-30),0), 0.4)
  725. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), math.rad(0)), 0.4)
  726. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4)
  727. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4)
  728. if Debounces.on == false then break end
  729. rs:wait()
  730. end
  731. sp.Transparency = 1
  732. for i = 1, 20 do
  733. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(8)), 0.4)
  734. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.62,-.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.4)
  735. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.4)
  736. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(-50), math.rad(0)), 0.4)
  737. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4)
  738. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4)
  739. if Debounces.on == false then break end
  740. rs:wait()
  741. end
  742. wait(1)
  743. sp.Transparency = 0
  744. sp2.Transparency = 0.84
  745. for i = 1, 20 do
  746. --spm.Scale = spm.Scale - Vector3.new(1,1,1)
  747. sp.CFrame = rarm.CFrame*CFrame.new(0,-1,0)
  748. sp2.CFrame = sp.CFrame * CFrame.new(0,0,0) * CFrame.Angles(math.rad(-i), math.rad(-i), math.rad(i))
  749. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(110),math.rad(-6),math.rad(140)), 0.4)
  750. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(80),math.rad(6),math.rad(-40)), 0.2)
  751. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(30),0), 0.2)
  752. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3)
  753. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(20), 0, math.rad(-14)), 0.2)
  754. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-16), 0, math.rad(8)), 0.2)
  755. if Debounces.on == false then break end
  756. rs:wait()
  757. end
  758. for i = 1, 2880, 50 do
  759. rs:wait()
  760. sp.CFrame = rarm.CFrame*CFrame.new(0,-1,0)
  761. sp2.CFrame = rarm.CFrame * CFrame.new(0,-1,0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10))
  762. rs:wait()
  763. end
  764. sp:Destroy()
  765. sp2:Destroy()
  766. local X = Instance.new("Part",char)
  767. local O = Instance.new("ObjectValue",X)
  768. O.Name = "creator"
  769. X.Locked = true
  770. X.Name = "Shell"
  771. X.Anchored = false
  772. X.CanCollide = false
  773. X.Transparency = 0
  774. X.Reflectance = 0
  775. X.BottomSurface = 0
  776. X.TopSurface = 0
  777. X.Shape = 0
  778. local V = Instance.new("ObjectValue",X)
  779. V.Value = char
  780. V.Name = "creator"
  781. X.BrickColor = BrickColor.new("Royal purple")
  782. X.Size = Vector3.new(2,2,2)
  783. X.Material = "Neon"
  784. local Z = Instance.new("SpecialMesh",X)
  785. Z.MeshType = "Sphere"
  786. Z.Scale = Vector3.new(0.5,0.5,1)
  787. X.CFrame = rarm.CFrame*CFrame.new(-3,0,0)
  788. local bv = Instance.new("BodyVelocity",X)
  789. bv.maxForce = Vector3.new(99999,99999,99999)
  790. X.CFrame = CFrame.new(X.Position,mouse.Hit.p)
  791. bv.velocity = X.CFrame.lookVector*65
  792.  
  793. Explode = X.Touched:connect(function(hit)
  794. if hit ~= char and hit.Name ~= "Shell" then
  795. local cf = X.CFrame
  796. bv:Destroy()
  797. X.Anchored = true
  798. Z:Remove()
  799. Explode:disconnect()
  800. X.Size = Vector3.new(3,3,3)
  801. X.Touched:connect(function(hit) end)
  802. X.CanCollide = false
  803. local part3 = Instance.new("Part", rarm)
  804. part3.Anchored=true
  805. part3.CanCollide=false
  806. part3.Locked = true
  807. part3.TopSurface = "SmoothNoOutlines"
  808. part3.BottomSurface = "SmoothNoOutlines"
  809. part3.FormFactor='Custom'
  810. part3.Size=Vector3.new(1,1, 1)
  811. part3.CFrame=X.CFrame
  812. part3.Transparency=0
  813. part3.BrickColor=BrickColor.new("Royal purple")
  814. local mesh3 = Instance.new("SpecialMesh",part3)
  815. mesh3.MeshType = "Sphere"
  816. mesh3.Scale = Vector3.new(1,1,1)
  817. --debris:AddItem(X,8)
  818. local part4 = Instance.new("Part", rarm)
  819. part4.Material = "Neon"
  820. part4.Anchored=true
  821. part4.CanCollide=false
  822. part4.Locked = true
  823. part4.TopSurface = "SmoothNoOutlines"
  824. part4.BottomSurface = "SmoothNoOutlines"
  825. part4.FormFactor='Custom'
  826. part4.Size=Vector3.new(1,1, 1)
  827. part4.CFrame=X.CFrame
  828. part4.Transparency=0
  829. part4.BrickColor=BrickColor.new("Hot pink")
  830. local mesh4 = Instance.new("SpecialMesh",part4)
  831. mesh4.MeshType = "Sphere"
  832. mesh4.Scale = Vector3.new(.5,.5,.5)
  833. local part7 = Instance.new("Part", rarm)
  834. part7.Material = "Neon"
  835. part7.Anchored=true
  836. part7.CanCollide=false
  837. part7.Locked = true
  838. part7.TopSurface = "SmoothNoOutlines"
  839. part7.BottomSurface = "SmoothNoOutlines"
  840. part7.FormFactor='Custom'
  841. part7.Size=Vector3.new(1,1, 1)
  842. part7.CFrame=X.CFrame
  843. part7.Transparency=0
  844. part7.BrickColor=BrickColor.new("Really black")
  845. local mesh7 = Instance.new("SpecialMesh",part7)
  846. mesh7.MeshType = "Sphere"
  847. mesh7.Scale = Vector3.new(0.1, 0.1, 0.1)
  848. --[[X.Touched:connect(function(ht)
  849. hit = ht.Parent
  850. if ht and hit:IsA("Model") then
  851. if hit:FindFirstChild("Humanoid") then
  852. if hit.Name ~= p.Name then
  853. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6))
  854. wait(.3)
  855. end
  856. end
  857. elseif ht and hit:IsA("Hat") then
  858. if hit.Parent.Name ~= p.Name then
  859. if hit.Parent:FindFirstChild("Humanoid") then
  860. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6))
  861. wait(.3)
  862. end
  863. end
  864. end
  865. end)
  866. part3.Touched:connect(function(ht)
  867. hit = ht.Parent
  868. if ht and hit:IsA("Model") then
  869. if hit:FindFirstChild("Humanoid") then
  870. if hit.Name ~= p.Name then
  871. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6))
  872. wait(.3)
  873. end
  874. end
  875. elseif ht and hit:IsA("Hat") then
  876. if hit.Parent.Name ~= p.Name then
  877. if hit.Parent:FindFirstChild("Humanoid") then
  878. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6))
  879. wait(.3)
  880. end
  881. end
  882. end
  883. end)]]--
  884. for i,v in pairs(FindNearestTorso(X.CFrame.p,140))do
  885. if v:FindFirstChild('Humanoid') then
  886. v.Humanoid:TakeDamage(math.random(60,90))
  887. v.Humanoid.PlatformStand = true
  888. v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
  889. end
  890. end
  891.  
  892. local acos = math.acos
  893. local sqrt = math.sqrt
  894. local Vec3 = Vector3.new
  895. local fromAxisAngle = CFrame.fromAxisAngle
  896.  
  897. local function toAxisAngle(CFr)
  898. local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
  899. local Angle = math.acos((R00+R11+R22-1)/2)
  900. local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  901. A = A == 0 and 0.00001 or A
  902. local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  903. B = B == 0 and 0.00001 or B
  904. local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  905. C = C == 0 and 0.00001 or C
  906. local x = (R21-R12)/sqrt(A)
  907. local y = (R02-R20)/sqrt(B)
  908. local z = (R10-R01)/sqrt(C)
  909. return Vec3(x,y,z),Angle
  910. end
  911.  
  912. function ApplyTrig(Num,Func)
  913. local Min,Max = Func(0),Func(1)
  914. local i = Func(Num)
  915. return (i-Min)/(Max-Min)
  916. end
  917.  
  918. function LerpCFrame(CFrame1,CFrame2,Num)
  919. local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
  920. return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
  921. end
  922.  
  923. function Crater(Torso,Radius)
  924. Spawn(function()
  925. local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10)
  926. local Ignore = {}
  927. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  928. if v.Character ~= nil then
  929. Ignore[#Ignore+1] = v.Character
  930. end
  931. end
  932. local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray,Ignore)
  933. if Hit == nil then return end
  934. local Parts = {}
  935. for i = 1,360,10 do
  936. local P = Instance.new("Part",Torso.Parent)
  937. P.Anchored = true
  938. P.FormFactor = "Custom"
  939. P.BrickColor = Hit.BrickColor
  940. P.Material = Hit.Material
  941. P.TopSurface = "Smooth"
  942. P.BottomSurface = "Smooth"
  943. P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100)
  944. P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,7,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50)))
  945. Parts[#Parts+1] = {P,P.CFrame,((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,1,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius)*CFrame.Angles(math.rad(math.random(-50,-20)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15))),P.Size}
  946. if math.random(0,5) == 0 then -- rubble
  947. local P = Instance.new("Part",Torso.Parent)
  948. P.Anchored = true
  949. P.FormFactor = "Custom"
  950. P.BrickColor = Hit.BrickColor
  951. P.Material = Hit.Material
  952. P.TopSurface = "Smooth"
  953. P.BottomSurface = "Smooth"
  954. P.Size = Vector3.new(2,2,2)*(math.random(80,100)/100)
  955. P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,2.5,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50)))
  956. Parts[#Parts+1] = {P,P.CFrame,(CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius-8)*CFrame.Angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90))),P.Size}
  957. end
  958. end
  959. for i = 0,1,0.05 do
  960. for i2,v in pairs(Parts) do
  961. v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos))
  962. end
  963. wait(0.02)
  964. end
  965. for i,v in pairs(Parts) do
  966. if v[1].Size.X > 2.1 then
  967. v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0)
  968. end
  969. v[1].Anchored = false
  970. end
  971. for i = 0,1,0.05 do
  972. for i2,v in pairs(Parts) do
  973. v[1].Transparency = i
  974. if i == 1 then
  975. v[1]:Destroy()
  976. elseif i >= 0.25 then
  977. v[1].CanCollide = false
  978. end
  979. end
  980. wait(0.02)
  981. end
  982. Parts = nil
  983. end)
  984. end
  985.  
  986. ROW = function(out, trans, s, wt, t, ang, plus)
  987. for i = 1, 360, 360/t do
  988. local c = Instance.new("Part", game.Workspace)
  989. c.FormFactor = 3
  990. c.TopSurface = 0
  991. c.BottomSurface = 0
  992. c.Size = s
  993. c.Anchored = true
  994. c.CanCollide = wt
  995. c.Material=workspace.Base.Material
  996. c.Transparency = trans
  997. c.BrickColor = workspace.Base.BrickColor
  998. c.CFrame = CFrame.new(X.CFrame.x,0,X.CFrame.z) * CFrame.Angles(0, math.rad(i + plus), 0) * CFrame.new(0, 0, out) * ang
  999. c.Locked=true
  1000. game.Debris:AddItem(c,15)
  1001. end
  1002. end
  1003.  
  1004. Part = function(x,y,z,color,tr,cc,an,parent)
  1005. local p = Instance.new('Part',parent or Weapon)
  1006. p.formFactor = 'Custom'
  1007. p.Size = Vector3.new(x,y,z)
  1008. p.BrickColor = BrickColor.new(color)
  1009. p.CanCollide = cc
  1010. p.Transparency = tr
  1011. p.Anchored = an
  1012. p.TopSurface,p.BottomSurface = 0,0
  1013. p.Locked=true
  1014. p:BreakJoints()
  1015. return p end
  1016.  
  1017. Mesh = function(par,num,x,y,z)
  1018. local msh = _
  1019. if num == 1 then msh = Instance.new("CylinderMesh",par)
  1020. elseif num == 2 then msh = Instance.new("SpecialMesh",par) msh.MeshType = 3
  1021. elseif num == 3 then msh = Instance.new("BlockMesh",par)
  1022. elseif num == 4 then msh = Instance.new("SpecialMesh",par) msh.MeshType = "Torso"
  1023. elseif type(num) == 'string' then msh = Instance.new("SpecialMesh",par) msh.MeshId = num
  1024. end msh.Scale = Vector3.new(x,y,z)
  1025. return msh end
  1026.  
  1027. function explosion(col1,col2,cfr,sz,rng,dmg)
  1028. local a= Part(1,1,1,col1,.5,false,true,workspace)
  1029. local a2= Part(1,1,1,col2,.5,false,true,workspace)
  1030. local a3= Part(1,1,1,col2,.5,false,true,workspace)
  1031. v1,v2,v3=sz.x,sz.y,sz.z
  1032. local m= Mesh(a,'http://www.roblox.com/asset/?id=1185246',v1,v2,v3)
  1033. local m2= Mesh(a2,3,v1/3,v2/3,v3/3)
  1034. local m3= Mesh(a3,3,v1/3,v2/3,v3/3)
  1035. a.CFrame=cfr
  1036. a2.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random())
  1037. a3.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random())
  1038.  
  1039. Spawn(function()
  1040. while wait() do
  1041. if a.Transparency >= 1 then a:Destroy() a2:Destroy() a3:Destroy() break end
  1042. m.Scale=m.Scale+Vector3.new(.1,0.1,0.1)
  1043. m2.Scale=m2.Scale+Vector3.new(.1,0.1,0.1)
  1044. m3.Scale=m3.Scale+Vector3.new(.1,0.1,0.1)
  1045. a.Transparency=a.Transparency+0.05
  1046. a2.Transparency=a2.Transparency+0.05
  1047. a3.Transparency=a3.Transparency+0.05
  1048. end
  1049. end)
  1050. end
  1051.  
  1052. Crater(X,20)
  1053. ROW(12, 0, Vector3.new(34.5, 30, 3), true, 8, CFrame.Angles(math.rad(math.random (30,60)), 0, math.rad (math.random(-30,30))), 0)
  1054. z = Instance.new("Sound",X)
  1055. z.SoundId = "rbxassetid://231917744"
  1056. z.Pitch = .5
  1057. z.Volume = 10
  1058. z1 = Instance.new("Sound",X)
  1059. z1.SoundId = "rbxassetid://231917744"
  1060. z1.Pitch = .5
  1061. z1.Volume = 10
  1062. z2 = Instance.new("Sound",X)
  1063. z2.SoundId = "rbxassetid://231917744"
  1064. z2.Pitch = .5
  1065. z2.Volume = 10
  1066. z3 = Instance.new("Sound",X)
  1067. z3.SoundId = "rbxassetid://245537790"
  1068. z3.Pitch = .7
  1069. z3.Volume = 1
  1070. z4 = Instance.new("Sound",X)
  1071. z4.SoundId = "rbxassetid://245537790"
  1072. z4.Pitch = .7
  1073. z4.Volume = 1
  1074. wait(0.1)
  1075. z:Play()
  1076. z1:Play()
  1077. z2:Play()
  1078. z3:Play()
  1079. z4:Play()
  1080.  
  1081. local part=Instance.new('Part',rarm)
  1082. part.Anchored=true
  1083. part.CanCollide=false
  1084. part.Locked = true
  1085. part.FormFactor='Custom'
  1086. part.Size=Vector3.new(1,1,1)
  1087. part.CFrame=X.CFrame*CFrame.new(0,0,0)
  1088. part.Transparency=0
  1089. part.BrickColor=BrickColor.new('Really black')
  1090. local mesh=Instance.new('SpecialMesh',part)
  1091. mesh.MeshId='http://www.roblox.com/asset/?id=20329976'
  1092. mesh.Scale=Vector3.new(2,2,2)
  1093. local part2=part:clone()
  1094. part2.Parent = rarm
  1095. part2.BrickColor=BrickColor.new("Royal purple")
  1096. local part5=part:clone()
  1097. part5.Parent = rarm
  1098. part5.BrickColor=BrickColor.new("Magenta")
  1099. local part6=part:clone()
  1100. part6.Parent = rarm
  1101. part6.BrickColor=BrickColor.new("Black")
  1102. local mesh2=mesh:clone()
  1103. mesh2.Parent=part2
  1104. mesh2.Scale=Vector3.new(3, 3, 3)
  1105. local mesh5=mesh:clone()
  1106. mesh5.Parent=part5
  1107. mesh5.Scale=Vector3.new(3, 3, 3)
  1108. local mesh6=mesh:clone()
  1109. mesh6.Parent=part6
  1110. mesh6.Scale=Vector3.new(3, 3, 3)
  1111. local blast = Instance.new("Part", rarm)
  1112. blast.BrickColor = BrickColor.new("Really black")
  1113. blast.Anchored = true
  1114. blast.CanCollide = false
  1115. blast.Locked = true
  1116. blast.Size = Vector3.new(1, 1, 1)
  1117. blast.TopSurface = "Smooth"
  1118. blast.BottomSurface = "Smooth"
  1119. blast.Transparency = 0
  1120. blast.CFrame = HandCF
  1121. local bm = Instance.new("SpecialMesh", blast)
  1122. bm.Scale = Vector3.new(5,1,5)
  1123. bm.MeshId = "rbxassetid://3270017"
  1124. local blast2 = Instance.new("Part", rarm)
  1125. blast2.BrickColor = BrickColor.new("Really black")
  1126. blast2.Anchored = true
  1127. blast2.CanCollide = false
  1128. blast2.Locked = true
  1129. blast2.Size = Vector3.new(1, 1, 1)
  1130. blast2.TopSurface = "Smooth"
  1131. blast2.BottomSurface = "Smooth"
  1132. blast2.Transparency = 0
  1133. blast2.CFrame = HandCF
  1134. local bm2 = Instance.new("SpecialMesh", blast2)
  1135. bm2.Scale = Vector3.new(3,1,3)
  1136. bm2.MeshId = "rbxassetid://3270017"
  1137. local blast3 = Instance.new("Part", rarm)
  1138. blast3.BrickColor = BrickColor.new("Really black")
  1139. blast3.Anchored = true
  1140. blast3.CanCollide = false
  1141. blast3.Locked = true
  1142. blast3.Size = Vector3.new(1, 1, 1)
  1143. blast3.TopSurface = "Smooth"
  1144. blast3.BottomSurface = "Smooth"
  1145. blast3.Transparency = 0
  1146. blast3.CFrame = HandCF
  1147. local bm3 = Instance.new("SpecialMesh", blast3)
  1148. bm3.Scale = Vector3.new(3,1,3)
  1149. bm3.MeshId = "rbxassetid://3270017"
  1150. for i = 1,120 do rs:wait()
  1151. X.Transparency = X.Transparency + (1/120)
  1152. part.Transparency = part.Transparency + (1/120)
  1153. part2.Transparency = part2.Transparency + (1/120)
  1154. part3.Transparency = part3.Transparency + (1/120)
  1155. part4.Transparency = part4.Transparency + (1/120)
  1156. part5.Transparency = part5.Transparency + (1/120)
  1157. part6.Transparency = part6.Transparency + (1/120)
  1158. part7.Transparency = part7.Transparency + (1/120)
  1159. blast.Transparency = blast.Transparency + (1/120)
  1160. blast2.Transparency = blast2.Transparency + (1/120)
  1161. blast3.Transparency = blast3.Transparency + (1/120)
  1162. X.Size = X.Size + Vector3.new(.8,.8,.8)
  1163. --part3.Size = part3.Size + Vector3.new(3,3,3)
  1164. mesh.Scale = mesh.Scale + Vector3.new(1,.2,1)
  1165. mesh2.Scale = mesh2.Scale + Vector3.new(1.1,.2,1.1)
  1166. mesh3.Scale = mesh3.Scale + Vector3.new(3,3,3)
  1167. mesh4.Scale = mesh4.Scale + Vector3.new(1.7,1.7,1.7)
  1168. mesh5.Scale = mesh5.Scale + Vector3.new(1.6,.2,1.6)
  1169. mesh6.Scale = mesh6.Scale + Vector3.new(2,.2,2)
  1170. mesh7.Scale = mesh7.Scale + Vector3.new(4,4,4)
  1171. bm.Scale = bm.Scale + Vector3.new(6,6,.2)
  1172. bm2.Scale = bm2.Scale + Vector3.new(4,4,.2)
  1173. bm3.Scale = bm3.Scale + Vector3.new(4,4,.2)
  1174. X.CFrame = cf
  1175. part.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2),0)
  1176. part2.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2),0)
  1177. part3.CFrame=X.CFrame
  1178. part4.CFrame=X.CFrame
  1179. part7.CFrame=X.CFrame
  1180. part5.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2.6),0)
  1181. part6.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2.4),0)
  1182. blast.CFrame=X.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  1183. blast2.CFrame=X.CFrame * CFrame.Angles(math.rad(-i*4), math.rad(i*4), math.rad(0))
  1184. blast3.CFrame=X.CFrame * CFrame.Angles(math.rad(180+i*4), math.rad(90-i*4), math.rad(0))
  1185. rs:wait()
  1186. end
  1187. X:Destroy()
  1188. part:Destroy()
  1189. part2:Destroy()
  1190. part3:Destroy()
  1191. part4:Destroy()
  1192. part5:Destroy()
  1193. part6:Destroy()
  1194. blast:Destroy()
  1195. blast2:Destroy()
  1196. blast3:Destroy()
  1197. z:Destroy()
  1198. z1:Destroy()
  1199. z2:Destroy()
  1200. z3:Destroy()
  1201. z4:Destroy()
  1202. end
  1203. end)
  1204. for i = 1, 20 do
  1205. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(70),math.rad(-6),math.rad(-20)), 0.2)
  1206. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.2)
  1207. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2)
  1208. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), 0.4)
  1209. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-8)), 0.2)
  1210. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-6), 0, math.rad(8)), 0.2)
  1211. if Debounces.on == false then break end
  1212. rs:wait()
  1213. end
  1214. if Debounces.CanAttack == false then
  1215. Debounces.CanAttack = true
  1216. Debounces.NoIdl = false
  1217. Debounces.on = false
  1218. end
  1219. end
  1220. end
  1221. end)
  1222. ----------------------------------------------------
  1223. mouse.KeyDown:connect(function(key)
  1224. if key == "e" then
  1225. if Debounces.CanAttack == true then
  1226. Debounces.CanAttack = false
  1227. Debounces.on = true
  1228. Debounces.NoIdl = true
  1229. pt = {1, 1.1, 1.2, 1.3, 1.4, 1.5}
  1230. z = Instance.new("Sound", rarm)
  1231. z.SoundId = "http://www.roblox.com/asset/?id=206083107"--160867463, 161006212
  1232. z.Volume = .6
  1233. z.Pitch = pt[math.random(1,#pt)]
  1234. z.Looped = false
  1235. z:Play()
  1236. Debounces.RPunch = true
  1237. Debounces.LPunch = true
  1238. Debounces.ks = true
  1239. Debounces.ks2 = true
  1240. for i = 1, 3 do
  1241. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92)
  1242. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92)
  1243. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92)
  1244. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92)
  1245. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92)
  1246. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92)
  1247. if Debounces.on == false then break end
  1248. wait()
  1249. end
  1250. z2 = Instance.new("Sound", larm)
  1251. z2.SoundId = "http://www.roblox.com/asset/?id=206083107"
  1252. z2.Volume = .6
  1253. z2.Pitch = pt[math.random(1,#pt)]
  1254. z2.Looped = false
  1255. z2:Play()
  1256. for i = 1, 3 do
  1257. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92)
  1258. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92)
  1259. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92)
  1260. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92)
  1261. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92)
  1262. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92)
  1263. if Debounces.on == false then break end
  1264. wait()
  1265. end
  1266. z3 = Instance.new("Sound", rarm)
  1267. z3.SoundId = "http://www.roblox.com/asset/?id=206083107"
  1268. z3.Volume = 0.6
  1269. z3.Pitch = pt[math.random(1,#pt)]
  1270. z3.Looped = false
  1271. z3:Play()
  1272. for i = 1, 3 do
  1273. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92)
  1274. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92)
  1275. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92)
  1276. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92)
  1277. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92)
  1278. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92)
  1279. if Debounces.on == false then break end
  1280. wait()
  1281. end
  1282. z4 = Instance.new("Sound", larm)
  1283. z4.SoundId = "http://www.roblox.com/asset/?id=206083107"
  1284. z4.Volume = .6
  1285. z4.Pitch = pt[math.random(1,#pt)]
  1286. z4.Looped = false
  1287. z4:Play()
  1288. for i = 1, 3 do
  1289. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92)
  1290. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92)
  1291. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92)
  1292. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92)
  1293. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92)
  1294. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92)
  1295. if Debounces.on == false then break end
  1296. wait()
  1297. end
  1298. z5 = Instance.new("Sound", rarm)
  1299. z5.SoundId = "http://www.roblox.com/asset/?id=206083107"
  1300. z5.Volume = .6
  1301. z5.Pitch = pt[math.random(1,#pt)]
  1302. z5.Looped = false
  1303. z5:Play()
  1304. for i = 1, 3 do
  1305. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(110),math.rad(30),math.rad(20)), 0.9)
  1306. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.9)
  1307. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9)
  1308. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9)
  1309. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.9)
  1310. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.9)
  1311. if Debounces.on == false then break end
  1312. wait()
  1313. end
  1314. z6 = Instance.new("Sound", larm)
  1315. z6.SoundId = "http://www.roblox.com/asset/?id=206083107"
  1316. z6.Volume = .6
  1317. z6.Pitch = pt[math.random(1,#pt)]
  1318. z6.Looped = false
  1319. z6:Play()
  1320. for i = 1, 3 do
  1321. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92)
  1322. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92)
  1323. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92)
  1324. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92)
  1325. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92)
  1326. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92)
  1327. if Debounces.on == false then break end
  1328. wait()
  1329. end
  1330. z7 = Instance.new("Sound", rarm)
  1331. z7.SoundId = "http://www.roblox.com/asset/?id=206083107"--160867463, 161006212
  1332. z7.Volume = .6
  1333. z7.Pitch = pt[math.random(1,#pt)]
  1334. z7.Looped = false
  1335. z7:Play()
  1336. for i = 1, 3 do
  1337. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92)
  1338. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92)
  1339. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92)
  1340. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92)
  1341. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92)
  1342. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92)
  1343. if Debounces.on == false then break end
  1344. wait()
  1345. end
  1346. z8 = Instance.new("Sound", larm)
  1347. z8.SoundId = "http://www.roblox.com/asset/?id=206083107"
  1348. z8.Volume = .6
  1349. z8.Pitch = pt[math.random(1,#pt)]
  1350. z8.Looped = false
  1351. z8:Play()
  1352. for i = 1, 3 do
  1353. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92)
  1354. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92)
  1355. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92)
  1356. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92)
  1357. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92)
  1358. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92)
  1359. if Debounces.on == false then break end
  1360. wait()
  1361. end
  1362. z9 = Instance.new("Sound", rarm)
  1363. z9.SoundId = "http://www.roblox.com/asset/?id=206083107"
  1364. z9.Volume = 0.6
  1365. z9.Pitch = pt[math.random(1,#pt)]
  1366. z9.Looped = false
  1367. z9:Play()
  1368. for i = 1, 3 do
  1369. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92)
  1370. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92)
  1371. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92)
  1372. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92)
  1373. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92)
  1374. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92)
  1375. if Debounces.on == false then break end
  1376. wait()
  1377. end
  1378. z10 = Instance.new("Sound", larm)
  1379. z10.SoundId = "http://www.roblox.com/asset/?id=206083107"
  1380. z10.Volume = .6
  1381. z10.Pitch = pt[math.random(1,#pt)]
  1382. z10.Looped = false
  1383. z10:Play()
  1384. for i = 1, 3 do
  1385. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92)
  1386. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92)
  1387. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92)
  1388. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92)
  1389. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92)
  1390. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92)
  1391. if Debounces.on == false then break end
  1392. wait()
  1393. end
  1394. z11 = Instance.new("Sound", rarm)
  1395. z11.SoundId = "http://www.roblox.com/asset/?id=206083107"
  1396. z11.Volume = .6
  1397. z11.Pitch = pt[math.random(1,#pt)]
  1398. z11.Looped = false
  1399. z11:Play()
  1400. for i = 1, 3 do
  1401. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(110),math.rad(30),math.rad(20)), 0.9)
  1402. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.9)
  1403. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9)
  1404. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9)
  1405. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.9)
  1406. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.9)
  1407. if Debounces.on == false then break end
  1408. wait()
  1409. end
  1410. z12 = Instance.new("Sound", larm)
  1411. z12.SoundId = "http://www.roblox.com/asset/?id=206083107"
  1412. z12.Volume = .6
  1413. z12.Pitch = pt[math.random(1,#pt)]
  1414. z12.Looped = false
  1415. z12:Play()
  1416. for i = 1, 3 do
  1417. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92)
  1418. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92)
  1419. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92)
  1420. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92)
  1421. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92)
  1422. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92)
  1423. if Debounces.on == false then break end
  1424. wait()
  1425. end
  1426. z13 = Instance.new("Sound", rarm)
  1427. z13.SoundId = "http://www.roblox.com/asset/?id=206083107"
  1428. z13.Volume = 0.6
  1429. z13.Pitch = pt[math.random(1,#pt)]
  1430. z13.Looped = false
  1431. z13:Play()
  1432. for i = 1, 3 do
  1433. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92)
  1434. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92)
  1435. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92)
  1436. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92)
  1437. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92)
  1438. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92)
  1439. if Debounces.on == false then break end
  1440. wait()
  1441. end
  1442. z14 = Instance.new("Sound", larm)
  1443. z14.SoundId = "http://www.roblox.com/asset/?id=206083107"
  1444. z14.Volume = .6
  1445. z14.Pitch = pt[math.random(1,#pt)]
  1446. z14.Looped = false
  1447. z14:Play()
  1448. for i = 1, 3 do
  1449. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92)
  1450. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92)
  1451. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92)
  1452. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92)
  1453. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92)
  1454. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92)
  1455. if Debounces.on == false then break end
  1456. wait()
  1457. end
  1458. z15 = Instance.new("Sound", rarm)
  1459. z15.SoundId = "http://www.roblox.com/asset/?id=206083107"
  1460. z15.Volume = .6
  1461. z15.Pitch = pt[math.random(1,#pt)]
  1462. z15.Looped = false
  1463. z15:Play()
  1464. for i = 1, 3 do
  1465. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(110),math.rad(30),math.rad(20)), 0.9)
  1466. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.9)
  1467. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9)
  1468. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9)
  1469. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.9)
  1470. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.9)
  1471. if Debounces.on == false then break end
  1472. wait()
  1473. end
  1474. z16 = Instance.new("Sound", larm)
  1475. z16.SoundId = "http://www.roblox.com/asset/?id=206083107"
  1476. z16.Volume = .6
  1477. z16.Pitch = pt[math.random(1,#pt)]
  1478. z16.Looped = false
  1479. z16:Play()
  1480. for i = 1, 3 do
  1481. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92)
  1482. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92)
  1483. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92)
  1484. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92)
  1485. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92)
  1486. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92)
  1487. if Debounces.on == false then break end
  1488. wait()
  1489. end
  1490. z17 = Instance.new("Sound", rarm)
  1491. z17.SoundId = "http://www.roblox.com/asset/?id=206083107"--160867463, 161006212
  1492. z17.Volume = .6
  1493. z17.Pitch = pt[math.random(1,#pt)]
  1494. z17.Looped = false
  1495. z17:Play()
  1496. for i = 1, 3 do
  1497. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92)
  1498. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92)
  1499. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92)
  1500. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92)
  1501. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92)
  1502. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92)
  1503. if Debounces.on == false then break end
  1504. wait()
  1505. end
  1506. z18 = Instance.new("Sound", larm)
  1507. z18.SoundId = "http://www.roblox.com/asset/?id=206083107"
  1508. z18.Volume = .6
  1509. z18.Pitch = pt[math.random(1,#pt)]
  1510. z18.Looped = false
  1511. z18:Play()
  1512. for i = 1, 3 do
  1513. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92)
  1514. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92)
  1515. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92)
  1516. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92)
  1517. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92)
  1518. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92)
  1519. if Debounces.on == false then break end
  1520. wait()
  1521. end
  1522. z19 = Instance.new("Sound", rarm)
  1523. z19.SoundId = "http://www.roblox.com/asset/?id=206083107"
  1524. z19.Volume = 0.6
  1525. z19.Pitch = pt[math.random(1,#pt)]
  1526. z19.Looped = false
  1527. z19:Play()
  1528. for i = 1, 3 do
  1529. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92)
  1530. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92)
  1531. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92)
  1532. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92)
  1533. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92)
  1534. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92)
  1535. if Debounces.on == false then break end
  1536. wait()
  1537. end
  1538. z20 = Instance.new("Sound", larm)
  1539. z20.SoundId = "http://www.roblox.com/asset/?id=206083107"
  1540. z20.Volume = .6
  1541. z20.Pitch = pt[math.random(1,#pt)]
  1542. z20.Looped = false
  1543. z20:Play()
  1544. for i = 1, 3 do
  1545. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92)
  1546. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92)
  1547. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92)
  1548. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92)
  1549. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92)
  1550. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92)
  1551. if Debounces.on == false then break end
  1552. wait()
  1553. end
  1554. z:Destroy()
  1555. z2:Destroy()
  1556. z3:Destroy()
  1557. z4:Destroy()
  1558. z5:Destroy()
  1559. z6:Destroy()
  1560. z7:Destroy()
  1561. z8:Destroy()
  1562. z9:Destroy()
  1563. z10:Destroy()
  1564. z11:Destroy()
  1565. z12:Destroy()
  1566. z13:Destroy()
  1567. z14:Destroy()
  1568. z15:Destroy()
  1569. z16:Destroy()
  1570. z17:Destroy()
  1571. z18:Destroy()
  1572. z19:Destroy()
  1573. z20:Destroy()
  1574. Debounces.LPunch = false
  1575. Debounces.RPunch = false
  1576. Debounces.ks = false
  1577. Debounces.ks2 = false
  1578. if Debounces.CanAttack == false then
  1579. Debounces.CanAttack = true
  1580. Debounces.on = false
  1581. Debounces.NoIdl = false
  1582. end
  1583. end
  1584. end
  1585. end)
  1586. -------------------------------
  1587. mouse.KeyDown:connect(function(key)
  1588. if key == "t" then
  1589. if Debounces.CanAttack == true then
  1590. Debounces.CanAttack = false
  1591. Debounces.NoIdl = true
  1592. Debounces.on = true
  1593. Debounces.ks = true
  1594. kik = rleg.Touched:connect(function(ht)
  1595. hit = ht.Parent
  1596. if ht and hit:IsA("Model") then
  1597. if hit:FindFirstChild("Humanoid") then
  1598. if hit.Name ~= p.Name then
  1599. --[[if Debounces.Slashing == true and Debounces.Slashed == false then
  1600. Debounces.Slashed = true]]--
  1601. if Debounces.ks==true then
  1602. z = Instance.new("Sound",hed)
  1603. z.SoundId = "rbxassetid://169380525"
  1604. z.Volume = 1
  1605. z:Play()
  1606. Debounces.ks=false
  1607. end
  1608. hit:FindFirstChild("Humanoid"):TakeDamage(2)
  1609. hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -300
  1610. --Debounces.Slashed = false
  1611. --end
  1612. end
  1613. end
  1614. elseif ht and hit:IsA("Hat") then
  1615. if hit.Parent.Name ~= p.Name then
  1616. if hit.Parent:FindFirstChild("Humanoid") then
  1617. --[[if Debounces.Slashing == true and Debounces.Slashed == false then
  1618. Debounces.Slashed = true]]--
  1619. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(2)
  1620. hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -300
  1621. --Debounces.Slashed = false
  1622. --end
  1623. end
  1624. end
  1625. end
  1626. end)
  1627. for i = 1,20 do
  1628. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(8)), 0.4)
  1629. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.4)
  1630. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4)
  1631. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(90), math.rad(90)), 0.4)
  1632. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-90)), 0.4)
  1633. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.4)
  1634. if Debounces.on == false then break end
  1635. rs:wait()
  1636. end
  1637. kik:disconnect()
  1638. if Debounces.CanAttack == false then
  1639. Debounces.CanAttack = true
  1640. Debounces.NoIdl = false
  1641. Debounces.on = false
  1642. end
  1643. end
  1644. end
  1645. end)
  1646. ----------------------------------------------------
  1647. mouse.KeyDown:connect(function(key)
  1648. if key == "y" then
  1649. if Debounces.CanAttack == true then
  1650. Debounces.CanAttack = false
  1651. Debounces.on = true
  1652. Debounces.NoIdl = true
  1653. for i = 1, 15 do
  1654. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(30)), 0.2)
  1655. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-90)), 0.6)
  1656. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.2)
  1657. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.4)
  1658. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2)
  1659. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2)
  1660. if Debounces.on == false then break end
  1661. rs:wait(2.7)
  1662. end
  1663. x = Instance.new("Sound",char)
  1664. x.SoundId = "rbxassetid://228343271"
  1665. x.Pitch = 1
  1666. x.Volume = .8
  1667. wait(.1)
  1668. x:Play()
  1669. Debounces.on = false
  1670. Debounces.Here = false
  1671. shot = shot + 1
  1672. local rng = Instance.new("Part", larm)
  1673. rng.Anchored = true
  1674. rng.BrickColor = BrickColor.new("Royal purple")
  1675. rng.CanCollide = false
  1676. rng.FormFactor = 3
  1677. rng.Name = "Ring"
  1678. rng.Size = Vector3.new(1, 1, 1)
  1679. rng.Transparency = 0.35
  1680. rng.TopSurface = 0
  1681. rng.BottomSurface = 0
  1682. rng2 = rng:clone()
  1683. rng3 = rng2:clone()
  1684. rng4 = rng2:clone()
  1685. local rngm = Instance.new("SpecialMesh", rng)
  1686. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1687. rngm.Scale = Vector3.new(10, 10, 1)
  1688. rngm2 = rngm:clone()
  1689. rngm2.Scale = Vector3.new(5, 5, 3)
  1690. rngm3=rngm2:clone()
  1691. rngm3.Parent = rng3
  1692. rngm3.Scale = Vector3.new(8, 8, 1)
  1693. rngm4 = rngm2:clone()
  1694. rngm4.Parent = rng4
  1695. rngm4.Scale = Vector3.new(6, 6, 1)
  1696. local bem = Instance.new("Part", larm)
  1697. bem.Anchored = true
  1698. bem.BrickColor = BrickColor.new("Really black")
  1699. bem.CanCollide = false
  1700. bem.FormFactor = 3
  1701. bem.Name = "Beam" .. shot
  1702. bem.Size = Vector3.new(1, 1, 1)
  1703. bem.Transparency = 0.35
  1704. bem.TopSurface = 0
  1705. bem.BottomSurface = 0
  1706. local bemm = Instance.new("SpecialMesh", bem)
  1707. bemm.MeshType = 4
  1708. bemm.Scale = Vector3.new(1, 4, 4)
  1709. local out = Instance.new("Part", larm)
  1710. out.Anchored = true
  1711. out.BrickColor = BrickColor.new("Really black")
  1712. out.CanCollide = false
  1713. out.FormFactor = 3
  1714. out.Name = "Out"
  1715. out.Size = Vector3.new(4, 4, 4)
  1716. out.Transparency = 0.35
  1717. out.TopSurface = 0
  1718. out.BottomSurface = 0
  1719. local outm = Instance.new("SpecialMesh", out)
  1720. outm.MeshId = "http://www.roblox.com/asset/?id=1033714"
  1721. outm.Scale = Vector3.new(6, 4, 6)
  1722. local bnd = Instance.new("Part", larm)
  1723. bnd.Anchored = true
  1724. bnd.BrickColor = BrickColor.new("Royal purple")
  1725. bnd.CanCollide = false
  1726. bnd.FormFactor = 3
  1727. bnd.Name = "Bend"
  1728. bnd.Size = Vector3.new(1, 1, 1)
  1729. bnd.Transparency = 1
  1730. bnd.TopSurface = 0
  1731. bnd.BottomSurface = 0
  1732. local bndm = Instance.new("SpecialMesh", bnd)
  1733. bndm.MeshType = 3
  1734. bndm.Scale = Vector3.new(8, 8, 8)
  1735. out.CFrame = larm.CFrame * CFrame.new(0, -2.7, 0)
  1736. bem.CFrame = out.CFrame * CFrame.new(0, -2.5, 0) * CFrame.Angles(0, 0, math.rad(90))
  1737. bnd.CFrame = bem.CFrame * CFrame.new(0, 0, 0)
  1738. rng.CFrame = out.CFrame * CFrame.Angles(math.rad(90), 0, 0)
  1739. rng3.CFrame = rng.CFrame * CFrame.new(0, -.5, 0)
  1740. rng4.CFrame = rng.CFrame * CFrame.new(0, -1, 0)
  1741. Debounces.Shewt = true
  1742. coroutine.wrap(function()
  1743. for i = 1, 20, 0.2 do
  1744. rngm.Scale = Vector3.new(10 + i*2, 10 + i*2, 1)
  1745. rngm3.Scale = Vector3.new(8 + i*3, 8 + i*3, 1)
  1746. rngm4.Scale = Vector3.new(6 + i*4, 6 + i*4, 1)
  1747. rng.Transparency = i/20
  1748. rng3.Transparency = 1/24
  1749. rng4.Transparency = i/26
  1750. wait()
  1751. end
  1752. wait()
  1753. rng:Destroy()
  1754. end)()
  1755. if Debounces.Shewt == true then
  1756. larm:WaitForChild("Beam" .. shot).Touched:connect(function(ht)
  1757. hit = ht.Parent
  1758. if hit:IsA("Model") and hit:findFirstChild("Humanoid") then
  1759. if HasntTouched(hit.Name) == true and deb == false then
  1760. deb = true
  1761. coroutine.wrap(function()
  1762. hit:FindFirstChild("Humanoid").PlatformStand = true
  1763. hit:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180
  1764. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(24,73))
  1765. end)()
  1766. table.insert(Touche, hit.Name)
  1767. deb = false
  1768. end
  1769. elseif hit:IsA("Hat") and hit.Parent:findFirstChild("Humanoid") then
  1770. if HasntTouched(hit.Parent.Name) == true and deb == false then
  1771. deb = true
  1772. coroutine.wrap(function()
  1773. hit.Parent:FindFirstChild("Humanoid").PlatformStand = true
  1774. hit.Parent:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180
  1775. wait(1)
  1776. hit.Parent:FindFirstChild("Humanoid").PlatformStand = false
  1777. end)()
  1778. table.insert(Touche, hit.Parent.Name)
  1779. deb = false
  1780. for i, v in pairs(Touche) do
  1781. print(v)
  1782. end
  1783. end
  1784. end
  1785. end)
  1786. end
  1787. for i = 0, 260, 8 do
  1788. bem.Size = Vector3.new(i, 3, 3)
  1789. out.CFrame = larm.CFrame * CFrame.new(0, -2.7, 0)
  1790. bem.CFrame = larm.CFrame * CFrame.new(0, -4.2 -(i/2), 0) * CFrame.Angles(0, 0, math.rad(90))
  1791. bnd.CFrame = bem.CFrame * CFrame.new(-i/2, 0, 1.2)
  1792. bnd.Size = Vector3.new(1,1,1)
  1793. bndm.Scale = Vector3.new(8,8,8)
  1794. if i % 10 == 0 then
  1795. local newRng = rng2:Clone()
  1796. newRng.Parent = larm
  1797. newRng.CFrame = larm.CFrame * CFrame.new(0, -4.2-i, 0) * CFrame.Angles(math.rad(90), 0, 0)
  1798. local newRngm = rngm2:clone()
  1799. newRngm.Parent=newRng
  1800. coroutine.wrap(function()
  1801. for i = 1, 10, 0.2 do
  1802. newRngm.Scale = Vector3.new(8 + i*2, 8 + i*2, 3)
  1803. newRng.Transparency = i/10
  1804. wait()
  1805. end
  1806. wait()
  1807. newRng:Destroy()
  1808. end)()
  1809. end
  1810. wait()
  1811. end
  1812. wait()
  1813. Debounces.Shewt = false
  1814. bem:Destroy()
  1815. out:Destroy()
  1816. bnd:Destroy()
  1817. Debounces.Ready = false
  1818. for i, v in pairs(Touche) do
  1819. table.remove(Touche, i)
  1820. end
  1821. wait()
  1822. table.insert(Touche, char.Name)
  1823. Debounces.NoIdl = false
  1824. if Debounces.CanAttack == false then
  1825. Debounces.CanAttack = true
  1826. end
  1827. end
  1828. end
  1829. end)
  1830. ----------------------------------------------------
  1831. --[[mouse.KeyDown:connect(function(key)
  1832. if key == "y" then
  1833. if Debounces.CanAttack == true then
  1834. Debounces.CanAttack = false
  1835. Debounces.NoIdl = true
  1836. Debounces.on = true
  1837. local shell = Instance.new("Part",torso)
  1838. shell.BrickColor = BrickColor.new("Royal purple")
  1839. shell.Anchored = false
  1840. shell.CanCollide = false
  1841. shell.Locked = true
  1842. shell.TopSurface = "SmoothNoOutlines"
  1843. shell.BottomSurface = "SmoothNoOutlines"
  1844. shell.Size = Vector3.new(1.2,1.2,1.2)
  1845. shell.FormFactor = 3
  1846. local shellm = Instance.new("SpecialMesh",shell)
  1847. shellm.MeshType = "Sphere"
  1848. shellm.Scale = Vector3.new(1.2,1.2,1.2)
  1849. Omega = function()
  1850. local X = Instance.new("Part",char)
  1851. local O = Instance.new("ObjectValue",X)
  1852. O.Name = "creator"
  1853. X.Locked = true
  1854. X.Name = "Shell"
  1855. X.Anchored = false
  1856. X.CanCollide = false
  1857. X.Transparency = 0.5
  1858. X.Reflectance = 0
  1859. X.BottomSurface = 0
  1860. X.TopSurface = 0
  1861. X.Shape = 0
  1862. local V = Instance.new("ObjectValue",X)
  1863. V.Value = char
  1864. V.Name = "creator"
  1865. X.BrickColor = BrickColor.new("Royal purple")
  1866. X.Size = Vector3.new(40,40,40)
  1867. --X.Material = "Neon"
  1868. local Z = Instance.new("SpecialMesh",X)
  1869. Z.MeshType = "Sphere"
  1870. Z.Scale = Vector3.new(0.2,0.2,0.2)
  1871. X.CFrame = rarm.CFrame*CFrame.new(0,-6,0)
  1872. local bv = Instance.new("BodyVelocity",X)
  1873. bv.maxForce = Vector3.new(99999,99999,99999)
  1874. X.CFrame = CFrame.new(X.Position,root.CFrame.lookVector*10)
  1875. bv.velocity = root.CFrame.lookVector*10
  1876. Explode = X.Touched:connect(function(hit)
  1877. if hit ~= char and hit.Name ~= "Shell" and hit ~= X and hit:IsA("Part") or hit:IsA("BasePart}") then
  1878. local cf = X.CFrame
  1879. bv:Destroy()
  1880. X.Anchored = true
  1881. Z:Remove()
  1882. Explode:disconnect()
  1883. X.Size = Vector3.new(3,3,3)
  1884. X.Touched:connect(function(hit) end)
  1885. X.CanCollide = false
  1886. for i,v in pairs(FindNearestTorso(X.CFrame.p,200))do
  1887. if v:FindFirstChild('Humanoid') then
  1888. v.Humanoid:TakeDamage(math.random(80,120))
  1889. end
  1890. end
  1891. for i = 1, (40) do rs:wait()
  1892. X.Transparency = X.Transparency + (1/40)
  1893. X.Size = X.Size + Vector3.new(1,1,1)
  1894. X.CFrame = root.CFrame * CFrame.new(0,0,-10)
  1895. end
  1896. X:Destroy()
  1897. end
  1898. end)
  1899. end
  1900. for i = 1,200 do
  1901. shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0)
  1902. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(170)), 0.03)
  1903. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  1904. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4)
  1905. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4)
  1906. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4)
  1907. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4)
  1908. if Debounces.on == false then break end
  1909. rs:wait()
  1910. end
  1911. for i = 1,30 do
  1912. shell.CFrame = torso.CFrame * CFrame.new(0,8,0)
  1913. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(170)), 0.4)
  1914. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-170)), 0.4)
  1915. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4)
  1916. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4)
  1917. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4)
  1918. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4)
  1919. if Debounces.on == false then break end
  1920. rs:wait()
  1921. end
  1922. for i = 1,40 do
  1923. shell.CFrame = torso.CFrame * CFrame.new(0,20,0)
  1924. shell.Size = shell.Size + Vector3.new(1,1,1)
  1925. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(100)), 0.4)
  1926. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-100)), 0.4)
  1927. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4)
  1928. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4)
  1929. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4)
  1930. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4)
  1931. if Debounces.on == false then break end
  1932. rs:wait()
  1933. end
  1934. for i = 1,40 do
  1935. shell.CFrame = torso.CFrame * CFrame.new(0,0,-30)
  1936. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.6,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(20)), 0.4)
  1937. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.6,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(-20)), 0.4)
  1938. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4)
  1939. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4)
  1940. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4)
  1941. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4)
  1942. if Debounces.on == false then break end
  1943. rs:wait()
  1944. end
  1945. for i = 1,60 do
  1946. shell.CFrame = torso.CFrame * CFrame.new(0,0,-60)
  1947. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.64,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-30)), 0.4)
  1948. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.64,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(30)), 0.4)
  1949. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4)
  1950. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4)
  1951. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4)
  1952. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4)
  1953. if Debounces.on == false then break end
  1954. rs:wait()
  1955. end
  1956. for i = 1,60 do
  1957. shell.CFrame = torso.CFrame * CFrame.new(0,0,-60)
  1958. shell.Size = shell.Size + Vector3.new(1,1,1)
  1959. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.64,0)*CFrame.Angles(math.rad(110),math.rad(0),math.rad(120)), 0.4)
  1960. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.64,0)*CFrame.Angles(math.rad(110),math.rad(0),math.rad(-120)), 0.4)
  1961. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4)
  1962. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4)
  1963. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4)
  1964. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4)
  1965. if Debounces.on == false then break end
  1966. rs:wait()
  1967. end
  1968. if Debounces.CanAttack == false then
  1969. Debounces.CanAttack = true
  1970. Debounces.NoIdl = false
  1971. Debounces.on = false
  1972. end
  1973. end
  1974. end
  1975. end)]]--
  1976. ----------------------------------------------------
  1977. Charging = false
  1978. mouse.KeyDown:connect(function(key)
  1979. if key == "r" then
  1980. if Charging == false then
  1981. Charging = true
  1982. if Debounces.CanAttack == true then
  1983. Debounces.CanAttack = false
  1984. Debounces.NoIdl = true
  1985. Debounces.on = true
  1986. for i = 1,20 do
  1987. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.65,-.4)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(-40)), 0.2)
  1988. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.65,-.4)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(40)), 0.2)
  1989. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.2)
  1990. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2)
  1991. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, .4, -0.8) * CFrame.Angles(math.rad(-6), math.rad(0), math.rad(0)), 0.2)
  1992. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, .4, -0.8) * CFrame.Angles(math.rad(-6), math.rad(0), math.rad(0)), 0.2)
  1993. if Debounces.on == false then break end
  1994. rs:wait()
  1995. end
  1996. --[[for i = 1,20 do
  1997. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(-20),math.rad(50)), 0.4)
  1998. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(20),math.rad(-50)), 0.4)
  1999. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,.1)*CFrame.Angles(math.rad(34),math.rad(0),0), 0.4)
  2000. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), 0.4)
  2001. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(-10)), 0.4)
  2002. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(10)), 0.4)
  2003. if Debounces.on == false then break end
  2004. rs:wait()
  2005. end]]--
  2006. pt=Instance.new('Part',torso)
  2007. pt.Anchored=true
  2008. pt.CanCollide=false
  2009. pt.Locked = true
  2010. pt.FormFactor='Custom'
  2011. pt.Size=Vector3.new(1,1,1)
  2012. pt.CFrame=root.CFrame*CFrame.new(0,-1,0)
  2013. pt.Transparency=.6
  2014. pt.BrickColor=BrickColor.new('Really black')
  2015. msh=Instance.new('SpecialMesh',pt)
  2016. msh.MeshId='http://www.roblox.com/asset/?id=20329976'
  2017. msh.Scale=Vector3.new(8,4,8)
  2018. pt2=pt:clone()
  2019. pt2.Parent = torso
  2020. pt2.CFrame=root.CFrame*CFrame.new(0,-1,0)
  2021. pt2.BrickColor=BrickColor.new("Royal purple")
  2022. msh2=msh:clone()
  2023. msh2.Parent=pt2
  2024. msh2.Scale=Vector3.new(10,5,10)
  2025.  
  2026. custommath={25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,-25,-26,-27,-28,-29,-30,-31,-32,-33,-34,-35,-36,-37,-38,-39,-40,-41,-42,-43,-44,-45,-46,-47,-48,-49,-50,-51,-52,-53,-54,-55,-56,-57,-58,-59,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-81,-82,-83,-84,-85,-86,-87,-88,-89,-90,-91,-92,-93,-94,-95,-96,-97,-98,-99,-100}
  2027.  
  2028. bl = Instance.new("Part", char)
  2029. bl.Locked = true
  2030. bl.Name = "Shell"
  2031. bl.BrickColor = BrickColor.new("Really black")
  2032. bl.Anchored = true
  2033. bl.CanCollide = false
  2034. bl.Transparency = 0
  2035. bl.Reflectance = 0
  2036. bl.BottomSurface = 0
  2037. bl.TopSurface = 0
  2038. bl.Shape = 0
  2039. blm = Instance.new("SpecialMesh",bl)
  2040. blm.MeshType = "Sphere"
  2041. blm.Scale = Vector3.new(1,1,1)
  2042. blm.MeshId = "rbxassetid://9982590"
  2043.  
  2044. coroutine.resume(coroutine.create(function()
  2045. for i=1, math.huge, 4 do
  2046. if Charging == true then
  2047. rs:wait()
  2048. bl.CFrame = root.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10))
  2049. blm.Scale = blm.Scale + Vector3.new(0.1, 0.1, 0.1)
  2050. bl.Transparency = bl.Transparency + 0.005
  2051. pt.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(i*2),0)
  2052. pt2.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(-i*2),0)
  2053. msh.Scale = msh.Scale + Vector3.new(0.05,0,0.05)
  2054. msh2.Scale = msh2.Scale + Vector3.new(0.05,0,0.05)
  2055. elseif Charging == false then break
  2056. end
  2057. end
  2058. end))
  2059.  
  2060. repeat
  2061. local p = Instance.new('Part',torso)
  2062. p.formFactor = 'Custom'
  2063. p.Size = Vector3.new(1,1,1)
  2064. p.BrickColor = workspace.Base.BrickColor
  2065. p.CanCollide = false
  2066. p.Transparency = 0
  2067. p.Anchored = true
  2068. p.Locked=true
  2069. p.Material = workspace.Base.Material
  2070. s = math.random(1,40)/10
  2071. local m = Instance.new("BlockMesh",p)
  2072. m.Scale = Vector3.new(s,s,s)
  2073. p.CFrame = torso.CFrame*CFrame.new(custommath[math.random(1,#custommath)]/10,-math.random(5,7),custommath[math.random(1,#custommath)]/10)*CFrame.Angles(math.random(),math.random(),math.random())
  2074. --[[coroutine.wrap(function()
  2075. wait(2)
  2076. while Charging == true do
  2077. wait(2)
  2078. GroundWave1()
  2079. wait(2)
  2080. end
  2081. end)()]]--
  2082. Spawn(function()
  2083. while rs:wait() do
  2084. if Charging == true then
  2085. rarm.Weld.C0 = CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(math.random(-36,-20)),math.rad(math.random(-30,-20)),math.rad(math.random(30,50)))
  2086. larm.Weld.C0 = CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(math.random(-36,-20)),math.rad(math.random(20,30)),math.rad(math.random(-50,-30)))
  2087. hed.Weld.C0 = CFrame.new(0,1.5,.1)*CFrame.Angles(math.rad(math.random(26,34)),math.rad(math.random(-5,5)),math.rad(0))
  2088. torso.Weld.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(math.random(-4,4)), math.rad(0))
  2089. lleg.Weld.C0 = CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(math.random(-10,-6)), math.rad(math.random(10,20)), math.rad(math.random(-20,-10)))
  2090. rleg.Weld.C0 = CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(math.random(-10,-6)), math.rad(math.random(-20,-10)), math.rad(math.random(10,20)))
  2091. elseif Charging == false then break
  2092. end
  2093. end
  2094. end)
  2095. Spawn(function()
  2096. while rs:wait() do
  2097. if p.Transparency >= 1 then p:Destroy() break end
  2098. p.CFrame = p.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))+Vector3.new(0,0.2,0)
  2099. p.Transparency = p.Transparency+0.01
  2100. end
  2101. end)
  2102. wait(.3)
  2103. until Charging == false
  2104. end
  2105. end
  2106. end
  2107. end)
  2108. ----------------------------------------------------
  2109. mouse.KeyUp:connect(function(key)
  2110. if key == "r" then
  2111. if Charging == true then
  2112. Charging = false
  2113. pt:Destroy()
  2114. pt2:Destroy()
  2115. bl:Destroy()
  2116. if Debounces.CanAttack == false then
  2117. Debounces.CanAttack = true
  2118. Debounces.NoIdl = false
  2119. Debounces.on = false
  2120. end
  2121. end
  2122. end
  2123. end)
  2124. ----------------------------------------------------
  2125. mouse.KeyDown:connect(function(key)
  2126. if key == "g" then
  2127. if Debounces.CanAttack == true then
  2128. Debounces.CanAttack = false
  2129. Debounces.NoIdl = true
  2130. Debounces.on = true
  2131. local shell = Instance.new("Part",torso)
  2132. shell.BrickColor = BrickColor.new("Royal purple")
  2133. shell.Anchored = true
  2134. shell.CanCollide = false
  2135. shell.Locked = true
  2136. shell.TopSurface = "SmoothNoOutlines"
  2137. shell.BottomSurface = "SmoothNoOutlines"
  2138. shell.Size = Vector3.new(1,1,1)
  2139. shellm = Instance.new("SpecialMesh",shell)
  2140. shellm.MeshType = "Sphere"
  2141. shellm.Scale = Vector3.new(1,1,1)
  2142. local shell2 = Instance.new("Part",torso)
  2143. shell2.BrickColor = BrickColor.new("Royal purple")
  2144. shell2.Anchored = true
  2145. shell2.CanCollide = false
  2146. shell2.Locked = true
  2147. shell2.TopSurface = "SmoothNoOutlines"
  2148. shell2.BottomSurface = "SmoothNoOutlines"
  2149. shell2.Size = Vector3.new(1,1,1)
  2150. shellm2 = Instance.new("SpecialMesh",shell2)
  2151. shellm2.MeshType = "Sphere"
  2152. shellm2.Scale = Vector3.new(1,1,1)
  2153.  
  2154. function FindNearestTorso(Position,Distance,SinglePlayer)
  2155. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  2156. local List = {}
  2157. for i,v in pairs(workspace:GetChildren())do
  2158. if v:IsA("Model")then
  2159. if v:findFirstChild("Torso")then
  2160. if v ~= char then
  2161. if(v.Torso.Position -Position).magnitude <= Distance then
  2162. table.insert(List,v)
  2163. end
  2164. end
  2165. end
  2166. end
  2167. end
  2168. return List
  2169. end
  2170.  
  2171. Shell = function()
  2172. local X = Instance.new("Part",char)
  2173. local O = Instance.new("ObjectValue",X)
  2174. O.Name = "creator"
  2175. X.Locked = true
  2176. X.Name = "Shell"
  2177. X.Anchored = false
  2178. X.CanCollide = false
  2179. X.Transparency = 0
  2180. X.Reflectance = 0
  2181. X.BottomSurface = 0
  2182. X.TopSurface = 0
  2183. X.Shape = 0
  2184. local V = Instance.new("ObjectValue",X)
  2185. V.Value = char
  2186. V.Name = "creator"
  2187. X.BrickColor = BrickColor.new("Royal purple")
  2188. X.Size = Vector3.new(1,1,1)
  2189. --X.Material = "Neon"
  2190. local Z = Instance.new("SpecialMesh",X)
  2191. Z.MeshType = "Sphere"
  2192. Z.Scale = Vector3.new(1,1,1)
  2193. X.CFrame = rarm.CFrame*CFrame.new(0,-6,0)
  2194. local bv = Instance.new("BodyVelocity",X)
  2195. bv.maxForce = Vector3.new(99999,99999,99999)
  2196. X.CFrame = CFrame.new(X.Position,root.CFrame.lookVector*10)
  2197. bv.velocity = root.CFrame.lookVector*65
  2198. Explode = X.Touched:connect(function(hit)
  2199. if hit ~= char and hit.Name ~= "Shell" and hit:IsA("Part") or hit:IsA("BasePart}") then
  2200. local cf = X.CFrame
  2201. bv:Destroy()
  2202. X.Anchored = true
  2203. Z:Remove()
  2204. Explode:disconnect()
  2205. X.Size = Vector3.new(3,3,3)
  2206. X.Touched:connect(function(hit) end)
  2207. X.CanCollide = false
  2208. for i,v in pairs(FindNearestTorso(X.CFrame.p,40))do
  2209. if v:FindFirstChild('Humanoid') then
  2210. v.Humanoid:TakeDamage(math.random(6,12))
  2211. end
  2212. end
  2213. for i = 1, (40) do rs:wait()
  2214. X.Transparency = X.Transparency + (1/40)
  2215. X.Size = X.Size + Vector3.new(1,1,1)
  2216. X.CFrame = cf
  2217. end
  2218. X:Destroy()
  2219. end
  2220. end)
  2221. end
  2222. Shell()
  2223. for i = 1, 10 do
  2224. shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0)
  2225. shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0)
  2226. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7)
  2227. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7)
  2228. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.7)
  2229. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.7)
  2230. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-20)), 0.7)
  2231. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)), 0.7)
  2232. if Debounces.on == false then break end
  2233. rs:wait()
  2234. end
  2235. Shell()
  2236. shell.Transparency = 1
  2237. for i = 1, 10 do
  2238. shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0)
  2239. shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0)
  2240. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7)
  2241. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7)
  2242. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7)
  2243. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7)
  2244. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7)
  2245. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7)
  2246. if Debounces.on == false then break end
  2247. rs:wait()
  2248. end
  2249. Shell()
  2250. shell.Transparency = 0
  2251. shell2.Transparency = 1
  2252. for i = 1, 10 do
  2253. shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0)
  2254. shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0)
  2255. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7)
  2256. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7)
  2257. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7)
  2258. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7)
  2259. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7)
  2260. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7)
  2261. if Debounces.on == false then break end
  2262. rs:wait()
  2263. end
  2264. Shell()
  2265. shell2.Transparency = 0
  2266. shell.Transparency = 1
  2267. for i = 1, 10 do
  2268. shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0)
  2269. shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0)
  2270. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7)
  2271. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7)
  2272. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7)
  2273. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7)
  2274. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7)
  2275. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7)
  2276. if Debounces.on == false then break end
  2277. rs:wait()
  2278. end
  2279. Shell()
  2280. shell.Transparency = 0
  2281. shell2.Transparency = 1
  2282. for i = 1, 10 do
  2283. shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0)
  2284. shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0)
  2285. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7)
  2286. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7)
  2287. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7)
  2288. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7)
  2289. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7)
  2290. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7)
  2291. if Debounces.on == false then break end
  2292. rs:wait()
  2293. end
  2294. Shell()
  2295. shell2.Transparency = 0
  2296. shell.Transparency = 1
  2297. for i = 1, 10 do
  2298. shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0)
  2299. shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0)
  2300. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7)
  2301. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7)
  2302. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7)
  2303. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7)
  2304. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7)
  2305. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7)
  2306. if Debounces.on == false then break end
  2307. rs:wait()
  2308. end
  2309. Shell()
  2310. shell.Transparency = 0
  2311. shell2.Transparency = 1
  2312. for i = 1, 10 do
  2313. shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0)
  2314. shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0)
  2315. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7)
  2316. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.5)
  2317. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7)
  2318. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7)
  2319. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7)
  2320. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7)
  2321. if Debounces.on == false then break end
  2322. rs:wait()
  2323. end
  2324. Shell()
  2325. shell2.Transparency = 0
  2326. shell.Transparency = 1
  2327. for i = 1, 10 do
  2328. shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0)
  2329. shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0)
  2330. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7)
  2331. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7)
  2332. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7)
  2333. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7)
  2334. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7)
  2335. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7)
  2336. if Debounces.on == false then break end
  2337. rs:wait()
  2338. end
  2339. Shell()
  2340. shell.Transparency = 0
  2341. shell2.Transparency = 1
  2342. for i = 1, 10 do
  2343. shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0)
  2344. shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0)
  2345. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7)
  2346. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7)
  2347. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7)
  2348. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7)
  2349. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7)
  2350. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7)
  2351. if Debounces.on == false then break end
  2352. rs:wait()
  2353. end
  2354. Shell()
  2355. shell2.Transparency = 0
  2356. shell.Transparency = 1
  2357. for i = 1, 10 do
  2358. shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0)
  2359. shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0)
  2360. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7)
  2361. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7)
  2362. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7)
  2363. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7)
  2364. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7)
  2365. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7)
  2366. if Debounces.on == false then break end
  2367. rs:wait()
  2368. end
  2369. Shell()
  2370. shell.Transparency = 0
  2371. shell2.Transparency = 1
  2372. for i = 1, 10 do
  2373. shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0)
  2374. shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0)
  2375. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7)
  2376. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7)
  2377. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7)
  2378. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7)
  2379. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7)
  2380. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7)
  2381. if Debounces.on == false then break end
  2382. rs:wait()
  2383. end
  2384. Shell()
  2385. shell2.Transparency = 0
  2386. shell.Transparency = 1
  2387. for i = 1, 10 do
  2388. shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0)
  2389. shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0)
  2390. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7)
  2391. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7)
  2392. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7)
  2393. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7)
  2394. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7)
  2395. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7)
  2396. if Debounces.on == false then break end
  2397. rs:wait()
  2398. end
  2399. Shell()
  2400. shell.Transparency = 0
  2401. shell2.Transparency = 1
  2402. for i = 1, 10 do
  2403. shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0)
  2404. shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0)
  2405. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7)
  2406. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7)
  2407. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7)
  2408. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7)
  2409. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7)
  2410. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7)
  2411. if Debounces.on == false then break end
  2412. rs:wait()
  2413. end
  2414. shell.Transparency = 1
  2415. if Debounces.CanAttack == false then
  2416. Debounces.CanAttack = true
  2417. Debounces.NoIdl = false
  2418. Debounces.on = false
  2419. end
  2420. end
  2421. end
  2422. end)
  2423. ----------------------------------------------------
  2424. Search = false
  2425. mouse.KeyDown:connect(function(key)
  2426. if key == "n" then
  2427. if Search == false then
  2428. Search = true
  2429. for i,v in pairs(game.Players:getPlayers()) do
  2430. if v.Name~=char.Name then
  2431. for j,k in pairs(v.Character:GetChildren()) do
  2432. if k:IsA("BasePart") and k.Transparency >= 1 then
  2433. bawx=Instance.new("SelectionBox",cam)
  2434. bawx.Color = BrickColor.new("Bright red")
  2435. bawx.Transparency = .5
  2436. bawx.Adornee = k
  2437. end
  2438. end
  2439. end
  2440. end
  2441. elseif Search == true then
  2442. Search = false
  2443. for i, v in pairs(cam:GetChildren()) do
  2444. if v:IsA("SelectionBox") then
  2445. v:Destroy()
  2446. end
  2447. end
  2448. end
  2449. end
  2450. end)
  2451. ----------------------------------------------------
  2452. Grab = false
  2453. mouse.KeyDown:connect(function(key)
  2454. if key == "z" then
  2455. Debounces.on = true
  2456. Debounces.NoIdl = true
  2457. Debounces.ks = true
  2458. if Grab == false then
  2459. gp = nil
  2460. for i = 1, 20 do
  2461. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.2)
  2462. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.2)
  2463. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.2)
  2464. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2)
  2465. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(30), math.rad(-20)), 0.2)
  2466. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-15), math.rad(20)), 0.2)
  2467. if Debounces.on == false then break end
  2468. rs:wait()
  2469. end
  2470. con1=larm.Touched:connect(function(hit) -- this is grab
  2471. ht = hit.Parent
  2472. hum1=ht:FindFirstChild('Humanoid')
  2473. if hum1 ~= nil then
  2474. if Debounces.ks==true then
  2475. z = Instance.new("Sound",hed)
  2476. z.SoundId = "rbxassetid://169380525"
  2477. z.Volume = 1
  2478. z:Play()
  2479. Debounces.ks=false
  2480. end
  2481. hum1.PlatformStand=true
  2482. gp = ht
  2483. Grab = true
  2484. asd=weld5(root,ht:FindFirstChild("Torso"),CFrame.new(0,0,-2.4),CFrame.new(0,0,0))
  2485. asd.Parent = larm
  2486. asd.Name = "asd"
  2487. asd.C0=asd.C0*CFrame.Angles(math.rad(0),math.rad(180),0)
  2488. --[[elseif hum1 == nil then
  2489. con1:disconnect()
  2490. wait() return]]--
  2491. end
  2492. end)
  2493. for i = 1, 20 do
  2494. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.2)
  2495. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.2)
  2496. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.2)
  2497. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2)
  2498. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2)
  2499. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.2)
  2500. if Debounces.on == false then break end
  2501. rs:wait()
  2502. end
  2503. if hum1 == nil then
  2504. Debounces.on = false
  2505. Debounces.NoIdl = false
  2506. end
  2507. con1:disconnect()
  2508. elseif Grab == true then
  2509. Grab = false
  2510. Punch()
  2511. z = Instance.new("Sound",hed)
  2512. z.SoundId = "rbxassetid://169380525"
  2513. z.Pitch = ptz[math.random(1,#ptz)]
  2514. z.Volume = 1
  2515. z:Play()
  2516. for i = 1, 10 do
  2517. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7)
  2518. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7)
  2519. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4)
  2520. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6)
  2521. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  2522. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
  2523. if Debounces.on == false then break end
  2524. rs:wait()
  2525. end
  2526. Punch()
  2527. z = Instance.new("Sound",hed)
  2528. z.SoundId = "rbxassetid://169380525"
  2529. z.Pitch = ptz[math.random(1,#ptz)]
  2530. z.Volume = 1
  2531. z:Play()
  2532. for i = 1, 10 do
  2533. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6)
  2534. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7)
  2535. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4)
  2536. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65)
  2537. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  2538. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
  2539. if Debounces.on == false then break end
  2540. rs:wait()
  2541. end
  2542. Punch()
  2543. z = Instance.new("Sound",hed)
  2544. z.SoundId = "rbxassetid://169380525"
  2545. z.Pitch = ptz[math.random(1,#ptz)]
  2546. z.Volume = 1
  2547. z:Play()
  2548. for i = 1, 10 do
  2549. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7)
  2550. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7)
  2551. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4)
  2552. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6)
  2553. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  2554. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
  2555. if Debounces.on == false then break end
  2556. rs:wait()
  2557. end
  2558. Punch()
  2559. z = Instance.new("Sound",hed)
  2560. z.SoundId = "rbxassetid://169380525"
  2561. z.Pitch = ptz[math.random(1,#ptz)]
  2562. z.Volume = 1
  2563. z:Play()
  2564. for i = 1, 10 do
  2565. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6)
  2566. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7)
  2567. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4)
  2568. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65)
  2569. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  2570. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
  2571. if Debounces.on == false then break end
  2572. rs:wait()
  2573. end
  2574. Punch()
  2575. z = Instance.new("Sound",hed)
  2576. z.SoundId = "rbxassetid://169380525"
  2577. z.Pitch = ptz[math.random(1,#ptz)]
  2578. z.Volume = 1
  2579. z:Play()
  2580. for i = 1, 10 do
  2581. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7)
  2582. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7)
  2583. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4)
  2584. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6)
  2585. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  2586. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
  2587. if Debounces.on == false then break end
  2588. rs:wait()
  2589. end
  2590. Punch()
  2591. z = Instance.new("Sound",hed)
  2592. z.SoundId = "rbxassetid://169380525"
  2593. z.Pitch = ptz[math.random(1,#ptz)]
  2594. z.Volume = 1
  2595. z:Play()
  2596. for i = 1, 10 do
  2597. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6)
  2598. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7)
  2599. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4)
  2600. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65)
  2601. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  2602. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
  2603. if Debounces.on == false then break end
  2604. rs:wait()
  2605. end
  2606. Punch()
  2607. z = Instance.new("Sound",hed)
  2608. z.SoundId = "rbxassetid://169380525"
  2609. z.Pitch = ptz[math.random(1,#ptz)]
  2610. z.Volume = 1
  2611. z:Play()
  2612. for i = 1, 10 do
  2613. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7)
  2614. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7)
  2615. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4)
  2616. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6)
  2617. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  2618. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
  2619. if Debounces.on == false then break end
  2620. rs:wait()
  2621. end
  2622. Punch()
  2623. z = Instance.new("Sound",hed)
  2624. z.SoundId = "rbxassetid://169380525"
  2625. z.Pitch = ptz[math.random(1,#ptz)]
  2626. z.Volume = 1
  2627. z:Play()
  2628. for i = 1, 10 do
  2629. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6)
  2630. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7)
  2631. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4)
  2632. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65)
  2633. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  2634. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
  2635. if Debounces.on == false then break end
  2636. rs:wait()
  2637. end
  2638. Punch()
  2639. z = Instance.new("Sound",hed)
  2640. z.SoundId = "rbxassetid://169380525"
  2641. z.Pitch = ptz[math.random(1,#ptz)]
  2642. z.Volume = 1
  2643. z:Play()
  2644. for i = 1, 10 do
  2645. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7)
  2646. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7)
  2647. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4)
  2648. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6)
  2649. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  2650. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
  2651. if Debounces.on == false then break end
  2652. rs:wait()
  2653. end
  2654. Punch()
  2655. z = Instance.new("Sound",hed)
  2656. z.SoundId = "rbxassetid://169380525"
  2657. z.Pitch = ptz[math.random(1,#ptz)]
  2658. z.Volume = 1
  2659. z:Play()
  2660. for i = 1, 10 do
  2661. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6)
  2662. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7)
  2663. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4)
  2664. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65)
  2665. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  2666. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
  2667. if Debounces.on == false then break end
  2668. rs:wait()
  2669. end
  2670. Punch()
  2671. z = Instance.new("Sound",hed)
  2672. z.SoundId = "rbxassetid://169380525"
  2673. z.Pitch = ptz[math.random(1,#ptz)]
  2674. z.Volume = 1
  2675. z:Play()
  2676. for i = 1, 10 do
  2677. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7)
  2678. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7)
  2679. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4)
  2680. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6)
  2681. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  2682. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
  2683. if Debounces.on == false then break end
  2684. rs:wait()
  2685. end
  2686. Punch()
  2687. z = Instance.new("Sound",hed)
  2688. z.SoundId = "rbxassetid://169380525"
  2689. z.Pitch = ptz[math.random(1,#ptz)]
  2690. z.Volume = 1
  2691. z:Play()
  2692. for i = 1, 10 do
  2693. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6)
  2694. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7)
  2695. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4)
  2696. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65)
  2697. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  2698. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
  2699. if Debounces.on == false then break end
  2700. rs:wait()
  2701. end
  2702. con1:disconnect()
  2703. Debounces.on = false
  2704. Debounces.NoIdl = false
  2705. if gp ~= nil then
  2706. gp:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 140
  2707. for i,v in pairs(larm:GetChildren()) do
  2708. if v.Name == "asd" and v:IsA("Weld") then
  2709. v:Remove()
  2710. end
  2711. end
  2712. --[[bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso"))
  2713. bv.maxForce = Vector3.new(400000, 400000, 400000)
  2714. bv.P = 125000
  2715. bv.velocity = char.Head.CFrame.lookVector * 200]]--
  2716. hum1=nil
  2717. ht=nil
  2718. Debounces.on = false
  2719. Debounces.NoIdl = false
  2720. elseif ht == nil then wait()
  2721. Grab = false
  2722. Debounces.on = false
  2723. Debounces.NoIdl = false
  2724. end
  2725. end
  2726. end
  2727. end)
  2728. ----------------------------------------------------
  2729. mouse.KeyDown:connect(function(key)
  2730. if string.byte(key) == 52 then
  2731. char.Humanoid.WalkSpeed = 60
  2732. end
  2733. end)
  2734. mouse.KeyUp:connect(function(key)
  2735. if string.byte(key) == 52 then
  2736. char.Humanoid.WalkSpeed = 8
  2737. end
  2738. end)
  2739. -------------------------------
  2740. local animpose = "Idle"
  2741. local lastanimpose = "Idle"
  2742. local sine = 0
  2743. local change = 1
  2744. local val = 0
  2745. local ffing = false
  2746. -------------------------------
  2747. game:GetService("RunService").RenderStepped:connect(function()
  2748. --[[if char.Humanoid.Jump == true then
  2749. jump = true
  2750. else
  2751. jump = false
  2752. end]]
  2753. char.Humanoid.FreeFalling:connect(function(f)
  2754. if f then
  2755. ffing = true
  2756. else
  2757. ffing = false
  2758. end
  2759. end)
  2760. sine = sine + change
  2761. if jumpn == true then
  2762. animpose = "Jumping"
  2763. elseif ffing == true then
  2764. animpose = "Freefalling"
  2765. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  2766. animpose = "Idle"
  2767. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  2768. animpose = "Walking"
  2769. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
  2770. animpose = "Running"
  2771. end
  2772. if animpose ~= lastanimpose then
  2773. sine = 0
  2774. if Debounces.NoIdl == false then
  2775. if animpose == "Idle" then
  2776. for i = 1, 2 do
  2777. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(-6),math.rad(8)), 0.4)
  2778. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.4)
  2779. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4)
  2780. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4)
  2781. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4)
  2782. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4)
  2783. end
  2784. elseif animpose == "Walking" then
  2785. for i = 1, 2 do
  2786. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2)
  2787. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2)
  2788. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14),0,0), 0.4)
  2789. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05)
  2790. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(-8)), 0.4)
  2791. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(8)), 0.4)
  2792. end
  2793. elseif animpose == "Running" then
  2794. for i = 1, 2 do
  2795. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-20),math.rad(-14),math.rad(8+2*math.cos(sine/14))), 0.2)
  2796. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-20),math.rad(14),math.rad(-8-2*math.cos(sine/14))), 0.2)
  2797. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-10),0,0), 0.4)
  2798. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20),0, math.rad(0)), 0.4)
  2799. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-12), 0, math.rad(-7)), 0.4)
  2800. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-12), 0, math.rad(7)), 0.4)
  2801. wait()
  2802. end
  2803. end
  2804. else
  2805. end
  2806. end
  2807. lastanimpose = animpose
  2808. if Debounces.NoIdl == false then
  2809. if animpose == "Idle" then
  2810. change = 0.5
  2811. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-6),math.rad(-6),math.rad(8+2*math.cos(sine/14))), 0.4)
  2812. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8-2*math.cos(sine/14))), 0.4)
  2813. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(0),0), 0.2)
  2814. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.05)
  2815. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8-2*math.cos(sine/14))), 0.4)
  2816. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8+2*math.cos(sine/14))), 0.4)
  2817. elseif animpose == "Walking" then
  2818. change = 1
  2819. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2)
  2820. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2)
  2821. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14),0,0), 0.4)
  2822. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05)
  2823. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(-8)), 0.4)
  2824. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(8)), 0.4)
  2825. elseif animpose == "Running" then
  2826. change = 1
  2827. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.35,.4)*CFrame.Angles(math.rad(-30),math.rad(14),math.rad(-30+2*math.cos(sine/14))), 0.2)
  2828. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.55,-.4)*CFrame.Angles(math.rad(110),math.rad(0),math.rad(40-2*math.cos(sine/14))), 0.2)
  2829. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, .2) * CFrame.Angles(math.rad(20),math.rad(10),0), 0.4)
  2830. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-40),math.rad(-10), math.rad(0)), 0.2)
  2831. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1.2) * CFrame.Angles(math.rad(-20), math.rad(10), math.rad(0)), 0.4)
  2832. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(10), math.rad(0)), 0.4)
  2833. end
  2834. end
  2835. end)
  2836.  
  2837. hum.MaxHealth = 9001
  2838. wait(3)
  2839. hum.Health = 9001
  2840.  
  2841. function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans) -- Lightning module
  2842. --[[Part0 = Vector3 (Start pos)
  2843. Part1 = Vector3 (End pos)
  2844. Times = number (Amount of lightning parts)
  2845. Offset = number (Offset)
  2846. Color = color (brickcolor value)
  2847. Thickness = number (thickness)
  2848. Trans = number (transparency)
  2849. ]]--
  2850. local magz = (Part0 - Part1).magnitude
  2851. local curpos = Part0
  2852. local trz = {-Offset,Offset}
  2853. for i=1,Times do
  2854. local li = Instance.new("Part", torso)
  2855. li.Name = "Lightning"
  2856. li.TopSurface =0
  2857. li.Material = "Neon"
  2858. li.BottomSurface = 0
  2859. li.Anchored = true
  2860. li.Locked = true
  2861. li.Transparency = Trans or 0.4
  2862. li.BrickColor = BrickColor.new(Color)
  2863. li.formFactor = "Custom"
  2864. li.CanCollide = false
  2865. li.Size = Vector3.new(Thickness,Thickness,magz/Times)
  2866. local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  2867. local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
  2868. if Times == i then
  2869. local magz2 = (curpos - Part1).magnitude
  2870. li.Size = Vector3.new(Thickness,Thickness,magz2)
  2871. li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
  2872. else
  2873. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  2874. end
  2875. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
  2876. game.Debris:AddItem(li,.1)
  2877. end
  2878. end
  2879.  
  2880. BodyParts = {} -- Parts to emit lightning effects from
  2881. for _, v in pairs(char:GetChildren()) do
  2882. if v:IsA("Part") then
  2883. table.insert(BodyParts, v)
  2884. end
  2885. end
  2886.  
  2887. Bounding = {} -- Calculate the bounding boxes
  2888. for _, v in pairs(BodyParts) do
  2889. local temp = {X=nil, Y=nil, Z=nil}
  2890. temp.X = v.Size.X/2 * 15
  2891. temp.Y = v.Size.Y/2 * 15
  2892. temp.Z = v.Size.Z/2 * 15
  2893. Bounding[v.Name] = temp
  2894. --table.insert(Bounding, v.Name, temp)
  2895. end
  2896.  
  2897. while wait(math.random(1,10)/10) do -- Emit the Lightning effects randomly
  2898. local Body1 = BodyParts[math.random(#BodyParts)]
  2899. local Body2 = BodyParts[math.random(#BodyParts)]
  2900. local Pos1 = Vector3.new(
  2901. math.random(-Bounding[Body1.Name].X, Bounding[Body1.Name].X)/10,
  2902. math.random(-Bounding[Body1.Name].Y, Bounding[Body1.Name].Y)/10,
  2903. math.random(-Bounding[Body1.Name].Z, Bounding[Body1.Name].Z)/10
  2904. )
  2905. local Pos2 = Vector3.new(
  2906. math.random(-Bounding[Body2.Name].X, Bounding[Body2.Name].X)/10,
  2907. math.random(-Bounding[Body2.Name].Y, Bounding[Body2.Name].Y)/10,
  2908. math.random(-Bounding[Body2.Name].Z, Bounding[Body2.Name].Z)/10
  2909. )
  2910. local SPos1 = Body1.Position + Pos1
  2911. local SPos2 = Body2.Position + Pos2
  2912. Lightning(SPos1, SPos2, 4, 3, "New Yeller", .3, .56)
  2913. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement