Advertisement
MysteriousL

BendNowings4

Jul 22nd, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 58.91 KB | None | 0 0
  1. local p = game.Players.LocalPlayer
  2. local char = p.Character
  3. local mouse = p:GetMouse()
  4. local larm = char["Left Arm"]
  5. local rarm = char["Right Arm"]
  6. local lleg = char["Left Leg"]
  7. local rleg = char["Right Leg"]
  8. local hed = char.Head
  9. local torso = char.Torso
  10. local hum = char.Humanoid
  11. local cam = game.Workspace.CurrentCamera
  12. local root = char.HumanoidRootPart
  13.  
  14. local deb = false
  15. local shot = 0
  16. local debris=game:service"Debris"
  17. local l = game:GetService("Lighting")
  18. local rs = game:GetService("RunService").RenderStepped
  19. hum.MaxHealth = math.huge
  20. hum.Health = math.huge
  21. ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  22. math.randomseed(os.time())
  23. for i,v in pairs (hed:GetChildren()) do
  24. if v:IsA("Sound") then
  25. v:Destroy()
  26. end
  27. end
  28.  
  29.  
  30. Debounces = {
  31. }
  32. ypcall(function()
  33. char.Shirt:Destroy()
  34. char.Pants:Destroy()
  35. shirt = Instance.new("Shirt", char)
  36. shirt.Name = "Shirt"
  37. pants = Instance.new("Pants", char)
  38. pants.Name = "Pants"
  39. char.Shirt.ShirtTemplate = "rbxassetid://345371561"
  40. char.Pants.PantsTemplate = "rbxassetid://345372241"
  41. end)
  42. function lerp(a, b, t) -- Linear interpolation
  43. return a + (b - a)*t
  44. end
  45.  
  46. function slerp(a, b, t) --Spherical interpolation
  47. dot = a:Dot(b)
  48. if dot > 0.99999 or dot < -0.99999 then
  49. return t <= 0.5 and a or b
  50. else
  51. r = math.acos(dot)
  52. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  53. end
  54. end
  55.  
  56. function matrixInterpolate(a, b, t)
  57. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  58. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  59. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  60. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  61. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  62. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  63. local t = v1:Dot(v2)
  64. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  65. return CFrame.new()
  66. end
  67. return CFrame.new(
  68. v0.x, v0.y, v0.z,
  69. v1.x, v1.y, v1.z,
  70. v2.x, v2.y, v2.z,
  71. v3.x, v3.y, v3.z)
  72. end
  73. function Lerp(c1,c2,al)
  74. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  75. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  76. for i,v in pairs(com1) do
  77. com1[i] = v+(com2[i]-v)*al
  78. end
  79. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  80. end
  81.  
  82. local Transforming = true
  83. hum.WalkSpeed = 0
  84. local fx = Instance.new("Part",torso)
  85. fx.Anchored = true
  86. fx.Material = "Neon"
  87. fx.CanCollide = false
  88. fx.Locked = true
  89. fx.Transparency = 1
  90. fx.Material = "SmoothPlastic"
  91. fx.Size = Vector3.new(1,1,1)
  92. fx.TopSurface = "SmoothNoOutlines"
  93. fx.BottomSurface = "SmoothNoOutlines"
  94. fx.BrickColor = BrickColor.new("Really black")
  95. fxm = Instance.new("SpecialMesh",fx)
  96. fxm.MeshId = "http://www.roblox.com/asset/?id=9982590"
  97. fxm.Scale = Vector3.new(1,1,1)
  98. for i = 1, 20 do rs:wait()
  99. fx.Transparency = fx.Transparency - (1/20)
  100. fx.CFrame = torso.CFrame
  101. fxm.Scale = fxm.Scale + Vector3.new(0.5,0.5,0.5)
  102. rs:wait()
  103. end
  104.  
  105. GroundWave1 = function()
  106. local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  107. local Colors = {"Toothpaste", "Really black"}
  108. local wave = Instance.new("Part", torso)
  109. wave.BrickColor = BrickColor.new('Really red')
  110. wave.Anchored = true
  111. wave.CanCollide = false
  112. wave.Locked = true
  113. wave.Size = Vector3.new(1, 1, 1)
  114. wave.TopSurface = "Smooth"
  115. wave.BottomSurface = "Smooth"
  116. wave.Transparency = 0.35
  117. wave.CFrame = HandCF
  118. wm = Instance.new("SpecialMesh", wave)
  119. wm.MeshId = "rbxassetid://3270017"
  120. coroutine.wrap(function()
  121. for i = 1, 30, 1 do
  122. wm.Scale = Vector3.new(10 + i*20.4, 10 + i*20.4, 1)
  123. wave.Size = wm.Scale
  124. wave.CFrame = HandCF
  125. wave.Transparency = i/10
  126. wait()
  127. end
  128. wait()
  129. wave:Destroy()
  130. end)()
  131. end
  132.  
  133. GroundWave = function()
  134. if Transforming == true then
  135. local wave = Instance.new("Part", torso)
  136. wave.BrickColor = BrickColor.new("Really black")
  137. wave.Anchored = true
  138. wave.CanCollide = false
  139. wave.Locked = true
  140. wave.Size = Vector3.new(1, 1, 1)
  141. wave.TopSurface = "Smooth"
  142. wave.BottomSurface = "Smooth"
  143. wave.Transparency = 0.35
  144. wave.CFrame = fx.CFrame
  145. wm = Instance.new("SpecialMesh", wave)
  146. wm.MeshType = "Sphere"
  147. wm.Scale = Vector3.new(1,1,1)
  148. coroutine.wrap(function()
  149. for i = 1, 18, 1 do
  150. wm.Scale = Vector3.new(8 + i*8, 8 + i*8, 8 + i*8)
  151. --wave.Size = wm.Scale
  152. wave.CFrame = fx.CFrame
  153. wave.Transparency = i/001
  154. wait()
  155. end
  156. wait()
  157. wave:Destroy()
  158. end)()
  159. elseif Transforming == false then
  160. wait()
  161. end
  162. end
  163.  
  164. for i = 1, 100 do rs:wait()
  165. fx.CFrame = torso.CFrame
  166. end
  167.  
  168. Spawn(function()
  169. while wait(1) do
  170. GroundWave()
  171. end
  172. end)
  173.  
  174. wait(4)
  175.  
  176. Transforming = false
  177.  
  178. for i = 1, 20 do rs:wait()
  179. fx.Transparency = fx.Transparency + (1/20)
  180. fx.CFrame = torso.CFrame
  181. fxm.Scale = fxm.Scale + Vector3.new(0.5,0.5,0.5)
  182. rs:wait()
  183. end
  184.  
  185. local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  186. local wave = Instance.new("Part", torso)
  187. wave.BrickColor = BrickColor.new("Institutional white")
  188. wave.Anchored = true
  189. wave.CanCollide = false
  190. wave.Locked = true
  191. wave.Size = Vector3.new(1, 1, 1)
  192. wave.TopSurface = "Smooth"
  193. wave.BottomSurface = "Smooth"
  194. wave.Transparency = 0.35
  195. wave.CFrame = HandCF
  196. wm = Instance.new("SpecialMesh", wave)
  197. wm.MeshId = "rbxassetid://3270017"
  198. coroutine.wrap(function()
  199. for i = 1, 14, 1 do
  200. wm.Scale = Vector3.new(10 + i*10.1, 10 + i*10.1, 10)
  201. wave.Size = wm.Scale
  202. wave.CFrame = HandCF
  203. wave.Transparency = i/14
  204. wait()
  205. end
  206. wait()
  207. wave:Destroy()
  208. end)()
  209. hum.WalkSpeed = 16
  210. ----------------------------------------------------
  211. Blast = function()
  212. local Colors = {"Toothpaste", "Really black"}
  213. local wave = Instance.new("Part", torso)
  214. wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
  215. wave.Anchored = true
  216. wave.CanCollide = false
  217. wave.Locked = true
  218. wave.Size = Vector3.new(1, 1, 1)
  219. wave.TopSurface = "Smooth"
  220. wave.BottomSurface = "Smooth"
  221. wave.Transparency = 0.35
  222. wave.CFrame = rarm.CFrame
  223. wm = Instance.new("SpecialMesh", wave)
  224. wm.MeshType = "Sphere"
  225. wm.Scale = Vector3.new(1,1,1)
  226. z = Instance.new("Sound",wave)
  227. z.SoundId = "rbxassetid://237035051"
  228. z.Volume = 1
  229. z.Pitch = .9
  230. z:Play()
  231. coroutine.wrap(function()
  232. for i = 1, 30, 1 do
  233. wave.Size = Vector3.new(1 + i*4, 1 + i*4, 1 + i*4)
  234. --wave.Size = wm.Scale
  235. wave.CFrame = rarm.CFrame
  236. wave.Transparency = (1/14)
  237. rs:wait()
  238. end
  239. rs:wait()
  240. wave:Destroy()
  241. z:Destroy()
  242. end)()
  243. end
  244.  
  245. rarm.Touched:connect(function(ht)
  246. hit = ht.Parent
  247. if ht and hit:IsA("Model") then
  248. if hit:FindFirstChild("Humanoid") then
  249. if hit.Name ~= p.Name then
  250. if Debounces.RPunch == true and Debounces.RPunched == false then
  251. Debounces.RPunched = true
  252. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8))
  253. if Debounces.ks==true then
  254. z = Instance.new("Sound",hed)
  255. z.SoundId = "rbxassetid://169380525"
  256. z.Pitch = ptz[math.random(1,#ptz)]
  257. z.Volume = 1
  258. z:Play()
  259. end
  260. wait(.2)
  261. Debounces.RPunched = false
  262. end
  263. end
  264. end
  265. elseif ht and hit:IsA("Hat") then
  266. if hit.Parent.Name ~= p.Name then
  267. if hit.Parent:FindFirstChild("Humanoid") then
  268. if Debounces.RPunch == true and Debounces.RPunched == false then
  269. Debounces.RPunched = true
  270. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8))
  271. if Debounces.ks==true then
  272. z = Instance.new("Sound",hed)
  273. z.SoundId = "rbxassetid://169380525"
  274. z.Pitch = ptz[math.random(1,#ptz)]
  275. z.Volume = 1
  276. z:Play()
  277. end
  278. wait(.2)
  279. Debounces.RPunched = false
  280. end
  281. end
  282. end
  283. end
  284. end)
  285. larm.Touched:connect(function(ht)
  286. hit = ht.Parent
  287. if ht and hit:IsA("Model") then
  288. if hit:FindFirstChild("Humanoid") then
  289. if hit.Name ~= p.Name then
  290. if Debounces.LPunch == true and Debounces.LPunched == false then
  291. Debounces.LPunched = true
  292. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8))
  293. if Debounces.ks2==true then
  294. z = Instance.new("Sound",hed)
  295. z.SoundId = "rbxassetid://169380525"
  296. z.Pitch = ptz[math.random(1,#ptz)]
  297. z.Volume = 1
  298. z:Play()
  299. end
  300. wait(.2)
  301. Debounces.LPunched = false
  302. end
  303. end
  304. end
  305. elseif ht and hit:IsA("Hat") then
  306. if hit.Parent.Name ~= p.Name then
  307. if hit.Parent:FindFirstChild("Humanoid") then
  308. if Debounces.LPunch == true and Debounces.LPunched == false then
  309. Debounces.LPunched = true
  310. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8))
  311. if Debounces.ks2==true then
  312. z = Instance.new("Sound",hed)
  313. z.SoundId = "rbxassetid://169380525"
  314. z.Pitch = ptz[math.random(1,#ptz)]
  315. z.Volume = 1
  316. z:Play()
  317. end
  318. wait(.2)
  319. Debounces.LPunched = false
  320. end
  321. end
  322. end
  323. end
  324. end)
  325. ----------------------------------------------------
  326. mod4 = Instance.new("Model",char)
  327.  
  328. ptez = {0.7, 0.8, 0.9, 1}
  329.  
  330. function FindNearestTorso(Position,Distance,SinglePlayer)
  331. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  332. local List = {}
  333. for i,v in pairs(workspace:GetChildren())do
  334. if v:IsA("Model")then
  335. if v:findFirstChild("Torso")then
  336. if v ~= char then
  337. if(v.Torso.Position -Position).magnitude <= Distance then
  338. table.insert(List,v)
  339. end
  340. end
  341. end
  342. end
  343. end
  344. return List
  345. end
  346.  
  347. function Punch()
  348. part=Instance.new('Part',mod4)
  349. part.Anchored=true
  350. part.CanCollide=false
  351. part.FormFactor='Custom'
  352. part.Size=Vector3.new(.2,.2,.2)
  353. part.CFrame=root.CFrame*CFrame.new(0,1.5,-2.4)*CFrame.Angles(math.rad(0),0,0)
  354. part.Transparency=.7
  355. part.BrickColor=BrickColor.new('Toothpaste')
  356. mesh=Instance.new('SpecialMesh',part)
  357. mesh.MeshId='http://www.roblox.com/asset/?id=3270017'
  358. mesh.Scale=Vector3.new(3,3,3)
  359. part2=Instance.new('Part',mod4)
  360. part2.Anchored=true
  361. part2.CanCollide=false
  362. part2.FormFactor='Custom'
  363. part2.Size=Vector3.new(.2,.2,.2)
  364. part2.CFrame=root.CFrame*CFrame.new(0,1.5,-2.4)*CFrame.Angles(math.rad(90),0,0)
  365. part2.Transparency=.7
  366. part2.BrickColor=BrickColor.new('Toothpaste')
  367. mesh2=Instance.new('SpecialMesh',part2)
  368. mesh2.MeshId='http://www.roblox.com/asset/?id=20329976'
  369. mesh2.Scale=Vector3.new(3,1.5,3)
  370. for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do
  371. if v:FindFirstChild('Humanoid') then
  372. v.Humanoid:TakeDamage(math.random(2,6))
  373. end
  374. end
  375. coroutine.resume(coroutine.create(function()
  376. for i=0,0.62,0.4 do
  377. wait()
  378. part.CFrame=part.CFrame
  379. part.Transparency=i
  380. mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4)
  381. part2.CFrame=part2.CFrame
  382. part2.Transparency=i
  383. mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4)
  384. end
  385. part.Parent=nil
  386. part2.Parent=nil
  387. end))
  388. end
  389.  
  390. rarm.Touched:connect(function(ht)
  391. hit = ht.Parent
  392. if ht and hit:IsA("Model") then
  393. if hit:FindFirstChild("Humanoid") then
  394. if hit.Name ~= p.Name then
  395. if Debounces.RPunch == true and Debounces.RPunched == false then
  396. Debounces.RPunched = true
  397. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8))
  398. if Debounces.ks==true then
  399. z = Instance.new("Sound",hed)
  400. z.SoundId = "rbxassetid://169380525"
  401. z.Pitch = ptz[math.random(1,#ptz)]
  402. z.Volume = 1
  403. z:Play()
  404. end
  405. wait(.2)
  406. Debounces.RPunched = false
  407. end
  408. end
  409. end
  410. elseif ht and hit:IsA("Hat") then
  411. if hit.Parent.Name ~= p.Name then
  412. if hit.Parent:FindFirstChild("Humanoid") then
  413. if Debounces.RPunch == true and Debounces.RPunched == false then
  414. Debounces.RPunched = true
  415. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8))
  416. if Debounces.ks==true then
  417. z = Instance.new("Sound",hed)
  418. z.SoundId = "rbxassetid://169380525"
  419. z.Pitch = ptz[math.random(1,#ptz)]
  420. z.Volume = 1
  421. z:Play()
  422. end
  423. wait(.2)
  424. Debounces.RPunched = false
  425. end
  426. end
  427. end
  428. end
  429. end)
  430. larm.Touched:connect(function(ht)
  431. hit = ht.Parent
  432. if ht and hit:IsA("Model") then
  433. if hit:FindFirstChild("Humanoid") then
  434. if hit.Name ~= p.Name then
  435. if Debounces.LPunch == true and Debounces.LPunched == false then
  436. Debounces.LPunched = true
  437. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8))
  438. if Debounces.ks2==true then
  439. z = Instance.new("Sound",hed)
  440. z.SoundId = "rbxassetid://169380525"
  441. z.Pitch = ptz[math.random(1,#ptz)]
  442. z.Volume = 1
  443. z:Play()
  444. end
  445. wait(.2)
  446. Debounces.LPunched = false
  447. end
  448. end
  449. end
  450. elseif ht and hit:IsA("Hat") then
  451. if hit.Parent.Name ~= p.Name then
  452. if hit.Parent:FindFirstChild("Humanoid") then
  453. if Debounces.LPunch == true and Debounces.LPunched == false then
  454. Debounces.LPunched = true
  455. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8))
  456. if Debounces.ks2==true then
  457. z = Instance.new("Sound",hed)
  458. z.SoundId = "rbxassetid://169380525"
  459. z.Pitch = ptz[math.random(1,#ptz)]
  460. z.Volume = 1
  461. z:Play()
  462. end
  463. wait(.2)
  464. Debounces.LPunched = false
  465. end
  466. end
  467. end
  468. end
  469. end)
  470.  
  471. local player = game.Players.LocalPlayer
  472. local pchar = player.Character
  473. local mouse = player:GetMouse()
  474. local cam = workspace.CurrentCamera
  475.  
  476. local rad = math.rad
  477.  
  478. local keysDown = {}
  479. local flySpeed = 0
  480. local MAX_FLY_SPEED = 150
  481.  
  482. local canFly = false
  483. local flyToggled = false
  484.  
  485. local forward, side = 0, 0
  486. local lastForward, lastSide = 0, 0
  487.  
  488. local floatBP = Instance.new("BodyPosition")
  489. floatBP.maxForce = Vector3.new(0, math.huge, 0)
  490. local flyBV = Instance.new("BodyVelocity")
  491. flyBV.maxForce = Vector3.new(9e9, 9e9, 9e9)
  492. local turnBG = Instance.new("BodyGyro")
  493. turnBG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  494.  
  495. mouse.KeyDown:connect(function(key)
  496. keysDown[key] = true
  497.  
  498. if key == "f" then
  499. flyToggled = not flyToggled
  500.  
  501. if not flyToggled then
  502. stanceToggle = "Normal"
  503. floatBP.Parent = nil
  504. flyBV.Parent = nil
  505. turnBG.Parent = nil
  506. root.Velocity = Vector3.new()
  507. pchar.Humanoid.PlatformStand = false
  508. end
  509. end
  510.  
  511. end)
  512. mouse.KeyUp:connect(function(key)
  513. keysDown[key] = nil
  514. end)
  515.  
  516. local function updateFly()
  517.  
  518. if not flyToggled then return end
  519.  
  520. lastForward = forward
  521. lastSide = side
  522.  
  523. forward = 0
  524. side = 0
  525.  
  526. if keysDown.w then
  527. forward = forward + 1
  528. end
  529. if keysDown.s then
  530. forward = forward - 1
  531. end
  532. if keysDown.a then
  533. side = side - 1
  534. end
  535. if keysDown.d then
  536. side = side + 1
  537. end
  538.  
  539. canFly = (forward ~= 0 or side ~= 0)
  540.  
  541. if canFly then
  542. stanceToggle = "Floating"
  543. turnBG.Parent = root
  544. floatBP.Parent = nil
  545. flyBV.Parent = root
  546.  
  547. flySpeed = flySpeed + 1 + (flySpeed / MAX_FLY_SPEED)
  548. if flySpeed > MAX_FLY_SPEED then flySpeed = MAX_FLY_SPEED end
  549. else
  550. floatBP.position = root.Position
  551. floatBP.Parent = root
  552.  
  553. flySpeed = flySpeed - 1
  554. if flySpeed < 0 then flySpeed = 0 end
  555. end
  556.  
  557. local camCF = cam.CoordinateFrame
  558. local in_forward = canFly and forward or lastForward
  559. local in_side = canFly and side or lastSide
  560.  
  561. flyBV.velocity = ((camCF.lookVector * in_forward) + (camCF * CFrame.new(in_side,
  562. in_forward * 0.2, 0).p) - camCF.p) * flySpeed
  563.  
  564. turnBG.cframe = camCF * CFrame.Angles(-rad(forward * (flySpeed / MAX_FLY_SPEED)), 0, 0)
  565. end
  566.  
  567. game:service'RunService'.RenderStepped:connect(function()
  568. if flyToggled then
  569. pchar.Humanoid.PlatformStand = true
  570. end
  571. updateFly()
  572. end)
  573.  
  574. mouse.KeyDown:connect(function(key)
  575. if key == "q" then
  576. if Debounces.CanAttack == true then
  577. Debounces.CanAttack = false
  578. Debounces.NoIdl = true
  579. Debounces.on = true
  580. function FindNearestTorso(Position,Distance,SinglePlayer)
  581. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  582. local List = {}
  583. for i,v in pairs(workspace:GetChildren())do
  584. if v:IsA("Model")then
  585. if v:findFirstChild("Torso")then
  586. if v ~= char then
  587. if(v.Torso.Position -Position).magnitude <= Distance then
  588. table.insert(List,v)
  589. end
  590. end
  591. end
  592. end
  593. end
  594. return List
  595. end
  596. z = Instance.new("Sound",hed)
  597. z.SoundId = "rbxassetid://232213955"
  598. z.Pitch = 1
  599. z.Volume = 1
  600. wait(0.2)
  601. z:Play()
  602. sp = Instance.new("Part",rarm)
  603. sp.Anchored = true
  604. sp.CanCollide = false
  605. sp.Locked = true
  606. sp.Transparency = 0
  607. sp.Material = "Neon"
  608. sp.Size = Vector3.new(1,1,1)
  609. sp.TopSurface = "SmoothNoOutlines"
  610. sp.BottomSurface = "SmoothNoOutlines"
  611. sp.BrickColor = BrickColor.new("Toothpaste")
  612. spm = Instance.new("SpecialMesh",sp)
  613. spm.MeshId = "http://www.roblox.com/asset/?id=9756362"
  614. spm.Scale = Vector3.new(21,21,21)
  615. sp2 = Instance.new("Part", rarm)
  616. sp2.Name = "Energy"
  617. sp2.BrickColor = BrickColor.new("Toothpaste")
  618. sp2.Size = Vector3.new(1, 1, 1)
  619. sp2.Shape = "Ball"
  620. sp2.CanCollide = false
  621. sp2.Anchored = true
  622. sp2.Locked = true
  623. sp2.TopSurface = 0
  624. sp2.BottomSurface = 0
  625. sp2.Transparency = 1
  626. spm2 = Instance.new("SpecialMesh",sp2)
  627. spm2.MeshId = "rbxassetid://9756362"
  628. spm2.Scale = Vector3.new(2,2,2)
  629. for i = 1, 20 do
  630. spm.Scale = spm.Scale - Vector3.new(1,1,1)
  631. sp.CFrame = root.CFrame*CFrame.new(0,1,-2)
  632. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(-6),math.rad(8)), 0.4)
  633. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.4)
  634. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4)
  635. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4)
  636. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4)
  637. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4)
  638. if Debounces.on == false then break end
  639. rs:wait()
  640. end
  641. for i = 1, 100, 20 do rs:wait()
  642. sp.CFrame = root.CFrame*CFrame.new(0,1,-2)
  643. end
  644. for i = 1, 20 do
  645. sp.CFrame = root.CFrame*CFrame.new(0,1,-2)
  646. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(8)), 0.4)
  647. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.4)
  648. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(10),math.rad(-30),0), 0.4)
  649. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), math.rad(0)), 0.4)
  650. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4)
  651. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4)
  652. if Debounces.on == false then break end
  653. rs:wait()
  654. end
  655. sp.Transparency = 1
  656. for i = 1, 20 do
  657. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(8)), 0.4)
  658. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.62,-.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.4)
  659. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.4)
  660. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(-50), math.rad(0)), 0.4)
  661. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4)
  662. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4)
  663. if Debounces.on == false then break end
  664. rs:wait()
  665. end
  666. wait(1)
  667. sp.Transparency = 0
  668. sp2.Transparency = 0.84
  669. for i = 1, 20 do
  670. --spm.Scale = spm.Scale - Vector3.new(1,1,1)
  671. sp.CFrame = rarm.CFrame*CFrame.new(0,-1,0)
  672. sp2.CFrame = sp.CFrame * CFrame.new(0,0,0) * CFrame.Angles(math.rad(-i), math.rad(-i), math.rad(i))
  673. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(110),math.rad(-6),math.rad(140)), 0.4)
  674. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(80),math.rad(6),math.rad(-40)), 0.2)
  675. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(30),0), 0.2)
  676. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3)
  677. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(20), 0, math.rad(-14)), 0.2)
  678. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-16), 0, math.rad(8)), 0.2)
  679. if Debounces.on == false then break end
  680. rs:wait()
  681. end
  682. for i = 1, 2880, 50 do
  683. rs:wait()
  684. sp.CFrame = rarm.CFrame*CFrame.new(0,-1,0)
  685. sp2.CFrame = rarm.CFrame * CFrame.new(0,-1,0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10))
  686. rs:wait()
  687. end
  688. sp:Destroy()
  689. sp2:Destroy()
  690. local X = Instance.new("Part",char)
  691. local O = Instance.new("ObjectValue",X)
  692. O.Name = "creator"
  693. X.Locked = true
  694. X.Name = "Shell"
  695. X.Anchored = false
  696. X.CanCollide = false
  697. X.Transparency = 0
  698. X.Reflectance = 0
  699. X.BottomSurface = 0
  700. X.TopSurface = 0
  701. X.Shape = 0
  702. local V = Instance.new("ObjectValue",X)
  703. V.Value = char
  704. V.Name = "creator"
  705. X.BrickColor = BrickColor.new("Toothpaste")
  706. X.Size = Vector3.new(2,2,2)
  707. X.Material = "Neon"
  708. local Z = Instance.new("SpecialMesh",X)
  709. Z.MeshId = "http://www.roblox.com/asset/?id=9982590"
  710. Z.Scale = Vector3.new(0.5,0.5,1)
  711. X.CFrame = rarm.CFrame*CFrame.new(-3,0,0)
  712. local bv = Instance.new("BodyVelocity",X)
  713. bv.maxForce = Vector3.new(99999,99999,99999)
  714. X.CFrame = CFrame.new(X.Position,mouse.Hit.p)
  715. bv.velocity = X.CFrame.lookVector*500
  716.  
  717. Explode = X.Touched:connect(function(hit)
  718. if hit ~= char and hit.Name ~= "Shell" then
  719. local cf = X.CFrame
  720. bv:Destroy()
  721. X.Anchored = true
  722. Z:Remove()
  723. Explode:disconnect()
  724. X.Size = Vector3.new(3,3,3)
  725. X.Touched:connect(function(hit) end)
  726. X.CanCollide = false
  727. local part3 = Instance.new("Part", rarm)
  728. part3.Anchored=true
  729. part3.CanCollide=false
  730. part3.Locked = true
  731. part3.TopSurface = "SmoothNoOutlines"
  732. part3.BottomSurface = "SmoothNoOutlines"
  733. part3.FormFactor='Custom'
  734. part3.Size=Vector3.new(1,1, 1)
  735. part3.CFrame=X.CFrame
  736. part3.Transparency=0
  737. part3.BrickColor=BrickColor.new("Toothpaste")
  738. local mesh3 = Instance.new("SpecialMesh",part3)
  739. mesh3.MeshId = "http://www.roblox.com/asset/?id=9756362"
  740. mesh3.Scale = Vector3.new(1,1,1)
  741. --debris:AddItem(X,8)
  742. local part4 = Instance.new("Part", rarm)
  743. part4.Material = "Neon"
  744. part4.Anchored=true
  745. part4.CanCollide=false
  746. part4.Locked = true
  747. part4.TopSurface = "SmoothNoOutlines"
  748. part4.BottomSurface = "SmoothNoOutlines"
  749. part4.FormFactor='Custom'
  750. part4.Size=Vector3.new(1,1, 1)
  751. part4.CFrame=X.CFrame
  752. part4.Transparency=0
  753. part4.BrickColor=BrickColor.new("Hot pink")
  754. local mesh4 = Instance.new("SpecialMesh",part4)
  755. mesh4.MeshId = "http://www.roblox.com/asset/?id=9756362"
  756. mesh4.Scale = Vector3.new(.5,.5,.5)
  757. local part7 = Instance.new("Part", rarm)
  758. part7.Material = "Neon"
  759. part7.Anchored=true
  760. part7.CanCollide=false
  761. part7.Locked = true
  762. part7.TopSurface = "SmoothNoOutlines"
  763. part7.BottomSurface = "SmoothNoOutlines"
  764. part7.FormFactor='Custom'
  765. part7.Size=Vector3.new(1,1, 1)
  766. part7.CFrame=X.CFrame
  767. part7.Transparency=0
  768. part7.BrickColor=BrickColor.new("Really black")
  769. local mesh7 = Instance.new("SpecialMesh",part7)
  770. mesh7.MeshId = "http://www.roblox.com/asset/?id=9756362"
  771. mesh7.Scale = Vector3.new(0.1, 0.1, 0.1)
  772. --[[X.Touched:connect(function(ht)
  773. hit = ht.Parent
  774. if ht and hit:IsA("Model") then
  775. if hit:FindFirstChild("Humanoid") then
  776. if hit.Name ~= p.Name then
  777. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6))
  778. wait(.3)
  779. end
  780. end
  781. elseif ht and hit:IsA("Hat") then
  782. if hit.Parent.Name ~= p.Name then
  783. if hit.Parent:FindFirstChild("Humanoid") then
  784. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6))
  785. wait(.3)
  786. end
  787. end
  788. end
  789. end)
  790. part3.Touched:connect(function(ht)
  791. hit = ht.Parent
  792. if ht and hit:IsA("Model") then
  793. if hit:FindFirstChild("Humanoid") then
  794. if hit.Name ~= p.Name then
  795. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6))
  796. wait(.3)
  797. end
  798. end
  799. elseif ht and hit:IsA("Hat") then
  800. if hit.Parent.Name ~= p.Name then
  801. if hit.Parent:FindFirstChild("Humanoid") then
  802. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6))
  803. wait(.3)
  804. end
  805. end
  806. end
  807. end)]]--
  808. for i,v in pairs(FindNearestTorso(X.CFrame.p,140))do
  809. if v:FindFirstChild('Humanoid') then
  810. v.Humanoid:TakeDamage(math.random(60,90))
  811. v.Humanoid.PlatformStand = true
  812. v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
  813. end
  814. end
  815.  
  816. local acos = math.acos
  817. local sqrt = math.sqrt
  818. local Vec3 = Vector3.new
  819. local fromAxisAngle = CFrame.fromAxisAngle
  820.  
  821. local function toAxisAngle(CFr)
  822. local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
  823. local Angle = math.acos((R00+R11+R22-1)/2)
  824. local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  825. A = A == 0 and 0.00001 or A
  826. local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  827. B = B == 0 and 0.00001 or B
  828. local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  829. C = C == 0 and 0.00001 or C
  830. local x = (R21-R12)/sqrt(A)
  831. local y = (R02-R20)/sqrt(B)
  832. local z = (R10-R01)/sqrt(C)
  833. return Vec3(x,y,z),Angle
  834. end
  835.  
  836. function ApplyTrig(Num,Func)
  837. local Min,Max = Func(0),Func(1)
  838. local i = Func(Num)
  839. return (i-Min)/(Max-Min)
  840. end
  841.  
  842. function LerpCFrame(CFrame1,CFrame2,Num)
  843. local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
  844. return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
  845. end
  846.  
  847. function Crater(Torso,Radius)
  848. Spawn(function()
  849. local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10)
  850. local Ignore = {}
  851. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  852. if v.Character ~= nil then
  853. Ignore[#Ignore+1] = v.Character
  854. end
  855. end
  856. local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray,Ignore)
  857. if Hit == nil then return end
  858. local Parts = {}
  859. for i = 1,360,10 do
  860. local P = Instance.new("Part",Torso.Parent)
  861. P.Anchored = true
  862. P.FormFactor = "Custom"
  863. P.BrickColor = Hit.BrickColor
  864. P.Material = Hit.Material
  865. P.TopSurface = "Smooth"
  866. P.BottomSurface = "Smooth"
  867. P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100)
  868. P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,7,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50)))
  869. Parts[#Parts+1] = {P,P.CFrame,((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,1,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius)*CFrame.Angles(math.rad(math.random(-50,-20)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15))),P.Size}
  870. if math.random(0,5) == 0 then -- rubble
  871. local P = Instance.new("Part",Torso.Parent)
  872. P.Anchored = true
  873. P.FormFactor = "Custom"
  874. P.BrickColor = Hit.BrickColor
  875. P.Material = Hit.Material
  876. P.TopSurface = "Smooth"
  877. P.BottomSurface = "Smooth"
  878. P.Size = Vector3.new(2,2,2)*(math.random(80,100)/100)
  879. P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,2.5,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50)))
  880. Parts[#Parts+1] = {P,P.CFrame,(CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius-8)*CFrame.Angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90))),P.Size}
  881. end
  882. end
  883. for i = 0,1,0.05 do
  884. for i2,v in pairs(Parts) do
  885. v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos))
  886. end
  887. wait(0.02)
  888. end
  889. for i,v in pairs(Parts) do
  890. if v[1].Size.X > 2.1 then
  891. v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0)
  892. end
  893. v[1].Anchored = false
  894. end
  895. for i = 0,1,0.05 do
  896. for i2,v in pairs(Parts) do
  897. v[1].Transparency = i
  898. if i == 1 then
  899. v[1]:Destroy()
  900. elseif i >= 0.25 then
  901. v[1].CanCollide = false
  902. end
  903. end
  904. wait(0.02)
  905. end
  906. Parts = nil
  907. end)
  908. end
  909.  
  910. ROW = function(out, trans, s, wt, t, ang, plus)
  911. for i = 1, 360, 360/t do
  912. local c = Instance.new("Part", game.Workspace)
  913. c.FormFactor = 3
  914. c.TopSurface = 0
  915. c.BottomSurface = 0
  916. c.Size = s
  917. c.Anchored = true
  918. c.CanCollide = wt
  919. c.Material=workspace.Base.Material
  920. c.Transparency = trans
  921. c.BrickColor = workspace.Base.BrickColor
  922. c.CFrame = CFrame.new(X.CFrame.x,0,X.CFrame.z) * CFrame.Angles(0, math.rad(i + plus), 0) * CFrame.new(0, 0, out) * ang
  923. c.Locked=true
  924. game.Debris:AddItem(c,15)
  925. end
  926. end
  927.  
  928. Part = function(x,y,z,color,tr,cc,an,parent)
  929. local p = Instance.new('Part',parent or Weapon)
  930. p.formFactor = 'Custom'
  931. p.Size = Vector3.new(x,y,z)
  932. p.BrickColor = BrickColor.new(color)
  933. p.CanCollide = cc
  934. p.Transparency = tr
  935. p.Anchored = an
  936. p.TopSurface,p.BottomSurface = 0,0
  937. p.Locked=true
  938. p:BreakJoints()
  939. return p end
  940.  
  941. Mesh = function(par,num,x,y,z)
  942. local msh = _
  943. if num == 1 then msh = Instance.new("CylinderMesh",par)
  944. elseif num == 2 then msh = Instance.new("SpecialMesh",par) msh.MeshType = 3
  945. elseif num == 3 then msh = Instance.new("BlockMesh",par)
  946. elseif num == 4 then msh = Instance.new("SpecialMesh",par) msh.MeshType = "Torso"
  947. elseif type(num) == 'string' then msh = Instance.new("SpecialMesh",par) msh.MeshId = num
  948. end msh.Scale = Vector3.new(x,y,z)
  949. return msh end
  950.  
  951. function explosion(col1,col2,cfr,sz,rng,dmg)
  952. local a= Part(1,1,1,col1,.5,false,true,workspace)
  953. local a2= Part(1,1,1,col2,.5,false,true,workspace)
  954. local a3= Part(1,1,1,col2,.5,false,true,workspace)
  955. v1,v2,v3=sz.x,sz.y,sz.z
  956. local m= Mesh(a,'http://www.roblox.com/asset/?id=1185246',v1,v2,v3)
  957. local m2= Mesh(a2,3,v1/3,v2/3,v3/3)
  958. local m3= Mesh(a3,3,v1/3,v2/3,v3/3)
  959. a.CFrame=cfr
  960. a2.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random())
  961. a3.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random())
  962.  
  963. Spawn(function()
  964. while wait() do
  965. if a.Transparency >= 1 then a:Destroy() a2:Destroy() a3:Destroy() break end
  966. m.Scale=m.Scale+Vector3.new(.1,0.1,0.1)
  967. m2.Scale=m2.Scale+Vector3.new(.1,0.1,0.1)
  968. m3.Scale=m3.Scale+Vector3.new(.1,0.1,0.1)
  969. a.Transparency=a.Transparency+0.05
  970. a2.Transparency=a2.Transparency+0.05
  971. a3.Transparency=a3.Transparency+0.05
  972. end
  973. end)
  974. end
  975.  
  976. Crater(X,20)
  977. ROW(12, 0, Vector3.new(34.5, 30, 3), true, 8, CFrame.Angles(math.rad(math.random (30,60)), 0, math.rad (math.random(-30,30))), 0)
  978. z = Instance.new("Sound",X)
  979. z.SoundId = "rbxassetid://231917744"
  980. z.Pitch = .5
  981. z.Volume = 10
  982. z1 = Instance.new("Sound",X)
  983. z1.SoundId = "rbxassetid://231917744"
  984. z1.Pitch = .5
  985. z1.Volume = 10
  986. z2 = Instance.new("Sound",X)
  987. z2.SoundId = "rbxassetid://231917744"
  988. z2.Pitch = .5
  989. z2.Volume = 10
  990. z3 = Instance.new("Sound",X)
  991. z3.SoundId = "rbxassetid://245537790"
  992. z3.Pitch = .7
  993. z3.Volume = 1
  994. z4 = Instance.new("Sound",X)
  995. z4.SoundId = "rbxassetid://245537790"
  996. z4.Pitch = .7
  997. z4.Volume = 1
  998. wait(0.1)
  999. z:Play()
  1000. z1:Play()
  1001. z2:Play()
  1002. z3:Play()
  1003. z4:Play()
  1004.  
  1005. local part=Instance.new('Part',rarm)
  1006. part.Anchored=true
  1007. part.CanCollide=false
  1008. part.Locked = true
  1009. part.FormFactor='Custom'
  1010. part.Size=Vector3.new(1,1,1)
  1011. part.CFrame=X.CFrame*CFrame.new(0,0,0)
  1012. part.Transparency=0
  1013. part.BrickColor=BrickColor.new('Really black')
  1014. local mesh=Instance.new('SpecialMesh',part)
  1015. mesh.MeshId='http://www.roblox.com/asset/?id=20329976'
  1016. mesh.Scale=Vector3.new(2,2,2)
  1017. local part2=part:clone()
  1018. part2.Parent = rarm
  1019. part2.BrickColor=BrickColor.new("Toothpaste")
  1020. local part5=part:clone()
  1021. part5.Parent = rarm
  1022. part5.BrickColor=BrickColor.new("Toothpaste")
  1023. local part6=part:clone()
  1024. part6.Parent = rarm
  1025. part6.BrickColor=BrickColor.new("Black")
  1026. local mesh2=mesh:clone()
  1027. mesh2.Parent=part2
  1028. mesh2.Scale=Vector3.new(3, 3, 3)
  1029. local mesh5=mesh:clone()
  1030. mesh5.Parent=part5
  1031. mesh5.Scale=Vector3.new(3, 3, 3)
  1032. local mesh6=mesh:clone()
  1033. mesh6.Parent=part6
  1034. mesh6.Scale=Vector3.new(3, 3, 3)
  1035. local blast = Instance.new("Part", rarm)
  1036. blast.BrickColor = BrickColor.new("Really black")
  1037. blast.Anchored = true
  1038. blast.CanCollide = false
  1039. blast.Locked = true
  1040. blast.Size = Vector3.new(1, 1, 1)
  1041. blast.TopSurface = "Smooth"
  1042. blast.BottomSurface = "Smooth"
  1043. blast.Transparency = 0
  1044. blast.CFrame = HandCF
  1045. local bm = Instance.new("SpecialMesh", blast)
  1046. bm.Scale = Vector3.new(5,1,5)
  1047. bm.MeshId = "rbxassetid://156292343"
  1048. local blast2 = Instance.new("Part", rarm)
  1049. blast2.BrickColor = BrickColor.new("Really black")
  1050. blast2.Anchored = true
  1051. blast2.CanCollide = false
  1052. blast2.Locked = true
  1053. blast2.Size = Vector3.new(1, 1, 1)
  1054. blast2.TopSurface = "Smooth"
  1055. blast2.BottomSurface = "Smooth"
  1056. blast2.Transparency = 0
  1057. blast2.CFrame = HandCF
  1058. local bm2 = Instance.new("SpecialMesh", blast2)
  1059. bm2.Scale = Vector3.new(3,1,3)
  1060. bm2.MeshId = "rbxassetid://156292343"
  1061. local blast3 = Instance.new("Part", rarm)
  1062. blast3.BrickColor = BrickColor.new("Really black")
  1063. blast3.Anchored = true
  1064. blast3.CanCollide = false
  1065. blast3.Locked = true
  1066. blast3.Size = Vector3.new(1, 1, 1)
  1067. blast3.TopSurface = "Smooth"
  1068. blast3.BottomSurface = "Smooth"
  1069. blast3.Transparency = 0
  1070. blast3.CFrame = HandCF
  1071. local bm3 = Instance.new("SpecialMesh", blast3)
  1072. bm3.Scale = Vector3.new(3,1,3)
  1073. bm3.MeshId = "rbxassetid://3270017"
  1074. for i = 1,120 do rs:wait()
  1075. X.Transparency = X.Transparency + (1/120)
  1076. part.Transparency = part.Transparency + (1/120)
  1077. part2.Transparency = part2.Transparency + (1/120)
  1078. part3.Transparency = part3.Transparency + (1/120)
  1079. part4.Transparency = part4.Transparency + (1/120)
  1080. part5.Transparency = part5.Transparency + (1/120)
  1081. part6.Transparency = part6.Transparency + (1/120)
  1082. part7.Transparency = part7.Transparency + (1/120)
  1083. blast.Transparency = blast.Transparency + (1/120)
  1084. blast2.Transparency = blast2.Transparency + (1/120)
  1085. blast3.Transparency = blast3.Transparency + (1/120)
  1086. X.Size = X.Size + Vector3.new(.8,.8,.8)
  1087. --part3.Size = part3.Size + Vector3.new(3,3,3)
  1088. mesh.Scale = mesh.Scale + Vector3.new(1,.2,1)
  1089. mesh2.Scale = mesh2.Scale + Vector3.new(1.1,.2,1.1)
  1090. mesh3.Scale = mesh3.Scale + Vector3.new(3,3,3)
  1091. mesh4.Scale = mesh4.Scale + Vector3.new(1.7,1.7,1.7)
  1092. mesh5.Scale = mesh5.Scale + Vector3.new(1.6,.2,1.6)
  1093. mesh6.Scale = mesh6.Scale + Vector3.new(2,.2,2)
  1094. mesh7.Scale = mesh7.Scale + Vector3.new(4,4,4)
  1095. bm.Scale = bm.Scale + Vector3.new(6,6,.2)
  1096. bm2.Scale = bm2.Scale + Vector3.new(4,4,.2)
  1097. bm3.Scale = bm3.Scale + Vector3.new(4,4,.2)
  1098. X.CFrame = cf
  1099. part.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2),0)
  1100. part2.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2),0)
  1101. part3.CFrame=X.CFrame
  1102. part4.CFrame=X.CFrame
  1103. part7.CFrame=X.CFrame
  1104. part5.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2.6),0)
  1105. part6.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2.4),0)
  1106. blast.CFrame=X.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  1107. blast2.CFrame=X.CFrame * CFrame.Angles(math.rad(-i*4), math.rad(i*4), math.rad(0))
  1108. blast3.CFrame=X.CFrame * CFrame.Angles(math.rad(180+i*4), math.rad(90-i*4), math.rad(0))
  1109. rs:wait()
  1110. end
  1111. X:Destroy()
  1112. part:Destroy()
  1113. part2:Destroy()
  1114. part3:Destroy()
  1115. part4:Destroy()
  1116. part5:Destroy()
  1117. part6:Destroy()
  1118. blast:Destroy()
  1119. blast2:Destroy()
  1120. blast3:Destroy()
  1121. z:Destroy()
  1122. z1:Destroy()
  1123. z2:Destroy()
  1124. z3:Destroy()
  1125. z4:Destroy()
  1126. end
  1127. end)
  1128. for i = 1, 20 do
  1129. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(70),math.rad(-6),math.rad(-20)), 0.2)
  1130. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.2)
  1131. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2)
  1132. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), 0.4)
  1133. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-8)), 0.2)
  1134. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-6), 0, math.rad(8)), 0.2)
  1135. if Debounces.on == false then break end
  1136. rs:wait()
  1137. end
  1138. if Debounces.CanAttack == false then
  1139. Debounces.CanAttack = true
  1140. Debounces.NoIdl = false
  1141. Debounces.on = false
  1142. end
  1143. end
  1144. end
  1145. end)
  1146.  
  1147. -- Player declarations
  1148. local player = game.Players.megatron2006
  1149. local char = player.Character
  1150.  
  1151. -- Body parts
  1152. local torso = char.Torso
  1153.  
  1154. -- Tool declarations
  1155. local mouseDown = false
  1156. local keysDown = {}
  1157.  
  1158. -- Earth bending declarations
  1159. local raisingEarth = false
  1160. local raisingTower = false
  1161. local wall = false
  1162. local groundAttack = false
  1163. local lastTower = nil
  1164. local disabled = {}
  1165. local frames = {}
  1166. local parts = {}
  1167. 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!"}
  1168. 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."}
  1169.  
  1170. -- Main
  1171. function main(mouse)
  1172. while true do wait(1/30)
  1173. local look = CFrame.new(torso.Position, torso.Position + mouse.Hit.lookVector)
  1174.  
  1175. -- Reset parts
  1176. parts = {}
  1177.  
  1178. -- Get parts
  1179. for x = -20, 20, 10 do
  1180. for y = -20, 20, 10 do
  1181. for z = -30, -10, 10 do
  1182. local pos = look * Vector3.new(x, y, z)
  1183. getPartsInRegion3(
  1184. Region3.new(
  1185. pos + Vector3.new(1,1,1)*-9,
  1186. pos + Vector3.new(1,1,1)* 9
  1187. ),
  1188. parts
  1189. )
  1190. end
  1191. end
  1192. end
  1193.  
  1194. -- Mouse down
  1195. if mouseDown then
  1196. -- Create dif and bodies
  1197. for _, part in pairs(parts) do
  1198. if part.Name == "Earth" and not disabled[part] then
  1199. if not frames[part] and part ~= lastTower then
  1200. frames[part] = look:toObjectSpace(part.CFrame)
  1201.  
  1202. part:ClearAllChildren()
  1203. part.Anchored = false
  1204.  
  1205. -- Create bodies
  1206. createBody("Position", part)
  1207. createBody("Gyro", part)
  1208. end
  1209. end
  1210. end
  1211.  
  1212. -- Move bodies
  1213. for part in pairs(frames) do
  1214. local bodyPos = part:FindFirstChild("BodyPosition")
  1215. local bodyGyr = part:FindFirstChild("BodyGyro")
  1216.  
  1217. -- Bodies exist
  1218. if bodyPos and bodyGyr then
  1219. local dif = look * frames[part]
  1220.  
  1221. bodyPos.position = dif.p
  1222. bodyGyr.cframe = dif
  1223. else
  1224. frames[part] = nil
  1225. end
  1226. end
  1227. else
  1228. for part in pairs(frames) do
  1229. if part.Name == "Earth" then
  1230. frames[part] = nil
  1231.  
  1232. part:ClearAllChildren()
  1233. end
  1234. end
  1235. end
  1236. end
  1237. end
  1238.  
  1239. -- On key change
  1240. function onKeyChange(mouse, key, state)
  1241. -- Raise earth
  1242. if key == "m" and state and not raisingEarth then
  1243. game:GetService("Chat"):Chat(char.Head, raisechats[math.random(1,#raisechats)], Enum.ChatColor.Red)
  1244. raisingEarth = true
  1245. while keysDown[key] do
  1246. local torsoY = torso.Position.y + 3
  1247. local pos = planeY(torso.Position, 0.4 - 4/2)
  1248. local dir = planeY(mouse.Hit.lookVector).unit
  1249. local frame = CFrame.new(pos, pos + dir) * CFrame.new(r(-10, 10), 0, r(-20, -5))
  1250.  
  1251. -- Create earth part
  1252. local part = createEarth(workspace)
  1253. part.Anchored = true
  1254. part.Size = Vector3.new(4, 4, 4)
  1255. disabled[part] = true
  1256.  
  1257. -- Raise earth
  1258. for i = 1, 4 do i = i/4
  1259. part.CFrame = frame * CFrame.new(0, (torsoY - frame.y)*i, 0)
  1260. wait(1/10000000)
  1261. if not part.Anchored then
  1262. break
  1263. end
  1264. end
  1265.  
  1266. disabled[part] = nil
  1267. part.Anchored = false
  1268.  
  1269. wait(1/100)
  1270. end
  1271. raisingEarth = false
  1272.  
  1273.  
  1274.  
  1275.  
  1276.  
  1277. elseif key == "c" and state and not raisingEarth then
  1278. game:GetService("Chat"):Chat(char.Head, raisechats[math.random(1,#raisechats)], Enum.ChatColor.Red)
  1279. raisingEarth = true
  1280. while keysDown[key] do
  1281. local torsoY = torso.Position.y + 3
  1282. local pos = planeY(torso.Position, 0.4 - 4/2)
  1283. local dir = planeY(mouse.Hit.lookVector).unit
  1284. local frame = CFrame.new(pos, pos + dir) * CFrame.new(r(-10, 10), 0, r(-20, -5))
  1285.  
  1286. -- Create earth part
  1287. local part = createEarth(workspace)
  1288. part.Anchored = true
  1289. part.Size = Vector3.new(2, 2, 2)
  1290. disabled[part] = true
  1291.  
  1292. -- Raise earth
  1293. for i = 1, 4 do i = i/4
  1294. part.CFrame = frame * CFrame.new(0, (torsoY - frame.y)*i, 0)
  1295. wait(1/10000000)
  1296. if not part.Anchored then
  1297. break
  1298. end
  1299. end
  1300.  
  1301. disabled[part] = nil
  1302. part.Anchored = false
  1303.  
  1304. wait(1/100)
  1305. end
  1306. raisingEarth = false
  1307.  
  1308.  
  1309.  
  1310. -- Push earth
  1311. elseif key == "f" and state then
  1312. game:GetService("Chat"):Chat(char.Head, Taunts[math.random(1,#Taunts)], Enum.ChatColor.Red)
  1313. for _, part in pairs(parts) do
  1314. if part.Name == "Earth" and part ~= lastTower then
  1315. part:ClearAllChildren()
  1316. part.Anchored = false
  1317.  
  1318. -- Add force
  1319. local bodyForce = createBody("Force", part)
  1320. bodyForce.force = mouse.Hit.lookVector*1.5e4 * part:GetMass()
  1321.  
  1322. game.Debris:AddItem(bodyForce, 1/30)
  1323.  
  1324. -- Disable part
  1325. disabled[part] = true
  1326. delay(1, function()
  1327. disabled[part] = nil
  1328. end)
  1329. end
  1330. end
  1331.  
  1332. -- Monster Ability
  1333. elseif key == "n" and state then
  1334. wait(.1)
  1335. f = Instance.new("Fire")
  1336. f.Parent = char.Head
  1337. f.Color = Color3.new(0,0,0)
  1338. f.Size = 5
  1339. f.Heat = 5
  1340. wait(.1)
  1341. g = Instance.new("Fire")
  1342. g.Parent = char["Right Arm"]
  1343. g.Color = Color3.new(0,0.8,0.9)
  1344. g.Size = 5
  1345. g.Heat = 10
  1346. wait(.1)
  1347. h = Instance.new("Fire")
  1348. h.Parent = char["Left Arm"]
  1349. h.Color = Color3.new(0.7,0,0)
  1350. h.Size = 5
  1351. h.Heat = 10
  1352. wait(.1)
  1353. z = Instance.new("Sound")
  1354. z.Parent = game.Workspace
  1355. z.SoundId = "http://www.roblox.com/asset/?id="
  1356. z.Looped = false
  1357. z.Volume = 8
  1358. z.Pitch = 0.8
  1359. wait(1.8)
  1360. game:GetService("Chat"):Chat(char.Head, "Hmph.", Enum.ChatColor.Red)
  1361. wait(3.4)
  1362. game:GetService("Chat"):Chat(char.Head, "This has become a pointless battle.", Enum.ChatColor.Red)
  1363. wait(2.4)
  1364. game:GetService("Chat"):Chat(char.Head, "I will end this quickly", Enum.ChatColor.Red)
  1365. wait(.1)
  1366. z:Play()
  1367. char.Humanoid.MaxHealth = 900000000
  1368. wait(1)
  1369. char.Humanoid.Health = 900000000
  1370. wait(182)
  1371. char.Humanoid.MaxHealth = 600
  1372. z:Remove()
  1373. f:Remove()
  1374. g:Remove()
  1375. h:Remove()
  1376.  
  1377. -- N-Rage
  1378. elseif key == "n" and state then
  1379. c = Instance.new("Sound")
  1380. c.Parent = game.Workspace
  1381. c.SoundId = "http://www.roblox.com/asset/?id=157747165"
  1382. c.Looped = false
  1383. c.Volume = 1
  1384. c.Pitch = .7
  1385. wait(1.8)
  1386. game:GetService("Chat"):Chat(char.Head, "What the hell was that?", Enum.ChatColor.Red)
  1387. wait(2)
  1388. game:GetService("Chat"):Chat(char.Head, "Did you actually believe you could harm me?", Enum.ChatColor.Red)
  1389. wait(2.4)
  1390. 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)
  1391. wait(3.5)
  1392. game:GetService("Chat"):Chat(char.Head, "All you have done is waste my time.", Enum.ChatColor.Red)
  1393. wait(.1)
  1394. c:Play()
  1395. char.Humanoid.MaxHealth = math.huge
  1396. wait(160)
  1397. char.Humanoid.MaxHealth = 10000
  1398. c:Remove()
  1399.  
  1400. -- Break earth
  1401. elseif key == "b" and state then
  1402. game:GetService("Chat"):Char(char.Head, "Hmph.", Enum.ChatColor.Red)
  1403. wait(.01)
  1404. for part in pairs(frames) do
  1405. if part.Size == Vector3.new(4, 4, 4) then
  1406. for x = -1, 2, 2 do
  1407. for y = -1, 2, 2 do
  1408. for z = -1, 1, 2 do
  1409. local oPart = createEarth(workspace)
  1410. oPart.Size = Vector3.new(2, 2, 2)
  1411. oPart.CFrame = part.CFrame * CFrame.new(x*1.1, y*1.1, z*1.1)
  1412. end
  1413. end
  1414. end
  1415. part:Destroy()
  1416. end
  1417.  
  1418. end
  1419.  
  1420. for part in pairs(frames) do
  1421. if part.Size == Vector3.new(25, 15, 25) then
  1422. for x = -3, 2, 2 do
  1423. for y = -3, 2, 2 do
  1424. for z = -3, 1, 2 do
  1425. local oPart = createEarth(workspace)
  1426. oPart.Size = Vector3.new(2, 2, 2)
  1427. oPart.CFrame = part.CFrame * CFrame.new(x*1.1, y*1.1, z*1.1)
  1428. end
  1429. end
  1430. end
  1431. part:Destroy()
  1432. end
  1433.  
  1434. end
  1435.  
  1436. for part in pairs(frames) do
  1437. if part.Size == Vector3.new(2, 2, 2) then
  1438. for x = -0.5, 2, 2 do
  1439. for y = -0.5, 2, 2 do
  1440. for z = -0.5, 1, 2 do
  1441. local oPart = createEarth(workspace)
  1442. oPart.Size = Vector3.new(1, 1, 1)
  1443. oPart.CFrame = part.CFrame * CFrame.new(x*1.1, y*1.1, z*1.1)
  1444. end
  1445. end
  1446. end
  1447. part:Destroy()
  1448. end
  1449.  
  1450. end
  1451.  
  1452.  
  1453.  
  1454.  
  1455. -- Raise tower
  1456. elseif key == "r" and state and not raisingTower then
  1457. game:GetService("Chat"):Chat(char.Head, raisechats[math.random(1,#raisechats)], Enum.ChatColor.Red)
  1458. raisingTower = true
  1459. lastTower = nil
  1460. if torso.Position.y - 5/2 < 20.4 then
  1461. local part = createEarth(workspace)
  1462. part.Anchored = true
  1463. disabled[part] = true
  1464.  
  1465. for i = 0, 20, 4 do
  1466. part.Size = Vector3.new(5, i, 5)
  1467. part.CFrame = CFrame.new(torso.Position.x, 0.4 + part.Size.y/2, torso.Position.z)
  1468. torso.CFrame = (torso.CFrame - torso.CFrame.p) + Vector3.new(torso.Position.x, part.Position.y + part.Size.y/2 + 5/2, torso.Position.z)
  1469. wait(1/30)
  1470. end
  1471.  
  1472. lastTower = part
  1473.  
  1474. disabled[part] = nil
  1475. part.Anchored = false
  1476. end
  1477. raisingTower = false
  1478.  
  1479.  
  1480. -- Raise wall
  1481. elseif key == "t" and state and not wall then
  1482. game:GetService("Chat"):Chat(char.Head, raisechats[math.random(1,#raisechats)], Enum.ChatColor.Red)
  1483. wall = true
  1484. lastWall = nil
  1485. if torso.Position.y - 5/2 < 20.4 then
  1486. local part = createEarth(workspace)
  1487. part.Anchored = true
  1488. disabled[part] = true
  1489.  
  1490. for i = 0, 1, 20 do
  1491. part.Size = Vector3.new(25, 15, 25)
  1492. part.CFrame = CFrame.new(torso.Position.x, 0.4 + part.Size.y/2, torso.Position.z)
  1493. torso.CFrame = (torso.CFrame - torso.CFrame.p) + Vector3.new(torso.Position.x, part.Position.y + part.Size.y/2 + 5/2, torso.Position.z)
  1494. wait(1/30)
  1495. end
  1496.  
  1497. lastWall = part
  1498.  
  1499. disabled[part] = nil
  1500. part.Anchored = false
  1501. end
  1502. wall = false
  1503.  
  1504. -- Ground attack
  1505. elseif key == "g" and state and not groundAttack then
  1506. game:GetService("Chat"):Chat(char.Head, Taunts[math.random(1,#Taunts)], Enum.ChatColor.Red)
  1507. groundAttack = true
  1508. delay(1, function()
  1509. groundAttack = false
  1510. end)
  1511.  
  1512. local dir = planeY(mouse.Hit.p - torso.Position).unit
  1513. local pos = planeY(torso.Position, 0.4 + 1) + dir*5
  1514.  
  1515. local ground = {}
  1516.  
  1517. delay(5, function()
  1518. for i = 1, 20 do
  1519. for _, part in pairs(ground) do
  1520. if part.Anchored then
  1521. part.CFrame = part.CFrame + Vector3.new(0, -1/7, 0)
  1522. end
  1523. end
  1524. wait(1/30)
  1525. end
  1526. for _, part in pairs(ground) do
  1527. if part.Anchored then
  1528. part:Destroy()
  1529. end
  1530. end
  1531. end)
  1532.  
  1533. for i = 1, 10 do
  1534. local hit, pos2 = rayCast(pos, dir*5, {char})
  1535.  
  1536. local part = createEarth(workspace)
  1537. part.Anchored = true
  1538. part.Size = Vector3.new(4, 4, 4)
  1539. part.CFrame = CFrame.new(pos2, pos2 + dir) * CFrame.Angles(math.rad(-50), 0, 0) + Vector3.new(0, -0, 0)
  1540.  
  1541. ground[#ground + 1] = part
  1542.  
  1543. -- Add force
  1544. if hit then
  1545. local mass = hit:GetMass()
  1546.  
  1547. -- Hit player
  1548. for _, oPlayer in pairs(game.Players:GetPlayers()) do
  1549. if oPlayer.Character and oPlayer.Character:FindFirstChild("Torso") and hit:IsDescendantOf(oPlayer.Character) then
  1550. hit = oPlayer.Character.Torso
  1551. mass = 20
  1552. end
  1553. end
  1554.  
  1555. if hit.Name ~= "Torso" then
  1556. hit:ClearAllChildren()
  1557. end
  1558. hit.Anchored = false
  1559.  
  1560. -- Add force
  1561. local bodyForce = createBody("Force", hit)
  1562. bodyForce.force = (dir + Vector3.new(0, 0.2, 0)).unit*1e4 * mass
  1563.  
  1564. game.Debris:AddItem(bodyForce, 1/30)
  1565. break
  1566. end
  1567.  
  1568. pos = pos2
  1569. wait(1/20)
  1570. end
  1571. end
  1572. end
  1573.  
  1574. --- CORE CODE BELOW --- CORE CODE BELOW --- CORE CODE BELOW ---
  1575. --- CORE CODE BELOW --- CORE CODE BELOW --- CORE CODE BELOW ---
  1576. --- CORE CODE BELOW --- CORE CODE BELOW --- CORE CODE BELOW ---
  1577.  
  1578. -- Clear old tool
  1579. player.Backpack:ClearAllChildren()
  1580.  
  1581. -- Create tool
  1582. local tool = Instance.new("HopperBin")
  1583. tool.Parent = player.Backpack
  1584. tool.Name = "Doom"
  1585.  
  1586. -- Tool selected
  1587. tool.Selected:connect(function(mouse)
  1588. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  1589.  
  1590. -- Mouse events
  1591. mouse.Button1Down:connect(function()
  1592. mouseDown = true
  1593. end)
  1594. mouse.Button1Up:connect(function()
  1595. mouseDown = false
  1596. end)
  1597. mouse.KeyDown:connect(function(key)
  1598. keysDown[key:lower()] = true
  1599. onKeyChange(mouse, key:lower(), true)
  1600. end)
  1601. mouse.KeyUp:connect(function(key)
  1602. keysDown[key:lower()] = false
  1603. onKeyChange(mouse, key:lower(), false)
  1604. end)
  1605.  
  1606. -- Call main
  1607. main(mouse)
  1608. end)
  1609.  
  1610. --- LIBRARY BELOW --- LIBRARY BELOW --- LIBRARY BELOW ---
  1611. --- LIBRARY BELOW --- LIBRARY BELOW --- LIBRARY BELOW ---
  1612. --- LIBRARY BELOW --- LIBRARY BELOW --- LIBRARY BELOW ---
  1613.  
  1614. -- Ray cast
  1615. function rayCast(pos, dir, ignore)
  1616. return workspace:FindPartOnRayWithIgnoreList(Ray.new(pos, dir), ignore)
  1617. end
  1618.  
  1619. -- Create body
  1620. function createBody(type, path)
  1621. local body = Instance.new("Body" .. type)
  1622. if type == "Gyro" then
  1623. body.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  1624. elseif type ~= "Force" then
  1625. body.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1626. end
  1627. body.Parent = path
  1628. return body
  1629. end
  1630.  
  1631. -- Get parts in region 3
  1632. function getPartsInRegion3(region, parts)
  1633. repeat
  1634. local regParts = workspace:FindPartsInRegion3WithIgnoreList(region, parts, 100)
  1635. for i, part in pairs(regParts) do
  1636. parts[#parts + 1] = part
  1637. end
  1638. until #regParts < 100
  1639. end
  1640.  
  1641. -- Random
  1642. function r(min, max)
  1643. return math.random()*(max - min) + min
  1644. end
  1645.  
  1646. -- Plane y
  1647. function planeY(v, y)
  1648. return Vector3.new(v.x, y or 0, v.z)
  1649. end
  1650.  
  1651. -- Create earth
  1652. function createEarth(path)
  1653. local part = createPart("Earth", path)
  1654. part.BrickColor = BrickColor.new("Really red")
  1655. part.Material = "Neon"
  1656. m = Instance.new("Fire",part)
  1657. m.Heat = 100
  1658. m.size = 100
  1659. m.Color = Color3.new(0,0.8,0.9)
  1660. part.Parent = path
  1661. return part
  1662. end
  1663.  
  1664. -- Create part
  1665. function createPart(name, path)
  1666. local part = Instance.new("Part")
  1667. part.FormFactor = "Symmetric"
  1668. part.BottomSurface = "Smooth"
  1669. part.TopSurface = "Smooth"
  1670. part.Size = Vector3.new(1, 1, 1)
  1671. part.Name = name
  1672. part.Parent = path
  1673. return part
  1674. end
  1675.  
  1676. lp=game.Players.LocalPlayer
  1677. chr=lp.Character
  1678. attacking=false
  1679. mouse = game.Players.LocalPlayer:GetMouse()
  1680. Weld = function(p0,p1,x,y,z,rx,ry,rz,par)
  1681. p0.Position = p1.Position
  1682. local w = Instance.new('Motor',par or p0)
  1683. w.Part0 = p0
  1684. w.Part1 = p1
  1685. w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz)
  1686. return w
  1687. end
  1688. z=Instance.new("Part",chr)
  1689. z.Size=chr.Torso.Size
  1690. cloud=Instance.new("SpecialMesh",z)
  1691. cloud.MeshId="rbxassetid://1095708"
  1692. cloud.Scale=Vector3.new(2,2,2)
  1693. z.Transparency=1
  1694. Weld(z,chr.Torso,0,15,0,0,0,0,z)
  1695. Song = function(Volume,SoundId,Looped,Object)
  1696. sound=Instance.new("Sound")
  1697. sound.Parent=Object
  1698. sound.Volume=Volume
  1699. sound.SoundId="rbxassetid://"..SoundId
  1700. sound.Looped=Looped
  1701. sound:Play()
  1702. end
  1703. Lightning = function(Start,End,Times,Offset,Color,Thickness,Transparency)
  1704. local magz = (Start - End).magnitude local curpos = Start local trz = {-Offset,Offset}
  1705. for i=1,Times do
  1706. local li = Instance.new("Part",workspace)
  1707. li.TopSurface =0
  1708. li.BottomSurface = 0
  1709. li.Anchored = true
  1710. li.Material = 288
  1711. li.Transparency = Transparency or 0.4
  1712. li.BrickColor = BrickColor.new("Cyan")
  1713. li.formFactor = "Custom"
  1714. li.CanCollide = false
  1715. 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)])
  1716. local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz
  1717. if Times == i then
  1718. local magz2 = (curpos - End).magnitude li.Size = Vector3.new(Thickness,Thickness,magz2)
  1719. li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2)
  1720. else
  1721. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  1722. end
  1723. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p game.Debris:AddItem(li,0.25)
  1724. end
  1725. end
  1726. mouse.KeyDown:connect(function(key)
  1727. key:lower()
  1728. if key == "q" and attacking == false then
  1729. attacking= true
  1730. for i=1,4 do
  1731. Lightning(chr.Head.Position,mouse.Hit.p,10,math.random(5,10),math.random(-2.5,2.5),"New Yeller",0.05,0.3)
  1732. explode=Instance.new("Explosion",Workspace)
  1733. explode.Position=mouse.Hit.p
  1734. end
  1735. attacking=false
  1736. end
  1737. end)
  1738. mouse.KeyDown:connect(function(key)
  1739. key:lower()
  1740. if key == "." and attacking == false then
  1741. attacking = true
  1742. Instance.new("ForceField",chr)
  1743. chr.Torso.Anchored=true
  1744. z.Transparency=0
  1745. z.Material = 288
  1746. for i=1,20 do
  1747. Wait()
  1748. Lightning(z.Position,chr.Torso.Position,10,math.random(5,10),math.random(-2.5,2.5),"New Yeller",0.05,0.3)
  1749. explode=Instance.new("Explosion",chr)
  1750. explode.Position=chr.Torso.Position
  1751. end
  1752. wait(2)
  1753. chr.ForceField:Destroy()
  1754. chr.Torso.Anchored=false
  1755. z.Transparency=1
  1756. z.Material = 288
  1757. attacking=false
  1758. end
  1759. end)
  1760. mouse.KeyDown:connect(function(key)
  1761. key:lower()
  1762. if key == "." and attacking == false then
  1763. Song(math.huge,172949886,true,chr.Head)
  1764. end
  1765. end)
  1766. mouse.KeyDown:connect(function(key)
  1767. key:lower()
  1768. if key == "e" and attacking == false then
  1769. wait()
  1770. for i=1,5 do
  1771. Lightning(chr.Torso.Position,mouse.Hit.p,10,math.random(5,10),math.random(-2.5,2.5),"New Yeller",0.05,0.3)
  1772. end
  1773. Wait()
  1774. x=Instance.new("Part",chr)
  1775. x.Transparency=1
  1776. x.Material = 288
  1777. x.Position=mouse.Hit.p
  1778. chr.Torso.CFrame=x.CFrame*CFrame.new(0,5,0)
  1779. x:Destroy()
  1780. end
  1781. end)
  1782. mouse.KeyDown:connect(function(key)
  1783. key:lower()
  1784. if key == "y" and attacking == false then
  1785. for i,v in pairs(chr.Head:GetChildren()) do
  1786. if v:IsA("Sound") then
  1787. v:Destroy()
  1788. end
  1789. end
  1790. end
  1791. end)
  1792. mouse.KeyDown:connect(function(key)
  1793. key:lower()
  1794. if key == "j" and attacking == false then
  1795. for i=1,10 do
  1796. wait()
  1797. Lightning(z.Position,chr.Torso.Position,10,math.random(5,10),math.random(-2.5,2.5),"New Yeller",0.05,0.3)
  1798. explode=Instance.new("Explosion",chr)
  1799. explode.Position=chr.Torso.Position
  1800. explode.BlastPressure=0
  1801. chr.Humanoid.Health=chr.Humanoid.Health+10
  1802. end
  1803. end
  1804. end)
  1805. mouse.KeyDown:connect(function(key)
  1806. key:lower()
  1807. if key == "r" and attacking == false then
  1808. attacking=true
  1809. z.Transparency=0
  1810. Lightning(z.Position,mouse.Hit.p,10,math.random(5,10),math.random(-2.5,2.5),"New Yeller",0.05,0.3)
  1811. explode=Instance.new("Explosion",chr)
  1812. explode.Position=mouse.Hit.p
  1813. z.Transparency=1
  1814. attacking=false
  1815. end
  1816. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement