Advertisement
aaaay63746

Final Explosion FE

Mar 26th, 2020
1,331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.02 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Mokiros")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83.  
  84. -----------/The final explosion\\-----------
  85. --[[Movelist
  86. Instant explosion.
  87. ---------]]
  88.  
  89. Player= owner
  90. Character=Player.Character
  91. Character.Humanoid.Name = "noneofurbusiness"
  92. hum = Character.noneofurbusiness
  93. LeftArm=Character["Left Arm"]
  94. LeftLeg=Character["Left Leg"]
  95. RightArm=Character["Right Arm"]
  96. RightLeg=Character["Right Leg"]
  97. Root=Character["HumanoidRootPart"]
  98. Head=Character["Head"]
  99. Torso=Character["Torso"]
  100. Neck=Torso["Neck"]
  101. place = Torso
  102. hum.WalkSpeed = 0
  103. hum.JumpPower = 0
  104.  
  105. screenGui = Instance.new("ScreenGui")
  106. screenGui.Parent = script.Parent
  107. speech = Instance.new("Sound",workspace)
  108. speech.SoundId = "rbxassetid://2124080151"
  109. speech.Volume = 10
  110. speech:Play()
  111. framee = Instance.new("Frame")
  112. framee.Parent = screenGui
  113. framee.Position = UDim2.new(0, 8, 0, -500)
  114. framee.Size = UDim2.new(100000000,10000000,10000000,10000000)
  115. framee.BackgroundColor3 = BrickColor.new("White").Color
  116. framee.BackgroundTransparency = 1
  117. for i = 1, 10 do
  118. framee.BackgroundTransparency = framee.BackgroundTransparency - .1
  119. wait()
  120. end
  121. imageLabelo = Instance.new("ImageLabel")
  122. imageLabelo.Parent = screenGui
  123. imageLabelo.BackgroundTransparency = 1
  124. imageLabelo.ImageTransparency = 0
  125. imageLabelo.Position = UDim2.new(0, 0, 0, -50)
  126. imageLabelo.Size = UDim2.new(0, 1370, 0, 750)
  127. imageLabelo.Image = "rbxassetid://2124079039"
  128. wait(6)
  129. imageLabelo2 = Instance.new("ImageLabel")
  130. imageLabelo2.Parent = screenGui
  131. imageLabelo2.BackgroundTransparency = 1
  132. imageLabelo2.ImageTransparency = 1
  133. imageLabelo2.Position = UDim2.new(0, 0, 0, -50)
  134. imageLabelo2.Size = UDim2.new(0, 1370, 0, 750)
  135. imageLabelo2.Image = "rbxassetid://2124078787"
  136. for i = 1, 50 do
  137. imageLabelo.ImageTransparency = imageLabelo.ImageTransparency + 0.025
  138. imageLabelo2.ImageTransparency = imageLabelo2.ImageTransparency - 0.025
  139. wait()
  140. end
  141. wait(2.9)
  142. for i = 1, 10 do
  143. framee.BackgroundTransparency = framee.BackgroundTransparency + .1
  144. imageLabelo2.ImageTransparency = imageLabelo2.ImageTransparency + .1
  145. wait()
  146. end
  147. imageLabelo:Remove()
  148. imageLabelo2:Remove()
  149.  
  150. pcall(function()
  151.  
  152. camera = workspace.CurrentCamera
  153. camera.CameraType = Enum.CameraType.Scriptable
  154. camera.CoordinateFrame = Torso.CFrame * CFrame.new(0,5,-15) * CFrame.Angles(0,math.rad(180),0)
  155. coroutine.wrap(function()
  156. for i = 1, 75 do
  157. wait()
  158. end
  159. gf = 5
  160. fg = -30
  161. for i = 1, 580 do
  162. gf = gf + 0
  163. fg = fg + 2.5
  164. camera.CoordinateFrame = Torso.CFrame * CFrame.new(0,5 + gf,-15 - fg ) * CFrame.Angles(0,math.rad(180),0)
  165. wait()
  166. end
  167. for i = 1, 250 do
  168. wait()
  169. end
  170. coroutine.wrap(function()
  171. for i = 1, 1000 do
  172. for i,v in pairs(hum.Parent:GetDescendants()) do
  173. if v:IsA("Part") then v.Transparency = v.Transparency + 0.025
  174. end
  175. end
  176. wait()
  177. end
  178. end)()
  179. camera.CameraType = Enum.CameraType.Custom
  180. end)()
  181. end)
  182.  
  183. local remote = NS ([==[
  184. Player=owner
  185. Character=Player.Character
  186. Character.Humanoid.Name = "noneofurbusiness"
  187. hum = Character.noneofurbusiness
  188. LeftArm=Character["Left Arm"]
  189. LeftLeg=Character["Left Leg"]
  190. RightArm=Character["Right Arm"]
  191. RightLeg=Character["Right Leg"]
  192. Root=Character["HumanoidRootPart"]
  193. Head=Character["Head"]
  194. Torso=Character["Torso"]
  195. Neck=Torso["Neck"]
  196. walking = false
  197. jumping = false
  198. allowgrassy = false
  199. zxc = false
  200. matte = nil
  201. colori = nil
  202. bigball = false
  203. attacking = false
  204. laughing = false
  205. running = false
  206. downpress = false
  207. taim = nil
  208. change = 0
  209. ws = 0
  210. jp = 0
  211. appi = false
  212. tauntdebounce = false
  213. position = nil
  214. lastexplosion = false
  215. staybooming = false
  216. MseGuide = true
  217. levitate = false
  218. firsttime5 = false
  219. notallowedtransform = false
  220. settime = 0
  221. firsttime2 = false
  222. sine = 0
  223. t = 0
  224. combo1 = true
  225. dgs = 75
  226. combo2 = false
  227. firsttime3 = false
  228. combo3 = false
  229. local bl = {907530553,907527750,907527912}
  230. colortable = {"Really black","Really red"}
  231. colors = #colortable
  232. blz = #bl
  233. local aces = {1880203893,1881287656,1881287420,1881288034}
  234. ace = #aces
  235. local laughs = {2011349649,2011349983,2011351501,2011352223,2011355991,2011356475}
  236. laugh = #laughs
  237. RunSrv = game:GetService("RunService")
  238. RenderStepped = game:GetService("RunService").RenderStepped
  239. removeuseless = game:GetService("Debris")
  240. damageall={}
  241. Repeater={}
  242. Repeater2={}
  243. magictable={}
  244. nonmeshRepeater={}
  245. nonmeshRepeater2={}
  246. dmgii={}
  247. DamageAll2={}
  248. SlowlyFade={}
  249. th1={}
  250. lolzor={}
  251. lolzor2={}
  252. th2={}
  253. keyYsize={}
  254. blocktrail={}
  255. keyYtransparency={}
  256. th3={}
  257. laughingtable={}
  258. Extreme={}
  259. ExtremeM={}
  260. ExtremeM2={}
  261. m3={}
  262. th4={}
  263. th5={}
  264. UpMover={}
  265. openshocktable={}
  266. LessSize={}
  267. ForwardMover={}
  268. FadeIn={}
  269. signtransparency={}
  270. signmover={}
  271. signrotator={}
  272.  
  273. FireBall = Instance.new("Sound",LeftArm)
  274. FireBall.SoundId = "rbxassetid://842332424"
  275. FireBall.Volume = 5
  276. FireBall.Pitch = 2.5
  277.  
  278. BigFireBall = Instance.new("Sound",LeftArm)
  279. BigFireBall.SoundId = "rbxassetid://842332424"
  280. BigFireBall.Volume = 8
  281. BigFireBall.Pitch = 1.5
  282.  
  283. local HEADLERP = Instance.new("ManualWeld")
  284. HEADLERP.Parent = Head
  285. HEADLERP.Part0 = Head
  286. HEADLERP.Part1 = Torso
  287. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  288.  
  289. local TORSOLERP = Instance.new("ManualWeld")
  290. TORSOLERP.Parent = Root
  291. TORSOLERP.Part0 = Torso
  292. TORSOLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  293.  
  294. local ROOTLERP = Instance.new("ManualWeld")
  295. ROOTLERP.Parent = Root
  296. ROOTLERP.Part0 = Root
  297. ROOTLERP.Part1 = Torso
  298. ROOTLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  299.  
  300. local RIGHTARMLERP = Instance.new("ManualWeld")
  301. RIGHTARMLERP.Parent = RightArm
  302. RIGHTARMLERP.Part0 = RightArm
  303. RIGHTARMLERP.Part1 = Torso
  304. RIGHTARMLERP.C0 = CFrame.new(-1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  305.  
  306. local LEFTARMLERP = Instance.new("ManualWeld")
  307. LEFTARMLERP.Parent = LeftArm
  308. LEFTARMLERP.Part0 = LeftArm
  309. LEFTARMLERP.Part1 = Torso
  310. LEFTARMLERP.C0 = CFrame.new(1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  311.  
  312. local RIGHTLEGLERP = Instance.new("ManualWeld")
  313. RIGHTLEGLERP.Parent = RightLeg
  314. RIGHTLEGLERP.Part0 = RightLeg
  315. RIGHTLEGLERP.Part1 = Torso
  316. RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  317.  
  318. local LEFTLEGLERP = Instance.new("ManualWeld")
  319. LEFTLEGLERP.Parent = LeftLeg
  320. LEFTLEGLERP.Part0 = LeftLeg
  321. LEFTLEGLERP.Part1 = Torso
  322. LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  323.  
  324. local function weldBetween(a, b)
  325. local weld = Instance.new("ManualWeld", a)
  326. weld.Part0 = a
  327. weld.Part1 = b
  328. weld.C0 = a.CFrame:inverse() * b.CFrame
  329. return weld
  330. end
  331.  
  332. function makeblockytrail()
  333. coroutine.wrap(function()
  334. while true do
  335. for i,v in pairs(blocktrail) do
  336. smke = Instance.new("Part",v)
  337. smke.CFrame = v.CFrame * CFrame.Angles(math.random(-180,180),math.random(-180,180),math.random(-180,180))
  338. smke.Material = "Neon"
  339. smke.Anchored = true
  340. smke.CanCollide = false
  341. removeuseless:AddItem(smke,2)
  342. end
  343. swait()
  344. end
  345. end)()
  346. end
  347.  
  348. local function ci(x, c, y, n)
  349. so = Instance.new("Sound", x)
  350. so.SoundId = c
  351. so.Volume = y
  352. so.Looped = n
  353. end
  354.  
  355. function MAKETRAIL(PARENT,POSITION1,POSITION2,LIFETIME,COLOR)
  356. A = Instance.new("Attachment", PARENT)
  357. A.Position = POSITION1
  358. A.Name = "A"
  359. B = Instance.new("Attachment", PARENT)
  360. B.Position = POSITION2
  361. B.Name = "B"
  362. tr1 = Instance.new("Trail", PARENT)
  363. tr1.Attachment0 = A
  364. tr1.Attachment1 = B
  365. tr1.Enabled = true
  366. tr1.Lifetime = LIFETIME
  367. tr1.TextureMode = "Static"
  368. tr1.LightInfluence = 0
  369. tr1.Color = COLOR
  370. tr1.Transparency = NumberSequence.new(0, 1)
  371. end
  372.  
  373. function clean()
  374. damageall={}
  375. Repeater={}
  376. Repeater2={}
  377. nonmeshRepeater={}
  378. nonmeshRepeater2={}
  379. dmgii={}
  380. DamageAll2={}
  381. SlowlyFade={}
  382. th1={}
  383. th2={}
  384. th3={}
  385. Extreme={}
  386. ExtremeM={}
  387. ExtremeM2={}
  388. m3={}
  389. th4={}
  390. th5={}
  391. UpMover={}
  392. openshocktable={}
  393. LessSize={}
  394. ForwardMover={}
  395. FadeIn={}
  396. signtransparency={}
  397. signmover={}
  398. signrotator={}
  399. end
  400.  
  401. coroutine.wrap(function()
  402. while wait() do
  403. hum.WalkSpeed = ws
  404. hum.JumpPower = jp
  405. end
  406. end)()
  407. godmode = coroutine.wrap(function()
  408. for i,v in pairs(Character:GetChildren()) do
  409. if v:IsA("BasePart") and v ~= Root then
  410. v.Anchored = false
  411. end
  412. end
  413. while true do
  414. hum.MaxHealth = math.huge
  415. wait(0.0000001)
  416. hum.Health = math.huge
  417. wait()
  418. end
  419. end)
  420. godmode()
  421. ff = Instance.new("ForceField", Character)
  422. ff.Visible = false
  423.  
  424. coroutine.wrap(function()
  425. for i,v in pairs(Character:GetChildren()) do
  426. if v.Name == "Animate" then v:Remove()
  427. end
  428. end
  429. end)()
  430.  
  431. function damagealll(Radius,Position)
  432. local Returning = {}
  433. for _,v in pairs(workspace:GetChildren()) do
  434. if v~=Character and v:FindFirstChildOfClass('Humanoid') and v:FindFirstChild('Torso') or v:FindFirstChild('UpperTorso') then
  435. if v:FindFirstChild("Torso") then
  436. local Mag = (v.Torso.Position - Position).magnitude
  437. if Mag < Radius then
  438. table.insert(Returning,v)
  439. end
  440. elseif v:FindFirstChild("UpperTorso") then
  441. local Mag = (v.UpperTorso.Position - Position).magnitude
  442. if Mag < Radius then
  443. table.insert(Returning,v)
  444. end
  445. end
  446. end
  447. end
  448. return Returning
  449. end
  450.  
  451. ArtificialHB = Instance.new("BindableEvent", script)
  452. ArtificialHB.Name = "Heartbeat"
  453. script:WaitForChild("Heartbeat")
  454.  
  455. frame = 1 / 60
  456. tf = 0
  457. allowframeloss = false
  458. tossremainder = false
  459.  
  460.  
  461. lastframe = tick()
  462. script.Heartbeat:Fire()
  463.  
  464.  
  465. game:GetService("RunService").Heartbeat:connect(function(s, p)
  466. tf = tf + s
  467. if tf >= frame then
  468. if allowframeloss then
  469. script.Heartbeat:Fire()
  470. lastframe = tick()
  471. else
  472. for i = 1, math.floor(tf / frame) do
  473. script.Heartbeat:Fire()
  474. end
  475. lastframe = tick()
  476. end
  477. if tossremainder then
  478. tf = 0
  479. else
  480. tf = tf - frame * math.floor(tf / frame)
  481. end
  482. end
  483. end)
  484.  
  485. function swait(num)
  486. if num == 0 or num == nil then
  487. game:service("RunService").Stepped:wait(0)
  488. else
  489. for i = 0, num do
  490. game:service("RunService").Stepped:wait(0)
  491. end
  492. end
  493. end
  494.  
  495.  
  496. function SOUND(PARENT,ID,VOL,LOOP,REMOVE)
  497. so = Instance.new("Sound")
  498. so.Parent = PARENT
  499. so.SoundId = "rbxassetid://"..ID
  500. so.Volume = VOL
  501. so.Looped = LOOP
  502. so:Play()
  503. removeuseless:AddItem(so,REMOVE)
  504. end
  505.  
  506. warn("I'm gonna crush you, and throw you into the wind. Made by Supr14")
  507.  
  508. function ray(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  509. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  510. end
  511.  
  512. function ray2(StartPos, EndPos, Distance, Ignore)
  513. local DIRECTION = CFrame.new(StartPos,EndPos).lookVector
  514. return ray(StartPos, DIRECTION, Distance, Ignore)
  515. end
  516. sacrifice = Instance.new("Sound",Torso)
  517. sacrifice.SoundId = "rbxassetid://2123165301"
  518. sacrifice.Volume = 10
  519. sacrifice:Play()
  520. explosiontable = {}
  521. x = 0
  522. coroutine.wrap(function()
  523. for i = 1, 400 do
  524. swait()
  525. x = x + 15
  526. for i,v in pairs(explosiontable) do
  527. v.Scale = v.Scale + Vector3.new(4,.6,4)
  528. v.Parent.CFrame = v.Parent.CFrame * CFrame.Angles(math.rad(0),math.rad(x),0)
  529. v.Parent.Transparency = v.Parent.Transparency + .025
  530. end
  531. end
  532. end)()
  533. coroutine.wrap(function()
  534. for i = 1, 25 do
  535. shockwave3 = Instance.new("Part", Torso)
  536. shockwave3.Size = Vector3.new(1,1,1)
  537. shockwave3.CanCollide = false
  538. shockwave3.Anchored = true
  539. shockwave3.Name = "shockwav"
  540. shockwave3.Transparency = .5
  541. shockwave3.BrickColor = BrickColor.new("White")
  542. shockwave3.CFrame = CFrame.new(Root.Position) * CFrame.new(0,-3,0)
  543. shockwavemesh3 = Instance.new("SpecialMesh", shockwave3)
  544. shockwavemesh3.Scale = Vector3.new(1,1,1)
  545. shockwavemesh3.MeshId = "rbxassetid://20329976"
  546. table.insert(explosiontable,shockwavemesh3)
  547. swait(5)
  548. end
  549. end)()
  550. for i = 1, 50 do
  551. settime = 0.05
  552. sine = sine + change
  553. change = 1
  554. HEADLERP.C0 = HEADLERP.C0:lerp(CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.5)
  555. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,-.3,0) * CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)),.5)
  556. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.3,1,.3) * CFrame.Angles(math.rad(-100),math.rad(-13 + 2 *math.sin(sine/1)),math.rad(5 * math.sin(sine/1))), 0.5)
  557. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3,1,.3) * CFrame.Angles(math.rad(-100),math.rad(13 + 2 *math.sin(sine/1)),math.rad(5 * math.sin(sine/1))), 0.5)
  558. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.5)
  559. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2, -.25) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.5)
  560. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.5)
  561. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, -.25) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(10)), 0.5)
  562. swait()
  563. end
  564. explosiontable2={}
  565. explosiontable3={}
  566. TheExplosion = Instance.new("Part",LeftArm)
  567. TheExplosion.BrickColor = BrickColor.new("Bright yellow")
  568. TheExplosion.Material = "Neon"
  569. TheExplosion.Shape = "Ball"
  570. TheExplosion.Anchored = true
  571. TheExplosion.CanCollide = false
  572. TheExplosion.CFrame = CFrame.new(Torso.Position)
  573. TheExplosion.Size = Vector3.new(8,8,8)
  574. TheExplosion.Transparency = 0.5
  575. shockwave2 = Instance.new("Part", LeftArm)
  576. shockwave2.Size = Vector3.new(1,1,1)
  577. shockwave2.CanCollide = false
  578. shockwave2.Anchored = true
  579. shockwave2.Transparency = 1
  580. shockwave2.BrickColor = BrickColor.new("White")
  581. shockwave2.CFrame = CFrame.new(Root.Position) * CFrame.new(0,-3,0)
  582. shockwavemesh2 = Instance.new("SpecialMesh", shockwave2)
  583. shockwavemesh2.Scale = Vector3.new(3,1,3)
  584. shockwavemesh2.MeshId = "rbxassetid://20329976"
  585. table.insert(explosiontable2,shockwavemesh2)
  586. shockwave = Instance.new("Part", LeftArm)
  587. shockwave.Size = Vector3.new(1,1,1)
  588. shockwave.CanCollide = false
  589. shockwave.Anchored = true
  590. shockwave.Transparency = 1
  591. shockwave.BrickColor = BrickColor.new("White")
  592. shockwave.CFrame = CFrame.new(Root.Position) * CFrame.new(0,-3,0)
  593. shockwavemesh = Instance.new("SpecialMesh", shockwave)
  594. shockwavemesh.Scale = Vector3.new(3,1,3)
  595. shockwavemesh.MeshId = "rbxassetid://20329976"
  596. table.insert(explosiontable3,shockwavemesh)
  597. coroutine.wrap(function()
  598. for i = 1, 23 do
  599. TheExplosion.Transparency = 1
  600. swait(1)
  601. TheExplosion.Transparency = 0.5
  602. swait(1)
  603. end
  604. coroutine.wrap(function()
  605. for i = 1, 50 do
  606. wait(2.5)
  607. shocks = TheExplosion:Clone()
  608. shocks.Parent = Torso
  609. shocks.Name = "shock"
  610. swait()
  611. end
  612. end)()
  613. n = 0
  614. f = 0
  615. dmgal = 0
  616. shockwave.Transparency = .5
  617. shockwave2.Transparency = .5
  618. for i = 1, 125 do
  619. dmgal = dmgal + .25
  620. local Hit = damagealll(dmgal,TheExplosion.Position)
  621. for _,v in pairs(Hit) do
  622. v:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(10+dmgal,20+dmgal))
  623. vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso"))
  624. vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999)
  625. torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  626. vel.velocity = CFrame.new(Torso.Position,torso.Position).lookVector*20
  627. removeuseless:AddItem(vel,.1)
  628. end
  629. n = n + 16
  630. f = f - 16
  631. shockwavemesh.Scale = shockwavemesh.Scale + Vector3.new(.25,.05,.25)
  632.  
  633. shockwavemesh2.Scale = shockwavemesh2.Scale + Vector3.new(.25,.05,.25)
  634. shockwave.CFrame = shockwave.CFrame * CFrame.Angles(0,math.rad(0+7),0)
  635. shockwave2.CFrame = shockwave2.CFrame * CFrame.Angles(0,math.rad(0-7),0)
  636.  
  637. TheExplosion.Transparency = TheExplosion.Transparency - .0040
  638. TheExplosion.Size = TheExplosion.Size + Vector3.new(.25,.25,.25)
  639. swait()
  640. end
  641. for i = 1, 920 do
  642. dmgal = dmgal + 1
  643. local Hit = damagealll(dmgal/1.5,TheExplosion.Position)
  644. for _,v in pairs(Hit) do
  645. v:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(10+dmgal,20+dmgal))
  646. vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso"))
  647. vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999)
  648. torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  649. vel.velocity = CFrame.new(Torso.Position,torso.Position).lookVector*20
  650. removeuseless:AddItem(vel,.1)
  651. end
  652. n = n + 4
  653. f = f - 4
  654. for i,v in pairs(explosiontable2) do
  655. v.Scale = v.Scale + Vector3.new(1,.1,1)
  656. v.Parent.CFrame = v.Parent.CFrame * CFrame.Angles(math.rad(0),math.rad(n),0)
  657. end
  658. for i,v in pairs(explosiontable3) do
  659. v.Scale = v.Scale + Vector3.new(1,.1,1)
  660. v.Parent.CFrame = v.Parent.CFrame * CFrame.Angles(math.rad(0),math.rad(f),0)
  661. end
  662. TheExplosion.Transparency = TheExplosion.Transparency - .0025
  663. TheExplosion.Size = TheExplosion.Size + Vector3.new(1,1,1)
  664. swait()
  665. end
  666. for i = 1, 850 do
  667. n = n + 18
  668. f = f - 18
  669. shockwavemesh.Scale = shockwavemesh.Scale + Vector3.new(1,.1,1)
  670. shockwavemesh2.Scale = shockwavemesh2.Scale + Vector3.new(1,.1,1)
  671. shockwave.CFrame = shockwave.CFrame * CFrame.Angles(0,math.rad(0+14),0)
  672. shockwave2.CFrame = shockwave2.CFrame * CFrame.Angles(0,math.rad(0-14),0)
  673. TheExplosion.Transparency = TheExplosion.Transparency - .0025
  674. swait()
  675. end
  676. coroutine.wrap(function()
  677. for i = 1, 1000 do
  678. for i,v in pairs(hum.Parent:GetDescendants()) do
  679. if v:IsA("Part") then v.Transparency = v.Transparency + 0.025
  680. end
  681. end
  682. wait()
  683. end
  684. end)()
  685. for i = 1, 50 do
  686. n = n + 4
  687. f = f - 4
  688. for i,v in pairs(explosiontable2) do
  689. v.Parent.CFrame = v.Parent.CFrame * CFrame.Angles(math.rad(0),math.rad(n),0)
  690. v.Parent.Transparency = v.Parent.Transparency + 0.05
  691. end
  692. for i,v in pairs(explosiontable3) do
  693. v.Parent.CFrame = v.Parent.CFrame * CFrame.Angles(math.rad(0),math.rad(f),0)
  694. v.Parent.Transparency = v.Parent.Transparency + 0.05
  695. end
  696. TheExplosion.Transparency = TheExplosion.Transparency + .015
  697. swait()
  698. end
  699. for i,v in pairs(explosiontable2) do
  700. v:Remove()
  701. end
  702. for i,v in pairs(explosiontable3) do
  703. v:Remove()
  704. end
  705. TheExplosion:Remove()
  706. for i,v in pairs(Torso:GetChildren()) do
  707. if v.Name == "shocks" then
  708. v:Remove()
  709. end
  710. end
  711. hum.Parent:BreakJoints()
  712. for i = 1, 1500 do
  713. for i,v in pairs(Torso:GetChildren()) do
  714. if v.Name == "shocks" then
  715. for i = 1, 20 do
  716. v.Transparency = v.Transparency + 0.05
  717. swait()
  718. end
  719. end
  720. end
  721. swait()
  722. end
  723. end)()
  724. for i = 1, 25 do
  725. HEADLERP.C0 = HEADLERP.C0:lerp(CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  726. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.5, 0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), 0.4)
  727. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,0,.5) * CFrame.Angles(math.rad(-90),math.rad(40),math.rad(0)), 0.4)
  728. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1,0,.5) * CFrame.Angles(math.rad(-90),math.rad(-40),math.rad(0)), 0.4)
  729. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.4, 1.8, -.4) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(-10)), 0.4)
  730. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.4, 1.8, -.4) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(10)), 0.4)
  731. swait()
  732. end
  733. lastexplosion = true
  734. for i = 1, 400 do
  735. HEADLERP.C0 = HEADLERP.C0:lerp(CFrame.new(0, -1.45, .1) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.05)
  736. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,-.25,0) * CFrame.Angles(math.rad(30),math.rad(0),math.rad(0)),.05)
  737. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(0.5, 2, .3) * CFrame.Angles(math.rad(14), math.rad(-20), math.rad(90)), 0.05)
  738. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-0.5, 2, .3) * CFrame.Angles(math.rad(14), math.rad(20), math.rad(-90)), 0.05)
  739. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.3, 2, .5) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(-10)), 0.05)
  740. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(.3, 2, .5) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(10)), 0.05)
  741. swait()
  742. end
  743. ]==], owner.Character):WaitForChild 'ServerRemote';
  744. mouse = owner:GetMouse ();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement