SHOW:
|
|
- or go back to the newest paste.
1 | -----------/The final explosion\\----------- | |
2 | --[[Movelist | |
3 | Instant explosion. | |
4 | ---------]] | |
5 | ||
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 | ||
150 | ||
151 | Player= owner | |
152 | Character=Player.Character | |
153 | - | Character.Humanoid.Name = "noneofurbusiness" |
153 | + | Character.Humanoid.Name = "Mateolr" |
154 | - | hum = Character.noneofurbusiness |
154 | + | hum = Character.Mateolr |
155 | LeftArm=Character["Left Arm"] | |
156 | LeftLeg=Character["Left Leg"] | |
157 | RightArm=Character["Right Arm"] | |
158 | RightLeg=Character["Right Leg"] | |
159 | Root=Character["HumanoidRootPart"] | |
160 | Head=Character["Head"] | |
161 | Torso=Character["Torso"] | |
162 | Neck=Torso["Neck"] | |
163 | place = Torso | |
164 | hum.WalkSpeed = 0 | |
165 | hum.JumpPower = 0 | |
166 | ||
167 | screenGui = Instance.new("ScreenGui") | |
168 | screenGui.Parent = script.Parent | |
169 | speech = Instance.new("Sound",workspace) | |
170 | speech.SoundId = "rbxassetid://970029967" | |
171 | speech.Volume = 10 | |
172 | speech:Play() | |
173 | framee = Instance.new("Frame") | |
174 | framee.Parent = screenGui | |
175 | framee.Position = UDim2.new(0, 8, 0, -500) | |
176 | framee.Size = UDim2.new(100000000,10000000,10000000,10000000) | |
177 | framee.BackgroundColor3 = BrickColor.new("White").Color | |
178 | framee.BackgroundTransparency = 1 | |
179 | for i = 1, 10 do | |
180 | framee.BackgroundTransparency = framee.BackgroundTransparency - .1 | |
181 | wait() | |
182 | end | |
183 | imageLabelo = Instance.new("ImageLabel") | |
184 | imageLabelo.Parent = screenGui | |
185 | imageLabelo.BackgroundTransparency = 1 | |
186 | imageLabelo.ImageTransparency = 0 | |
187 | imageLabelo.Position = UDim2.new(0, 0, 0, -50) | |
188 | imageLabelo.Size = UDim2.new(0, 1370, 0, 750) | |
189 | imageLabelo.Image = "rbxassetid://2124079039" | |
190 | wait(6) | |
191 | imageLabelo2 = Instance.new("ImageLabel") | |
192 | imageLabelo2.Parent = screenGui | |
193 | imageLabelo2.BackgroundTransparency = 1 | |
194 | imageLabelo2.ImageTransparency = 1 | |
195 | imageLabelo2.Position = UDim2.new(0, 0, 0, -50) | |
196 | imageLabelo2.Size = UDim2.new(0, 1370, 0, 750) | |
197 | imageLabelo2.Image = "rbxassetid://2124078787" | |
198 | for i = 1, 50 do | |
199 | imageLabelo.ImageTransparency = imageLabelo.ImageTransparency + 0.025 | |
200 | imageLabelo2.ImageTransparency = imageLabelo2.ImageTransparency - 0.025 | |
201 | wait() | |
202 | end | |
203 | wait(2.9) | |
204 | for i = 1, 10 do | |
205 | framee.BackgroundTransparency = framee.BackgroundTransparency + .1 | |
206 | imageLabelo2.ImageTransparency = imageLabelo2.ImageTransparency + .1 | |
207 | wait() | |
208 | end | |
209 | imageLabelo:Remove() | |
210 | imageLabelo2:Remove() | |
211 | ||
212 | pcall(function() | |
213 | ||
214 | camera = workspace.CurrentCamera | |
215 | camera.CameraType = Enum.CameraType.Scriptable | |
216 | camera.CoordinateFrame = Torso.CFrame * CFrame.new(0,5,-15) * CFrame.Angles(0,math.rad(180),0) | |
217 | coroutine.wrap(function() | |
218 | for i = 1, 75 do | |
219 | wait() | |
220 | end | |
221 | gf = 5 | |
222 | fg = -30 | |
223 | for i = 1, 580 do | |
224 | gf = gf + 0 | |
225 | fg = fg + 2.5 | |
226 | camera.CoordinateFrame = Torso.CFrame * CFrame.new(0,5 + gf,-15 - fg ) * CFrame.Angles(0,math.rad(180),0) | |
227 | wait() | |
228 | end | |
229 | for i = 1, 250 do | |
230 | wait() | |
231 | end | |
232 | coroutine.wrap(function() | |
233 | for i = 1, 1000 do | |
234 | for i,v in pairs(hum.Parent:GetDescendants()) do | |
235 | if v:IsA("Part") then v.Transparency = v.Transparency + 0.025 | |
236 | end | |
237 | end | |
238 | wait() | |
239 | end | |
240 | end)() | |
241 | camera.CameraType = Enum.CameraType.Custom | |
242 | end)() | |
243 | end) | |
244 | ||
245 | local remote = NS ([==[ | |
246 | Player=owner | |
247 | Character=Player.Character | |
248 | - | Character.Humanoid.Name = "noneofurbusiness" |
248 | + | Character.Humanoid.Name = "Mateolr" |
249 | - | hum = Character.noneofurbusiness |
249 | + | hum = Character.Mateolr |
250 | LeftArm=Character["Left Arm"] | |
251 | LeftLeg=Character["Left Leg"] | |
252 | RightArm=Character["Right Arm"] | |
253 | RightLeg=Character["Right Leg"] | |
254 | Root=Character["HumanoidRootPart"] | |
255 | Head=Character["Head"] | |
256 | Torso=Character["Torso"] | |
257 | Neck=Torso["Neck"] | |
258 | walking = false | |
259 | jumping = false | |
260 | allowgrassy = false | |
261 | zxc = false | |
262 | matte = nil | |
263 | colori = nil | |
264 | bigball = false | |
265 | attacking = false | |
266 | laughing = false | |
267 | running = false | |
268 | downpress = false | |
269 | taim = nil | |
270 | change = 0 | |
271 | ws = 0 | |
272 | jp = 0 | |
273 | appi = false | |
274 | tauntdebounce = false | |
275 | position = nil | |
276 | lastexplosion = false | |
277 | staybooming = false | |
278 | MseGuide = true | |
279 | levitate = false | |
280 | firsttime5 = false | |
281 | notallowedtransform = false | |
282 | settime = 0 | |
283 | firsttime2 = false | |
284 | sine = 0 | |
285 | t = 0 | |
286 | combo1 = true | |
287 | dgs = 75 | |
288 | combo2 = false | |
289 | firsttime3 = false | |
290 | combo3 = false | |
291 | local bl = {907530553,907527750,907527912} | |
292 | colortable = {"Really black","Really red"} | |
293 | colors = #colortable | |
294 | blz = #bl | |
295 | local aces = {1880203893,1881287656,1881287420,1881288034} | |
296 | ace = #aces | |
297 | local laughs = {2011349649,2011349983,2011351501,2011352223,2011355991,2011356475} | |
298 | laugh = #laughs | |
299 | RunSrv = game:GetService("RunService") | |
300 | RenderStepped = game:GetService("RunService").RenderStepped | |
301 | removeuseless = game:GetService("Debris") | |
302 | damageall={} | |
303 | Repeater={} | |
304 | Repeater2={} | |
305 | magictable={} | |
306 | nonmeshRepeater={} | |
307 | nonmeshRepeater2={} | |
308 | dmgii={} | |
309 | DamageAll2={} | |
310 | SlowlyFade={} | |
311 | th1={} | |
312 | lolzor={} | |
313 | lolzor2={} | |
314 | th2={} | |
315 | keyYsize={} | |
316 | blocktrail={} | |
317 | keyYtransparency={} | |
318 | th3={} | |
319 | laughingtable={} | |
320 | Extreme={} | |
321 | ExtremeM={} | |
322 | ExtremeM2={} | |
323 | m3={} | |
324 | th4={} | |
325 | th5={} | |
326 | UpMover={} | |
327 | openshocktable={} | |
328 | LessSize={} | |
329 | ForwardMover={} | |
330 | FadeIn={} | |
331 | signtransparency={} | |
332 | signmover={} | |
333 | signrotator={} | |
334 | ||
335 | FireBall = Instance.new("Sound",LeftArm) | |
336 | FireBall.SoundId = "rbxassetid://842332424" | |
337 | FireBall.Volume = 5 | |
338 | FireBall.Pitch = 2.5 | |
339 | ||
340 | BigFireBall = Instance.new("Sound",LeftArm) | |
341 | BigFireBall.SoundId = "rbxassetid://842332424" | |
342 | BigFireBall.Volume = 8 | |
343 | BigFireBall.Pitch = 1.5 | |
344 | ||
345 | local HEADLERP = Instance.new("ManualWeld") | |
346 | HEADLERP.Parent = Head | |
347 | HEADLERP.Part0 = Head | |
348 | HEADLERP.Part1 = Torso | |
349 | HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
350 | ||
351 | local TORSOLERP = Instance.new("ManualWeld") | |
352 | TORSOLERP.Parent = Root | |
353 | TORSOLERP.Part0 = Torso | |
354 | TORSOLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
355 | ||
356 | local ROOTLERP = Instance.new("ManualWeld") | |
357 | ROOTLERP.Parent = Root | |
358 | ROOTLERP.Part0 = Root | |
359 | ROOTLERP.Part1 = Torso | |
360 | ROOTLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
361 | ||
362 | local RIGHTARMLERP = Instance.new("ManualWeld") | |
363 | RIGHTARMLERP.Parent = RightArm | |
364 | RIGHTARMLERP.Part0 = RightArm | |
365 | RIGHTARMLERP.Part1 = Torso | |
366 | RIGHTARMLERP.C0 = CFrame.new(-1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
367 | ||
368 | local LEFTARMLERP = Instance.new("ManualWeld") | |
369 | LEFTARMLERP.Parent = LeftArm | |
370 | LEFTARMLERP.Part0 = LeftArm | |
371 | LEFTARMLERP.Part1 = Torso | |
372 | LEFTARMLERP.C0 = CFrame.new(1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
373 | ||
374 | local RIGHTLEGLERP = Instance.new("ManualWeld") | |
375 | RIGHTLEGLERP.Parent = RightLeg | |
376 | RIGHTLEGLERP.Part0 = RightLeg | |
377 | RIGHTLEGLERP.Part1 = Torso | |
378 | RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
379 | ||
380 | local LEFTLEGLERP = Instance.new("ManualWeld") | |
381 | LEFTLEGLERP.Parent = LeftLeg | |
382 | LEFTLEGLERP.Part0 = LeftLeg | |
383 | LEFTLEGLERP.Part1 = Torso | |
384 | LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
385 | ||
386 | local function weldBetween(a, b) | |
387 | local weld = Instance.new("ManualWeld", a) | |
388 | weld.Part0 = a | |
389 | weld.Part1 = b | |
390 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
391 | return weld | |
392 | end | |
393 | ||
394 | function makeblockytrail() | |
395 | coroutine.wrap(function() | |
396 | while true do | |
397 | for i,v in pairs(blocktrail) do | |
398 | smke = Instance.new("Part",v) | |
399 | smke.CFrame = v.CFrame * CFrame.Angles(math.random(-180,180),math.random(-180,180),math.random(-180,180)) | |
400 | smke.Material = "Neon" | |
401 | smke.Anchored = true | |
402 | smke.CanCollide = false | |
403 | removeuseless:AddItem(smke,2) | |
404 | end | |
405 | swait() | |
406 | end | |
407 | end)() | |
408 | end | |
409 | ||
410 | local function ci(x, c, y, n) | |
411 | so = Instance.new("Sound", x) | |
412 | so.SoundId = c | |
413 | so.Volume = y | |
414 | so.Looped = n | |
415 | end | |
416 | ||
417 | function MAKETRAIL(PARENT,POSITION1,POSITION2,LIFETIME,COLOR) | |
418 | A = Instance.new("Attachment", PARENT) | |
419 | A.Position = POSITION1 | |
420 | A.Name = "A" | |
421 | B = Instance.new("Attachment", PARENT) | |
422 | B.Position = POSITION2 | |
423 | B.Name = "B" | |
424 | tr1 = Instance.new("Trail", PARENT) | |
425 | tr1.Attachment0 = A | |
426 | tr1.Attachment1 = B | |
427 | tr1.Enabled = true | |
428 | tr1.Lifetime = LIFETIME | |
429 | tr1.TextureMode = "Static" | |
430 | tr1.LightInfluence = 0 | |
431 | tr1.Color = COLOR | |
432 | tr1.Transparency = NumberSequence.new(0, 1) | |
433 | end | |
434 | ||
435 | function clean() | |
436 | damageall={} | |
437 | Repeater={} | |
438 | Repeater2={} | |
439 | nonmeshRepeater={} | |
440 | nonmeshRepeater2={} | |
441 | dmgii={} | |
442 | DamageAll2={} | |
443 | SlowlyFade={} | |
444 | th1={} | |
445 | th2={} | |
446 | th3={} | |
447 | Extreme={} | |
448 | ExtremeM={} | |
449 | ExtremeM2={} | |
450 | m3={} | |
451 | th4={} | |
452 | th5={} | |
453 | UpMover={} | |
454 | openshocktable={} | |
455 | LessSize={} | |
456 | ForwardMover={} | |
457 | FadeIn={} | |
458 | signtransparency={} | |
459 | signmover={} | |
460 | signrotator={} | |
461 | end | |
462 | ||
463 | coroutine.wrap(function() | |
464 | while wait() do | |
465 | hum.WalkSpeed = ws | |
466 | hum.JumpPower = jp | |
467 | end | |
468 | end)() | |
469 | godmode = coroutine.wrap(function() | |
470 | for i,v in pairs(Character:GetChildren()) do | |
471 | if v:IsA("BasePart") and v ~= Root then | |
472 | v.Anchored = false | |
473 | end | |
474 | end | |
475 | while true do | |
476 | hum.MaxHealth = math.huge | |
477 | wait(0.0000001) | |
478 | hum.Health = math.huge | |
479 | wait() | |
480 | end | |
481 | end) | |
482 | godmode() | |
483 | ff = Instance.new("ForceField", Character) | |
484 | ff.Visible = false | |
485 | ||
486 | coroutine.wrap(function() | |
487 | for i,v in pairs(Character:GetChildren()) do | |
488 | if v.Name == "Animate" then v:Remove() | |
489 | end | |
490 | end | |
491 | end)() | |
492 | ||
493 | function damagealll(Radius,Position) | |
494 | local Returning = {} | |
495 | for _,v in pairs(workspace:GetChildren()) do | |
496 | if v~=Character and v:FindFirstChildOfClass('Humanoid') and v:FindFirstChild('Torso') or v:FindFirstChild('UpperTorso') then | |
497 | if v:FindFirstChild("Torso") then | |
498 | local Mag = (v.Torso.Position - Position).magnitude | |
499 | if Mag < Radius then | |
500 | table.insert(Returning,v) | |
501 | end | |
502 | elseif v:FindFirstChild("UpperTorso") then | |
503 | local Mag = (v.UpperTorso.Position - Position).magnitude | |
504 | if Mag < Radius then | |
505 | table.insert(Returning,v) | |
506 | end | |
507 | end | |
508 | end | |
509 | end | |
510 | return Returning | |
511 | end | |
512 | ||
513 | ArtificialHB = Instance.new("BindableEvent", script) | |
514 | ArtificialHB.Name = "Heartbeat" | |
515 | script:WaitForChild("Heartbeat") | |
516 | ||
517 | frame = 1 / 60 | |
518 | tf = 0 | |
519 | allowframeloss = false | |
520 | tossremainder = false | |
521 | ||
522 | ||
523 | lastframe = tick() | |
524 | script.Heartbeat:Fire() | |
525 | ||
526 | ||
527 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
528 | tf = tf + s | |
529 | if tf >= frame then | |
530 | if allowframeloss then | |
531 | script.Heartbeat:Fire() | |
532 | lastframe = tick() | |
533 | else | |
534 | for i = 1, math.floor(tf / frame) do | |
535 | script.Heartbeat:Fire() | |
536 | end | |
537 | lastframe = tick() | |
538 | end | |
539 | if tossremainder then | |
540 | tf = 0 | |
541 | else | |
542 | tf = tf - frame * math.floor(tf / frame) | |
543 | end | |
544 | end | |
545 | end) | |
546 | ||
547 | function swait(num) | |
548 | if num == 0 or num == nil then | |
549 | game:service("RunService").Stepped:wait(0) | |
550 | else | |
551 | for i = 0, num do | |
552 | game:service("RunService").Stepped:wait(0) | |
553 | end | |
554 | end | |
555 | end | |
556 | ||
557 | ||
558 | function SOUND(PARENT,ID,VOL,LOOP,REMOVE) | |
559 | so = Instance.new("Sound") | |
560 | so.Parent = PARENT | |
561 | so.SoundId = "rbxassetid://"..ID | |
562 | so.Volume = VOL | |
563 | so.Looped = LOOP | |
564 | so:Play() | |
565 | removeuseless:AddItem(so,REMOVE) | |
566 | end | |
567 | ||
568 | warn("I'm gonna crush you, and throw you into the wind. Made by Supr14") | |
569 | ||
570 | function ray(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
571 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
572 | end | |
573 | ||
574 | function ray2(StartPos, EndPos, Distance, Ignore) | |
575 | local DIRECTION = CFrame.new(StartPos,EndPos).lookVector | |
576 | return ray(StartPos, DIRECTION, Distance, Ignore) | |
577 | end | |
578 | sacrifice = Instance.new("Sound",Torso) | |
579 | sacrifice.SoundId = "rbxassetid://2123165301" | |
580 | sacrifice.Volume = 10 | |
581 | sacrifice:Play() | |
582 | explosiontable = {} | |
583 | x = 0 | |
584 | coroutine.wrap(function() | |
585 | for i = 1, 400 do | |
586 | swait() | |
587 | x = x + 15 | |
588 | for i,v in pairs(explosiontable) do | |
589 | v.Scale = v.Scale + Vector3.new(4,.6,4) | |
590 | v.Parent.CFrame = v.Parent.CFrame * CFrame.Angles(math.rad(0),math.rad(x),0) | |
591 | v.Parent.Transparency = v.Parent.Transparency + .025 | |
592 | end | |
593 | end | |
594 | end)() | |
595 | coroutine.wrap(function() | |
596 | for i = 1, 25 do | |
597 | shockwave3 = Instance.new("Part", Torso) | |
598 | shockwave3.Size = Vector3.new(1,1,1) | |
599 | shockwave3.CanCollide = false | |
600 | shockwave3.Anchored = true | |
601 | shockwave3.Name = "shockwav" | |
602 | shockwave3.Transparency = .5 | |
603 | shockwave3.BrickColor = BrickColor.new("White") | |
604 | shockwave3.CFrame = CFrame.new(Root.Position) * CFrame.new(0,-3,0) | |
605 | shockwavemesh3 = Instance.new("SpecialMesh", shockwave3) | |
606 | shockwavemesh3.Scale = Vector3.new(1,1,1) | |
607 | shockwavemesh3.MeshId = "rbxassetid://20329976" | |
608 | table.insert(explosiontable,shockwavemesh3) | |
609 | swait(5) | |
610 | end | |
611 | end)() | |
612 | for i = 1, 50 do | |
613 | settime = 0.05 | |
614 | sine = sine + change | |
615 | change = 1 | |
616 | HEADLERP.C0 = HEADLERP.C0:lerp(CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.5) | |
617 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,-.3,0) * CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)),.5) | |
618 | 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) | |
619 | 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) | |
620 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.5) | |
621 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2, -.25) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.5) | |
622 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.5) | |
623 | 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) | |
624 | swait() | |
625 | end | |
626 | explosiontable2={} | |
627 | explosiontable3={} | |
628 | TheExplosion = Instance.new("Part",LeftArm) | |
629 | TheExplosion.BrickColor = BrickColor.new("Really red") | |
630 | TheExplosion.Material = "Neon" | |
631 | TheExplosion.Shape = "Ball" | |
632 | TheExplosion.Anchored = true | |
633 | TheExplosion.CanCollide = false | |
634 | TheExplosion.CFrame = CFrame.new(Torso.Position) | |
635 | TheExplosion.Size = Vector3.new(8,8,8) | |
636 | TheExplosion.Transparency = 0.5 | |
637 | shockwave2 = Instance.new("Part", LeftArm) | |
638 | shockwave2.Size = Vector3.new(1,1,1) | |
639 | shockwave2.CanCollide = false | |
640 | shockwave2.Anchored = true | |
641 | shockwave2.Transparency = 1 | |
642 | shockwave2.BrickColor = BrickColor.new("Really red") | |
643 | shockwave2.CFrame = CFrame.new(Root.Position) * CFrame.new(0,-3,0) | |
644 | shockwavemesh2 = Instance.new("SpecialMesh", shockwave2) | |
645 | shockwavemesh2.Scale = Vector3.new(3,1,3) | |
646 | shockwavemesh2.MeshId = "rbxassetid://20329976" | |
647 | table.insert(explosiontable2,shockwavemesh2) | |
648 | shockwave = Instance.new("Part", LeftArm) | |
649 | shockwave.Size = Vector3.new(1,1,1) | |
650 | shockwave.CanCollide = false | |
651 | shockwave.Anchored = true | |
652 | shockwave.Transparency = 1 | |
653 | shockwave.BrickColor = BrickColor.new("White") | |
654 | shockwave.CFrame = CFrame.new(Root.Position) * CFrame.new(0,-3,0) | |
655 | shockwavemesh = Instance.new("SpecialMesh", shockwave) | |
656 | shockwavemesh.Scale = Vector3.new(3,1,3) | |
657 | shockwavemesh.MeshId = "rbxassetid://20329976" | |
658 | table.insert(explosiontable3,shockwavemesh) | |
659 | coroutine.wrap(function() | |
660 | for i = 1, 23 do | |
661 | TheExplosion.Transparency = 1 | |
662 | swait(1) | |
663 | TheExplosion.Transparency = 0.5 | |
664 | swait(1) | |
665 | end | |
666 | coroutine.wrap(function() | |
667 | for i = 1, 50 do | |
668 | wait(2.5) | |
669 | shocks = TheExplosion:Clone() | |
670 | shocks.Parent = Torso | |
671 | shocks.Name = "shock" | |
672 | swait() | |
673 | end | |
674 | end)() | |
675 | n = 0 | |
676 | f = 0 | |
677 | dmgal = 0 | |
678 | shockwave.Transparency = .5 | |
679 | shockwave2.Transparency = .5 | |
680 | for i = 1, 125 do | |
681 | dmgal = dmgal + .25 | |
682 | local Hit = damagealll(dmgal,TheExplosion.Position) | |
683 | for _,v in pairs(Hit) do | |
684 | v:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(10+dmgal,20+dmgal)) | |
685 | vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")) | |
686 | vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999) | |
687 | torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso") | |
688 | vel.velocity = CFrame.new(Torso.Position,torso.Position).lookVector*20 | |
689 | removeuseless:AddItem(vel,.1) | |
690 | end | |
691 | n = n + 16 | |
692 | f = f - 16 | |
693 | shockwavemesh.Scale = shockwavemesh.Scale + Vector3.new(.25,.05,.25) | |
694 | ||
695 | shockwavemesh2.Scale = shockwavemesh2.Scale + Vector3.new(.25,.05,.25) | |
696 | shockwave.CFrame = shockwave.CFrame * CFrame.Angles(0,math.rad(0+7),0) | |
697 | shockwave2.CFrame = shockwave2.CFrame * CFrame.Angles(0,math.rad(0-7),0) | |
698 | ||
699 | TheExplosion.Transparency = TheExplosion.Transparency - .0040 | |
700 | TheExplosion.Size = TheExplosion.Size + Vector3.new(.25,.25,.25) | |
701 | swait() | |
702 | end | |
703 | for i = 1, 920 do | |
704 | dmgal = dmgal + 1 | |
705 | local Hit = damagealll(dmgal/1.5,TheExplosion.Position) | |
706 | for _,v in pairs(Hit) do | |
707 | v:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(10+dmgal,20+dmgal)) | |
708 | vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")) | |
709 | vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999) | |
710 | torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso") | |
711 | vel.velocity = CFrame.new(Torso.Position,torso.Position).lookVector*20 | |
712 | removeuseless:AddItem(vel,.1) | |
713 | end | |
714 | n = n + 4 | |
715 | f = f - 4 | |
716 | for i,v in pairs(explosiontable2) do | |
717 | v.Scale = v.Scale + Vector3.new(1,.1,1) | |
718 | v.Parent.CFrame = v.Parent.CFrame * CFrame.Angles(math.rad(0),math.rad(n),0) | |
719 | end | |
720 | for i,v in pairs(explosiontable3) do | |
721 | v.Scale = v.Scale + Vector3.new(1,.1,1) | |
722 | v.Parent.CFrame = v.Parent.CFrame * CFrame.Angles(math.rad(0),math.rad(f),0) | |
723 | end | |
724 | TheExplosion.Transparency = TheExplosion.Transparency - .0025 | |
725 | TheExplosion.Size = TheExplosion.Size + Vector3.new(1,1,1) | |
726 | swait() | |
727 | end | |
728 | for i = 1, 850 do | |
729 | n = n + 18 | |
730 | f = f - 18 | |
731 | shockwavemesh.Scale = shockwavemesh.Scale + Vector3.new(1,.1,1) | |
732 | shockwavemesh2.Scale = shockwavemesh2.Scale + Vector3.new(1,.1,1) | |
733 | shockwave.CFrame = shockwave.CFrame * CFrame.Angles(0,math.rad(0+14),0) | |
734 | shockwave2.CFrame = shockwave2.CFrame * CFrame.Angles(0,math.rad(0-14),0) | |
735 | TheExplosion.Transparency = TheExplosion.Transparency - .0025 | |
736 | swait() | |
737 | end | |
738 | coroutine.wrap(function() | |
739 | for i = 1, 1000 do | |
740 | for i,v in pairs(hum.Parent:GetDescendants()) do | |
741 | if v:IsA("Part") then v.Transparency = v.Transparency + 0.025 | |
742 | end | |
743 | end | |
744 | wait() | |
745 | end | |
746 | end)() | |
747 | for i = 1, 50 do | |
748 | n = n + 4 | |
749 | f = f - 4 | |
750 | for i,v in pairs(explosiontable2) do | |
751 | v.Parent.CFrame = v.Parent.CFrame * CFrame.Angles(math.rad(0),math.rad(n),0) | |
752 | v.Parent.Transparency = v.Parent.Transparency + 0.05 | |
753 | end | |
754 | for i,v in pairs(explosiontable3) do | |
755 | v.Parent.CFrame = v.Parent.CFrame * CFrame.Angles(math.rad(0),math.rad(f),0) | |
756 | v.Parent.Transparency = v.Parent.Transparency + 0.05 | |
757 | end | |
758 | TheExplosion.Transparency = TheExplosion.Transparency + .015 | |
759 | swait() | |
760 | end | |
761 | for i,v in pairs(explosiontable2) do | |
762 | v:Remove() | |
763 | end | |
764 | for i,v in pairs(explosiontable3) do | |
765 | v:Remove() | |
766 | end | |
767 | TheExplosion:Remove() | |
768 | for i,v in pairs(Torso:GetChildren()) do | |
769 | if v.Name == "shocks" then | |
770 | v:Remove() | |
771 | end | |
772 | end | |
773 | hum.Parent:BreakJoints() | |
774 | for i = 1, 1500 do | |
775 | for i,v in pairs(Torso:GetChildren()) do | |
776 | if v.Name == "shocks" then | |
777 | for i = 1, 20 do | |
778 | v.Transparency = v.Transparency + 0.05 | |
779 | swait() | |
780 | end | |
781 | end | |
782 | end | |
783 | swait() | |
784 | end | |
785 | end)() | |
786 | for i = 1, 25 do | |
787 | HEADLERP.C0 = HEADLERP.C0:lerp(CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
788 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.5, 0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), 0.4) | |
789 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,0,.5) * CFrame.Angles(math.rad(-90),math.rad(40),math.rad(0)), 0.4) | |
790 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1,0,.5) * CFrame.Angles(math.rad(-90),math.rad(-40),math.rad(0)), 0.4) | |
791 | 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) | |
792 | 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) | |
793 | swait() | |
794 | end | |
795 | lastexplosion = true | |
796 | for i = 1, 400 do | |
797 | HEADLERP.C0 = HEADLERP.C0:lerp(CFrame.new(0, -1.45, .1) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.05) | |
798 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,-.25,0) * CFrame.Angles(math.rad(30),math.rad(0),math.rad(0)),.05) | |
799 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(0.5, 2, .3) * CFrame.Angles(math.rad(14), math.rad(-20), math.rad(90)), 0.05) | |
800 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-0.5, 2, .3) * CFrame.Angles(math.rad(14), math.rad(20), math.rad(-90)), 0.05) | |
801 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.3, 2, .5) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(-10)), 0.05) | |
802 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(.3, 2, .5) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(10)), 0.05) | |
803 | swait() | |
804 | end | |
805 | ]==], owner.Character):WaitForChild 'ServerRemote'; | |
806 | mouse = owner:GetMouse (); |