Advertisement
MysteriousL

Testgf

Jul 22nd, 2017
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 90.34 KB | None | 0 0
  1. player = game:service("Players").LocalPlayer
  2. char = player.Character
  3. local beat = true
  4. local beattime = 0.6
  5. suit = Instance.new("Model", char)
  6. suit.Name = "Determination"
  7. local vDebounce = false
  8. Torso = char.Torso
  9. cf = CFrame.new
  10. euler = CFrame.fromEulerAnglesXYZ
  11. slashvalue = 1
  12. beamvalue = 1
  13. onehitkill = true
  14. onehitkilltwo = true
  15. specialattack = false
  16. for _, v in pairs(char.Head:GetChildren()) do
  17. if v.ClassName == "Decal" then
  18. v:remove()
  19. end
  20. end
  21. for _, v in pairs(char:GetChildren()) do
  22. if v.ClassName == "Hat" then
  23. v:remove()
  24. end
  25. end
  26. for _, v in pairs(char:GetChildren()) do
  27. if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "T-Shirt" or v.ClassName == "ShirtGraphic" then
  28. v:remove()
  29. end
  30. end
  31. shirt = Instance.new("Shirt", char)
  32. pants = Instance.new("Pants", char)
  33. face = Instance.new("Decal", char.Head)
  34. face.Texture = "rbxassetid://431054853"
  35. shirt.ShirtTemplate = "rbxassetid://268303759"
  36. pants.PantsTemplate = "rbxassetid://268303786"
  37. local Hat = char:FindFirstChild("Hat_F") or Instance.new("Hat")
  38. Hat.AttachmentPos = Vector3.new(0, 0.33, 0)
  39. Hat.Name = "Hat_F"
  40. local Handle = Hat:FindFirstChild("Handle") or Instance.new("Part", Hat)
  41. if Handle.Name ~= "Handle" then
  42. Handle.Size = Vector3.new(1, 1, 1)
  43. end
  44. Handle.BottomSurface = 0
  45. Handle.Name = "Handle"
  46. Handle.TopSurface = 0
  47. Handle.Locked = 1
  48. local Mesh = Hat:FindFirstChild("Mesh") or Instance.new("SpecialMesh", Handle)
  49. Mesh.TextureId = "http://www.roblox.com/asset/?id=75975464"
  50. Mesh.MeshId = "rbxassetid://430411018 "
  51. Mesh.Scale = Vector3.new(1.05, 1.05, 1.05)
  52. Hat.Parent = char
  53. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  54. RW.Name = "Right Shoulder"
  55. LW.Name = "Left Shoulder"
  56. RSH, LSH = nil, nil
  57. LS = Torso["Left Shoulder"]
  58. LH = Torso["Left Hip"]
  59. RS = Torso["Right Shoulder"]
  60. RH = Torso["Right Hip"]
  61. RSH = char.Torso["Right Shoulder"]
  62. LSH = char.Torso["Left Shoulder"]
  63. local LSounds = {
  64. MegaloStrikesBack = Instance.new("Sound")
  65. }
  66. LSounds.MegaloStrikesBack.SoundId = "http://www.roblox.com/asset?id=142653441"
  67. LSounds.MegaloStrikesBack.Volume = 40
  68. function PlayLoopedSound(soundname, pitch)
  69. LSounds[soundname].Parent = char.Torso
  70. LSounds[soundname].Pitch = 0.7
  71. LSounds[soundname]:Play()
  72. LSounds[soundname].Looped = true
  73. oldloopedsound = LSounds[soundname]
  74. LSounds[soundname] = LSounds[soundname]:clone()
  75. end
  76. local Sounds = {
  77. Hurt = Instance.new("Sound"),
  78. Slash = Instance.new("Sound"),
  79. Explode = Instance.new("Sound"),
  80. Sans = Instance.new("Sound")
  81. }
  82. Sounds.Slash.SoundId = "http://www.roblox.com/asset?id=158037267"
  83. Sounds.Slash.Volume = 1
  84. Sounds.Hurt.SoundId = "http://www.roblox.com/asset?id=220833967"
  85. Sounds.Hurt.Volume = 1
  86. Sounds.Sans.SoundId = "http://www.roblox.com/asset?id=615910787"
  87. Sounds.Sans.Volume = 1
  88. Sounds.Explode.SoundId = "rbxassetid://357562152"
  89. Sounds.Explode.Volume = 1
  90. function PlaySound(soundname, pitch)
  91. Sounds[soundname].Parent = Torso
  92. Sounds[soundname].Pitch = pitch
  93. Sounds[soundname]:Play()
  94. local oldsound = Sounds[soundname]
  95. coroutine.resume(coroutine.create(function()
  96. wait(4)
  97. oldsound:Destroy()
  98. end))
  99. Sounds[soundname] = Sounds[soundname]:clone()
  100. end
  101. char.Humanoid.MaxHealth = 99999999999999999999999999
  102. char.Humanoid.Health = 9999999999999999999999999999
  103. function CharaTalks()
  104. local m = Instance.new("Model", char.Head)
  105. m.Name = "* W"
  106. local chat = Instance.new("Part", m)
  107. chat.TopSurface = "Smooth"
  108. chat.BottomSurface = "Smooth"
  109. chat.Name = "Head"
  110. chat.FormFactor = "Custom"
  111. chat.Size = Vector3.new(0.05, 0.05, 0.1)
  112. chat.Transparency = 0.9
  113. chat.CanCollide = false
  114. chat.Anchored = true
  115. chat.CFrame = char.Head.CFrame * CFrame.new(0, 1.5, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  116. local h = Instance.new("Humanoid", m)
  117. h.MaxHealth = 0
  118. m.Name = "* We"
  119. wait()
  120. m.Name = "* Wel"
  121. wait()
  122. m.Name = "* Welc"
  123. wait()
  124. m.Name = "* Welco"
  125. wait()
  126. m.Name = "* Welcom"
  127. wait()
  128. m.Name = "* Welcome"
  129. wait()
  130. m.Name = "* Welcome "
  131. wait()
  132. m.Name = "* Welcome t"
  133. wait()
  134. m.Name = "* Welcome to"
  135. wait()
  136. m.Name = "* Welcome to "
  137. wait()
  138. m.Name = "* Welcome to m"
  139. wait()
  140. m.Name = "* Welcome to my"
  141. wait()
  142. m.Name = "* Welcome to my "
  143. wait()
  144. m.Name = "* Welcome to my S"
  145. wait()
  146. m.Name = "* Welcome to my SP"
  147. wait()
  148. m.Name = "* Welcome to my SPE"
  149. wait()
  150. m.Name = "* Welcome to my SPEC"
  151. wait()
  152. m.Name = "* Welcome to my SPECI"
  153. wait()
  154. m.Name = "* Welcome to my SPECIA"
  155. wait()
  156. m.Name = "* Welcome to my SPECIAL"
  157. wait()
  158. m.Name = "* Welcome to my SPECIAL "
  159. wait()
  160. m.Name = "* Welcome to my SPECIAL H"
  161. wait()
  162. m.Name = "* Welcome to my SPECIAL HE"
  163. wait()
  164. m.Name = "* Welcome to my SPECIAL HEL"
  165. wait()
  166. m.Name = "* Welcome to my SPECIAL HELL"
  167. wait()
  168. m.Name = "* Welcome to my SPECIAL HELL!"
  169. wait()
  170. m.Name = "* Welcome to my SPECIAL HELL!!"
  171. wait()
  172. m.Name = "* Welcome to my SPECIAL HELL!!!"
  173. wait()
  174. m:remove()
  175. end
  176. function GETDUNKED()
  177. coroutine.resume(coroutine.create(function()
  178. local m = Instance.new("Model", char.Head)
  179. m.Name = "* G"
  180. local chat = Instance.new("Part", m)
  181. chat.TopSurface = "Smooth"
  182. chat.BottomSurface = "Smooth"
  183. chat.Name = "Head"
  184. chat.FormFactor = "Custom"
  185. chat.Size = Vector3.new(0.05, 0.05, 0.1)
  186. chat.Transparency = 0.9
  187. chat.CanCollide = false
  188. chat.Anchored = true
  189. chat.CFrame = char.Head.CFrame * CFrame.new(0, 1.5, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  190. local h = Instance.new("Humanoid", m)
  191. h.MaxHealth = 0
  192. PlaySound("Sans", 1)
  193. m.Name = "* I"
  194. wait(0.1)
  195. PlaySound("Sans", 1)
  196. m.Name = "* I W"
  197. wait(0.1)
  198. PlaySound("Sans", 1)
  199. m.Name = "* I WI"
  200. wait(0.1)
  201. PlaySound("Sans", 1)
  202. m.Name = "* I WIL"
  203. wait(0.1)
  204. PlaySound("Sans", 1)
  205. m.Name = "* I WILL"
  206. wait(0.1)
  207. PlaySound("Sans", 1)
  208. m.Name = "* I WILL B"
  209. wait(0.3)
  210. PlaySound("Sans", 1)
  211. m.Name = "* I WILL BE"
  212. wait(0.1)
  213. PlaySound("Sans", 1)
  214. m.Name = "* I WILL BE B"
  215. wait(0.1)
  216. PlaySound("Sans", 1)
  217. m.Name = "* I WILL BE BA"
  218. wait(0.1)
  219. PlaySound("Sans", 1)
  220. m.Name = "* I WILL BE BAC"
  221. wait(0.1)
  222. PlaySound("Sans", 1)
  223. m.Name = "* I WILL BE BACK"
  224. wait(0.1)
  225. PlaySound("Sans", 1)
  226. m.Name = "* I WILL BE BACK, CO"
  227. wait(0.3)
  228. PlaySound("Sans", 1)
  229. m.Name = "* I WILL BE BACK, COUNT"
  230. wait(0.1)
  231. PlaySound("Sans", 1)
  232. m.Name = "* I WILL BE BACK, COUNT ON"
  233. wait(0.1)
  234. PlaySound("Sans", 1)
  235. m.Name = "* I WILL BE BACK, COUNT ON IT"
  236. wait(0.3)
  237. PlaySound("Sans", 1)
  238. m.Name = "* F"
  239. wait(0.1)
  240. PlaySound("Sans", 1)
  241. m.Name = "* FE"
  242. wait(0.1)
  243. PlaySound("Sans", 1)
  244. m.Name = "* FEA"
  245. wait(0.1)
  246. PlaySound("Sans", 1)
  247. m.Name = "* FEAR"
  248. wait(0.1)
  249. PlaySound("Sans", 1)
  250. m.Name = "* FEAR M"
  251. wait(0.1)
  252. PlaySound("Sans", 1)
  253. m.Name = "* FEAR ME"
  254. wait(3)
  255. m:remove()
  256. end))
  257. end
  258. function startup()
  259. coroutine.resume(coroutine.create(function()
  260. local m = Instance.new("Model", char)
  261. m.Name = "* C"
  262. local chat = Instance.new("Part", m)
  263. chat.TopSurface = "Smooth"
  264. chat.BottomSurface = "Smooth"
  265. chat.Name = "Head"
  266. chat.FormFactor = "Custom"
  267. chat.Size = Vector3.new(0.05, 0.05, 0.1)
  268. chat.Transparency = 0.9
  269. chat.CanCollide = false
  270. local Weld7 = Instance.new("Weld", char)
  271. Weld7.Part0 = char.Head
  272. Weld7.Part1 = chat
  273. Weld7.C1 = CFrame.new(0, -2, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  274. local cy7 = Instance.new("BlockMesh", chat)
  275. local h = Instance.new("Humanoid", m)
  276. h.MaxHealth = 0
  277. m.Name = "* ?"
  278. wait(0.2)
  279. m.Name = "* ??"
  280. wait(0.2)
  281. m.Name = "* ???"
  282. wait(0.2)
  283. m.Name = "* ????"
  284. wait(0.2)
  285. m.Name = "* Corr"
  286. wait(0.5)
  287. m.Name = "* Corrupt"
  288. wait(0.5)
  289. m.Name = "* Corrupted"
  290. wait(0.5)
  291. end))
  292. end
  293. startup()
  294. PlayLoopedSound("MegaloStrikesBack", 1)
  295. Tool = Instance.new("HopperBin", player.Backpack)
  296. Tool.Name = "Megalo"
  297. Tool.Selected:connect(function(mouse)
  298. RW.Part0 = char.Torso
  299. RW.C0 = CFrame.new(1.5, 0.5, 0)
  300. RW.C1 = CFrame.new(0, 0.5, 0)
  301. RW.Part1 = char["Right Arm"]
  302. RW.Parent = char.Torso
  303. handle = Instance.new("Part", suit)
  304. handle.TopSurface = "Smooth"
  305. handle.BottomSurface = "Smooth"
  306. handle.Size = Vector3.new(0.2, 0.5, 0.5)
  307. handle.CanCollide = false
  308. handle.BrickColor = BrickColor.new("Really Orange")
  309. handle.FormFactor = "Custom"
  310. local Weldb = Instance.new("Weld", char)
  311. Weldb.Part0 = char["Right Arm"]
  312. Weldb.Part1 = handle
  313. Weldb.C1 = CFrame.new(0, -1.6, 0.8) * CFrame.fromEulerAnglesXYZ(-4.2, 0, 0)
  314. local KnifeMesh = Instance.new("SpecialMesh", handle)
  315. KnifeMesh.MeshType = "FileMesh"
  316. KnifeMesh.MeshId = "http://www.roblox.com/asset/?id=163353363"
  317. KnifeMesh.TextureId = "http://www.roblox.com/asset/?id=121944805"
  318. function touch(hit)
  319. if vDebounce == true and hit.Parent:findFirstChild("Humanoid") ~= nil then
  320. if hit.Parent.Name == char.Name then
  321. return
  322. end
  323. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 100000000000000000000000000000000
  324. do
  325. local HitSounds = {
  326. Hurt = Instance.new("Sound")
  327. }
  328. HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=257001402"
  329. HitSounds.Hurt.Volume = 1
  330. function PlayHitSound(soundname, pitch)
  331. HitSounds[soundname].Parent = hit.Parent.Torso
  332. HitSounds[soundname].Pitch = pitch
  333. HitSounds[soundname]:Play()
  334. local oldsound = HitSounds[soundname]
  335. coroutine.resume(coroutine.create(function()
  336. wait(4)
  337. oldsound:Destroy()
  338. end))
  339. HitSounds[soundname] = HitSounds[soundname]:clone()
  340. end
  341. PlayHitSound("Hurt", 1)
  342. end
  343. end
  344. end
  345. handle.Touched:connect(touch)
  346. function teleportPlayer(pos)
  347. if player == nil or player.Character == nil then
  348. return
  349. end
  350. Torso.CFrame = CFrame.new(Vector3.new(pos.x, pos.y, pos.z))
  351. end
  352. function slash1()
  353. if not vDebounce then
  354. vDebounce = true
  355. RW.C0 = cf(1, 0.3, -0.5) * euler(0.8000000000000003, 0, 0)
  356. RW.C1 = cf(0, 0, 0) * euler(0, -2, 0)
  357. wait(0.1)
  358. PlaySound("Slash", 1)
  359. coroutine.resume(coroutine.create(function()
  360. for i = 1, 10 do
  361. wait()
  362. local RedSlash = Instance.new("Part", suit)
  363. RedSlash.FormFactor = "Custom"
  364. RedSlash.Size = Vector3.new(0.5, 2, 0.5)
  365. RedSlash.Transparency = 0.5
  366. local selectionBox = Instance.new("SelectionBox", RedSlash)
  367. selectionBox.Adornee = RedSlash
  368. selectionBox.Color = BrickColor.new("Really red")
  369. selectionBox.LineThickness = 0.005
  370. RedSlash.TopSurface = 0
  371. RedSlash.BottomSurface = 0
  372. local colorc = {"Really Orange"}
  373. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  374. RedSlash.BrickColor = Fire
  375. RedSlash.CanCollide = false
  376. RedSlash.Anchored = true
  377. RedSlash.CFrame = handle.CFrame * CFrame.new(0, 1, 0)
  378. game.Debris:AddItem(RedSlash, 0.1)
  379. end
  380. end))
  381. for i = 1, 3 do
  382. wait()
  383. RW.C0 = cf(1.2, 0.3 * i, 0.2) * euler(0.8000000000000003, 0, 0)
  384. RW.C1 = cf(0, 0, 0) * euler(0.8 * i, -2, 0)
  385. end
  386. wait(0.3)
  387. RW.C0 = CFrame.new(1.5, 0.5, 0)
  388. RW.C1 = CFrame.new(0, 0.5, 0)
  389. slashvalue = slashvalue + 1
  390. vDebounce = false
  391. end
  392. end
  393. function slash2()
  394. if not vDebounce then
  395. vDebounce = true
  396. coroutine.resume(coroutine.create(function()
  397. for i = 1, 20 do
  398. wait()
  399. local RedSlash2 = Instance.new("Part", suit)
  400. RedSlash2.FormFactor = "Custom"
  401. RedSlash2.Size = Vector3.new(0.5, 2, 0.5)
  402. RedSlash2.Transparency = 0.5
  403. local selectionBox = Instance.new("SelectionBox", RedSlash2)
  404. selectionBox.Adornee = RedSlash2
  405. selectionBox.Color = BrickColor.new("Really red")
  406. selectionBox.LineThickness = 0.005
  407. RedSlash2.TopSurface = 0
  408. RedSlash2.BottomSurface = 0
  409. local colorc = {"Really Orange"}
  410. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  411. RedSlash2.BrickColor = Fire
  412. RedSlash2.CanCollide = false
  413. RedSlash2.Anchored = true
  414. RedSlash2.CFrame = handle.CFrame * CFrame.new(0, 1, 0)
  415. game.Debris:AddItem(RedSlash2, 0.2)
  416. end
  417. end))
  418. for i = 1, 10 do
  419. wait()
  420. RW.C0 = cf(1.5, 0.5, 0) * euler(0, 0, 0)
  421. RW.C1 = cf(0, 0.5, 0) * euler(0.1 * i, 0, 0)
  422. end
  423. PlaySound("Slash", 1)
  424. for i = 1, 3 do
  425. wait()
  426. RW.C0 = cf(1.5, 0.5, 0) * euler(0, 0, 0)
  427. RW.C1 = cf(0, 0.5, 0) * euler(-0.5 * i, 0, 0)
  428. end
  429. wait(0.3)
  430. RW.C0 = CFrame.new(1.5, 0.5, 0)
  431. RW.C1 = CFrame.new(0, 0.5, 0)
  432. slashvalue = slashvalue + 1
  433. vDebounce = false
  434. end
  435. end
  436. function slash3()
  437. if not vDebounce then
  438. vDebounce = true
  439. PlaySound("Slash", 1)
  440. coroutine.resume(coroutine.create(function()
  441. for i = 1, 20 do
  442. wait()
  443. local RedSlash3 = Instance.new("Part", suit)
  444. RedSlash3.FormFactor = "Custom"
  445. RedSlash3.Size = Vector3.new(0.5, 2, 0.5)
  446. RedSlash3.Transparency = 0.5
  447. local selectionBox = Instance.new("SelectionBox", RedSlash3)
  448. selectionBox.Adornee = RedSlash3
  449. selectionBox.Color = BrickColor.new("Really red")
  450. selectionBox.LineThickness = 0.005
  451. RedSlash3.TopSurface = 0
  452. RedSlash3.BottomSurface = 0
  453. local colorc = {"Really Orange"}
  454. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  455. RedSlash3.BrickColor = Fire
  456. RedSlash3.CanCollide = false
  457. RedSlash3.Anchored = true
  458. RedSlash3.CFrame = handle.CFrame * CFrame.new(0, 1, 0)
  459. game.Debris:AddItem(RedSlash3, 0.3)
  460. end
  461. end))
  462. for i = 1, 3 do
  463. wait()
  464. RW.C0 = cf(1.5, 0.5, 0) * euler(0, 0, 0)
  465. RW.C1 = cf(0, 0.5, 0) * euler(-0.5 * i, 0, 0)
  466. end
  467. wait(0.3)
  468. PlaySound("Slash", 1)
  469. for i = 1, 3 do
  470. wait()
  471. RW.C0 = cf(1.5, 0.5, 0) * euler(1.5, 0, 0)
  472. RW.C1 = cf(0, 0.5, 0) * euler(0.6 * i, 0, 0)
  473. end
  474. wait(0.3)
  475. RW.C0 = CFrame.new(1.5, 0.5, 0)
  476. RW.C1 = CFrame.new(0, 0.5, 0)
  477. slashvalue = slashvalue - 2
  478. vDebounce = false
  479. end
  480. end
  481. function KnifeBeam1()
  482. if not vDebounce then
  483. vDebounce = true
  484. RW.C0 = cf(1, 0.3, -0.5) * euler(0.8000000000000003, 0, 0)
  485. RW.C1 = cf(0, 0, 0) * euler(0, -2, 0)
  486. wait(0.1)
  487. PlaySound("Slash", 1)
  488. coroutine.resume(coroutine.create(function()
  489. for i = 1, 10 do
  490. wait()
  491. local p = Instance.new("Part", handle)
  492. p.FormFactor = "Custom"
  493. p.Size = Vector3.new(1, 0.5, 1)
  494. p.Transparency = 0.5
  495. local selectionBox = Instance.new("SelectionBox", p)
  496. selectionBox.Adornee = p
  497. selectionBox.Color = BrickColor.new("Really red")
  498. selectionBox.LineThickness = 0.005
  499. p.Material = "Neon"
  500. p.TopSurface = 0
  501. p.BottomSurface = 0
  502. local colorc = {"Really Orange"}
  503. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  504. p.BrickColor = Fire
  505. p.CanCollide = false
  506. p.Anchored = true
  507. p.CFrame = handle.CFrame * CFrame.new(0, 1.5, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  508. game.Debris:AddItem(p, 0.1)
  509. end
  510. end))
  511. for i = 1, 3 do
  512. wait()
  513. RW.C0 = cf(1.2, 0.3 * i, 0.2) * euler(0.8000000000000003, 0, 0)
  514. RW.C1 = cf(0, 0, 0) * euler(0.8 * i, -2, 0)
  515. end
  516. coroutine.resume(coroutine.create(function()
  517. local ps = Instance.new("Part", suit)
  518. ps.Name = "MagicPart"
  519. ps.TopSurface = "Smooth"
  520. ps.BottomSurface = "Smooth"
  521. ps.BrickColor = BrickColor.new("Institutional Really Pink")
  522. ps.Material = "Neon"
  523. ps.FormFactor = "Custom"
  524. ps.Size = Vector3.new(5, 1, 1)
  525. ps.Anchored = true
  526. ps.Transparency = 0.5
  527. ps.CanCollide = false
  528. ps.CFrame = char.Torso.CFrame * CFrame.new(1, 0, -5) * CFrame.Angles(0, 0, 1)
  529. local selectionBox = Instance.new("SelectionBox", ps)
  530. selectionBox.Adornee = ps
  531. selectionBox.Color = BrickColor.new("Really Orange")
  532. selectionBox.LineThickness = 0.2
  533. selectionBox.Transparency = 0.5
  534. function touch(hit)
  535. if hit.Parent.Name == char.Name then
  536. return
  537. end
  538. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  539. ps:remove()
  540. if hit.Parent.Name == char.Name then
  541. return
  542. end
  543. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 100000000000000000000000000000000000000000000000000000000000000000000
  544. do
  545. local HitSounds = {
  546. Hurt = Instance.new("Sound")
  547. }
  548. HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=406913243"
  549. HitSounds.Hurt.Volume = 1
  550. function PlayHitSound(soundname, pitch)
  551. HitSounds[soundname].Parent = hit.Parent.Torso
  552. HitSounds[soundname].Pitch = pitch
  553. HitSounds[soundname]:Play()
  554. local oldsound = HitSounds[soundname]
  555. coroutine.resume(coroutine.create(function()
  556. wait(4)
  557. oldsound:Destroy()
  558. end))
  559. HitSounds[soundname] = HitSounds[soundname]:clone()
  560. end
  561. PlayHitSound("Hurt", 1)
  562. end
  563. end
  564. end
  565. ps.Touched:connect(touch)
  566. coroutine.resume(coroutine.create(function()
  567. for i = 1, 50 do
  568. wait()
  569. ps.CFrame = ps.CFrame * CFrame.new(0, 0, -4)
  570. end
  571. ps.Transparency = ps.Transparency + 1
  572. wait()
  573. ps.Transparency = ps.Transparency + 1
  574. wait()
  575. ps.Transparency = ps.Transparency + 1
  576. wait()
  577. ps.Transparency = ps.Transparency + 1
  578. wait()
  579. ps.Transparency = ps.Transparency + 1
  580. wait()
  581. ps:remove()
  582. end))
  583. end))
  584. wait(0.3)
  585. RW.C0 = CFrame.new(1.5, 0.5, 0)
  586. RW.C1 = CFrame.new(0, 0.5, 0)
  587. beamvalue = beamvalue + 1
  588. vDebounce = false
  589. end
  590. end
  591. function KnifeBeam2()
  592. if not vDebounce then
  593. vDebounce = true
  594. coroutine.resume(coroutine.create(function()
  595. for i = 1, 20 do
  596. wait()
  597. local p = Instance.new("Part", handle)
  598. p.FormFactor = "Custom"
  599. p.Size = Vector3.new(1, 0.5, 1)
  600. p.Transparency = 0.5
  601. local selectionBox = Instance.new("SelectionBox", p)
  602. selectionBox.Adornee = p
  603. selectionBox.Color = BrickColor.new("Really red")
  604. selectionBox.LineThickness = 0.005
  605. p.TopSurface = 0
  606. p.BottomSurface = 0
  607. local colorc = {"Really Orange"}
  608. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  609. p.BrickColor = Fire
  610. p.CanCollide = false
  611. p.Anchored = true
  612. p.CFrame = handle.CFrame * CFrame.new(0, 1.5, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  613. game.Debris:AddItem(p, 0.2)
  614. end
  615. end))
  616. for i = 1, 10 do
  617. wait()
  618. RW.C0 = cf(1.5, 0.5, 0) * euler(0, 0, 0)
  619. RW.C1 = cf(0, 0.5, 0) * euler(0.1 * i, 0, 0)
  620. end
  621. PlaySound("Slash", 1)
  622. for i = 1, 3 do
  623. wait()
  624. RW.C0 = cf(1.5, 0.5, 0) * euler(0, 0, 0)
  625. RW.C1 = cf(0, 0.5, 0) * euler(-0.5 * i, 0, 0)
  626. end
  627. coroutine.resume(coroutine.create(function()
  628. local ps = Instance.new("Part", suit)
  629. ps.Name = "MagicPart"
  630. ps.TopSurface = "Smooth"
  631. ps.BottomSurface = "Smooth"
  632. ps.BrickColor = BrickColor.new("Institutional Really Pink")
  633. ps.Material = "Neon"
  634. ps.FormFactor = "Custom"
  635. ps.Size = Vector3.new(1, 5, 1)
  636. ps.Anchored = true
  637. ps.Transparency = 0.5
  638. ps.CanCollide = false
  639. ps.CFrame = char.Torso.CFrame * CFrame.new(1, 0, -5) * CFrame.Angles(-10, 0, 0)
  640. local selectionBox = Instance.new("SelectionBox", ps)
  641. selectionBox.Adornee = ps
  642. selectionBox.Color = BrickColor.new("Really Orange")
  643. selectionBox.LineThickness = 0.2
  644. selectionBox.Transparency = 0.5
  645. function touch(hit)
  646. if hit.Parent.Name == char.Name then
  647. return
  648. end
  649. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  650. ps:remove()
  651. if hit.Parent.Name == char.Name then
  652. return
  653. end
  654. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 10000000000000000000000000000000000000000000000000
  655. do
  656. local HitSounds = {
  657. Hurt = Instance.new("Sound")
  658. }
  659. HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=406913243"
  660. HitSounds.Hurt.Volume = 1
  661. function PlayHitSound(soundname, pitch)
  662. HitSounds[soundname].Parent = hit.Parent.Torso
  663. HitSounds[soundname].Pitch = pitch
  664. HitSounds[soundname]:Play()
  665. local oldsound = HitSounds[soundname]
  666. coroutine.resume(coroutine.create(function()
  667. wait(4)
  668. oldsound:Destroy()
  669. end))
  670. HitSounds[soundname] = HitSounds[soundname]:clone()
  671. end
  672. PlayHitSound("Hurt", 1)
  673. end
  674. end
  675. end
  676. ps.Touched:connect(touch)
  677. coroutine.resume(coroutine.create(function()
  678. for i = 1, 50 do
  679. wait()
  680. ps.CFrame = ps.CFrame * CFrame.new(0, -1.9, 3)
  681. end
  682. ps.Transparency = ps.Transparency + 1
  683. wait()
  684. ps.Transparency = ps.Transparency + 1
  685. wait()
  686. ps.Transparency = ps.Transparency + 1
  687. wait()
  688. ps.Transparency = ps.Transparency + 1
  689. wait()
  690. ps.Transparency = ps.Transparency + 1
  691. wait()
  692. ps:remove()
  693. end))
  694. end))
  695. wait(0.3)
  696. RW.C0 = CFrame.new(1.5, 0.5, 0)
  697. RW.C1 = CFrame.new(0, 0.5, 0)
  698. beamvalue = beamvalue + 1
  699. vDebounce = false
  700. end
  701. end
  702. function KnifeBeam3()
  703. if not vDebounce then
  704. vDebounce = true
  705. RW.C0 = cf(1, 0.3, -0.5) * euler(0.8000000000000003, 0, 0)
  706. RW.C1 = cf(0, 0, 0) * euler(0, -2, 0)
  707. wait(0.1)
  708. PlaySound("Slash", 1)
  709. coroutine.resume(coroutine.create(function()
  710. for i = 1, 10 do
  711. wait()
  712. local p = Instance.new("Part", handle)
  713. p.FormFactor = "Custom"
  714. p.Size = Vector3.new(1, 0.5, 1)
  715. p.Transparency = 0.5
  716. local selectionBox = Instance.new("SelectionBox", p)
  717. selectionBox.Adornee = p
  718. selectionBox.Color = BrickColor.new("Really red")
  719. selectionBox.LineThickness = 0.005
  720. p.Material = "Neon"
  721. p.TopSurface = 0
  722. p.BottomSurface = 0
  723. local colorc = {"Really Orange"}
  724. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  725. p.BrickColor = Fire
  726. p.CanCollide = false
  727. p.Anchored = true
  728. p.CFrame = handle.CFrame * CFrame.new(0, 1.5, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  729. game.Debris:AddItem(p, 0.1)
  730. end
  731. end))
  732. for i = 1, 3 do
  733. wait()
  734. RW.C0 = cf(1.2, 0.3 * i, 0.2) * euler(0.8000000000000003, 0, 0)
  735. RW.C1 = cf(0, 0, 0) * euler(0.8 * i, -2, 0)
  736. end
  737. coroutine.resume(coroutine.create(function()
  738. local ps = Instance.new("Part", suit)
  739. ps.Name = "MagicPart"
  740. ps.TopSurface = "Smooth"
  741. ps.BottomSurface = "Smooth"
  742. ps.BrickColor = BrickColor.new("Institutional Really Pink")
  743. ps.Material = "Neon"
  744. ps.FormFactor = "Custom"
  745. ps.Size = Vector3.new(10, 10, 1)
  746. ps.Anchored = true
  747. ps.Transparency = 0.5
  748. ps.CanCollide = false
  749. ps.CFrame = char.Torso.CFrame * CFrame.new(1, 0, -5) * CFrame.Angles(0, 0, 0)
  750. local selectionBox = Instance.new("SelectionBox", ps)
  751. selectionBox.Adornee = ps
  752. selectionBox.Color = BrickColor.new("Really Orange")
  753. selectionBox.LineThickness = 0.2
  754. selectionBox.Transparency = 0.5
  755. function touch(hit)
  756. if hit.Parent.Name == char.Name then
  757. return
  758. end
  759. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  760. ps:remove()
  761. if hit.Parent.Name == char.Name then
  762. return
  763. end
  764. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 100000000000000000000000000000000000000000000
  765. do
  766. local HitSounds = {
  767. Hurt = Instance.new("Sound")
  768. }
  769. HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=406913243"
  770. HitSounds.Hurt.Volume = 1
  771. function PlayHitSound(soundname, pitch)
  772. HitSounds[soundname].Parent = hit.Parent.Torso
  773. HitSounds[soundname].Pitch = pitch
  774. HitSounds[soundname]:Play()
  775. local oldsound = HitSounds[soundname]
  776. coroutine.resume(coroutine.create(function()
  777. wait(4)
  778. oldsound:Destroy()
  779. end))
  780. HitSounds[soundname] = HitSounds[soundname]:clone()
  781. end
  782. PlayHitSound("Hurt", 1)
  783. end
  784. end
  785. end
  786. ps.Touched:connect(touch)
  787. coroutine.resume(coroutine.create(function()
  788. for i = 1, 50 do
  789. wait()
  790. ps.CFrame = ps.CFrame * CFrame.new(0, 0, -5)
  791. end
  792. ps.Transparency = ps.Transparency + 1
  793. wait()
  794. ps.Transparency = ps.Transparency + 1
  795. wait()
  796. ps.Transparency = ps.Transparency + 1
  797. wait()
  798. ps.Transparency = ps.Transparency + 1
  799. wait()
  800. ps.Transparency = ps.Transparency + 1
  801. wait()
  802. ps:remove()
  803. end))
  804. end))
  805. wait(0.3)
  806. RW.C0 = CFrame.new(1.5, 0.5, 0)
  807. RW.C1 = CFrame.new(0, 0.5, 0)
  808. beamvalue = beamvalue - 2
  809. vDebounce = false
  810. end
  811. end
  812. function drawded()
  813. if onehitkill == true then
  814. onehitkill = false
  815. RW.C0 = cf(1, 0.3, -0.5) * euler(0.8000000000000003, 0, 0)
  816. RW.C1 = cf(0, 0, 0) * euler(0, -2, 0)
  817. wait(0.1)
  818. PlaySound("Slash", 1)
  819. coroutine.resume(coroutine.create(function()
  820. for i = 1, 10 do
  821. wait()
  822. local p = Instance.new("Part", handle)
  823. p.FormFactor = "Custom"
  824. p.Size = Vector3.new(1, 1, 1)
  825. p.Transparency = 0.5
  826. local selectionBox = Instance.new("SelectionBox", p)
  827. selectionBox.Adornee = p
  828. selectionBox.Color = BrickColor.new("Really red")
  829. selectionBox.LineThickness = 0.001
  830. p.TopSurface = 0
  831. p.BottomSurface = 0
  832. local colorc = {
  833. "Really red"
  834. }
  835. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  836. p.BrickColor = Fire
  837. p.CanCollide = false
  838. p.Anchored = true
  839. p.CFrame = handle.CFrame * CFrame.new(0, 1.5, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  840. game.Debris:AddItem(p, 0.1)
  841. end
  842. end))
  843. for i = 1, 3 do
  844. wait()
  845. RW.C0 = cf(1.2, 0.3 * i, 0.2) * euler(0.8000000000000003, 0, 0)
  846. RW.C1 = cf(0, 0, 0) * euler(0.8 * i, -2, 0)
  847. end
  848. coroutine.resume(coroutine.create(function()
  849. ultra = Instance.new("Part", suit)
  850. ultra.Name = "MagicPart"
  851. ultra.TopSurface = "Smooth"
  852. ultra.BottomSurface = "Smooth"
  853. ultra.BrickColor = BrickColor.new("Really red")
  854. ultra.Material = "Neon"
  855. ultra.FormFactor = "Custom"
  856. ultra.Size = Vector3.new(5, 1, 1)
  857. ultra.Anchored = true
  858. ultra.CanCollide = false
  859. ultra.CFrame = char.Torso.CFrame * CFrame.new(1, 0, -5) * CFrame.Angles(0, 0, 1)
  860. local selectionBox = Instance.new("SelectionBox", ultra)
  861. selectionBox.Adornee = ultra
  862. selectionBox.Color = BrickColor.new("Really red")
  863. selectionBox.LineThickness = 0.01
  864. selectionBox.Transparency = 0
  865. end))
  866. wait(0.3)
  867. RW.C0 = CFrame.new(1.5, 0.5, 0)
  868. RW.C1 = CFrame.new(0, 0.5, 0)
  869. RW.C0 = cf(1, 0.3, -0.5) * euler(0.8000000000000003, 0, 0)
  870. RW.C1 = cf(0, 0, 0) * euler(0, -2, 0)
  871. wait(0.1)
  872. PlaySound("Slash", 1)
  873. coroutine.resume(coroutine.create(function()
  874. for i = 1, 10 do
  875. wait()
  876. local p = Instance.new("Part", handle)
  877. p.FormFactor = "Custom"
  878. p.Size = Vector3.new(1, 0.5, 1)
  879. p.Transparency = 0.5
  880. local selectionBox = Instance.new("SelectionBox", p)
  881. selectionBox.Adornee = p
  882. selectionBox.Color = BrickColor.new("Really red")
  883. selectionBox.LineThickness = 0.001
  884. p.TopSurface = 0
  885. p.BottomSurface = 0
  886. local colorc = {
  887. "Really red"
  888. }
  889. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  890. p.BrickColor = Fire
  891. p.CanCollide = false
  892. p.Anchored = true
  893. p.CFrame = handle.CFrame * CFrame.new(0, 1.5, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  894. game.Debris:AddItem(p, 0.1)
  895. end
  896. end))
  897. for i = 1, 3 do
  898. wait()
  899. RW.C0 = cf(1.2, 0.3 * i, 0.2) * euler(0.8000000000000003, 0, 0)
  900. RW.C1 = cf(0, 0, 0) * euler(0.8 * i, -2, 0)
  901. end
  902. coroutine.resume(coroutine.create(function()
  903. ultra2 = Instance.new("Part", suit)
  904. ultra2.Name = "MagicPart"
  905. ultra2.TopSurface = "Smooth"
  906. ultra2.BottomSurface = "Smooth"
  907. ultra2.BrickColor = BrickColor.new("Really red")
  908. ultra2.Material = "Neon"
  909. ultra2.FormFactor = "Custom"
  910. ultra2.Size = Vector3.new(5, 1, 1)
  911. ultra2.Anchored = true
  912. ultra2.CanCollide = false
  913. ultra2.CFrame = char.Torso.CFrame * CFrame.new(1, 0, -5) * CFrame.Angles(0, 0, 1)
  914. local selectionBox = Instance.new("SelectionBox", ultra2)
  915. selectionBox.Adornee = ultra2
  916. selectionBox.Color = BrickColor.new("Really red")
  917. selectionBox.LineThickness = 0.01
  918. selectionBox.Transparency = 0
  919. end))
  920. wait(0.3)
  921. RW.C0 = CFrame.new(1.5, 0.5, 0)
  922. RW.C1 = CFrame.new(0, 0.5, 0)
  923. PlaySound("Slash", 1)
  924. coroutine.resume(coroutine.create(function()
  925. ultra3 = Instance.new("Part", suit)
  926. ultra3.Name = "MagicPart"
  927. ultra3.TopSurface = "Smooth"
  928. ultra3.BottomSurface = "Smooth"
  929. ultra3.BrickColor = BrickColor.new("Really red")
  930. ultra3.Material = "Neon"
  931. ultra3.FormFactor = "Custom"
  932. ultra3.Size = Vector3.new(1, 5, 1)
  933. ultra3.Anchored = true
  934. ultra3.CanCollide = false
  935. ultra3.CFrame = char.Torso.CFrame * CFrame.new(1, 0, -5) * CFrame.Angles(0, 0, 0)
  936. local selectionBox = Instance.new("SelectionBox", ultra3)
  937. selectionBox.Adornee = ultra3
  938. selectionBox.Color = BrickColor.new("Really red")
  939. selectionBox.LineThickness = 0.01
  940. selectionBox.Transparency = 0
  941. end))
  942. coroutine.resume(coroutine.create(function()
  943. for i = 1, 10 do
  944. wait()
  945. local p = Instance.new("Part", handle)
  946. p.FormFactor = "Custom"
  947. p.Size = Vector3.new(1, 0.5, 1)
  948. p.Transparency = 0.5
  949. local selectionBox = Instance.new("SelectionBox", p)
  950. selectionBox.Adornee = p
  951. selectionBox.Color = BrickColor.new("Really red")
  952. selectionBox.LineThickness = 0.001
  953. p.TopSurface = 0
  954. p.BottomSurface = 0
  955. local colorc = {
  956. "Really red"
  957. }
  958. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  959. p.BrickColor = Fire
  960. p.CanCollide = false
  961. p.Anchored = true
  962. p.CFrame = handle.CFrame * CFrame.new(0, 1.5, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  963. game.Debris:AddItem(p, 0.1)
  964. end
  965. end))
  966. coroutine.resume(coroutine.create(function()
  967. for i = 1, 20 do
  968. wait()
  969. local p = Instance.new("Part", handle)
  970. p.FormFactor = "Custom"
  971. p.Size = Vector3.new(1, 0.5, 1)
  972. p.Transparency = 0.5
  973. local selectionBox = Instance.new("SelectionBox", p)
  974. selectionBox.Adornee = p
  975. selectionBox.Color = BrickColor.new("Really red")
  976. selectionBox.LineThickness = 0.005
  977. p.TopSurface = 0
  978. p.BottomSurface = 0
  979. local colorc = {"Really Orange"}
  980. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  981. p.BrickColor = Fire
  982. p.CanCollide = false
  983. p.Anchored = true
  984. p.CFrame = handle.CFrame * CFrame.new(0, 1.5, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  985. game.Debris:AddItem(p, 0.3)
  986. end
  987. end))
  988. for i = 1, 3 do
  989. wait()
  990. RW.C0 = cf(1.5, 0.5, 0) * euler(0, 0, 0)
  991. RW.C1 = cf(0, 0.5, 0) * euler(-0.5 * i, 0, 0)
  992. end
  993. wait(0.3)
  994. PlaySound("Slash", 1)
  995. coroutine.resume(coroutine.create(function()
  996. ultra4 = Instance.new("Part", suit)
  997. ultra4.Name = "MagicPart"
  998. ultra4.TopSurface = "Smooth"
  999. ultra4.BottomSurface = "Smooth"
  1000. ultra4.BrickColor = BrickColor.new("Really red")
  1001. ultra4.Material = "Neon"
  1002. ultra4.FormFactor = "Custom"
  1003. ultra4.Size = Vector3.new(1, 5, 1)
  1004. ultra4.Anchored = true
  1005. ultra4.CanCollide = false
  1006. ultra4.CFrame = char.Torso.CFrame * CFrame.new(1, 0, -5) * CFrame.Angles(0, 0, 0)
  1007. local selectionBox = Instance.new("SelectionBox", ultra3)
  1008. selectionBox.Adornee = ultra4
  1009. selectionBox.Color = BrickColor.new("Really red")
  1010. selectionBox.LineThickness = 0.01
  1011. selectionBox.Transparency = 0
  1012. end))
  1013. for i = 1, 3 do
  1014. wait()
  1015. RW.C0 = cf(1.5, 0.5, 0) * euler(0, 0, 0)
  1016. RW.C1 = cf(0, 0.5, 0) * euler(0.3 * i, 0, 0)
  1017. end
  1018. wait(0.3)
  1019. RW.C0 = CFrame.new(1.5, 0.5, 0)
  1020. RW.C1 = CFrame.new(0, 0.5, 0)
  1021. RW.C0 = cf(1, 0.3, -0.5) * euler(0.8000000000000003, 0, 0)
  1022. RW.C1 = cf(0, 0, 0) * euler(0, -2, 0)
  1023. wait(0.1)
  1024. PlaySound("Slash", 1)
  1025. coroutine.resume(coroutine.create(function()
  1026. for i = 1, 10 do
  1027. wait()
  1028. local p = Instance.new("Part", handle)
  1029. p.FormFactor = "Custom"
  1030. p.Size = Vector3.new(1, 0.5, 1)
  1031. p.Transparency = 0.5
  1032. local selectionBox = Instance.new("SelectionBox", p)
  1033. selectionBox.Adornee = p
  1034. selectionBox.Color = BrickColor.new("Really red")
  1035. selectionBox.LineThickness = 0.001
  1036. p.TopSurface = 0
  1037. p.BottomSurface = 0
  1038. local colorc = {
  1039. "Really red"
  1040. }
  1041. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  1042. p.BrickColor = Fire
  1043. p.CanCollide = false
  1044. p.Anchored = true
  1045. p.CFrame = handle.CFrame * CFrame.new(0, 1.5, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  1046. game.Debris:AddItem(p, 0.1)
  1047. end
  1048. end))
  1049. for i = 1, 3 do
  1050. wait()
  1051. RW.C0 = cf(1.2, 0.3 * i, 0.2) * euler(0.8000000000000003, 0, 0)
  1052. RW.C1 = cf(0, 0, 0) * euler(0.8 * i, -2, 0)
  1053. end
  1054. coroutine.resume(coroutine.create(function()
  1055. ultra5 = Instance.new("Part", suit)
  1056. ultra5.Name = "MagicPart"
  1057. ultra5.TopSurface = "Smooth"
  1058. ultra5.BottomSurface = "Smooth"
  1059. ultra5.BrickColor = BrickColor.new("Really red")
  1060. ultra5.Material = "Neon"
  1061. ultra5.FormFactor = "Custom"
  1062. ultra5.Size = Vector3.new(5, 1, 1)
  1063. ultra5.Anchored = true
  1064. ultra5.CanCollide = false
  1065. ultra5.CFrame = char.Torso.CFrame * CFrame.new(1, 0, -5) * CFrame.Angles(0, 0, 1)
  1066. local selectionBox = Instance.new("SelectionBox", ultra2)
  1067. selectionBox.Adornee = ultra5
  1068. selectionBox.Color = BrickColor.new("Really red")
  1069. selectionBox.LineThickness = 0.01
  1070. selectionBox.Transparency = 0
  1071. end))
  1072. wait()
  1073. local p = Instance.new("Part", handle)
  1074. p.FormFactor = "Custom"
  1075. p.Material = "Neon"
  1076. p.Size = Vector3.new(1, 2, 1)
  1077. p.Transparency = 0
  1078. local selectionBox = Instance.new("SelectionBox", p)
  1079. selectionBox.Adornee = p
  1080. selectionBox.Color = BrickColor.new("Really red")
  1081. selectionBox.LineThickness = 0.001
  1082. p.TopSurface = 0
  1083. p.BottomSurface = 0
  1084. local colorc = {
  1085. "Really red"
  1086. }
  1087. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  1088. p.BrickColor = Fire
  1089. p.CanCollide = false
  1090. p.Anchored = true
  1091. p.CFrame = handle.CFrame * CFrame.new(0, 1, 0)
  1092. local light1 = Instance.new("SpotLight", p)
  1093. light1.Brightness = 164
  1094. light1.Color = Color3.new(255, 0, 0)
  1095. light1.Range = 7
  1096. for i = 1, 13 do
  1097. p.Transparency = p.Transparency + 0.1
  1098. p.CFrame = handle.CFrame * CFrame.new(0, 1, 0)
  1099. wait()
  1100. end
  1101. game.Debris:AddItem(p, 0.1)
  1102. coroutine.resume(coroutine.create(function()
  1103. coroutine.resume(coroutine.create(function()
  1104. for i = 1, 100 do
  1105. wait()
  1106. ultra.CFrame = ultra.CFrame * CFrame.new(0, 0, -4)
  1107. end
  1108. end))
  1109. coroutine.resume(coroutine.create(function()
  1110. for i = 1, 100 do
  1111. wait()
  1112. ultra2.CFrame = ultra2.CFrame * CFrame.new(0, 0, -4)
  1113. end
  1114. end))
  1115. coroutine.resume(coroutine.create(function()
  1116. for i = 1, 100 do
  1117. wait()
  1118. ultra3.CFrame = ultra3.CFrame * CFrame.new(0, 0, -4)
  1119. end
  1120. end))
  1121. coroutine.resume(coroutine.create(function()
  1122. for i = 1, 100 do
  1123. wait()
  1124. ultra4.CFrame = ultra4.CFrame * CFrame.new(0, 0, -4)
  1125. end
  1126. end))
  1127. coroutine.resume(coroutine.create(function()
  1128. for i = 1, 100 do
  1129. wait()
  1130. ultra5.CFrame = ultra5.CFrame * CFrame.new(0, 0, -4)
  1131. end
  1132. end))
  1133. wait(3)
  1134. ultra.Transparency = ultra.Transparency + 1
  1135. ultra2.Transparency = ultra2.Transparency + 1
  1136. ultra3.Transparency = ultra3.Transparency + 1
  1137. ultra4.Transparency = ultra4.Transparency + 1
  1138. ultra5.Transparency = ultra5.Transparency + 1
  1139. wait()
  1140. ultra.Transparency = ultra.Transparency + 1
  1141. ultra2.Transparency = ultra2.Transparency + 1
  1142. ultra3.Transparency = ultra3.Transparency + 1
  1143. ultra4.Transparency = ultra4.Transparency + 1
  1144. ultra5.Transparency = ultra5.Transparency + 1
  1145. wait()
  1146. ultra.Transparency = ultra.Transparency + 1
  1147. ultra2.Transparency = ultra2.Transparency + 1
  1148. ultra3.Transparency = ultra3.Transparency + 1
  1149. ultra4.Transparency = ultra4.Transparency + 1
  1150. ultra5.Transparency = ultra5.Transparency + 1
  1151. wait()
  1152. ultra.Transparency = ultra.Transparency + 1
  1153. ultra2.Transparency = ultra2.Transparency + 1
  1154. ultra3.Transparency = ultra3.Transparency + 1
  1155. ultra4.Transparency = ultra4.Transparency + 1
  1156. ultra5.Transparency = ultra5.Transparency + 1
  1157. wait()
  1158. ultra.Transparency = ultra.Transparency + 1
  1159. ultra2.Transparency = ultra2.Transparency + 1
  1160. ultra3.Transparency = ultra3.Transparency + 1
  1161. ultra4.Transparency = ultra4.Transparency + 1
  1162. ultra5.Transparency = ultra5.Transparency + 1
  1163. wait()
  1164. ultra:remove()
  1165. ultra2:remove()
  1166. ultra3:remove()
  1167. ultra4:remove()
  1168. ultra5:remove()
  1169. end))
  1170. function touch(hit)
  1171. if hit.Parent.Name == char.Name then
  1172. return
  1173. end
  1174. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  1175. if hit.Parent.Name == char.Name then
  1176. return
  1177. end
  1178. hit.Parent:BreakJoints()
  1179. ultra:remove()
  1180. do
  1181. local HitSounds = {
  1182. Hurt = Instance.new("Sound")
  1183. }
  1184. HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=406913243"
  1185. HitSounds.Hurt.Volume = 1
  1186. function PlayHitSound(soundname, pitch)
  1187. HitSounds[soundname].Parent = hit.Parent.Torso
  1188. HitSounds[soundname].Pitch = pitch
  1189. HitSounds[soundname]:Play()
  1190. local oldsound = HitSounds[soundname]
  1191. coroutine.resume(coroutine.create(function()
  1192. wait(4)
  1193. oldsound:Destroy()
  1194. end))
  1195. HitSounds[soundname] = HitSounds[soundname]:clone()
  1196. end
  1197. PlayHitSound("Hurt", 1)
  1198. end
  1199. end
  1200. end
  1201. ultra.Touched:connect(touch)
  1202. function touch(hit)
  1203. if hit.Parent.Name == char.Name then
  1204. return
  1205. end
  1206. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  1207. if hit.Parent.Name == char.Name then
  1208. return
  1209. end
  1210. hit.Parent:BreakJoints()
  1211. ultra2:remove()
  1212. do
  1213. local HitSounds = {
  1214. Hurt = Instance.new("Sound")
  1215. }
  1216. HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=406913243"
  1217. HitSounds.Hurt.Volume = 1
  1218. function PlayHitSound(soundname, pitch)
  1219. HitSounds[soundname].Parent = hit.Parent.Torso
  1220. HitSounds[soundname].Pitch = pitch
  1221. HitSounds[soundname]:Play()
  1222. local oldsound = HitSounds[soundname]
  1223. coroutine.resume(coroutine.create(function()
  1224. wait(4)
  1225. oldsound:Destroy()
  1226. end))
  1227. HitSounds[soundname] = HitSounds[soundname]:clone()
  1228. end
  1229. PlayHitSound("Hurt", 1)
  1230. end
  1231. end
  1232. end
  1233. ultra2.Touched:connect(touch)
  1234. function touch(hit)
  1235. if hit.Parent.Name == char.Name then
  1236. return
  1237. end
  1238. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  1239. if hit.Parent.Name == char.Name then
  1240. return
  1241. end
  1242. hit.Parent:BreakJoints()
  1243. ultra2:remove()
  1244. do
  1245. local HitSounds = {
  1246. Hurt = Instance.new("Sound")
  1247. }
  1248. HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=406913243"
  1249. HitSounds.Hurt.Volume = 1
  1250. function PlayHitSound(soundname, pitch)
  1251. HitSounds[soundname].Parent = hit.Parent.Torso
  1252. HitSounds[soundname].Pitch = pitch
  1253. HitSounds[soundname]:Play()
  1254. local oldsound = HitSounds[soundname]
  1255. coroutine.resume(coroutine.create(function()
  1256. wait(4)
  1257. oldsound:Destroy()
  1258. end))
  1259. HitSounds[soundname] = HitSounds[soundname]:clone()
  1260. end
  1261. PlayHitSound("Hurt", 1)
  1262. end
  1263. end
  1264. end
  1265. ultra2.Touched:connect(touch)
  1266. function touch(hit)
  1267. if hit.Parent.Name == char.Name then
  1268. return
  1269. end
  1270. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  1271. if hit.Parent.Name == char.Name then
  1272. return
  1273. end
  1274. hit.Parent:BreakJoints()
  1275. ultra3:remove()
  1276. do
  1277. local HitSounds = {
  1278. Hurt = Instance.new("Sound")
  1279. }
  1280. HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=406913243"
  1281. HitSounds.Hurt.Volume = 1
  1282. function PlayHitSound(soundname, pitch)
  1283. HitSounds[soundname].Parent = hit.Parent.Torso
  1284. HitSounds[soundname].Pitch = pitch
  1285. HitSounds[soundname]:Play()
  1286. local oldsound = HitSounds[soundname]
  1287. coroutine.resume(coroutine.create(function()
  1288. wait(4)
  1289. oldsound:Destroy()
  1290. end))
  1291. HitSounds[soundname] = HitSounds[soundname]:clone()
  1292. end
  1293. PlayHitSound("Hurt", 1)
  1294. end
  1295. end
  1296. end
  1297. ultra3.Touched:connect(touch)
  1298. function touch(hit)
  1299. if hit.Parent.Name == char.Name then
  1300. return
  1301. end
  1302. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  1303. if hit.Parent.Name == char.Name then
  1304. return
  1305. end
  1306. hit.Parent:BreakJoints()
  1307. ultra4:remove()
  1308. do
  1309. local HitSounds = {
  1310. Hurt = Instance.new("Sound")
  1311. }
  1312. HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=406913243"
  1313. HitSounds.Hurt.Volume = 1
  1314. function PlayHitSound(soundname, pitch)
  1315. HitSounds[soundname].Parent = hit.Parent.Torso
  1316. HitSounds[soundname].Pitch = pitch
  1317. HitSounds[soundname]:Play()
  1318. local oldsound = HitSounds[soundname]
  1319. coroutine.resume(coroutine.create(function()
  1320. wait(4)
  1321. oldsound:Destroy()
  1322. end))
  1323. HitSounds[soundname] = HitSounds[soundname]:clone()
  1324. end
  1325. PlayHitSound("Hurt", 1)
  1326. end
  1327. end
  1328. end
  1329. ultra4.Touched:connect(touch)
  1330. function touch(hit)
  1331. if hit.Parent.Name == char.Name then
  1332. return
  1333. end
  1334. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  1335. if hit.Parent.Name == char.Name then
  1336. return
  1337. end
  1338. hit.Parent:BreakJoints()
  1339. ultra5:remove()
  1340. do
  1341. local HitSounds = {
  1342. Hurt = Instance.new("Sound")
  1343. }
  1344. HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=406913243"
  1345. HitSounds.Hurt.Volume = 1
  1346. function PlayHitSound(soundname, pitch)
  1347. HitSounds[soundname].Parent = hit.Parent.Torso
  1348. HitSounds[soundname].Pitch = pitch
  1349. HitSounds[soundname]:Play()
  1350. local oldsound = HitSounds[soundname]
  1351. coroutine.resume(coroutine.create(function()
  1352. wait(4)
  1353. oldsound:Destroy()
  1354. end))
  1355. HitSounds[soundname] = HitSounds[soundname]:clone()
  1356. end
  1357. PlayHitSound("Hurt", 1)
  1358. end
  1359. end
  1360. end
  1361. ultra5.Touched:connect(touch)
  1362. wait()
  1363. RW.C0 = CFrame.new(1.5, 0.5, 0)
  1364. RW.C1 = CFrame.new(0, 0.5, 0)
  1365. local Dialogconnect = Instance.new("Part", suit)
  1366. Dialogconnect.TopSurface = "Smooth"
  1367. Dialogconnect.BottomSurface = "Smooth"
  1368. Dialogconnect.Material = "Neon"
  1369. Dialogconnect.FormFactor = "Custom"
  1370. Dialogconnect.Size = Vector3.new(1, 1, 1)
  1371. Dialogconnect.Transparency = 1
  1372. Dialogconnect.CanCollide = false
  1373. Dialogconnect.BrickColor = BrickColor.new("Really Orange")
  1374. local selectionBox1 = Instance.new("SelectionBox", Dialogconnect)
  1375. selectionBox1.Adornee = Dialogconnect
  1376. selectionBox1.Color = BrickColor.new("Really red")
  1377. selectionBox1.LineThickness = 0.01
  1378. selectionBox1.Transparency = 1
  1379. local Weld = Instance.new("Weld", char)
  1380. Weld.Part0 = char.Torso
  1381. Weld.Part1 = Dialogconnect
  1382. Weld.C1 = CFrame.new(0, -3, -1.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1383. Dialogconnect.Transparency = 1
  1384. selectionBox1.Transparency = 1
  1385. wait()
  1386. Dialogconnect.Transparency = 0
  1387. selectionBox1.Transparency = 0
  1388. wait()
  1389. Dialogconnect.Transparency = 1
  1390. selectionBox1.Transparency = 1
  1391. wait()
  1392. Dialogconnect.Transparency = 0
  1393. selectionBox1.Transparency = 0
  1394. wait()
  1395. Dialogconnect.Transparency = 1
  1396. selectionBox1.Transparency = 1
  1397. wait()
  1398. Dialogconnect.Transparency = 0
  1399. selectionBox1.Transparency = 0
  1400. wait()
  1401. Dialogconnect.Transparency = 1
  1402. selectionBox1.Transparency = 1
  1403. wait()
  1404. Dialogconnect.Transparency = 0
  1405. selectionBox1.Transparency = 0
  1406. wait()
  1407. Dialogconnect.Transparency = 1
  1408. selectionBox1.Transparency = 1
  1409. wait()
  1410. Dialogconnect.Transparency = 0
  1411. selectionBox1.Transparency = 0
  1412. wait()
  1413. Dialogconnect.Transparency = 1
  1414. selectionBox1.Transparency = 1
  1415. wait()
  1416. Dialogconnect.Transparency = 0
  1417. selectionBox1.Transparency = 0
  1418. wait()
  1419. Dialogconnect.Transparency = 1
  1420. selectionBox1.Transparency = 1
  1421. wait()
  1422. Dialogconnect.Transparency = 0
  1423. selectionBox1.Transparency = 0
  1424. wait()
  1425. Dialogconnect.Transparency = 1
  1426. selectionBox1.Transparency = 1
  1427. wait()
  1428. Dialogconnect.Transparency = 0
  1429. selectionBox1.Transparency = 0
  1430. Dialogconnect.BrickColor = BrickColor.new("New Yeller")
  1431. wait()
  1432. Dialogconnect.Transparency = 1
  1433. selectionBox1.Transparency = 1
  1434. wait()
  1435. Dialogconnect.Transparency = 0
  1436. selectionBox1.Transparency = 0
  1437. wait()
  1438. Dialogconnect.Transparency = 1
  1439. selectionBox1.Transparency = 1
  1440. wait()
  1441. Dialogconnect.Transparency = 0
  1442. selectionBox1.Transparency = 0
  1443. wait()
  1444. Dialogconnect.Transparency = 1
  1445. selectionBox1.Transparency = 1
  1446. wait()
  1447. Dialogconnect.Transparency = 0
  1448. selectionBox1.Transparency = 0
  1449. wait()
  1450. Dialogconnect.Transparency = 1
  1451. selectionBox1.Transparency = 1
  1452. wait()
  1453. Dialogconnect.Transparency = 0
  1454. selectionBox1.Transparency = 0
  1455. Dialogconnect.BrickColor = BrickColor.new("Lime green")
  1456. wait()
  1457. Dialogconnect.Transparency = 1
  1458. selectionBox1.Transparency = 1
  1459. wait()
  1460. Dialogconnect.Transparency = 0
  1461. selectionBox1.Transparency = 0
  1462. wait()
  1463. Dialogconnect.Transparency = 1
  1464. selectionBox1.Transparency = 1
  1465. wait()
  1466. Dialogconnect.Transparency = 0
  1467. selectionBox1.Transparency = 0
  1468. wait()
  1469. Dialogconnect.Transparency = 1
  1470. selectionBox1.Transparency = 1
  1471. wait()
  1472. Dialogconnect.Transparency = 0
  1473. selectionBox1.Transparency = 0
  1474. wait()
  1475. Dialogconnect.Transparency = 1
  1476. selectionBox1.Transparency = 1
  1477. wait()
  1478. Dialogconnect.Transparency = 0
  1479. selectionBox1.Transparency = 0
  1480. wait()
  1481. Dialogconnect.Transparency = 0
  1482. wait()
  1483. Dialogconnect.Transparency = 1
  1484. selectionBox1.Transparency = 1
  1485. wait()
  1486. Dialogconnect.Transparency = 0
  1487. selectionBox1.Transparency = 0
  1488. wait()
  1489. Dialogconnect.Transparency = 1
  1490. selectionBox1.Transparency = 1
  1491. wait()
  1492. Dialogconnect.Transparency = 0
  1493. selectionBox1.Transparency = 0
  1494. wait()
  1495. Dialogconnect.Transparency = 1
  1496. selectionBox1.Transparency = 1
  1497. wait()
  1498. Dialogconnect.Transparency = 0
  1499. selectionBox1.Transparency = 0
  1500. wait()
  1501. Dialogconnect.Transparency = 1
  1502. selectionBox1.Transparency = 1
  1503. wait()
  1504. Dialogconnect.Transparency = 0
  1505. selectionBox1.Transparency = 0
  1506. Dialogconnect:remove()
  1507. onehitkill = true
  1508. end
  1509. end
  1510. function Stuckhit()
  1511. if not vDebounce then
  1512. vDebounce = true
  1513. RW.C0 = cf(1, 0.3, -0.5) * euler(0.8000000000000003, 0, 0)
  1514. RW.C1 = cf(0, 0, 0) * euler(0, -2, 0)
  1515. wait(0.1)
  1516. PlaySound("Slash", 1)
  1517. coroutine.resume(coroutine.create(function()
  1518. for i = 1, 10 do
  1519. wait()
  1520. local RedSlash = Instance.new("Part", handle)
  1521. RedSlash.FormFactor = "Custom"
  1522. RedSlash.Size = Vector3.new(0.5, 2, 0.5)
  1523. RedSlash.Transparency = 0.5
  1524. local selectionBox = Instance.new("SelectionBox", RedSlash)
  1525. selectionBox.Adornee = RedSlash
  1526. selectionBox.Color = BrickColor.new("Really red")
  1527. selectionBox.LineThickness = 0.005
  1528. RedSlash.TopSurface = 0
  1529. RedSlash.BottomSurface = 0
  1530. local colorc = {"Really Orange"}
  1531. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  1532. RedSlash.BrickColor = Fire
  1533. RedSlash.CanCollide = false
  1534. RedSlash.Anchored = true
  1535. RedSlash.CFrame = handle.CFrame * CFrame.new(0, 1, 0)
  1536. game.Debris:AddItem(RedSlash, 0.1)
  1537. end
  1538. end))
  1539. for i = 1, 3 do
  1540. wait()
  1541. RW.C0 = cf(1.2, 0.3 * i, 0.2) * euler(0.8000000000000003, 0, 0)
  1542. RW.C1 = cf(0, 0, 0) * euler(0.8 * i, -2, 0)
  1543. end
  1544. local ray = Ray.new(Handle.CFrame.p, (mouse.Hit.p - Handle.CFrame.p).unit * 1000)
  1545. local hit, position = game.Workspace:FindPartOnRay(ray, player)
  1546. wait(0.1)
  1547. local ray = Ray.new(Handle.CFrame.p, (mouse.Hit.p - Handle.CFrame.p).unit * 300)
  1548. local position = mouse.Hit.p
  1549. local distance = (position - Handle.CFrame.p).magnitude
  1550. local rp = Instance.new("Part", workspace)
  1551. rp.Anchored = true
  1552. rp.TopSurface = "Smooth"
  1553. rp.BottomSurface = "Smooth"
  1554. rp.Transparency = 1
  1555. rp.BrickColor = BrickColor.new("Deep orange")
  1556. rp.FormFactor = "Custom"
  1557. rp.CanCollide = false
  1558. rp.Size = Vector3.new(0.6, 0.6, distance)
  1559. rp.Material = "Neon"
  1560. rp.CFrame = CFrame.new(position, Handle.CFrame.p) * CFrame.new(0, 0, -distance / 2)
  1561. local cy = Instance.new("BlockMesh", rp)
  1562. for i = 1, 10 do
  1563. wait()
  1564. cy.Scale = cy.Scale - Vector3.new(0.1, 0.1, 0)
  1565. end
  1566. rp:Destroy()
  1567. local ps = Instance.new("Part", suit)
  1568. ps.Name = "MagicPart"
  1569. ps.TopSurface = "Smooth"
  1570. ps.BottomSurface = "Smooth"
  1571. ps.BrickColor = BrickColor.new("Really Orange")
  1572. ps.FormFactor = "Custom"
  1573. ps.Transparency = 0.9
  1574. ps.Size = Vector3.new(5, 250, 5)
  1575. ps.Anchored = true
  1576. ps.CanCollide = false
  1577. ps.CFrame = CFrame.new(position)
  1578. local cy = Instance.new("BlockMesh", ps)
  1579. function touch(hit)
  1580. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  1581. if hit.Parent.Name == char.Name then
  1582. return
  1583. end
  1584. hit.Parent.Torso.Anchored = true
  1585. do
  1586. local HitSounds = {
  1587. Hurt = Instance.new("Sound")
  1588. }
  1589. HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=406913243"
  1590. HitSounds.Hurt.Volume = 1
  1591. function PlayHitSound(soundname, pitch)
  1592. HitSounds[soundname].Parent = hit.Parent.Torso
  1593. HitSounds[soundname].Pitch = pitch
  1594. HitSounds[soundname]:Play()
  1595. local oldsound = HitSounds[soundname]
  1596. coroutine.resume(coroutine.create(function()
  1597. wait(4)
  1598. oldsound:Destroy()
  1599. end))
  1600. HitSounds[soundname] = HitSounds[soundname]:clone()
  1601. end
  1602. PlayHitSound("Hurt", 1)
  1603. local p = Instance.new("Part", handle)
  1604. p.FormFactor = "Custom"
  1605. p.Material = "Neon"
  1606. p.Size = Vector3.new(1, 2, 1)
  1607. p.Transparency = 0
  1608. local selectionBox = Instance.new("SelectionBox", p)
  1609. selectionBox.Adornee = p
  1610. selectionBox.Color = BrickColor.new("Really red")
  1611. selectionBox.LineThickness = 0.001
  1612. p.TopSurface = 0
  1613. p.BottomSurface = 0
  1614. local colorc = {"Really Orange"}
  1615. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  1616. p.BrickColor = Fire
  1617. p.CanCollide = false
  1618. p.Anchored = true
  1619. p.CFrame = handle.CFrame * CFrame.new(0, 1, 0)
  1620. coroutine.resume(coroutine.create(function()
  1621. for i = 1, 100 do
  1622. wait()
  1623. p.CFrame = handle.CFrame * CFrame.new(0, 1, 0)
  1624. end
  1625. end))
  1626. local light1 = Instance.new("SpotLight", p)
  1627. light1.Brightness = 164
  1628. light1.Color = Color3.new(255, 0, 0)
  1629. light1.Range = 7
  1630. for i = 1, 13 do
  1631. p.Transparency = p.Transparency + 0.1
  1632. wait(0.4)
  1633. end
  1634. game.Debris:AddItem(p, 0.1)
  1635. PlaySound("Slash", 1)
  1636. coroutine.resume(coroutine.create(function()
  1637. for i = 1, 10 do
  1638. wait()
  1639. local RedSlash = Instance.new("Part", handle)
  1640. RedSlash.FormFactor = "Custom"
  1641. RedSlash.Size = Vector3.new(0.5, 2, 0.5)
  1642. RedSlash.Transparency = 0.5
  1643. local selectionBox = Instance.new("SelectionBox", RedSlash)
  1644. selectionBox.Adornee = RedSlash
  1645. selectionBox.Color = BrickColor.new("Really red")
  1646. selectionBox.LineThickness = 0.005
  1647. RedSlash.TopSurface = 0
  1648. RedSlash.BottomSurface = 0
  1649. local colorc = {"Really Orange"}
  1650. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  1651. RedSlash.BrickColor = Fire
  1652. RedSlash.CanCollide = false
  1653. RedSlash.Anchored = true
  1654. RedSlash.CFrame = handle.CFrame * CFrame.new(0, 1, 0)
  1655. game.Debris:AddItem(RedSlash, 0.1)
  1656. end
  1657. end))
  1658. for i = 1, 3 do
  1659. wait()
  1660. RW.C0 = cf(1.5, 0.5, 0) * euler(1.5, 0, 0)
  1661. RW.C1 = cf(0, 0.5, 0) * euler(0.6 * i, 0, 0)
  1662. end
  1663. hit.Parent.Torso.Anchored = false
  1664. hit.Parent.Torso:BreakJoints()
  1665. end
  1666. end
  1667. end
  1668. ps.Touched:connect(touch)
  1669. for i = 1, 8 do
  1670. wait(0.5)
  1671. ps.Transparency = ps.Transparency - 0.1
  1672. end
  1673. wait(2)
  1674. RW.C0 = CFrame.new(1.5, 0.5, 0)
  1675. RW.C1 = CFrame.new(0, 0.5, 0)
  1676. ps:remove()
  1677. end
  1678. vDebounce = false
  1679. end
  1680. mouse.Button1Down:connect(function()
  1681. if slashvalue == 1 then
  1682. slash1()
  1683. elseif slashvalue == 3 then
  1684. slash3()
  1685. elseif slashvalue == 2 then
  1686. slash2()
  1687. end
  1688. end)
  1689. function WelcomeToMySpecialAttack()
  1690. CharaTalks()
  1691. RW.C0 = cf(1, 0.3, -0.5) * euler(0.8000000000000003, 0, 0)
  1692. RW.C1 = cf(0, 0, 0) * euler(0, -2, 0)
  1693. wait(0.1)
  1694. PlaySound("Slash", 1)
  1695. coroutine.resume(coroutine.create(function()
  1696. for i = 1, 10 do
  1697. wait()
  1698. local RedSlash = Instance.new("Part", handle)
  1699. RedSlash.FormFactor = "Custom"
  1700. RedSlash.Size = Vector3.new(0.5, 2, 0.5)
  1701. RedSlash.Transparency = 0.5
  1702. local selectionBox = Instance.new("SelectionBox", RedSlash)
  1703. selectionBox.Adornee = RedSlash
  1704. selectionBox.Color = BrickColor.new("Really red")
  1705. selectionBox.LineThickness = 0.005
  1706. RedSlash.TopSurface = 0
  1707. RedSlash.BottomSurface = 0
  1708. local colorc = {"Really Orange"}
  1709. local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
  1710. RedSlash.BrickColor = Fire
  1711. RedSlash.CanCollide = false
  1712. RedSlash.Anchored = true
  1713. RedSlash.CFrame = handle.CFrame * CFrame.new(0, 1, 0)
  1714. game.Debris:AddItem(RedSlash, 0.1)
  1715. end
  1716. end))
  1717. for i = 1, 3 do
  1718. wait()
  1719. RW.C0 = cf(1.2, 0.3 * i, 0.2) * euler(0.8000000000000003, 0, 0)
  1720. RW.C1 = cf(0, 0, 0) * euler(0.8 * i, -2, 0)
  1721. end
  1722. PlaySound("Explode", 1)
  1723. coroutine.resume(coroutine.create(function()
  1724. local ps = Instance.new("Part", suit)
  1725. ps.Name = "MagicPart"
  1726. ps.TopSurface = "Smooth"
  1727. ps.BottomSurface = "Smooth"
  1728. ps.BrickColor = BrickColor.new("Really Orange")
  1729. ps.Material = "Neon"
  1730. ps.FormFactor = "Custom"
  1731. ps.Size = Vector3.new(1500, 1500, 1000)
  1732. ps.Anchored = true
  1733. ps.Transparency = 0
  1734. ps.CanCollide = false
  1735. ps.CFrame = char.Torso.CFrame * CFrame.new(1, 0, -55) * CFrame.Angles(0, 0, 0)
  1736. local selectionBox = Instance.new("SelectionBox", ps)
  1737. selectionBox.Adornee = ps
  1738. selectionBox.Color = BrickColor.new("Really Orange")
  1739. selectionBox.LineThickness = 0.2
  1740. selectionBox.Transparency = 0.5
  1741. function touch(hit)
  1742. if hit.Parent.Name == char.Name then
  1743. return
  1744. end
  1745. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  1746. if hit.Parent.Name == char.Name then
  1747. return
  1748. end
  1749. hit.Parent:BreakJoints()
  1750. do
  1751. local HitSounds = {
  1752. Hurt = Instance.new("Sound")
  1753. }
  1754. HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=406913243"
  1755. HitSounds.Hurt.Volume = 1
  1756. function PlayHitSound(soundname, pitch)
  1757. HitSounds[soundname].Parent = hit.Parent.Torso
  1758. HitSounds[soundname].Pitch = pitch
  1759. HitSounds[soundname]:Play()
  1760. local oldsound = HitSounds[soundname]
  1761. coroutine.resume(coroutine.create(function()
  1762. wait(4)
  1763. oldsound:Destroy()
  1764. end))
  1765. HitSounds[soundname] = HitSounds[soundname]:clone()
  1766. end
  1767. PlayHitSound("Hurt", 1)
  1768. end
  1769. end
  1770. end
  1771. ps.Touched:connect(touch)
  1772. coroutine.resume(coroutine.create(function()
  1773. for i = 1, 500 do
  1774. wait()
  1775. ps.CFrame = ps.CFrame * CFrame.new(0, 0, -4)
  1776. end
  1777. ps.Transparency = ps.Transparency + 0.2
  1778. wait()
  1779. ps.Transparency = ps.Transparency + 0.2
  1780. wait()
  1781. ps.Transparency = ps.Transparency + 0.2
  1782. wait()
  1783. ps.Transparency = ps.Transparency + 0.2
  1784. wait()
  1785. ps.Transparency = ps.Transparency + 0.2
  1786. ps:remove()
  1787. end))
  1788. end))
  1789. wait(2)
  1790. RW.C0 = CFrame.new(1.5, 0.5, 0)
  1791. RW.C1 = CFrame.new(0, 0.5, 0)
  1792. end
  1793. mouse.KeyDown:connect(function(key)
  1794. if key == "r" and specialattack == false then
  1795. specialattack = true
  1796. WelcomeToMySpecialAttack()
  1797. local Dialogconnect = Instance.new("Part", suit)
  1798. Dialogconnect.TopSurface = "Smooth"
  1799. Dialogconnect.BottomSurface = "Smooth"
  1800. Dialogconnect.Material = "Neon"
  1801. Dialogconnect.FormFactor = "Custom"
  1802. Dialogconnect.Size = Vector3.new(1, 1, 1)
  1803. Dialogconnect.Transparency = 1
  1804. Dialogconnect.CanCollide = false
  1805. Dialogconnect.BrickColor = BrickColor.new("Really Orange")
  1806. local selectionBox1 = Instance.new("SelectionBox", Dialogconnect)
  1807. selectionBox1.Adornee = Dialogconnect
  1808. selectionBox1.Color = BrickColor.new("Really red")
  1809. selectionBox1.LineThickness = 0.01
  1810. selectionBox1.Transparency = 1
  1811. local Weld = Instance.new("Weld", char)
  1812. Weld.Part0 = char.Torso
  1813. Weld.Part1 = Dialogconnect
  1814. Weld.C1 = CFrame.new(-3, -3, -1.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1815. Dialogconnect.Transparency = 1
  1816. selectionBox1.Transparency = 1
  1817. wait()
  1818. Dialogconnect.Transparency = 0
  1819. selectionBox1.Transparency = 0
  1820. wait()
  1821. Dialogconnect.Transparency = 1
  1822. selectionBox1.Transparency = 1
  1823. wait()
  1824. Dialogconnect.Transparency = 0
  1825. selectionBox1.Transparency = 0
  1826. wait()
  1827. Dialogconnect.Transparency = 1
  1828. selectionBox1.Transparency = 1
  1829. wait()
  1830. Dialogconnect.Transparency = 0
  1831. selectionBox1.Transparency = 0
  1832. wait()
  1833. Dialogconnect.Transparency = 1
  1834. selectionBox1.Transparency = 1
  1835. wait()
  1836. Dialogconnect.Transparency = 0
  1837. selectionBox1.Transparency = 0
  1838. wait()
  1839. Dialogconnect.Transparency = 1
  1840. selectionBox1.Transparency = 1
  1841. wait()
  1842. Dialogconnect.Transparency = 0
  1843. selectionBox1.Transparency = 0
  1844. wait()
  1845. Dialogconnect.Transparency = 1
  1846. selectionBox1.Transparency = 1
  1847. wait()
  1848. Dialogconnect.Transparency = 0
  1849. selectionBox1.Transparency = 0
  1850. wait()
  1851. Dialogconnect.Transparency = 1
  1852. selectionBox1.Transparency = 1
  1853. wait()
  1854. Dialogconnect.Transparency = 0
  1855. selectionBox1.Transparency = 0
  1856. wait()
  1857. Dialogconnect.Transparency = 1
  1858. selectionBox1.Transparency = 1
  1859. wait()
  1860. Dialogconnect.Transparency = 0
  1861. selectionBox1.Transparency = 0
  1862. Dialogconnect.BrickColor = BrickColor.new("New Yeller")
  1863. wait()
  1864. Dialogconnect.Transparency = 1
  1865. selectionBox1.Transparency = 1
  1866. wait()
  1867. Dialogconnect.Transparency = 0
  1868. selectionBox1.Transparency = 0
  1869. wait()
  1870. Dialogconnect.Transparency = 1
  1871. selectionBox1.Transparency = 1
  1872. wait()
  1873. Dialogconnect.Transparency = 0
  1874. selectionBox1.Transparency = 0
  1875. wait()
  1876. Dialogconnect.Transparency = 1
  1877. selectionBox1.Transparency = 1
  1878. wait()
  1879. Dialogconnect.Transparency = 0
  1880. selectionBox1.Transparency = 0
  1881. wait()
  1882. Dialogconnect.Transparency = 1
  1883. selectionBox1.Transparency = 1
  1884. wait()
  1885. Dialogconnect.Transparency = 0
  1886. selectionBox1.Transparency = 0
  1887. Dialogconnect.BrickColor = BrickColor.new("Lime green")
  1888. wait()
  1889. Dialogconnect.Transparency = 1
  1890. selectionBox1.Transparency = 1
  1891. wait()
  1892. Dialogconnect.Transparency = 0
  1893. selectionBox1.Transparency = 0
  1894. wait()
  1895. Dialogconnect.Transparency = 1
  1896. selectionBox1.Transparency = 1
  1897. wait()
  1898. Dialogconnect.Transparency = 0
  1899. selectionBox1.Transparency = 0
  1900. wait()
  1901. Dialogconnect.Transparency = 1
  1902. selectionBox1.Transparency = 1
  1903. wait()
  1904. Dialogconnect.Transparency = 0
  1905. selectionBox1.Transparency = 0
  1906. wait()
  1907. Dialogconnect.Transparency = 1
  1908. selectionBox1.Transparency = 1
  1909. wait()
  1910. Dialogconnect.Transparency = 0
  1911. selectionBox1.Transparency = 0
  1912. wait()
  1913. Dialogconnect.Transparency = 0
  1914. wait()
  1915. Dialogconnect.Transparency = 1
  1916. selectionBox1.Transparency = 1
  1917. wait()
  1918. Dialogconnect.Transparency = 0
  1919. selectionBox1.Transparency = 0
  1920. wait()
  1921. Dialogconnect.Transparency = 1
  1922. selectionBox1.Transparency = 1
  1923. wait()
  1924. Dialogconnect.Transparency = 0
  1925. selectionBox1.Transparency = 0
  1926. wait()
  1927. Dialogconnect.Transparency = 1
  1928. selectionBox1.Transparency = 1
  1929. wait()
  1930. Dialogconnect.Transparency = 0
  1931. selectionBox1.Transparency = 0
  1932. wait()
  1933. Dialogconnect.Transparency = 1
  1934. selectionBox1.Transparency = 1
  1935. wait()
  1936. Dialogconnect.Transparency = 0
  1937. selectionBox1.Transparency = 0
  1938. Dialogconnect:remove()
  1939. specialattack = false
  1940. end
  1941. if key == "q" then
  1942. if beamvalue == 1 then
  1943. KnifeBeam1()
  1944. elseif beamvalue == 2 then
  1945. KnifeBeam2()
  1946. elseif beamvalue == 3 then
  1947. KnifeBeam3()
  1948. end
  1949. end
  1950. if key == "x" and not vDebounce then
  1951. vDebounce = true
  1952. for i = 1, 5 do
  1953. wait()
  1954. Torso.Transparency = 0.5
  1955. char["Left Arm"].Transparency = 0.5
  1956. char["Left Leg"].Transparency = 0.5
  1957. char["Right Arm"].Transparency = 0.5
  1958. char["Right Leg"].Transparency = 0.5
  1959. char.Head.Transparency = 0.5
  1960. wait()
  1961. Torso.Transparency = 0
  1962. char["Left Arm"].Transparency = 0
  1963. char["Left Leg"].Transparency = 0
  1964. char["Right Arm"].Transparency = 0
  1965. char["Right Leg"].Transparency = 0
  1966. char.Head.Transparency = 0
  1967. end
  1968. teleportPlayer(mouse.hit.p)
  1969. vDebounce = false
  1970. end
  1971. if key == "z" and onehitkilltwo == true then
  1972. onehitkilltwo = false
  1973. Stuckhit()
  1974. local Dialogconnect = Instance.new("Part", suit)
  1975. Dialogconnect.TopSurface = "Smooth"
  1976. Dialogconnect.BottomSurface = "Smooth"
  1977. Dialogconnect.Material = "Neon"
  1978. Dialogconnect.FormFactor = "Custom"
  1979. Dialogconnect.Size = Vector3.new(1, 1, 1)
  1980. Dialogconnect.Transparency = 1
  1981. Dialogconnect.CanCollide = false
  1982. Dialogconnect.BrickColor = BrickColor.new("Really Orange")
  1983. local selectionBox1 = Instance.new("SelectionBox", Dialogconnect)
  1984. selectionBox1.Adornee = Dialogconnect
  1985. selectionBox1.Color = BrickColor.new("Really red")
  1986. selectionBox1.LineThickness = 0.01
  1987. selectionBox1.Transparency = 1
  1988. local Weld = Instance.new("Weld", char)
  1989. Weld.Part0 = char.Torso
  1990. Weld.Part1 = Dialogconnect
  1991. Weld.C1 = CFrame.new(3, -3, -1.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1992. Dialogconnect.Transparency = 1
  1993. selectionBox1.Transparency = 1
  1994. wait()
  1995. Dialogconnect.Transparency = 0
  1996. selectionBox1.Transparency = 0
  1997. wait()
  1998. Dialogconnect.Transparency = 1
  1999. selectionBox1.Transparency = 1
  2000. wait()
  2001. Dialogconnect.Transparency = 0
  2002. selectionBox1.Transparency = 0
  2003. wait()
  2004. Dialogconnect.Transparency = 1
  2005. selectionBox1.Transparency = 1
  2006. wait()
  2007. Dialogconnect.Transparency = 0
  2008. selectionBox1.Transparency = 0
  2009. wait()
  2010. Dialogconnect.Transparency = 1
  2011. selectionBox1.Transparency = 1
  2012. wait()
  2013. Dialogconnect.Transparency = 0
  2014. selectionBox1.Transparency = 0
  2015. wait()
  2016. Dialogconnect.Transparency = 1
  2017. selectionBox1.Transparency = 1
  2018. wait()
  2019. Dialogconnect.Transparency = 0
  2020. selectionBox1.Transparency = 0
  2021. wait()
  2022. Dialogconnect.Transparency = 1
  2023. selectionBox1.Transparency = 1
  2024. wait()
  2025. Dialogconnect.Transparency = 0
  2026. selectionBox1.Transparency = 0
  2027. wait()
  2028. Dialogconnect.Transparency = 1
  2029. selectionBox1.Transparency = 1
  2030. wait()
  2031. Dialogconnect.Transparency = 0
  2032. selectionBox1.Transparency = 0
  2033. wait()
  2034. Dialogconnect.Transparency = 1
  2035. selectionBox1.Transparency = 1
  2036. wait()
  2037. Dialogconnect.Transparency = 0
  2038. selectionBox1.Transparency = 0
  2039. Dialogconnect.BrickColor = BrickColor.new("New Yeller")
  2040. wait()
  2041. Dialogconnect.Transparency = 1
  2042. selectionBox1.Transparency = 1
  2043. wait()
  2044. Dialogconnect.Transparency = 0
  2045. selectionBox1.Transparency = 0
  2046. wait()
  2047. Dialogconnect.Transparency = 1
  2048. selectionBox1.Transparency = 1
  2049. wait()
  2050. Dialogconnect.Transparency = 0
  2051. selectionBox1.Transparency = 0
  2052. wait()
  2053. Dialogconnect.Transparency = 1
  2054. selectionBox1.Transparency = 1
  2055. wait()
  2056. Dialogconnect.Transparency = 0
  2057. selectionBox1.Transparency = 0
  2058. wait()
  2059. Dialogconnect.Transparency = 1
  2060. selectionBox1.Transparency = 1
  2061. wait()
  2062. Dialogconnect.Transparency = 0
  2063. selectionBox1.Transparency = 0
  2064. Dialogconnect.BrickColor = BrickColor.new("Lime green")
  2065. wait()
  2066. Dialogconnect.Transparency = 1
  2067. selectionBox1.Transparency = 1
  2068. wait()
  2069. Dialogconnect.Transparency = 0
  2070. selectionBox1.Transparency = 0
  2071. wait()
  2072. Dialogconnect.Transparency = 1
  2073. selectionBox1.Transparency = 1
  2074. wait()
  2075. Dialogconnect.Transparency = 0
  2076. selectionBox1.Transparency = 0
  2077. wait()
  2078. Dialogconnect.Transparency = 1
  2079. selectionBox1.Transparency = 1
  2080. wait()
  2081. Dialogconnect.Transparency = 0
  2082. selectionBox1.Transparency = 0
  2083. wait()
  2084. Dialogconnect.Transparency = 1
  2085. selectionBox1.Transparency = 1
  2086. wait()
  2087. Dialogconnect.Transparency = 0
  2088. selectionBox1.Transparency = 0
  2089. wait()
  2090. Dialogconnect.Transparency = 0
  2091. wait()
  2092. Dialogconnect.Transparency = 1
  2093. selectionBox1.Transparency = 1
  2094. wait()
  2095. Dialogconnect.Transparency = 0
  2096. selectionBox1.Transparency = 0
  2097. wait()
  2098. Dialogconnect.Transparency = 1
  2099. selectionBox1.Transparency = 1
  2100. wait()
  2101. Dialogconnect.Transparency = 0
  2102. selectionBox1.Transparency = 0
  2103. wait()
  2104. Dialogconnect.Transparency = 1
  2105. selectionBox1.Transparency = 1
  2106. wait()
  2107. Dialogconnect.Transparency = 0
  2108. selectionBox1.Transparency = 0
  2109. wait()
  2110. Dialogconnect.Transparency = 1
  2111. selectionBox1.Transparency = 1
  2112. wait()
  2113. Dialogconnect.Transparency = 0
  2114. selectionBox1.Transparency = 0
  2115. Dialogconnect:remove()
  2116. onehitkilltwo = true
  2117. end
  2118. if key == "e" then
  2119. drawded()
  2120. end
  2121. end)
  2122. Tool.Deselected:connect(function(mouse)
  2123. RW.Parent = nil
  2124. LW.Parent = nil
  2125. handle:remove()
  2126. RSH.Parent = player.Character.Torso
  2127. LSH.Parent = player.Character.Torso
  2128. end)
  2129. end)
  2130. function OnDeath()
  2131. GETDUNKED()
  2132. oldloopedsound:remove()
  2133. end
  2134. char.Humanoid.Died:connect(OnDeath)
  2135.  
  2136. -- Player declarations
  2137. local player = game.Players.megatron2006
  2138. local char = player.Character
  2139.  
  2140. -- Body parts
  2141. local torso = char.Torso
  2142.  
  2143. -- Tool declarations
  2144. local mouseDown = false
  2145. local keysDown = {}
  2146.  
  2147. -- Earth bending declarations
  2148. local raisingEarth = false
  2149. local raisingTower = false
  2150. local wall = false
  2151. local groundAttack = false
  2152. local lastTower = nil
  2153. local disabled = {}
  2154. local frames = {}
  2155. local parts = {}
  2156. local Taunts = {"You aren't dead yet?", "Just die!", "Take these, I insist!", "I told you it's useless!", "You will not be the first to die by my hand!", "You will suffer!", "Don't try to evade the inevitable!", "I will tear you apart!","You are pathetic!","You will never defeat me!","I AM GOD!"}
  2157. local raisechats = {"I will make you realize the depth of my power, even if I have to grind your body into dust!","I suggest you run.", "Now you're just pissing me off.", "Hmph.", "It's useless.",".....", "Your life ends here!","Foolish!","Do you know who I am?","What stupidity.","Hmm.","Hmph. Your confidence is annoying.","You cannot kill a god."}
  2158.  
  2159. -- Main
  2160. function main(mouse)
  2161. while true do wait(1/30)
  2162. local look = CFrame.new(torso.Position, torso.Position + mouse.Hit.lookVector)
  2163.  
  2164. -- Reset parts
  2165. parts = {}
  2166.  
  2167. -- Get parts
  2168. for x = -20, 20, 10 do
  2169. for y = -20, 20, 10 do
  2170. for z = -30, -10, 10 do
  2171. local pos = look * Vector3.new(x, y, z)
  2172. getPartsInRegion3(
  2173. Region3.new(
  2174. pos + Vector3.new(1,1,1)*-9,
  2175. pos + Vector3.new(1,1,1)* 9
  2176. ),
  2177. parts
  2178. )
  2179. end
  2180. end
  2181. end
  2182.  
  2183. -- Mouse down
  2184. if mouseDown then
  2185. -- Create dif and bodies
  2186. for _, part in pairs(parts) do
  2187. if part.Name == "Earth" and not disabled[part] then
  2188. if not frames[part] and part ~= lastTower then
  2189. frames[part] = look:toObjectSpace(part.CFrame)
  2190.  
  2191. part:ClearAllChildren()
  2192. part.Anchored = false
  2193.  
  2194. -- Create bodies
  2195. createBody("Position", part)
  2196. createBody("Gyro", part)
  2197. end
  2198. end
  2199. end
  2200.  
  2201. -- Move bodies
  2202. for part in pairs(frames) do
  2203. local bodyPos = part:FindFirstChild("BodyPosition")
  2204. local bodyGyr = part:FindFirstChild("BodyGyro")
  2205.  
  2206. -- Bodies exist
  2207. if bodyPos and bodyGyr then
  2208. local dif = look * frames[part]
  2209.  
  2210. bodyPos.position = dif.p
  2211. bodyGyr.cframe = dif
  2212. else
  2213. frames[part] = nil
  2214. end
  2215. end
  2216. else
  2217. for part in pairs(frames) do
  2218. if part.Name == "Earth" then
  2219. frames[part] = nil
  2220.  
  2221. part:ClearAllChildren()
  2222. end
  2223. end
  2224. end
  2225. end
  2226. end
  2227.  
  2228. -- On key change
  2229. function onKeyChange(mouse, key, state)
  2230. -- Raise earth
  2231. if key == "m" and state and not raisingEarth then
  2232. game:GetService("Chat"):Chat(char.Head, raisechats[math.random(1,#raisechats)], Enum.ChatColor.Red)
  2233. raisingEarth = true
  2234. while keysDown[key] do
  2235. local torsoY = torso.Position.y + 3
  2236. local pos = planeY(torso.Position, 0.4 - 4/2)
  2237. local dir = planeY(mouse.Hit.lookVector).unit
  2238. local frame = CFrame.new(pos, pos + dir) * CFrame.new(r(-10, 10), 0, r(-20, -5))
  2239.  
  2240. -- Create earth part
  2241. local part = createEarth(workspace)
  2242. part.Anchored = true
  2243. part.Size = Vector3.new(4, 4, 4)
  2244. disabled[part] = true
  2245.  
  2246. -- Raise earth
  2247. for i = 1, 4 do i = i/4
  2248. part.CFrame = frame * CFrame.new(0, (torsoY - frame.y)*i, 0)
  2249. wait(1/10000000)
  2250. if not part.Anchored then
  2251. break
  2252. end
  2253. end
  2254.  
  2255. disabled[part] = nil
  2256. part.Anchored = false
  2257.  
  2258. wait(1/100)
  2259. end
  2260. raisingEarth = false
  2261.  
  2262.  
  2263.  
  2264.  
  2265.  
  2266. elseif key == "c" and state and not raisingEarth then
  2267. game:GetService("Chat"):Chat(char.Head, raisechats[math.random(1,#raisechats)], Enum.ChatColor.Red)
  2268. raisingEarth = true
  2269. while keysDown[key] do
  2270. local torsoY = torso.Position.y + 3
  2271. local pos = planeY(torso.Position, 0.4 - 4/2)
  2272. local dir = planeY(mouse.Hit.lookVector).unit
  2273. local frame = CFrame.new(pos, pos + dir) * CFrame.new(r(-10, 10), 0, r(-20, -5))
  2274.  
  2275. -- Create earth part
  2276. local part = createEarth(workspace)
  2277. part.Anchored = true
  2278. part.Size = Vector3.new(2, 2, 2)
  2279. disabled[part] = true
  2280.  
  2281. -- Raise earth
  2282. for i = 1, 4 do i = i/4
  2283. part.CFrame = frame * CFrame.new(0, (torsoY - frame.y)*i, 0)
  2284. wait(1/10000000)
  2285. if not part.Anchored then
  2286. break
  2287. end
  2288. end
  2289.  
  2290. disabled[part] = nil
  2291. part.Anchored = false
  2292.  
  2293. wait(1/100)
  2294. end
  2295. raisingEarth = false
  2296.  
  2297.  
  2298.  
  2299. -- Push earth
  2300. elseif key == "f" and state then
  2301. game:GetService("Chat"):Chat(char.Head, Taunts[math.random(1,#Taunts)], Enum.ChatColor.Red)
  2302. for _, part in pairs(parts) do
  2303. if part.Name == "Earth" and part ~= lastTower then
  2304. part:ClearAllChildren()
  2305. part.Anchored = false
  2306.  
  2307. -- Add force
  2308. local bodyForce = createBody("Force", part)
  2309. bodyForce.force = mouse.Hit.lookVector*1.5e4 * part:GetMass()
  2310.  
  2311. game.Debris:AddItem(bodyForce, 1/30)
  2312.  
  2313. -- Disable part
  2314. disabled[part] = true
  2315. delay(1, function()
  2316. disabled[part] = nil
  2317. end)
  2318. end
  2319. end
  2320.  
  2321. -- Monster Ability
  2322. elseif key == "n" and state then
  2323. wait(.1)
  2324. f = Instance.new("Fire")
  2325. f.Parent = char.Head
  2326. f.Color = Color3.new(0,0,0)
  2327. f.Size = 5
  2328. f.Heat = 5
  2329. wait(.1)
  2330. g = Instance.new("Fire")
  2331. g.Parent = char["Right Arm"]
  2332. g.Color = Color3.new(0,0.8,0.9)
  2333. g.Size = 5
  2334. g.Heat = 10
  2335. wait(.1)
  2336. h = Instance.new("Fire")
  2337. h.Parent = char["Left Arm"]
  2338. h.Color = Color3.new(0.7,0,0)
  2339. h.Size = 5
  2340. h.Heat = 10
  2341. wait(.1)
  2342. z = Instance.new("Sound")
  2343. z.Parent = game.Workspace
  2344. z.SoundId = "http://www.roblox.com/asset/?id="
  2345. z.Looped = false
  2346. z.Volume = 8
  2347. z.Pitch = 0.8
  2348. wait(1.8)
  2349. game:GetService("Chat"):Chat(char.Head, "Hmph.", Enum.ChatColor.Red)
  2350. wait(3.4)
  2351. game:GetService("Chat"):Chat(char.Head, "This has become a pointless battle.", Enum.ChatColor.Red)
  2352. wait(2.4)
  2353. game:GetService("Chat"):Chat(char.Head, "I will end this quickly", Enum.ChatColor.Red)
  2354. wait(.1)
  2355. z:Play()
  2356. char.Humanoid.MaxHealth = 900000000
  2357. wait(1)
  2358. char.Humanoid.Health = 900000000
  2359. wait(182)
  2360. char.Humanoid.MaxHealth = 600
  2361. z:Remove()
  2362. f:Remove()
  2363. g:Remove()
  2364. h:Remove()
  2365.  
  2366. -- N-Rage
  2367. elseif key == "n" and state then
  2368. c = Instance.new("Sound")
  2369. c.Parent = game.Workspace
  2370. c.SoundId = "http://www.roblox.com/asset/?id=157747165"
  2371. c.Looped = false
  2372. c.Volume = 1
  2373. c.Pitch = .7
  2374. wait(1.8)
  2375. game:GetService("Chat"):Chat(char.Head, "What the hell was that?", Enum.ChatColor.Red)
  2376. wait(2)
  2377. game:GetService("Chat"):Chat(char.Head, "Did you actually believe you could harm me?", Enum.ChatColor.Red)
  2378. wait(2.4)
  2379. game:GetService("Chat"):Chat(char.Head, "If you would simply let yourself die, you would not have to go through this pointless suffering.", Enum.ChatColor.Red)
  2380. wait(3.5)
  2381. game:GetService("Chat"):Chat(char.Head, "All you have done is waste my time.", Enum.ChatColor.Red)
  2382. wait(.1)
  2383. c:Play()
  2384. char.Humanoid.MaxHealth = math.huge
  2385. wait(160)
  2386. char.Humanoid.MaxHealth = 10000
  2387. c:Remove()
  2388.  
  2389. -- Break earth
  2390. elseif key == "b" and state then
  2391. game:GetService("Chat"):Char(char.Head, "Hmph.", Enum.ChatColor.Red)
  2392. wait(.01)
  2393. for part in pairs(frames) do
  2394. if part.Size == Vector3.new(4, 4, 4) then
  2395. for x = -1, 2, 2 do
  2396. for y = -1, 2, 2 do
  2397. for z = -1, 1, 2 do
  2398. local oPart = createEarth(workspace)
  2399. oPart.Size = Vector3.new(2, 2, 2)
  2400. oPart.CFrame = part.CFrame * CFrame.new(x*1.1, y*1.1, z*1.1)
  2401. end
  2402. end
  2403. end
  2404. part:Destroy()
  2405. end
  2406.  
  2407. end
  2408.  
  2409. for part in pairs(frames) do
  2410. if part.Size == Vector3.new(25, 15, 25) then
  2411. for x = -3, 2, 2 do
  2412. for y = -3, 2, 2 do
  2413. for z = -3, 1, 2 do
  2414. local oPart = createEarth(workspace)
  2415. oPart.Size = Vector3.new(2, 2, 2)
  2416. oPart.CFrame = part.CFrame * CFrame.new(x*1.1, y*1.1, z*1.1)
  2417. end
  2418. end
  2419. end
  2420. part:Destroy()
  2421. end
  2422.  
  2423. end
  2424.  
  2425. for part in pairs(frames) do
  2426. if part.Size == Vector3.new(2, 2, 2) then
  2427. for x = -0.5, 2, 2 do
  2428. for y = -0.5, 2, 2 do
  2429. for z = -0.5, 1, 2 do
  2430. local oPart = createEarth(workspace)
  2431. oPart.Size = Vector3.new(1, 1, 1)
  2432. oPart.CFrame = part.CFrame * CFrame.new(x*1.1, y*1.1, z*1.1)
  2433. end
  2434. end
  2435. end
  2436. part:Destroy()
  2437. end
  2438.  
  2439. end
  2440.  
  2441.  
  2442.  
  2443.  
  2444. -- Raise tower
  2445. elseif key == "r" and state and not raisingTower then
  2446. game:GetService("Chat"):Chat(char.Head, raisechats[math.random(1,#raisechats)], Enum.ChatColor.Red)
  2447. raisingTower = true
  2448. lastTower = nil
  2449. if torso.Position.y - 5/2 < 20.4 then
  2450. local part = createEarth(workspace)
  2451. part.Anchored = true
  2452. disabled[part] = true
  2453.  
  2454. for i = 0, 20, 4 do
  2455. part.Size = Vector3.new(5, i, 5)
  2456. part.CFrame = CFrame.new(torso.Position.x, 0.4 + part.Size.y/2, torso.Position.z)
  2457. torso.CFrame = (torso.CFrame - torso.CFrame.p) + Vector3.new(torso.Position.x, part.Position.y + part.Size.y/2 + 5/2, torso.Position.z)
  2458. wait(1/30)
  2459. end
  2460.  
  2461. lastTower = part
  2462.  
  2463. disabled[part] = nil
  2464. part.Anchored = false
  2465. end
  2466. raisingTower = false
  2467.  
  2468.  
  2469. -- Raise wall
  2470. elseif key == "t" and state and not wall then
  2471. game:GetService("Chat"):Chat(char.Head, raisechats[math.random(1,#raisechats)], Enum.ChatColor.Red)
  2472. wall = true
  2473. lastWall = nil
  2474. if torso.Position.y - 5/2 < 20.4 then
  2475. local part = createEarth(workspace)
  2476. part.Anchored = true
  2477. disabled[part] = true
  2478.  
  2479. for i = 0, 1, 20 do
  2480. part.Size = Vector3.new(25, 15, 25)
  2481. part.CFrame = CFrame.new(torso.Position.x, 0.4 + part.Size.y/2, torso.Position.z)
  2482. torso.CFrame = (torso.CFrame - torso.CFrame.p) + Vector3.new(torso.Position.x, part.Position.y + part.Size.y/2 + 5/2, torso.Position.z)
  2483. wait(1/30)
  2484. end
  2485.  
  2486. lastWall = part
  2487.  
  2488. disabled[part] = nil
  2489. part.Anchored = false
  2490. end
  2491. wall = false
  2492.  
  2493. -- Ground attack
  2494. elseif key == "g" and state and not groundAttack then
  2495. game:GetService("Chat"):Chat(char.Head, Taunts[math.random(1,#Taunts)], Enum.ChatColor.Red)
  2496. groundAttack = true
  2497. delay(1, function()
  2498. groundAttack = false
  2499. end)
  2500.  
  2501. local dir = planeY(mouse.Hit.p - torso.Position).unit
  2502. local pos = planeY(torso.Position, 0.4 + 1) + dir*5
  2503.  
  2504. local ground = {}
  2505.  
  2506. delay(5, function()
  2507. for i = 1, 20 do
  2508. for _, part in pairs(ground) do
  2509. if part.Anchored then
  2510. part.CFrame = part.CFrame + Vector3.new(0, -1/7, 0)
  2511. end
  2512. end
  2513. wait(1/30)
  2514. end
  2515. for _, part in pairs(ground) do
  2516. if part.Anchored then
  2517. part:Destroy()
  2518. end
  2519. end
  2520. end)
  2521.  
  2522. for i = 1, 10 do
  2523. local hit, pos2 = rayCast(pos, dir*5, {char})
  2524.  
  2525. local part = createEarth(workspace)
  2526. part.Anchored = true
  2527. part.Size = Vector3.new(4, 4, 4)
  2528. part.CFrame = CFrame.new(pos2, pos2 + dir) * CFrame.Angles(math.rad(-50), 0, 0) + Vector3.new(0, -0, 0)
  2529.  
  2530. ground[#ground + 1] = part
  2531.  
  2532. -- Add force
  2533. if hit then
  2534. local mass = hit:GetMass()
  2535.  
  2536. -- Hit player
  2537. for _, oPlayer in pairs(game.Players:GetPlayers()) do
  2538. if oPlayer.Character and oPlayer.Character:FindFirstChild("Torso") and hit:IsDescendantOf(oPlayer.Character) then
  2539. hit = oPlayer.Character.Torso
  2540. mass = 20
  2541. end
  2542. end
  2543.  
  2544. if hit.Name ~= "Torso" then
  2545. hit:ClearAllChildren()
  2546. end
  2547. hit.Anchored = false
  2548.  
  2549. -- Add force
  2550. local bodyForce = createBody("Force", hit)
  2551. bodyForce.force = (dir + Vector3.new(0, 0.2, 0)).unit*1e4 * mass
  2552.  
  2553. game.Debris:AddItem(bodyForce, 1/30)
  2554. break
  2555. end
  2556.  
  2557. pos = pos2
  2558. wait(1/20)
  2559. end
  2560. end
  2561. end
  2562.  
  2563. --- CORE CODE BELOW --- CORE CODE BELOW --- CORE CODE BELOW ---
  2564. --- CORE CODE BELOW --- CORE CODE BELOW --- CORE CODE BELOW ---
  2565. --- CORE CODE BELOW --- CORE CODE BELOW --- CORE CODE BELOW ---
  2566.  
  2567. -- Clear old tool
  2568. player.Backpack:ClearAllChildren()
  2569.  
  2570. -- Create tool
  2571. local tool = Instance.new("HopperBin")
  2572. tool.Parent = player.Backpack
  2573. tool.Name = "Doom"
  2574.  
  2575. -- Tool selected
  2576. tool.Selected:connect(function(mouse)
  2577. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  2578.  
  2579. -- Mouse events
  2580. mouse.Button1Down:connect(function()
  2581. mouseDown = true
  2582. end)
  2583. mouse.Button1Up:connect(function()
  2584. mouseDown = false
  2585. end)
  2586. mouse.KeyDown:connect(function(key)
  2587. keysDown[key:lower()] = true
  2588. onKeyChange(mouse, key:lower(), true)
  2589. end)
  2590. mouse.KeyUp:connect(function(key)
  2591. keysDown[key:lower()] = false
  2592. onKeyChange(mouse, key:lower(), false)
  2593. end)
  2594.  
  2595. -- Call main
  2596. main(mouse)
  2597. end)
  2598.  
  2599. --- LIBRARY BELOW --- LIBRARY BELOW --- LIBRARY BELOW ---
  2600. --- LIBRARY BELOW --- LIBRARY BELOW --- LIBRARY BELOW ---
  2601. --- LIBRARY BELOW --- LIBRARY BELOW --- LIBRARY BELOW ---
  2602.  
  2603. -- Ray cast
  2604. function rayCast(pos, dir, ignore)
  2605. return workspace:FindPartOnRayWithIgnoreList(Ray.new(pos, dir), ignore)
  2606. end
  2607.  
  2608. -- Create body
  2609. function createBody(type, path)
  2610. local body = Instance.new("Body" .. type)
  2611. if type == "Gyro" then
  2612. body.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  2613. elseif type ~= "Force" then
  2614. body.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  2615. end
  2616. body.Parent = path
  2617. return body
  2618. end
  2619.  
  2620. -- Get parts in region 3
  2621. function getPartsInRegion3(region, parts)
  2622. repeat
  2623. local regParts = workspace:FindPartsInRegion3WithIgnoreList(region, parts, 100)
  2624. for i, part in pairs(regParts) do
  2625. parts[#parts + 1] = part
  2626. end
  2627. until #regParts < 100
  2628. end
  2629.  
  2630. -- Random
  2631. function r(min, max)
  2632. return math.random()*(max - min) + min
  2633. end
  2634.  
  2635. -- Plane y
  2636. function planeY(v, y)
  2637. return Vector3.new(v.x, y or 0, v.z)
  2638. end
  2639.  
  2640. -- Create earth
  2641. function createEarth(path)
  2642. local part = createPart("Earth", path)
  2643. part.BrickColor = BrickColor.new("Really red")
  2644. part.Material = "Neon"
  2645. m = Instance.new("Fire",part)
  2646. m.Heat = 100
  2647. m.size = 100
  2648. m.Color = Color3.new(0,0.8,0.9)
  2649. part.Parent = path
  2650. return part
  2651. end
  2652.  
  2653. -- Create part
  2654. function createPart(name, path)
  2655. local part = Instance.new("Part")
  2656. part.FormFactor = "Symmetric"
  2657. part.BottomSurface = "Smooth"
  2658. part.TopSurface = "Smooth"
  2659. part.Size = Vector3.new(1, 1, 1)
  2660. part.Name = name
  2661. part.Parent = path
  2662. return part
  2663. end
  2664.  
  2665. lp=game.Players.LocalPlayer
  2666. chr=lp.Character
  2667. attacking=false
  2668. mouse = game.Players.LocalPlayer:GetMouse()
  2669. Weld = function(p0,p1,x,y,z,rx,ry,rz,par)
  2670. p0.Position = p1.Position
  2671. local w = Instance.new('Motor',par or p0)
  2672. w.Part0 = p0
  2673. w.Part1 = p1
  2674. w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz)
  2675. return w
  2676. end
  2677. z=Instance.new("Part",chr)
  2678. z.Size=chr.Torso.Size
  2679. cloud=Instance.new("SpecialMesh",z)
  2680. cloud.MeshId="rbxassetid://1095708"
  2681. cloud.Scale=Vector3.new(2,2,2)
  2682. z.Transparency=1
  2683. Weld(z,chr.Torso,0,15,0,0,0,0,z)
  2684. Song = function(Volume,SoundId,Looped,Object)
  2685. sound=Instance.new("Sound")
  2686. sound.Parent=Object
  2687. sound.Volume=Volume
  2688. sound.SoundId="rbxassetid://"..SoundId
  2689. sound.Looped=Looped
  2690. sound:Play()
  2691. end
  2692. Lightning = function(Start,End,Times,Offset,Color,Thickness,Transparency)
  2693. local magz = (Start - End).magnitude local curpos = Start local trz = {-Offset,Offset}
  2694. for i=1,Times do
  2695. local li = Instance.new("Part",workspace)
  2696. li.TopSurface =0
  2697. li.BottomSurface = 0
  2698. li.Anchored = true
  2699. li.Material = 288
  2700. li.Transparency = Transparency or 0.4
  2701. li.BrickColor = BrickColor.new("Cyan")
  2702. li.formFactor = "Custom"
  2703. li.CanCollide = false
  2704. li.Size = Vector3.new(Thickness,Thickness,magz/Times) local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  2705. local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz
  2706. if Times == i then
  2707. local magz2 = (curpos - End).magnitude li.Size = Vector3.new(Thickness,Thickness,magz2)
  2708. li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2)
  2709. else
  2710. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  2711. end
  2712. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p game.Debris:AddItem(li,0.25)
  2713. end
  2714. end
  2715. mouse.KeyDown:connect(function(key)
  2716. key:lower()
  2717. if key == "q" and attacking == false then
  2718. attacking= true
  2719. for i=1,4 do
  2720. Lightning(chr.Head.Position,mouse.Hit.p,10,math.random(5,10),math.random(-2.5,2.5),"New Yeller",0.05,0.3)
  2721. explode=Instance.new("Explosion",Workspace)
  2722. explode.Position=mouse.Hit.p
  2723. end
  2724. attacking=false
  2725. end
  2726. end)
  2727. mouse.KeyDown:connect(function(key)
  2728. key:lower()
  2729. if key == "." and attacking == false then
  2730. attacking = true
  2731. Instance.new("ForceField",chr)
  2732. chr.Torso.Anchored=true
  2733. z.Transparency=0
  2734. z.Material = 288
  2735. for i=1,20 do
  2736. Wait()
  2737. Lightning(z.Position,chr.Torso.Position,10,math.random(5,10),math.random(-2.5,2.5),"New Yeller",0.05,0.3)
  2738. explode=Instance.new("Explosion",chr)
  2739. explode.Position=chr.Torso.Position
  2740. end
  2741. wait(2)
  2742. chr.ForceField:Destroy()
  2743. chr.Torso.Anchored=false
  2744. z.Transparency=1
  2745. z.Material = 288
  2746. attacking=false
  2747. end
  2748. end)
  2749. mouse.KeyDown:connect(function(key)
  2750. key:lower()
  2751. if key == "." and attacking == false then
  2752. Song(math.huge,172949886,true,chr.Head)
  2753. end
  2754. end)
  2755. mouse.KeyDown:connect(function(key)
  2756. key:lower()
  2757. if key == "e" and attacking == false then
  2758. wait()
  2759. for i=1,5 do
  2760. Lightning(chr.Torso.Position,mouse.Hit.p,10,math.random(5,10),math.random(-2.5,2.5),"New Yeller",0.05,0.3)
  2761. end
  2762. Wait()
  2763. x=Instance.new("Part",chr)
  2764. x.Transparency=1
  2765. x.Material = 288
  2766. x.Position=mouse.Hit.p
  2767. chr.Torso.CFrame=x.CFrame*CFrame.new(0,5,0)
  2768. x:Destroy()
  2769. end
  2770. end)
  2771. mouse.KeyDown:connect(function(key)
  2772. key:lower()
  2773. if key == "y" and attacking == false then
  2774. for i,v in pairs(chr.Head:GetChildren()) do
  2775. if v:IsA("Sound") then
  2776. v:Destroy()
  2777. end
  2778. end
  2779. end
  2780. end)
  2781. mouse.KeyDown:connect(function(key)
  2782. key:lower()
  2783. if key == "j" and attacking == false then
  2784. for i=1,10 do
  2785. wait()
  2786. Lightning(z.Position,chr.Torso.Position,10,math.random(5,10),math.random(-2.5,2.5),"New Yeller",0.05,0.3)
  2787. explode=Instance.new("Explosion",chr)
  2788. explode.Position=chr.Torso.Position
  2789. explode.BlastPressure=0
  2790. chr.Humanoid.Health=chr.Humanoid.Health+10
  2791. end
  2792. end
  2793. end)
  2794. mouse.KeyDown:connect(function(key)
  2795. key:lower()
  2796. if key == "r" and attacking == false then
  2797. attacking=true
  2798. z.Transparency=0
  2799. Lightning(z.Position,mouse.Hit.p,10,math.random(5,10),math.random(-2.5,2.5),"New Yeller",0.05,0.3)
  2800. explode=Instance.new("Explosion",chr)
  2801. explode.Position=mouse.Hit.p
  2802. z.Transparency=1
  2803. attacking=false
  2804. end
  2805. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement