StrawberryMemester

Roblox Chara Script

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