SHARE
TWEET

Untitled

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