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