Advertisement
Eminic

finalexplosion

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