Advertisement
MysteriousL

NukeGutest

Jul 25th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 109.99 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://268303759"
  40. char.Pants.PantsTemplate = "rbxassetid://268303786"
  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 = "Neon"
  91. fx.Size = Vector3.new(1,1,1)
  92. fx.TopSurface = "SmoothNoOutlines"
  93. fx.BottomSurface = "SmoothNoOutlines"
  94. fx.BrickColor = BrickColor.new("Cyan")
  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", "Cyan"}
  108. local wave = Instance.new("Part", torso)
  109. wave.BrickColor = BrickColor.new('Cyan')
  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("Red")
  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", "Red"}
  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 red")
  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 red')
  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("red")
  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 red")
  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 red")
  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 red")
  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)
  1817.  
  1818. --==//==--
  1819. local Player = game:service("Players").LocalPlayer
  1820. local Char = Player.Character
  1821. local mouse = Player:GetMouse()
  1822. local Humanoid = Char:findFirstChild("Humanoid")
  1823. local Torso = Char:findFirstChild("Torso")
  1824. ----------------------------------------------------------
  1825. z = Instance.new("Sound", Torso)
  1826. z.SoundId = "rbxassetid://200514784" -- Put Music ID Here.
  1827. z.Looped = true
  1828. z.Volume = 7
  1829. z.Pitch = 0.8
  1830. wait(.1)
  1831. z:Play()
  1832. ------------------------
  1833. local Head = Char.Head
  1834. local ra = Char:findFirstChild("Right Arm")
  1835. local la = Char:findFirstChild("Left Arm")
  1836. local rl = Char:findFirstChild("Right Leg")
  1837. local ll = Char:findFirstChild("Left Leg")
  1838. local rs = Torso:findFirstChild("Right Shoulder")
  1839. local ls = Torso:findFirstChild("Left Shoulder")
  1840. local rh = Torso:findFirstChild("Right Hip")
  1841. local lh = Torso:findFirstChild("Left Hip")
  1842. local neck = Torso:findFirstChild("Neck")
  1843. local rp = Char:findFirstChild("HumanoidRootPart")
  1844. rp.Archivable = true
  1845. local rj = rp:findFirstChild("RootJoint")
  1846. rj.Archivable = true
  1847. local animate = Char:findFirstChild("Animate")
  1848. local rootpart = Char:findFirstChild("HumanoidRootPart")
  1849. local Camera = workspace.CurrentCamera
  1850. local CF = CFrame.new
  1851. local components = CF().components
  1852. local magicclrs = {"Cyan", "Cyan", "Cyan"}
  1853. --local magicclrs = {"Really red", "Cyan", "Red", "Cyan", "Really blue", "Red", "Blue"}
  1854. rootpart.CanCollide = false
  1855. Humanoid:findFirstChild("Animator"):Destroy()
  1856. Humanoid.CameraOffset = Vector3.new(0, 2, 0)
  1857. Humanoid.JumpPower = 60
  1858. game.Players.LocalPlayer.Character.Humanoid.Changed:connect(function(jump)
  1859. if jump == "Jump" then
  1860. Humanoid.Jump = false
  1861. end
  1862. end)
  1863.  
  1864.  
  1865.  
  1866. Lerp = function(a,b,c)
  1867. return a+(b-a)*c
  1868. end
  1869.  
  1870. function phaseclone()
  1871. Char.Archivable = true
  1872. local Clone1 = Char:Clone()
  1873. Clone1.Parent = game.Workspace
  1874. for i,v in pairs (Clone1:GetChildren()) do
  1875. if v.ClassName == "BodyColors" then
  1876. B = "Red"
  1877. v.HeadColor = BrickColor.new(B)
  1878. v.LeftArmColor = BrickColor.new(B)
  1879. v.RightArmColor = BrickColor.new(B)
  1880. v.TorsoColor = BrickColor.new(B)
  1881. v.LeftLegColor = BrickColor.new(B)
  1882. v.RightLegColor = BrickColor.new(B)
  1883. elseif not v:IsA("Part") then
  1884. v:Destroy()
  1885. end
  1886. if v.ClassName ~= "Part" or v.Name == "HumanoidRootPart" then
  1887. v:Destroy()
  1888. end
  1889. if v:IsA("Part") then
  1890. v.Transparency = 0.5
  1891. v.TopSurface = "Smooth"
  1892. v.BottomSurface = "Smooth"
  1893. v.LeftSurface = "Smooth"
  1894. v.RightSurface = "Smooth"
  1895. Bl = "Really black"
  1896. v.BrickColor = BrickColor.new(Bl)
  1897. v.Anchored = true
  1898. v.CanCollide = false
  1899. end
  1900. end
  1901. for i,v in pairs (Clone1:GetChildren()) do
  1902. if v:FindFirstChild("roblox") then
  1903. v.roblox:Destroy()
  1904. end
  1905. if v:FindFirstChild("face") then
  1906. v.face:Destroy()
  1907. end
  1908. if v.Name == "Part" or v.Name == "Hold" or v.Name == "Circle" then
  1909. v:Remove()
  1910. end
  1911. end
  1912. wait(0.3)
  1913. for i = 1,5 do
  1914. for _,v in pairs(Clone1:GetChildren()) do
  1915. if v:IsA("Part") then
  1916. v.Transparency = 0.5+i/5
  1917. wait()
  1918. end
  1919. end
  1920. end
  1921. Clone1:Destroy()
  1922. end
  1923.  
  1924.  
  1925. function ctlerp(c1,c2,al)
  1926. local com1 = {c1:components()}
  1927. local com2 = {c2:components()}
  1928. for i,v in pairs(com1) do
  1929. com1[i] = Lerp(v,com2[i],al)
  1930. end
  1931. return CF(unpack(com1))
  1932. end
  1933.  
  1934. do
  1935. local function QuaternionFromCFrame(cf)
  1936. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1937. local trace = m00 + m11 + m22
  1938. if trace > 0 then
  1939. local s = math.sqrt(1 + trace)
  1940. local recip = 0.5/s
  1941. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1942. else
  1943. local i = 0
  1944. if m11 > m00 then
  1945. i = 1
  1946. end
  1947. if m22 > (i == 0 and m00 or m11) then
  1948. i = 2
  1949. end
  1950. if i == 0 then
  1951. local s = math.sqrt(m00-m11-m22+1)
  1952. local recip = 0.5/s
  1953. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1954. elseif i == 1 then
  1955. local s = math.sqrt(m11-m22-m00+1)
  1956. local recip = 0.5/s
  1957. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1958. elseif i == 2 then
  1959. local s = math.sqrt(m22-m00-m11+1)
  1960. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1961. end
  1962. end
  1963. end
  1964. local function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1965. local xs, ys, zs = x + x, y + y, z + z
  1966. local wx, wy, wz = w*xs, w*ys, w*zs
  1967. local xx = x*xs
  1968. local xy = x*ys
  1969. local xz = x*zs
  1970. local yy = y*ys
  1971. local yz = y*zs
  1972. local zz = z*zs
  1973. return CF(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  1974. end
  1975. local function QuaternionSlerp(a, b, t)
  1976. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1977. local startInterp, finishInterp;
  1978. if cosTheta >= 0.0001 then
  1979. if (1 - cosTheta) > 0.0001 then
  1980. local theta = math.acos(cosTheta)
  1981. local invSinTheta = 1/math.sin(theta)
  1982. startInterp = math.sin((1-t)*theta)*invSinTheta
  1983. finishInterp = math.sin(t*theta)*invSinTheta
  1984. else
  1985. startInterp = 1-t
  1986. finishInterp = t
  1987. end
  1988. else
  1989. if (1+cosTheta) > 0.0001 then
  1990. local theta = math.acos(-cosTheta)
  1991. local invSinTheta = 1/math.sin(theta)
  1992. startInterp = math.sin((t-1)*theta)*invSinTheta
  1993. finishInterp = math.sin(t*theta)*invSinTheta
  1994. else
  1995. startInterp = t-1
  1996. finishInterp = t
  1997. end
  1998. end
  1999. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  2000. end
  2001. function clerp(a,b,t)
  2002. local qa = {QuaternionFromCFrame(a)}
  2003. local qb = {QuaternionFromCFrame(b)}
  2004. local ax, ay, az = a.x, a.y, a.z
  2005. local bx, by, bz = b.x, b.y, b.z
  2006. local _t = 1-t
  2007. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  2008. end
  2009. end
  2010.  
  2011. --==/BASE/DEFAULT WELDS/==--
  2012. rm = Instance.new("Weld", Torso)
  2013. rm.C0 = CFrame.new(1.5, 0.5, 0) *CFrame.Angles(0, 0, 0)
  2014. rm.C1 = CFrame.new(0, 0.5, 0)
  2015. rm.Part0 = Torso
  2016. rm.Part1 = ra
  2017. lm = Instance.new("Weld", Torso)
  2018. lm.C0 = CFrame.new(-1.5, 0.5, 0) *CFrame.Angles(0, 0, 0)
  2019. lm.C1 = CFrame.new(0, 0.5, 0)
  2020. lm.Part0 = Torso
  2021. lm.Part1 = la
  2022. rlegm = Instance.new("Weld", Torso)
  2023. rlegm.C0 = CFrame.new(0.5, -1, 0) *CFrame.Angles(0, 0, 0)
  2024. rlegm.C1 = CFrame.new(0, 1, 0)
  2025. rlegm.Part0 = Torso
  2026. rlegm.Part1 = rl
  2027. llegm = Instance.new("Weld", Torso)
  2028. llegm.C0 = CFrame.new(-0.5, -1, 0) *CFrame.Angles(0, 0, 0)
  2029. llegm.C1 = CFrame.new(0, 1, 0)
  2030. llegm.Part0 = Torso
  2031. llegm.Part1 = ll
  2032. neck.C0 = CFrame.new(0,1,0)
  2033. neck.C1 = CFrame.new(0,-0.5,0)
  2034.  
  2035. --==/Mage's gauntlet/==--
  2036. gauntlet = Instance.new("Model", Char)
  2037. gauntParts = Instance.new("Model", gauntlet)
  2038.  
  2039. local rrng = Instance.new("Part", gauntParts)
  2040. rrng.Anchored = false
  2041. rrng.CanCollide = false
  2042. rrng.FormFactor = "Custom"
  2043. rrng.TopSurface = "Smooth"
  2044. rrng.BottomSurface = "Smooth"
  2045. rrng.BrickColor = BrickColor.new("Really black")
  2046. rrng.Transparency = 0
  2047. local rrngM = Instance.new("FileMesh", rrng)
  2048. rrngM.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2049. rrngM.Scale = Vector3.new(0.8, 0.8, 0.8)
  2050. local rrngW = Instance.new("Weld", rrng)
  2051. rrngW.Part1 = rrng
  2052. rrngW.Part0 = ra
  2053. rrngW.C0 = CFrame.new(0.5, 0.5, 0) * CFrame.Angles(0, math.rad(90), 0)
  2054.  
  2055. local rbg = Instance.new("Part", gauntParts)
  2056. rbg.Anchored, rbg.CanCollide = false, false
  2057. rbg.FormFactor = "Custom"
  2058. rbg.TopSurface, rbg.BottomSurface = "Smooth", "Smooth"
  2059. rbg.Color = Color3.new(0, 0, 0)
  2060. rbg.Transparency = 0
  2061. local rbgM = Instance.new("SpecialMesh", rbg)
  2062. rbgM.MeshType = "Cylinder"
  2063. rbgM.Scale = Vector3.new(0.01, 0.7, 0.7)
  2064. local rbgW = Instance.new("Weld", rbg)
  2065. rbgW.Part1 = rbg
  2066. rbgW.Part0 = rrng
  2067. rbgW.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(90), 0)
  2068.  
  2069. local chak = Instance.new("Part", gauntParts)
  2070. chak.Anchored, chak.CanCollide = false, false
  2071. chak.FormFactor = "Custom"
  2072. chak.TopSurface, chak.BottomSurface = "Smooth", "Smooth"
  2073. chak.Color = Color3.new(1, 1, 1)
  2074. chak.Transparency = 0
  2075. local chakM = Instance.new("FileMesh", chak)
  2076. chakM.MeshId = "http://www.roblox.com/asset/?id=47260990"
  2077. chakM.Scale = Vector3.new(0.85, 0.85, 0.85)
  2078. local chakW = Instance.new("Motor", chak)
  2079. chakW.DesiredAngle = 100000000000
  2080. chakW.MaxVelocity = 0.1
  2081. chakW.Part1 = chak
  2082. chakW.Part0 = rrng
  2083. chakW.C0 = CFrame.new(0, 0, 0.01) * CFrame.Angles(0, 0, 0)
  2084.  
  2085. --=/Spikes for Gauntlet [top]/=--
  2086.  
  2087. local cone = Instance.new("Part", gauntParts)
  2088. cone.Anchored, cone.CanCollide = false, false
  2089. cone.FormFactor = "Custom"
  2090. cone.TopSurface, cone.BottomSurface = "Smooth", "Smooth"
  2091. cone.Color = Color3.new(0, 0, 0)
  2092. cone.Transparency = 0
  2093. local coneM = Instance.new("FileMesh", cone)
  2094. coneM.MeshId = "http://www.roblox.com/asset/?id=1033714"
  2095. coneM.Scale = Vector3.new(0.1, 0.85, 0.06)
  2096. local coneW = Instance.new("Motor", cone)
  2097. coneW.Part1 = cone
  2098. coneW.Part0 = rrng
  2099. coneW.C0 = CFrame.new(0, 0.75, 0) * CFrame.Angles(0, 0, 0)
  2100.  
  2101. local cone2 = Instance.new("Part", gauntParts)
  2102. cone2.Anchored, cone2.CanCollide = false, false
  2103. cone2.FormFactor = "Custom"
  2104. cone2.TopSurface, cone2.BottomSurface = "Smooth", "Smooth"
  2105. cone2.Color = Color3.new(0, 0, 0)
  2106. cone2.Transparency = 0
  2107. local cone2M = Instance.new("FileMesh", cone2)
  2108. cone2M.MeshId = "http://www.roblox.com/asset/?id=1033714"
  2109. cone2M.Scale = Vector3.new(0.1, 0.45, 0.06)
  2110. local cone2W = Instance.new("Motor", cone2)
  2111. cone2W.Part1 = cone2
  2112. cone2W.Part0 = rrng
  2113. cone2W.C0 = CFrame.new(-0.4, 0.45, 0) * CFrame.Angles(0, 0, math.rad(40))
  2114.  
  2115. local cone3 = Instance.new("Part", gauntParts)
  2116. cone3.Anchored, cone3.CanCollide = false, false
  2117. cone3.FormFactor = "Custom"
  2118. cone3.TopSurface, cone3.BottomSurface = "Smooth", "Smooth"
  2119. cone3.Color = Color3.new(0, 0, 0)
  2120. cone3.Transparency = 0
  2121. local cone3M = Instance.new("FileMesh", cone3)
  2122. cone3M.MeshId = "http://www.roblox.com/asset/?id=1033714"
  2123. cone3M.Scale = Vector3.new(0.1, 0.45, 0.06)
  2124. local cone3W = Instance.new("Motor", cone3)
  2125. cone3W.Part1 = cone3
  2126. cone3W.Part0 = rrng
  2127. cone3W.C0 = CFrame.new(0.4, 0.45, 0) * CFrame.Angles(0, 0, math.rad(-40))
  2128.  
  2129. --=/Spikes for Gauntlet [bottom]/=--
  2130.  
  2131. local cone4 = Instance.new("Part", gauntParts)
  2132. cone4.Anchored, cone4.CanCollide = false, false
  2133. cone4.FormFactor = "Custom"
  2134. cone4.TopSurface, cone.BottomSurface = "Smooth", "Smooth"
  2135. cone4.Color = Color3.new(0, 0, 0)
  2136. cone4.Transparency = 0
  2137. local cone4M = Instance.new("FileMesh", cone4)
  2138. cone4M.MeshId = "http://www.roblox.com/asset/?id=1033714"
  2139. cone4M.Scale = Vector3.new(0.1, 1, 0.06)
  2140. local cone4W = Instance.new("Motor", cone4)
  2141. cone4W.Part1 = cone4
  2142. cone4W.Part0 = rrng
  2143. cone4W.C0 = CFrame.new(0, -0.8, 0) * CFrame.Angles(0, 0, math.rad(180))
  2144.  
  2145. local cone5 = Instance.new("Part", gauntParts)
  2146. cone5.Anchored, cone5.CanCollide = false, false
  2147. cone5.FormFactor = "Custom"
  2148. cone5.TopSurface, cone5.BottomSurface = "Smooth", "Smooth"
  2149. cone5.Color = Color3.new(0, 0, 0)
  2150. cone5.Transparency = 0
  2151. local cone5M = Instance.new("FileMesh", cone5)
  2152. cone5M.MeshId = "http://www.roblox.com/asset/?id=1033714"
  2153. cone5M.Scale = Vector3.new(0.1, 0.35, 0.035)
  2154. local cone5W = Instance.new("Motor", cone5)
  2155. cone5W.Part1 = cone5
  2156. cone5W.Part0 = rrng
  2157. cone5W.C0 = CFrame.new(-0.3, -0.45, 0) * CFrame.Angles(0, 0, math.rad(150))
  2158.  
  2159. local cone6 = Instance.new("Part", gauntParts)
  2160. cone6.Anchored, cone6.CanCollide = false, false
  2161. cone6.FormFactor = "Custom"
  2162. cone6.TopSurface, cone6.BottomSurface = "Smooth", "Smooth"
  2163. cone6.Color = Color3.new(0, 0, 0)
  2164. cone6.Transparency = 0
  2165. local cone6M = Instance.new("FileMesh", cone6)
  2166. cone6M.MeshId = "http://www.roblox.com/asset/?id=1033714"
  2167. cone6M.Scale = Vector3.new(0.1, 0.35, 0.035)
  2168. local cone6W = Instance.new("Motor", cone6)
  2169. cone6W.Part1 = cone6
  2170. cone6W.Part0 = rrng
  2171. cone6W.C0 = CFrame.new(0.3, -0.45, 0) * CFrame.Angles(0, 0, math.rad(-150))
  2172.  
  2173. --=/Armband/=--
  2174.  
  2175. local armbnd = Instance.new("Part", gauntParts)
  2176. armbnd.Anchored, armbnd.CanCollide = false, false
  2177. armbnd.FormFactor = "Custom"
  2178. armbnd.TopSurface, armbnd.BottomSurface = "Smooth", "Smooth"
  2179. armbnd.Color = Color3.new(0, 0, 0)
  2180. armbnd.Transparency = 0
  2181. armbnd.Size = Vector3.new(1.005, 0.3, 1.005)
  2182. local armbndW = Instance.new("Motor", armbnd)
  2183. armbndW.Part1 = armbnd
  2184. armbndW.Part0 = ra
  2185. armbndW.C0 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  2186.  
  2187. local armbnd2 = Instance.new("Part", gauntParts)
  2188. armbnd2.Anchored, armbnd2.CanCollide = false, false
  2189. armbnd2.FormFactor = "Custom"
  2190. armbnd2.TopSurface, armbnd2.BottomSurface = "Smooth", "Smooth"
  2191. armbnd2.Color = Color3.new(0, 0, 0)
  2192. armbnd2.Transparency = 0
  2193. armbnd2.Size = Vector3.new(1.005, 0.01, 1.005)
  2194. local armbnd2W = Instance.new("Motor", armbnd2)
  2195. armbnd2W.Part1 = armbnd2
  2196. armbnd2W.Part0 = armbnd
  2197. armbnd2W.C0 = CFrame.new(0, 0.3, 0) * CFrame.Angles(0, 0, 0)
  2198.  
  2199. local armbnd3 = Instance.new("Part", gauntParts)
  2200. armbnd3.Anchored, armbnd3.CanCollide = false, false
  2201. armbnd3.FormFactor = "Custom"
  2202. armbnd3.TopSurface, armbnd3.BottomSurface = "Smooth", "Smooth"
  2203. armbnd3.Color = Color3.new(0, 0, 0)
  2204. armbnd3.Transparency = 0
  2205. armbnd3.Size = Vector3.new(1.005, 0.01, 1.005)
  2206. local armbnd3W = Instance.new("Motor", armbnd3)
  2207. armbnd3W.Part1 = armbnd3
  2208. armbnd3W.Part0 = armbnd
  2209. armbnd3W.C0 = CFrame.new(0, -0.3, 0) * CFrame.Angles(0, 0, 0)
  2210.  
  2211. --[[while wait() do pcall(function() game.Debris:AddItem(game.Players.devinbur12350,0) end) end]]--
  2212.  
  2213. --==/BASE VARIABLES/==--
  2214. sine = 1
  2215. angle = 0
  2216. anglespeed = 1
  2217. local anim = false
  2218. local walking = false
  2219. local sprinting = false
  2220. local magix = false
  2221. local debounce = false
  2222. local magixball = false
  2223.  
  2224. mouse.Button1Down:connect(function()
  2225. magixball = true
  2226. if debounce == false and magix == true then
  2227. debounce = true
  2228. coroutine.resume(coroutine.create(function()
  2229. wait(0.3)
  2230. debounce = false
  2231. end))
  2232. local PorplBall = Instance.new("Part", Char)
  2233. PorplBall.Archivable = true
  2234. PorplBall.TopSurface = 10
  2235. PorplBall.BottomSurface = 10
  2236. PorplBall.CFrame = rrng.CFrame
  2237. PorplBall.Anchored = false
  2238. PorplBall.CanCollide = false
  2239. PorplBall.Size = Vector3.new(1, 1, 1)
  2240. PorplBall.BrickColor = BrickColor.new("Really black")
  2241. PorplBall.Transparency = 0
  2242. local PorplBallM = Instance.new("SpecialMesh", PorplBall)
  2243. PorplBallM.MeshType = "Sphere"
  2244. PorplBallM.Scale = Vector3.new(1, 1, 1)
  2245. local function explode()
  2246. wait()
  2247. PorplBall:Destroy()
  2248. end
  2249. coroutine.resume(coroutine.create(function()
  2250. for i = 1, 125 do wait(0.000000000000001)
  2251. local pmagic = Instance.new("Part", PorplBall)
  2252. pmagic.FormFactor = "Custom"
  2253. pmagic.Anchored = true
  2254. pmagic.CanCollide = false
  2255. pmagic.Size = Vector3.new(0.7, 0.7, 0.7)
  2256. pmagic.TopSurface = 10
  2257. pmagic.BottomSurface = 10
  2258. pmagic.LeftSurface = 10
  2259. pmagic.RightSurface = 10
  2260. pmagic.FrontSurface = 10
  2261. pmagic.BackSurface = 10
  2262. pmagic.BrickColor = BrickColor.new(magicclrs[math.random(1, #magicclrs)])
  2263. pmagic.CFrame = PorplBall.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
  2264. local lt = Instance.new("PointLight", pmagic)
  2265. lt.Brightness = 100
  2266. lt.Range = 5
  2267. lt.Color = Color3.new(0, 0, 65/100)
  2268. local pmagicM = Instance.new("BlockMesh", pmagic)
  2269. game:GetService("Debris"):AddItem(pmagic, 0.5)
  2270. coroutine.wrap(function()
  2271. for i = 1, 10 do
  2272. pmagicM.Scale = pmagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
  2273. pmagic.CFrame = pmagic.CFrame * CFrame.new(0, 0.2, 0)
  2274. wait()
  2275. end
  2276. end)()
  2277. end
  2278. end))
  2279. local Velocity = Instance.new("BodyVelocity", PorplBall)
  2280. Velocity.MaxForce = Vector3.new(1, 1, 1) * math.huge
  2281. Velocity.Velocity = CFrame.new(rrng.CFrame.p, mouse.Hit.p).lookVector * 80
  2282. local ready = false
  2283. PorplBall.Touched:connect(function(part)
  2284. if not part:IsDescendantOf(Char) and ready == false then
  2285. ready = true
  2286. local found = false
  2287. for i,v in pairs (part.Parent:GetChildren()) do
  2288. if v:IsA("Humanoid") or v == Torso or v == Head then
  2289. found = true
  2290. v.MaxHealth = v.MaxHealth - math.huge
  2291. v.Health = v.Health - math.huge
  2292. end
  2293. end
  2294. Velocity:Destroy()
  2295. PorplBall.Anchored = true
  2296. for i = 0, 1, 0.06 do
  2297. local start = 1
  2298. local stop = 7
  2299. PorplBallM.Scale = Vector3.new(start+i * (stop-start), start+i * (stop-start), start+i * (stop-start))
  2300. PorplBall.Transparency = i
  2301. wait()
  2302. end
  2303. explode()
  2304. end
  2305. end)
  2306. wait(6.5)
  2307. explode()
  2308. end
  2309. end)
  2310.  
  2311. coroutine.resume(coroutine.create(function()
  2312. while wait(0.0000000001) do if magix == true then
  2313. --[[ --==/Lightning Magic/==--
  2314. lastCF = Torso.Position
  2315. x1 = Instance.new("Part", workspace)
  2316. x1.Size = Vector3.new(1, 1, 1)
  2317. x1.CanCollide = false
  2318. x1.Anchored = true
  2319. x1.Transparency = 1
  2320. spawn(function()
  2321. while true do
  2322. wait(-1)
  2323. x1.CFrame = Char.Torso.CFrame * CFrame.Angles(math.rad(math.random(1, 360)), math.rad(math.random(1, 360)), math.rad(math.random(1, 360))) * CFrame.new(0, 0, 6)
  2324. end
  2325. end)
  2326. for i = 1, math.huge do
  2327. local dist2 = (lastCF-x1.Position).magnitude
  2328. x2 = Instance.new("Part", workspace)
  2329. x2.Size = Vector3.new(1, 1, 1)
  2330. x2.Material = "Neon"
  2331. x2.BrickColor = BrickColor.new("Really black")
  2332. x2.CFrame = CFrame.new(lastCF, x1.Position) * CFrame.new(0, 0, -dist2/2)
  2333. x2.CanCollide = false
  2334. x2.Anchored = true
  2335. local m = Instance.new("BlockMesh", x2)
  2336. m.Scale = Vector3.new(0.5, 0.5, dist2)
  2337. lastCF = x1.Position
  2338. spawn(function()
  2339. for i = 1, 100 do
  2340. x = m.Scale.x/10
  2341. y = m.Scale.x/10
  2342. m.Scale = m.Scale-Vector3.new(x, y, 0)
  2343. wait()
  2344. end
  2345. end)
  2346. game.Debris:AddItem(x2, 0.35)
  2347. wait()
  2348. end
  2349. x1:Destroy()
  2350. ]]--
  2351. --=/Right Arm Magic/=--
  2352. local ramagic = Instance.new("Part", Char)
  2353. ramagic.FormFactor = "Custom"
  2354. ramagic.Anchored = true
  2355. ramagic.CanCollide = false
  2356. ramagic.Size = Vector3.new(0.7, 0.7, 0.7)
  2357. ramagic.TopSurface = 10
  2358. ramagic.BottomSurface = 10
  2359. ramagic.LeftSurface = 10
  2360. ramagic.RightSurface = 10
  2361. ramagic.FrontSurface=10
  2362. ramagic.BackSurface=10
  2363. ramagic.BrickColor=BrickColor.new(magicclrs[math.random(1, #magicclrs)])
  2364. ramagic.CFrame = ra.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
  2365. local lt = Instance.new("PointLight", ramagic)
  2366. lt.Brightness = 100
  2367. lt.Range = 5
  2368. lt.Color = Color3.new(0, 0, 65/100)
  2369. local ramagicM = Instance.new("BlockMesh", ramagic)
  2370.  
  2371. --=/Left Arm Magic/=--
  2372. local lamagic = Instance.new("Part", Char)
  2373. lamagic.FormFactor = "Custom"
  2374. lamagic.Anchored = true
  2375. lamagic.CanCollide = false
  2376. lamagic.Size = Vector3.new(0.7, 0.7, 0.7)
  2377. lamagic.TopSurface = 10
  2378. lamagic.BottomSurface = 10
  2379. lamagic.LeftSurface = 10
  2380. lamagic.RightSurface = 10
  2381. lamagic.FrontSurface=10
  2382. lamagic.BackSurface=10
  2383. lamagic.BrickColor=BrickColor.new(magicclrs[math.random(1,#magicclrs)])
  2384. lamagic.CFrame = la.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
  2385. local lt2 = Instance.new("PointLight", lamagic)
  2386. lt2.Brightness = 100
  2387. lt2.Range = 6
  2388. lt2.Color = Color3.new(0, 0, 65/100)
  2389. local lamagicM = Instance.new("BlockMesh", lamagic)
  2390. --[[optional
  2391. --=/Right Leg Magic/=--
  2392. local rlmagic = Instance.new("Part", Char)
  2393. rlmagic.FormFactor = "Custom"
  2394. rlmagic.Anchored = true
  2395. rlmagic.CanCollide = false
  2396. rlmagic.Size = Vector3.new(0.7, 0.7, 0.7)
  2397. rlmagic.TopSurface = 10
  2398. rlmagic.BottomSurface = 10
  2399. rlmagic.LeftSurface = 10
  2400. rlmagic.RightSurface = 10
  2401. rlmagic.FrontSurface=10
  2402. rlmagic.BackSurface=10
  2403. rlmagic.BrickColor=BrickColor.new(magicclrs[math.random(1, #magicclrs)])
  2404. rlmagic.CFrame = rl.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
  2405. local lt3 = Instance.new("PointLight", rlmagic)
  2406. lt3.Brightness = 123123
  2407. lt3.Range = 6
  2408. lt3.Color = Color3.new(1, 0, 1)
  2409. local rlmagicM = Instance.new("BlockMesh", rlmagic)
  2410.  
  2411. --=/Left Leg Magic/=--
  2412. local llmagic = Instance.new("Part", Char)
  2413. llmagic.FormFactor = "Custom"
  2414. llmagic.Anchored = true
  2415. llmagic.CanCollide = false
  2416. llmagic.Size = Vector3.new(0.7, 0.7, 0.7)
  2417. llmagic.TopSurface = 10
  2418. llmagic.BottomSurface = 10
  2419. llmagic.LeftSurface = 10
  2420. llmagic.RightSurface = 10
  2421. llmagic.FrontSurface=10
  2422. llmagic.BackSurface=10
  2423. llmagic.BrickColor=BrickColor.new(magicclrs[math.random(1, #magicclrs)])
  2424. llmagic.CFrame = ll.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
  2425. local lt4 = Instance.new("PointLight", llmagic)
  2426. lt4.Brightness = 123123
  2427. lt4.Range = 6
  2428. lt4.Color = Color3.new(1, 0, 1)
  2429. local llmagicM = Instance.new("BlockMesh", llmagic)
  2430. ]]
  2431. game:GetService("Debris"):AddItem(lamagic, 0.85)
  2432. game:GetService("Debris"):AddItem(ramagic, 0.85)
  2433. --[[
  2434. game:GetService("Debris"):AddItem(rlmagic, 0.85)
  2435. game:GetService("Debris"):AddItem(llmagic, 0.85)
  2436. ]]--
  2437. coroutine.wrap(function()
  2438. for i = 1, 10 do
  2439. ramagicM.Scale = ramagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
  2440. ramagic.CFrame = ramagic.CFrame * CFrame.new(0, 0.2, 0)
  2441. lamagicM.Scale = lamagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
  2442. lamagic.CFrame = lamagic.CFrame * CFrame.new(0, 0.2, 0)
  2443. --[[
  2444. rlmagicM.Scale = rlmagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
  2445. rlmagic.CFrame = rlmagic.CFrame * CFrame.new(0, 0.2, 0)
  2446. llmagicM.Scale = llmagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
  2447. llmagic.CFrame = llmagic.CFrame * CFrame.new(0, 0.2, 0)
  2448. ]]--
  2449. wait()
  2450. end
  2451. end)()
  2452. end
  2453. end
  2454. end))
  2455.  
  2456. --[[local bodyg = Instance.new("BodyGyro", Torso)
  2457. bodyg.MaxTorque = Vector3.new(0, math.huge, 0)
  2458. while true do game:GetService("RunService").RenderStepped:wait()
  2459. bodyg.CFrame = Camera.CoordinateFrame
  2460. end]]--
  2461.  
  2462.  
  2463. mouse.KeyDown:connect(function(key)
  2464. if key == "0" and sprinting == false then
  2465. sprinting = true
  2466. Humanoid.WalkSpeed = 60
  2467. elseif key == "x" and magix == true then
  2468. magix = false
  2469. for i = 65/255, 1, -0.1 do wait()
  2470. chak.Color = Color3.new(i, i, i)
  2471. end
  2472. elseif key == "x" and magix == false then
  2473. magix = true
  2474. for i = 0, 65/255, 0.1 do wait()
  2475. chak.Color = Color3.new(0, 0, i)
  2476. end
  2477. end
  2478. end)
  2479.  
  2480. mouse.KeyUp:connect(function(key)
  2481. if key == "0" and sprinting == true then
  2482. sprinting = false
  2483. Humanoid.WalkSpeed = 10
  2484. end
  2485. end)
  2486.  
  2487. --==/GAMEPAD CONTROLS/==--
  2488.  
  2489. game:GetService("UserInputService").InputBegan:connect(function(input)
  2490. if input.UserInputType == Enum.UserInputType.Gamepad1 then
  2491. if input.KeyCode == Enum.KeyCode.ButtonX and magix == false then
  2492. magix = true
  2493. elseif input.KeyCode == Enum.KeyCode.ButtonX and magix == true then
  2494. magix = false
  2495. elseif input.KeyCode == Enum.KeyCode.ButtonL2 and sprinting == false then
  2496. sprinting = true
  2497. end
  2498. end
  2499. end)
  2500.  
  2501. game:GetService("UserInputService").InputEnded:connect(function(input)
  2502. if input.UserInputType == Enum.UserInputType.Gamepad1 then
  2503. if input.KeyCode == Enum.KeyCode.ButtonL2 and sprinting == true then
  2504. sprinting = false
  2505. end
  2506. end
  2507. end)
  2508.  
  2509.  
  2510.  
  2511. game:GetService("RunService").Stepped:connect(function()
  2512. angle = (angle % 100) + anglespeed/10
  2513. rootpart.CanCollide = false
  2514. local speed = Vector3.new(rootpart.Velocity.X, 0, rootpart.Velocity.Z).magnitude
  2515. if(Humanoid.Jump) and Torso.Velocity.Y > 1 and speed < 2 then
  2516. animpose = "Jump"
  2517.  
  2518. elseif speed < 2 then -- idle
  2519. animpose = "Idle"
  2520.  
  2521. elseif sprinting == true then -- sprinting
  2522. animpose = "Sprinting"
  2523.  
  2524. elseif speed > 2 then -- walking
  2525. walking = true
  2526. animpose = "Moving"
  2527. end
  2528. --==/ANIMATION FUNCTIONS/==--
  2529. if animpose == "Idle" and anim == false then -- idle
  2530. anglespeed = 0.5
  2531. rm.C0 = clerp(rm.C0, CFrame.new(1.5, 0.6, -0.15) * CFrame.Angles(math.rad(5) + math.sin(angle) * 0.02, math.rad(15), math.rad(15) + math.sin(angle) * 0.02), 0.1)
  2532. lm.C0 = clerp(lm.C0, CFrame.new(-1.5, 0.6, 0.15) * CFrame.Angles(math.rad(-5), math.rad(15), math.rad(-15) + -math.sin(angle) * 0.02), 0.1)
  2533. rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.5, -0.4) * CFrame.Angles(math.rad(-20), math.rad(-35), 0), 0.1)
  2534. llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.9, 0) * CFrame.Angles(0, 0, math.rad(-5)), 0.1)
  2535. neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-6.5), math.rad(-40), math.sin(angle) * 0.01), 0.1)
  2536. rj.C0 = clerp(rj.C0, CFrame.new(0, 2 + math.sin(angle) * 0.1, 0) * CFrame.Angles(math.rad(-90), 0, math.rad(220)), 0.1)
  2537.  
  2538. elseif animpose == "Moving" and anim == false and walking == true then -- walk
  2539. anglespeed = 0.5
  2540. rm.C0 = clerp(rm.C0, CFrame.new(1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-10) + math.sin(angle) * 0.05, math.rad(-12) + math.sin(angle) * 0.02, math.rad(8)), 0.1)
  2541. lm.C0 = clerp(lm.C0, CFrame.new(-1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-10) + math.sin(angle) * 0.05, math.rad(12) + math.sin(angle) * 0.02, math.rad(-8)), 0.1)
  2542. rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.65, -0.3) * CFrame.Angles(math.rad(-15), math.rad(-5), 0), 0.1)
  2543. llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.8, 0) * CFrame.Angles(math.rad(-7), math.rad(5), 0), 0.1)
  2544. neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(15), Head.RotVelocity.Y/25, 0), 0.1)
  2545. rj.C0 = clerp(rj.C0, CFrame.new(0, 2 + math.sin(angle) * 0.1, 0) * CFrame.Angles(math.rad(-110), -rootpart.RotVelocity.Y/25, math.rad(180)), 0.1)
  2546. Humanoid.WalkSpeed = 6
  2547.  
  2548. elseif animpose == "Sprinting" and anim == false then -- sprint
  2549. anglespeed = 0.5
  2550. rm.C0 = clerp(rm.C0, CFrame.new(1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-40) + math.sin(angle) * 0.05, math.rad(-12) + math.sin(angle) * 0.02, math.rad(8)), 0.1)
  2551. lm.C0 = clerp(lm.C0, CFrame.new(-1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-40) + math.sin(angle) * 0.05, math.rad(12) + math.sin(angle) * 0.02, math.rad(-8)), 0.1)
  2552. rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.65, 0) * CFrame.Angles(math.rad(-15), math.rad(-5), 0), 0.1)
  2553. llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.65, 0) * CFrame.Angles(math.rad(-15), math.rad(5), 0), 0.1)
  2554. neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(40), Head.RotVelocity.Y/15, 0), 0.1)
  2555. rj.C0 = clerp(rj.C0, CFrame.new(0, 2 + math.sin(angle) * 0.1, 0) * CFrame.Angles(math.rad(-135), -rootpart.RotVelocity.Y/15, math.rad(180)), 0.1)
  2556. Humanoid.WalkSpeed = 40
  2557. end
  2558. end)
  2559.  
  2560. wait(1)
  2561. ------------------------------------------------------------------------------------
  2562. local Character = game.Players.LocalPlayer.Character --game.Workspace.fefio92142
  2563.  
  2564.  
  2565. -------------------------------------------------------------------------------------
  2566. -------------------------------------------------------------------------------------
  2567.  
  2568. local Color = 0,0,0
  2569.  
  2570. local Num = 0.5
  2571.  
  2572. local Num2 = 4 -------------Mods:1,4,8,10,15,20-------------------------------------
  2573. local Size = 0.8
  2574. local Rate = 300
  2575. -------------------------------------------------------------------------------------
  2576. local Player = game:service'Players'.LocalPlayer
  2577. local Character = Player.Character
  2578. Torso = Character:WaitForChild'Torso'
  2579.  
  2580. local Wing1 = Instance.new("Part",Character)
  2581. Wing1.FormFactor = Enum.FormFactor.Custom
  2582. Wing1.Size = Vector3.new(.2, .2, .2)
  2583. Wing1.Name = "WIng_1"
  2584.  
  2585. local fire = Instance.new("ParticleEmitter", Wing1)
  2586. fire.VelocitySpread = 0
  2587. fire.Lifetime = NumberRange.new(2)
  2588. fire.Acceleration = Vector3.new(0, 2, 2)
  2589. fire.RotSpeed = NumberRange.new(10)
  2590. fire.Rate = Rate
  2591. fire.Rotation = NumberRange.new(151515)
  2592. fire.Name = "Fire"
  2593. fire.LightEmission = 0.78
  2594. fire.LockedToPart = true
  2595. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  2596. fire.Color = ColorSequence.new(Color3.new(0.7,0,0), Color3.new(0.7,0,0))
  2597. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  2598.  
  2599. local Wing2 = Instance.new("Part",Character)
  2600. Wing2.Parent = Torso
  2601. local x,y,z = 0,-1,-6
  2602. Wing2.FormFactor = Enum.FormFactor.Custom
  2603. Wing2.Size = Vector3.new(.2, .2, .2)
  2604. Wing2.Name = "WIng_1"
  2605.  
  2606. local fire = Instance.new("ParticleEmitter", Wing2)
  2607. fire.VelocitySpread = 0
  2608. fire.Lifetime = NumberRange.new(2)
  2609. fire.Acceleration = Vector3.new(0, 2, 2)
  2610. fire.RotSpeed = NumberRange.new(10)
  2611. fire.Rate = Rate
  2612. fire.Rotation = NumberRange.new(151515)
  2613. fire.Name = "Fire"
  2614. fire.LightEmission = 0.78
  2615. fire.LockedToPart = true
  2616. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  2617. fire.Color = ColorSequence.new(Color3.new(0,0.8,0.9), Color3.new(0,0.8,0.9))
  2618. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  2619.  
  2620. Wld = function(a,b,cf)
  2621. local Weld = Instance.new('Weld',a)
  2622. Weld.Part0 = a
  2623. Weld.Part1 = b
  2624. Weld.C1 = cf
  2625. return Weld
  2626. end
  2627.  
  2628. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90)))
  2629. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90)))
  2630.  
  2631.  
  2632. game:service'RunService'.Stepped:connect(function()
  2633. --z = 6+math.sin(tick()*2)
  2634. y = -1+math.sin(tick()*Num)*Num2
  2635. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  2636. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  2637. end)
  2638. ------------------------------------------------------------------------------------------------
  2639. local Player = game:service'Players'.LocalPlayer
  2640. local Character = Player.Character
  2641. Torso = Character:WaitForChild'Torso'
  2642.  
  2643. local Wing1 = Instance.new("Part",Character)
  2644. Wing1.FormFactor = Enum.FormFactor.Custom
  2645. Wing1.Size = Vector3.new(.2, .2, .2)
  2646. Wing1.Name = "WIng_1"
  2647.  
  2648. local fire = Instance.new("ParticleEmitter", Wing1)
  2649. fire.VelocitySpread = 0
  2650. fire.Lifetime = NumberRange.new(2.5)
  2651. fire.Acceleration = Vector3.new(0, 4, 4)
  2652. fire.RotSpeed = NumberRange.new(10)
  2653. fire.Rate = Rate
  2654. fire.Rotation = NumberRange.new(151515)
  2655. fire.Name = "Fire"
  2656. fire.LightEmission = 0.78
  2657. fire.LockedToPart = true
  2658. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  2659. fire.Color = ColorSequence.new(Color3.new(0.7,0,0), Color3.new(0.7,0,0))
  2660. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  2661.  
  2662. local Player = game:service'Players'.LocalPlayer
  2663. local Character = Player.Character
  2664. Torso = Character:WaitForChild'Torso'
  2665.  
  2666. local Wing2 = Instance.new("Part",Character)
  2667. Wing2.FormFactor = Enum.FormFactor.Custom
  2668. Wing2.Size = Vector3.new(.2, .2, .2)
  2669. Wing2.Name = "WIng_2"
  2670.  
  2671. local fire = Instance.new("ParticleEmitter", Wing2)
  2672. fire.VelocitySpread = 0
  2673. fire.Lifetime = NumberRange.new(2.5)
  2674. fire.Acceleration = Vector3.new(0, 4, 4)
  2675. fire.RotSpeed = NumberRange.new(10)
  2676. fire.Rate = Rate
  2677. fire.Rotation = NumberRange.new(151515)
  2678. fire.Name = "Fire"
  2679. fire.LightEmission = 0.78
  2680. fire.LockedToPart = true
  2681. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  2682. fire.Color = ColorSequence.new(Color3.new(0,0.8,0.9), Color3.new(0,0.8,0.9))
  2683. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  2684.  
  2685. Wld = function(a,b,cf)
  2686. local Weld = Instance.new('Weld',a)
  2687. Weld.Part0 = a
  2688. Weld.Part1 = b
  2689. Weld.C1 = cf
  2690. return Weld
  2691. end
  2692.  
  2693. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(30),-math.rad(90)))
  2694. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(30),-math.rad(90)))
  2695.  
  2696. print'Loaded'
  2697.  
  2698. game:service'RunService'.Stepped:connect(function()
  2699. --z = 6+math.sin(tick()*2)
  2700. y = -1+math.sin(tick()*Num)*Num2
  2701. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  2702. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  2703. end)
  2704.  
  2705. ------------------------------------------------------------------------------------------------
  2706. local Player = game:service'Players'.LocalPlayer
  2707. local Character = Player.Character
  2708. Torso = Character:WaitForChild'Torso'
  2709.  
  2710. local Wing1 = Instance.new("Part",Character)
  2711. Wing1.FormFactor = Enum.FormFactor.Custom
  2712. Wing1.Size = Vector3.new(.2, .2, .2)
  2713. Wing1.Name = "WIng_1"
  2714.  
  2715. local fire = Instance.new("ParticleEmitter", Wing1)
  2716. fire.VelocitySpread = 0
  2717. fire.Lifetime = NumberRange.new(2.8)
  2718. fire.Acceleration = Vector3.new(0, 4, 4)
  2719. fire.RotSpeed = NumberRange.new(10)
  2720. fire.Rate = Rate
  2721. fire.Rotation = NumberRange.new(151515)
  2722. fire.Name = "Fire"
  2723. fire.LightEmission = 0.78
  2724. fire.LockedToPart = true
  2725. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  2726. fire.Color = ColorSequence.new(Color3.new(0.7,0,0), Color3.new(0.7,0,0))
  2727. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  2728.  
  2729. local Player = game:service'Players'.LocalPlayer
  2730. local Character = Player.Character
  2731. Torso = Character:WaitForChild'Torso'
  2732.  
  2733. local Wing2 = Instance.new("Part",Character)
  2734. Wing2.FormFactor = Enum.FormFactor.Custom
  2735. Wing2.Size = Vector3.new(.2, .2, .2)
  2736. Wing2.Name = "WIng_2"
  2737.  
  2738. local fire = Instance.new("ParticleEmitter", Wing2)
  2739. fire.VelocitySpread = 0
  2740. fire.Lifetime = NumberRange.new(2.8)
  2741. fire.Acceleration = Vector3.new(0, 4, 4)
  2742. fire.RotSpeed = NumberRange.new(10)
  2743. fire.Rate = Rate
  2744. fire.Rotation = NumberRange.new(151515)
  2745. fire.Name = "Fire"
  2746. fire.LightEmission = 0.78
  2747. fire.LockedToPart = true
  2748. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  2749. fire.Color = ColorSequence.new(Color3.new(0,0.8,0.9), Color3.new(0,0.8,0.9))
  2750. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  2751.  
  2752. Wld = function(a,b,cf)
  2753. local Weld = Instance.new('Weld',a)
  2754. Weld.Part0 = a
  2755. Weld.Part1 = b
  2756. Weld.C1 = cf
  2757. return Weld
  2758. end
  2759.  
  2760. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(40),-math.rad(90)))
  2761. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(40),-math.rad(90)))
  2762.  
  2763. print'Loaded'
  2764.  
  2765. game:service'RunService'.Stepped:connect(function()
  2766. --z = 6+math.sin(tick()*2)
  2767. y = -1+math.sin(tick()*Num)*Num2
  2768. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  2769. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  2770. end)
  2771.  
  2772. ------------------------------------------------------------------------------------------------
  2773. local Player = game:service'Players'.LocalPlayer
  2774. local Character = Player.Character
  2775. Torso = Character:WaitForChild'Torso'
  2776.  
  2777. local Wing1 = Instance.new("Part",Character)
  2778. Wing1.FormFactor = Enum.FormFactor.Custom
  2779. Wing1.Size = Vector3.new(.2, .2, .2)
  2780. Wing1.Name = "WIng_2"
  2781.  
  2782. local fire = Instance.new("ParticleEmitter", Wing1)
  2783. fire.VelocitySpread = 0
  2784. fire.Lifetime = NumberRange.new(3)
  2785. fire.Acceleration = Vector3.new(0, 4, 4)
  2786. fire.RotSpeed = NumberRange.new(10)
  2787. fire.Rate = Rate
  2788. fire.Rotation = NumberRange.new(151515)
  2789. fire.Name = "Fire"
  2790. fire.LightEmission = 0.78
  2791. fire.LockedToPart = true
  2792. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  2793. fire.Color = ColorSequence.new(Color3.new(0.7,0,0), Color3.new(0.7,0,0))
  2794. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  2795.  
  2796. local Player = game:service'Players'.LocalPlayer
  2797. local Character = Player.Character
  2798. Torso = Character:WaitForChild'Torso'
  2799.  
  2800. local Wing2 = Instance.new("Part",Character)
  2801. Wing2.FormFactor = Enum.FormFactor.Custom
  2802. Wing2.Size = Vector3.new(.2, .2, .2)
  2803. Wing2.Name = "WIng_2"
  2804.  
  2805. local fire = Instance.new("ParticleEmitter", Wing2)
  2806. fire.VelocitySpread = 0
  2807. fire.Lifetime = NumberRange.new(3)
  2808. fire.Acceleration = Vector3.new(0, 4, 4)
  2809. fire.RotSpeed = NumberRange.new(10)
  2810. fire.Rate = Rate
  2811. fire.Rotation = NumberRange.new(151515)
  2812. fire.Name = "Fire"
  2813. fire.LightEmission = 0.78
  2814. fire.LockedToPart = true
  2815. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  2816. fire.Color = ColorSequence.new(Color3.new(0,0.8,0.9), Color3.new(0,0.8,0.9))
  2817. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  2818.  
  2819. Wld = function(a,b,cf)
  2820. local Weld = Instance.new('Weld',a)
  2821. Weld.Part0 = a
  2822. Weld.Part1 = b
  2823. Weld.C1 = cf
  2824. return Weld
  2825. end
  2826.  
  2827. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(50),-math.rad(90)))
  2828. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(50),-math.rad(90)))
  2829.  
  2830. print'Loaded'
  2831.  
  2832. game:service'RunService'.Stepped:connect(function()
  2833. --z = 6+math.sin(tick()*2)
  2834. y = -1+math.sin(tick()*Num)*Num2
  2835. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  2836. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  2837. end)
  2838.  
  2839. ------------------------------------------------------------------------------------------------
  2840. local Player = game:service'Players'.LocalPlayer
  2841. local Character = Player.Character
  2842. Torso = Character:WaitForChild'Torso'
  2843.  
  2844. local Wing1 = Instance.new("Part",Character)
  2845. Wing1.FormFactor = Enum.FormFactor.Custom
  2846. Wing1.Size = Vector3.new(.2, .2, .2)
  2847. Wing1.Name = "WIng_2"
  2848.  
  2849. local fire = Instance.new("ParticleEmitter", Wing1)
  2850. fire.VelocitySpread = 0
  2851. fire.Lifetime = NumberRange.new(3.1)
  2852. fire.Acceleration = Vector3.new(0, 4, 4)
  2853. fire.RotSpeed = NumberRange.new(10)
  2854. fire.Rate = Rate
  2855. fire.Rotation = NumberRange.new(151515)
  2856. fire.Name = "Fire"
  2857. fire.LightEmission = 0.78
  2858. fire.LockedToPart = true
  2859. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  2860. fire.Color = ColorSequence.new(Color3.new(0.7,0,0), Color3.new(0.7,0,0))
  2861. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  2862.  
  2863. local Player = game:service'Players'.LocalPlayer
  2864. local Character = Player.Character
  2865. Torso = Character:WaitForChild'Torso'
  2866.  
  2867. local Wing2 = Instance.new("Part",Character)
  2868. Wing2.FormFactor = Enum.FormFactor.Custom
  2869. Wing2.Size = Vector3.new(.2, .2, .2)
  2870. Wing2.Name = "WIng_2"
  2871.  
  2872. local fire = Instance.new("ParticleEmitter", Wing2)
  2873. fire.VelocitySpread = 0
  2874. fire.Lifetime = NumberRange.new(3.1)
  2875. fire.Acceleration = Vector3.new(0, 4, 4)
  2876. fire.RotSpeed = NumberRange.new(10)
  2877. fire.Rate = Rate
  2878. fire.Rotation = NumberRange.new(151515)
  2879. fire.Name = "Fire"
  2880. fire.LightEmission = 0.78
  2881. fire.LockedToPart = true
  2882. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  2883. fire.Color = ColorSequence.new(Color3.new(0,0.8,0.9), Color3.new(0,0.8,0.9))
  2884. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  2885.  
  2886. Wld = function(a,b,cf)
  2887. local Weld = Instance.new('Weld',a)
  2888. Weld.Part0 = a
  2889. Weld.Part1 = b
  2890. Weld.C1 = cf
  2891. return Weld
  2892. end
  2893.  
  2894. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(60),-math.rad(90)))
  2895. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(60),-math.rad(90)))
  2896.  
  2897. print'Loaded'
  2898.  
  2899. game:service'RunService'.Stepped:connect(function()
  2900. --z = 6+math.sin(tick()*2)
  2901. y = -1+math.sin(tick()*Num)*Num2
  2902. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  2903. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  2904. end)
  2905.  
  2906. p = game.Players.LocalPlayer
  2907. char = p.Character
  2908. local char = p.Character
  2909. torso = char.Torso
  2910. neck = char.Torso.Neck
  2911. hum = char.Humanoid
  2912.  
  2913. CV="Really red"
  2914.  
  2915. local txt = Instance.new("BillboardGui", char)
  2916. txt.Adornee = char .Head
  2917. txt.Name = "_status"
  2918. txt.Size = UDim2.new(2, 0, 1.2, 0)
  2919. txt.StudsOffset = Vector3.new(-9, 8, 0)
  2920. local text = Instance.new("TextLabel", txt)
  2921. text.Size = UDim2.new(10, 0, 7, 0)
  2922. text.FontSize = "Size24"
  2923. text.TextScaled = true
  2924. text.TextTransparency = 0
  2925. text.BackgroundTransparency = 1
  2926. text.TextTransparency = 0
  2927. text.TextStrokeTransparency = 0
  2928. text.Font = "Arcade"
  2929. text.TextStrokeColor3 = Color3.new(0.7,0,0)
  2930.  
  2931. v=Instance.new("Part")
  2932. v.Name = "ColorBrick"
  2933. v.Parent=p.Character
  2934. v.FormFactor="Symmetric"
  2935. v.Anchored=true
  2936. v.CanCollide=false
  2937. v.BottomSurface="Smooth"
  2938. v.TopSurface="Smooth"
  2939. v.Size=Vector3.new(10,5,3)
  2940. v.Transparency=1
  2941. v.CFrame=char.Torso.CFrame
  2942. v.BrickColor=BrickColor.new(CV)
  2943. v.Transparency=1
  2944. text.TextColor3 = Color3.new(0,0.8,0.9)
  2945. v.Shape="Block"
  2946. text.Text = "The Guardian"
  2947.  
  2948. --written by kent911t + help from wiki cuz i'm a noob :(
  2949.  
  2950. char=game.Players.LocalPlayer.Character
  2951. player=game.Players.LocalPlayer
  2952. worked = game.Workspace
  2953. aaaa=Instance.new("Model")
  2954. aaaa.Parent=worked
  2955. aaaa.Name="Explosions"
  2956. attacking=false
  2957.  
  2958. local gui=Instance.new("ScreenGui")
  2959. gui.Parent=player.PlayerGui
  2960. gui.Name="Loaded"
  2961.  
  2962. local frame=Instance.new("Frame")
  2963. frame.Parent=gui
  2964. frame.BackgroundColor3=Color3.fromRGB(190, 27, 188)
  2965. frame.BackgroundTransparency=1 -- put this to 0.2 :)
  2966. frame.BorderSizePixel=0
  2967. frame.Position=UDim2.new(0,0,0.4,0)
  2968. frame.Name="PurpleOverlay"
  2969. frame.Selectable=false
  2970. frame.Size=UDim2.new(0,1200,0,100)
  2971. frame.Style="Custom"
  2972. frame.Visible=true
  2973. frame.ZIndex=1
  2974. frame.Draggable=false
  2975. frame.Archivable=true
  2976.  
  2977. local text=Instance.new("TextLabel")
  2978. text.Parent=frame
  2979. text.BackgroundTransparency=1
  2980. text.Name="NukeInit"
  2981. text.ZIndex=2
  2982. text.Position=UDim2.new(0,450,0.25,0)
  2983. text.Size=UDim2.new(0,200,0,50)
  2984. text.Visible=true
  2985. text.Draggable=false
  2986. text.Font="SourceSansLight"
  2987. text.FontSize="Size96"
  2988. text.Text="NUKE INITIALIZED!"
  2989. text.TextTransparency=1 --set this to 0 :) oh btw it's a fade
  2990. text.Selectable=false
  2991. text.Archivable=true
  2992.  
  2993. for i = 1, 50 do
  2994. text.TextTransparency=text.TextTransparency-0.02
  2995. frame.BackgroundTransparency=frame.BackgroundTransparency-0.016
  2996. wait()
  2997. end
  2998.  
  2999. wait(1)
  3000.  
  3001. for i = 1, 50 do
  3002. text.TextTransparency=text.TextTransparency+0.02
  3003. frame.BackgroundTransparency=frame.BackgroundTransparency+0.016
  3004. wait()
  3005. end
  3006.  
  3007. script.Parent=player.Backpack
  3008.  
  3009. function blasted()
  3010. a=Instance.new("Part")
  3011. a.Parent=worked
  3012. a.Name="Blast"
  3013. a.BrickColor = BrickColor.new("Bright violet")
  3014. a.Material="Neon"
  3015. a.Transparency=0.25
  3016. a.CFrame = char.Torso.CFrame
  3017. a.Anchored=true
  3018. a.CanCollide=false
  3019. a.Locked=true
  3020. a.Size=Vector3.new(1,1,1)
  3021.  
  3022. h=Instance.new("Part")
  3023. h.Parent=worked
  3024. h.Name="Blast2"
  3025. h.BrickColor = BrickColor.new("Really black")
  3026. h.Material="Neon"
  3027. h.Transparency=0.25
  3028. h.CFrame = char.Torso.CFrame
  3029. h.Anchored=true
  3030. h.CanCollide=false
  3031. h.Locked=true
  3032. h.Size=Vector3.new(1,1,1)
  3033.  
  3034. i=Instance.new("SpecialMesh")
  3035. i.Parent=h
  3036. i.Name="Mesh"
  3037. i.MeshType="Sphere"
  3038. i.Scale=Vector3.new(1,1,1)
  3039. i.VertexColor=Vector3.new(1,1,1)
  3040.  
  3041. b=Instance.new("SpecialMesh")
  3042. b.Parent=a
  3043. b.Name="Mesh"
  3044. b.MeshType="Sphere"
  3045. b.Scale=Vector3.new(1,1,1)
  3046. b.VertexColor=Vector3.new(1,1,1)
  3047.  
  3048. --RING GENERATOR
  3049.  
  3050. --[[d=Instance.new("Part")
  3051. d.Parent=worked
  3052. d.Name="Ring"
  3053. d.BrickColor = BrickColor.new("Really black")
  3054. d.Material="Neon"
  3055. d.Transparency=0.25
  3056. d.Position=char.Torso.Position
  3057. d.Anchored=true
  3058. d.CanCollide=false
  3059. d.Locked=true
  3060. d.Size=Vector3.new(1,1,1)
  3061.  
  3062. c=Instance.new("SpecialMesh")
  3063. c.Parent=d
  3064. c.MeshType="FileMesh"
  3065. c.MeshId="http://www.roblox.com/asset/?id=3270017"
  3066. c.Scale=Vector3.new(1,1,1)
  3067. c.Name="Ring"
  3068.  
  3069. e=Instance.new("Part")
  3070. e.Parent=worked
  3071. e.Name="Ring2"
  3072. e.BrickColor = BrickColor.new("Really black")
  3073. e.Material="Neon"
  3074. e.Transparency=0.25
  3075. e.Position=char.Torso.Position
  3076. e.Anchored=true
  3077. e.CanCollide=false
  3078. e.Locked=true
  3079. e.Size=Vector3.new(1,1,1)
  3080.  
  3081. f=Instance.new("SpecialMesh")
  3082. f.Parent=e
  3083. f.MeshType="FileMesh"
  3084. f.MeshId="http://www.roblox.com/asset/?id=3270017"
  3085. f.Scale=Vector3.new(1,1,1)
  3086. f.Name="Ring2"--]]
  3087.  
  3088. blast = worked.Blast
  3089. blast2 = worked.Blast2
  3090. mesh = worked.Blast.Mesh
  3091.  
  3092. --THIS WILL ADD A SPIN TO THE RINGS
  3093.  
  3094. --[[local newPos = Instance.new("BodyPosition") -- making a BodyPosition to put in each ring so that the rings will stay in the right place
  3095. newPos.Parent = d
  3096. newPos.position = blast.Position
  3097. newPos.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  3098. local newSpin = Instance.new("BodyAngularVelocity") -- this is to make the rings spin
  3099. newSpin.Parent = d
  3100. local spinPower = 10000
  3101. newSpin.maxTorque = Vector3.new(spinPower,spinPower,spinPower)
  3102. newSpin.angularvelocity = Vector3.new(math.random(0,200)/100,math.random(0,200)/100,math.random(0,200)/100) -- making thier spin random
  3103. d.CFrame = d.CFrame * CFrame.Angles(math.random(1,360),math.random(1,360),math.random(1,360)) -- starting the ring at a random rotation
  3104. d.Anchored = false -- unanchoring the ring after it is set up so that it can now spin
  3105.  
  3106. local newPos = Instance.new("BodyPosition") -- making a BodyPosition to put in each ring so that the rings will stay in the right place
  3107. newPos.Parent = e
  3108. newPos.position = blast.Position
  3109. newPos.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  3110. local newSpin = Instance.new("BodyAngularVelocity") -- this is to make the rings spin
  3111. newSpin.Parent = e
  3112. local spinPower = 10000
  3113. newSpin.maxTorque = Vector3.new(spinPower,spinPower,spinPower)
  3114. newSpin.angularvelocity = Vector3.new(math.random(0,200)/100,math.random(0,200)/100,math.random(0,200)/100) -- making thier spin random
  3115. e.CFrame = e.CFrame * CFrame.Angles(math.random(1,360),math.random(1,360),math.random(1,360)) -- starting the ring at a random rotation
  3116. e.Anchored = false -- unanchoring the ring after it is set up so that it can now spin
  3117. --]]
  3118. local newPos = Instance.new("BodyPosition") -- making a BodyPosition to put in each ring so that the rings will stay in the right place
  3119. newPos.Parent = h
  3120. newPos.position = blast2.Position
  3121. newPos.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  3122. local newSpin = Instance.new("BodyAngularVelocity") -- this is to make the rings spin
  3123. newSpin.Parent = h
  3124. local spinPower = 10000
  3125. newSpin.maxTorque = Vector3.new(spinPower,spinPower,spinPower)
  3126. newSpin.angularvelocity = Vector3.new(math.random(0,200)/100,math.random(0,200)/100,math.random(0,200)/100) -- making thier spin random
  3127. h.CFrame = h.CFrame * CFrame.Angles(math.random(1,360),math.random(1,360),math.random(1,360)) -- starting the ring at a random rotation
  3128. h.Anchored = false -- unanchoring the ring after it is set up so that it can now spin
  3129. end
  3130.  
  3131. function huge()
  3132. chargin2=Instance.new("Sound")
  3133. chargin2.Parent=char.Torso
  3134. chargin2.Pitch=0.4
  3135. chargin2.Name="chargin2"
  3136. chargin2.SoundId="rbxassetid://244578827"
  3137. chargin2.Volume=1
  3138. chargin2.PlayOnRemove=true
  3139. chargin2:Play()
  3140.  
  3141. for i = 1, 250 do
  3142. blast.Size=blast.Size+Vector3.new(0.3,0.3,0.3)
  3143. blast2.Size=blast2.Size+Vector3.new(0.25,0.25,0.25)
  3144. --c.Scale=c.Scale+Vector3.new(0.3,0.3,0.03) RING SCALER
  3145. --f.Scale=f.Scale+Vector3.new(0.3,0.3,0.03)
  3146. wait()
  3147. end
  3148.  
  3149. for i = 1, 150 do
  3150. blast.Size=blast.Size-Vector3.new(0.7,0.7,0.7)
  3151. blast2.Size=blast2.Size-Vector3.new(0.5,0.5,0.5)
  3152. wait()
  3153. end
  3154. blast:Destroy()
  3155. blast2:Destroy()
  3156. end
  3157.  
  3158. function nuke()
  3159. local cyl1=Instance.new("Part")
  3160. cyl1.Parent=worked
  3161. cyl1.Anchored=true
  3162. cyl1.CanCollide=false
  3163. cyl1.Name="Cyl1"
  3164. cyl1.CFrame = char.Torso.CFrame
  3165. cyl1.Rotation=Vector3.new(0,0,-90)
  3166. cyl1.Transparency=0.25
  3167. cyl1.BrickColor=BrickColor.new("Bright violet")
  3168. cyl1.Material="Neon"
  3169. cyl1.Size=Vector3.new(1,1,1)
  3170. local cyl2=Instance.new("Part")
  3171. cyl2.Parent=worked
  3172. cyl2.Anchored=true
  3173. cyl2.CanCollide=false
  3174. cyl2.Name="Cyl2"
  3175. cyl2.CFrame = char.Torso.CFrame
  3176. cyl2.Rotation=Vector3.new(0,0,-90)
  3177. cyl2.Transparency=0.25
  3178. cyl2.BrickColor=BrickColor.new("Really black")
  3179. cyl2.Material="Neon"
  3180. cyl2.Size=Vector3.new(1,1,1)
  3181. local cyl1mesh=Instance.new("SpecialMesh")
  3182. cyl1mesh.Parent=cyl1
  3183. cyl1mesh.Name="Mesh"
  3184. cyl1mesh.MeshType="Cylinder"
  3185. cyl1mesh.Scale=Vector3.new(1,1,1)
  3186. cyl1mesh.VertexColor=Vector3.new(1,1,1)
  3187. local cyl2mesh=Instance.new("SpecialMesh")
  3188. cyl2mesh.Parent=cyl2
  3189. cyl2mesh.Name="Mesh"
  3190. cyl2mesh.MeshType="Cylinder"
  3191. cyl2mesh.Scale=Vector3.new(1,1,1)
  3192. cyl2mesh.VertexColor=Vector3.new(1,1,1)
  3193. local ring1=Instance.new("Part")
  3194. ring1.Parent=worked
  3195. ring1.Anchored=true
  3196. ring1.CanCollide=false
  3197. ring1.Name="ring1"
  3198. ring1.CFrame = char.Torso.CFrame+Vector3.new(0, 100, 0)
  3199. ring1.Rotation=Vector3.new(90,0,0)
  3200. ring1.Transparency=0
  3201. ring1.BrickColor=BrickColor.new("Really black")
  3202. ring1.Material="Neon"
  3203. ring1.Size=Vector3.new(1,1,1)
  3204. local ring1mesh=Instance.new("SpecialMesh")
  3205. ring1mesh.Parent=ring1
  3206. ring1mesh.MeshType="FileMesh"
  3207. ring1mesh.MeshId="http://www.roblox.com/asset/?id=3270017"
  3208. ring1mesh.Scale=Vector3.new(1,1,1)
  3209. ring1mesh.Name="Ring"
  3210. local ring2=Instance.new("Part")
  3211. ring2.Parent=worked
  3212. ring2.Anchored=true
  3213. ring2.CanCollide=false
  3214. ring2.Name="ring2"
  3215. ring2.CFrame = char.Torso.CFrame+Vector3.new(0, 250, 0)
  3216. ring2.Rotation=Vector3.new(90,0,0)
  3217. ring2.Transparency=0
  3218. ring2.BrickColor=BrickColor.new("Really black")
  3219. ring2.Material="Neon"
  3220. ring2.Size=Vector3.new(1,1,1)
  3221. local ring2mesh=Instance.new("SpecialMesh")
  3222. ring2mesh.Parent=ring2
  3223. ring2mesh.MeshType="FileMesh"
  3224. ring2mesh.MeshId="http://www.roblox.com/asset/?id=3270017"
  3225. ring2mesh.Scale=Vector3.new(1,1,1)
  3226. ring2mesh.Name="Ring"
  3227. local ring3=Instance.new("Part")
  3228. ring3.Parent=worked
  3229. ring3.Anchored=true
  3230. ring3.CanCollide=false
  3231. ring3.Name="ring3"
  3232. ring3.CFrame = char.Torso.CFrame+Vector3.new(0, 500, 0)
  3233. ring3.Rotation=Vector3.new(90,0,0)
  3234. ring3.Transparency=0
  3235. ring3.BrickColor=BrickColor.new("Really black")
  3236. ring3.Material="Neon"
  3237. ring3.Size=Vector3.new(1,1,1)
  3238. local ring3mesh=Instance.new("SpecialMesh")
  3239. ring3mesh.Parent=ring3
  3240. ring3mesh.MeshType="FileMesh"
  3241. ring3mesh.MeshId="http://www.roblox.com/asset/?id=3270017"
  3242. ring3mesh.Scale=Vector3.new(1,1,1)
  3243. ring3mesh.Name="Ring"
  3244. local ring4=Instance.new("Part")
  3245. ring4.Parent=worked
  3246. ring4.Anchored=true
  3247. ring4.CanCollide=false
  3248. ring4.Name="ring4"
  3249. ring4.CFrame = char.Torso.CFrame+Vector3.new(0, 1000, 0)
  3250. ring4.Rotation=Vector3.new(90,0,0)
  3251. ring4.Transparency=0
  3252. ring4.BrickColor=BrickColor.new("Really black")
  3253. ring4.Material="Neon"
  3254. ring4.Size=Vector3.new(1,1,1)
  3255. local ring4mesh=Instance.new("SpecialMesh")
  3256. ring4mesh.Parent=ring4
  3257. ring4mesh.MeshType="FileMesh"
  3258. ring4mesh.MeshId="http://www.roblox.com/asset/?id=3270017"
  3259. ring4mesh.Scale=Vector3.new(1,1,1)
  3260. ring4mesh.Name="Ring"
  3261. local ring5=Instance.new("Part")
  3262. ring5.Parent=worked
  3263. ring5.Anchored=true
  3264. ring5.CanCollide=false
  3265. ring5.Name="ring5"
  3266. ring5.CFrame = char.Torso.CFrame+Vector3.new(0, 1000, 0)
  3267. ring5.Rotation=Vector3.new(90,0,0)
  3268. ring5.Transparency=0
  3269. ring5.BrickColor=BrickColor.new("Bright violet")
  3270. ring5.Material="Neon"
  3271. ring5.Size=Vector3.new(1,1,1)
  3272. local ring5mesh=Instance.new("SpecialMesh")
  3273. ring5mesh.Parent=ring5
  3274. ring5mesh.MeshType="FileMesh"
  3275. ring5mesh.MeshId="http://www.roblox.com/asset/?id=3270017"
  3276. ring5mesh.Scale=Vector3.new(1,1,1)
  3277. ring5mesh.Name="Ring"
  3278. for i = 1, 150 do
  3279. abc=Instance.new("Part")
  3280. abc.Parent=aaaa
  3281. abc.Name="Explosion"
  3282. abc.Material="Neon"
  3283. abc.Anchored=true
  3284. abc.Size = Vector3.new(12,12,12)
  3285. abc.Transparency=0
  3286. abc.CanCollide=false
  3287. a=math.random(1,2)
  3288. if a == 1 then
  3289. abc.BrickColor = BrickColor.new("Really black")
  3290. elseif a == 2 then
  3291. abc.BrickColor = BrickColor.new("Bright violet")
  3292. end
  3293. abc.CFrame=char.Torso.CFrame+Vector3.new(math.random(-50,50),math.random(0,20),math.random(-50,50))
  3294. ab=Instance.new("SpecialMesh")
  3295. ab.Parent=abc
  3296. ab.MeshType="Sphere"
  3297. ab.Name="SpecialMesh"
  3298. ab.Scale=Vector3.new(1,1,1)
  3299. end
  3300.  
  3301.  
  3302. chargin=Instance.new("Sound")
  3303. chargin.Parent=char.Torso
  3304. chargin.Pitch=1
  3305. chargin.Name="chargin"
  3306. chargin.SoundId="rbxassetid://159490394"
  3307. chargin.Volume=1
  3308. chargin.PlayOnRemove=true
  3309. chargin:Play()
  3310.  
  3311. for i = 1, 300 do
  3312. cyl1.Size=cyl1.Size+Vector3.new(50,0.1,0.1)
  3313. cyl2.Size=cyl2.Size+Vector3.new(50,0.09,0.06)
  3314. ring1mesh.Scale=ring1mesh.Scale+Vector3.new(0.2,0.2,0.2)
  3315. ring2mesh.Scale=ring2mesh.Scale+Vector3.new(0.3,0.3,0.3)
  3316. ring3mesh.Scale=ring3mesh.Scale+Vector3.new(0.8,0.8,0.8)
  3317. ring4mesh.Scale=ring4mesh.Scale+Vector3.new(4,4,4)
  3318. ring5mesh.Scale=ring5mesh.Scale+Vector3.new(2.5,2.5,2.5)
  3319. for _, player in pairs(game.Workspace.Explosions:GetChildren()) do
  3320. player.Size=player.Size+Vector3.new(0.2,0.2,0.2)
  3321. player.Transparency=player.Transparency+0.005
  3322. end
  3323. wait()
  3324. end
  3325.  
  3326. for _, player in pairs(game.Workspace.Explosions:GetChildren()) do
  3327. player:Destroy()
  3328. end
  3329.  
  3330.  
  3331. wait(0.2)
  3332. for i = 1, 250 do
  3333. cyl1.Transparency=cyl1.Transparency+0.02
  3334. cyl2.Transparency=cyl2.Transparency+0.02
  3335. ring1.Transparency=ring1.Transparency+0.02
  3336. ring2.Transparency=ring2.Transparency+0.02
  3337. ring3.Transparency=ring3.Transparency+0.02
  3338. ring4.Transparency=ring4.Transparency+0.02
  3339. ring5.Transparency=ring5.Transparency+0.02
  3340. wait()
  3341. end
  3342.  
  3343. cyl1:Destroy()
  3344. cyl2:Destroy()
  3345. ring1:Destroy()
  3346. ring2:Destroy()
  3347. ring3:Destroy()
  3348. ring4:Destroy()
  3349. ring5:Destroy()
  3350. attacking=false
  3351. end
  3352.  
  3353.  
  3354. function shake()
  3355. local camera = game.Workspace.CurrentCamera
  3356. for i = 1,1000 do
  3357. wait()
  3358. camera.CoordinateFrame = camera.CoordinateFrame * CFrame.new(0,2,0)
  3359. wait()
  3360. camera.CoordinateFrame = camera.CoordinateFrame * CFrame.new(0,-2,0)
  3361. end
  3362. end
  3363.  
  3364. function onKeyPress(inputObject, gameProcessedEvent)
  3365. if inputObject.KeyCode == Enum.KeyCode.Q and attacking == false then
  3366. attacking=true
  3367. blasted()
  3368. huge()
  3369. wait(0.5)
  3370. nuke()
  3371. shake()
  3372. elseif inputObject.KeyCode == Enum.KeyCode.Q and attacking == true then
  3373. end
  3374. end
  3375. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  3376.  
  3377.  
  3378. --[[soundex=sounds.explosion = "http://www.roblox.com/asset/?id=87784452"
  3379. soundbewm=sounds.bewm = "http://www.roblox.com/asset/?id=2767090"
  3380. sounds.slice = "http://www.roblox.com/asset/?id=161006195"
  3381. sounds.charge = "http://roblox.com/asset/?id=2101137"
  3382. sounds.sharpblast = "http://roblox.com/asset/?id=2248511"
  3383. sounds.woosh = "http://roblox.com/asset/?id=147722227"
  3384. sounds.metalhit = "http://roblox.com/asset/?id=153092348"
  3385. sounds.mechblast = "http://roblox.com/asset/?id=169380505"
  3386. sounds.chargepulse = "http://roblox.com/asset/?id=10209296"
  3387. sounds.heal = "http://roblox.com/asset/?id=2101144"
  3388. sounds.zap = "http://roblox.com/asset/?id=10756104"
  3389. sounds.powernote = "http://roblox.com/asset/?id=192603389"
  3390. sounds.swing = "http://roblox.com/asset/?id=10209640"
  3391. sounds.hit = "http://roblox.com/asset/?id=10209590"--]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement