View difference between Paste ID: tMvFy5nX and cT4s1H2P
SHOW: | | - or go back to the newest paste.
1
----------------------------------------
2-
 -- Originally made by Alfederate :D -- 
2+
 -- Originally made by Alfederate --
3
 -- Edited by DjDartherALT ๖̶̶̶ۣۣۜۜ͜ζ͜͡ᗪ乇卂ㄒ卄山丨丂卄™ ✓ᵛᵉʳᶦᶠᶦᵉᵈ#9807--
4
----------------------------------------
5
6
 -- there's no time to explain! --
7
8
local new=Instance.new
9
local rad=math.rad
10
local cf=CFrame.new
11
local v3=Vector3.new
12
local ang=function(x,y,z)
13
return CFrame.Angles(rad(x),rad(y),rad(z))
14
end
15
local player=game:service'Players'.LocalPlayer
16
local char=player.Character
17
local cam=workspace.Camera
18
local mouse=player:GetMouse()
19
local weld=function(a,b,c0,c1)
20
m=Instance.new('Motor',a)
21
m.Part0=a
22
m.Part1=b
23
m.C0=c0
24
m.C1=c1
25
return m
26
end
27-
snd='rbxassetid://326396715'
27+
28
snd='rbxassetid://356432256'
29
beamm=Instance.new('Model',workspace)
30
beamm.Name='beam'
31
32
laser=false
33
34
rs=Instance.new('Part',char)
35
rs.Transparency=1
36
rs.CanCollide=false
37
rs.TopSurface,rs.BottomSurface=0,0
38
rs.FormFactor=1
39
rs.Size=Vector3.new(.5,.5,.5)
40
41
ls=rs:Clone()
42
ls.Parent=char
43
44
rsw=weld(rs,char.Torso,cf(-1,-.5,0),cf())
45
lsw=weld(ls,char.Torso,cf(1,-.5,0),cf())
46
raw=weld(char['Right Arm'],rs,cf(-.5,.6,-.14),ang(90,0,-8))
47
law=weld(char['Left Arm'],ls,cf(-.3,1.5,-.14),ang(90,0,43))
48
49
s1=Instance.new('Sound',char)
50
s1.Volume=1
51
s1.Pitch=1
52
s1.Looped=true
53
s1.SoundId=snd
54
55
particles={}
56
57
local wep=new('Part',char)
58
wep.FormFactor=1
59
wep.CanCollide=false
60
wep.Size=v3(1,3,1)
61
wep.TopSurface,wep.BottomSurface=0,0
62
local wepw=weld(wep,char['Right Arm'],cf(.26,.4,.7),ang(0,0,8))
63
64
local beam=wep:Clone()
65
beam:ClearAllChildren()
66-
beam.BrickColor=BrickColor.new('Hot white')
66+
67
beam.BrickColor=BrickColor.new('Really black')
68
beam.Size=Vector3.new(3,3,1)
69
beam.Transparency=.5
70
beam.Anchored=true
71
local ms=Instance.new('BlockMesh',beam)
72
local inner=beam:Clone()
73
inner.Transparency=0
74-
inner.BrickColor=BrickColor.new('New Yeller')
74+
75
inner.BrickColor=BrickColor.new('Really red')
76
local ms2=inner.Mesh
77
78
local expl=inner:Clone()
79
expl.Mesh:Destroy()
80-
expl.BrickColor=BrickColor.new('Bright blue')
80+
81
expl.BrickColor=BrickColor.new('Really black')
82
expl.Size=Vector3.new(11,11,11)
83
expl.Transparency=.55
84
pl=Instance.new('PointLight',expl)
85
pl.Color=expl.BrickColor.Color
86
pl.Range=pl.Range*2
87
pl.Name='light'
88
local br=pl.Range
89
90
local exa=expl:Clone()
91
exa.Size=Vector3.new(4,4,4)
92
pl2=exa.light
93
94
local part=exa:Clone()
95
part.Size=Vector3.new(1.5,1.5,1.5)
96
pl3=part.light
97
pms=Instance.new('BlockMesh',part)
98
99
char.Humanoid.Died:connect(function()
100
laser=false
101
beam.Parent=nil
102
inner.Parent=nil
103
expl.Parent=nil
104
exa.Parent=nil
105
s1:stop()
106
end)
107
108
mouse.Button1Down:connect(function() if char.Humanoid.Health~=0 then
109
laser=true
110
s1.Volume=1
111
s1:play()
112
end end)
113
mouse.Button1Up:connect(function()
114
laser=false
115
beam.Parent=nil
116
inner.Parent=nil
117
expl.Parent=nil
118
exa.Parent=nil
119
s1:stop()
120
end)
121
122
parti=0
123
game:service'RunService'.Stepped:connect(function()
124
parti=parti+1
125
for i,v in pairs(particles) do
126
v.CFrame=v.CFrame*CFrame.new(0,0,-.3)
127
v.Transparency=v.Transparency+.08
128
if v.Transparency >= 1 then
129
v:Destroy()
130
table.remove(particles,i)
131
else
132
v.Parent=beamm
133
end
134
end
135
a=cam.CoordinateFrame.p
136
b=mouse.Hit.p
137
mhitr=Ray.new(a,(b-a).unit*999)
138
mhit,ps=workspace:FindPartOnRayWithIgnoreList(mhitr,{char,beamm})
139
raw.C1=ang(90+(mouse.Hit.lookVector.y*90),0,-8)
140
law.C1=ang(90+(mouse.Hit.lookVector.y*90),0,43)
141
if not char.Humanoid.Sit and not char.Humanoid.PlatformStand then
142
char.Torso.CFrame=CFrame.new(char.Torso.CFrame.p,Vector3.new(ps.x,char.Torso.CFrame.p.y,ps.z))
143
end
144
if laser then
145
beamm.Parent=workspace
146
beam.Parent=beamm
147
inner.Parent=beamm
148
expl.Parent=beamm
149
exa.Parent=beamm
150
s1.Volume=s1.Volume-.0
151
152
ray=Ray.new((wep.CFrame*cf(0,-1.5,0)).p,((wep.CFrame*cf(0,-10,0)).p-(wep.CFrame*cf(0,-1.5,0)).p).unit*999)
153
hit,pos=workspace:FindPartOnRayWithIgnoreList(ray,{char,beamm})
154
155
if hit and hit.Parent:findFirstChild('Humanoid') and s1.Volume > .3 and parti/8==math.floor(parti/8) then
156
Instance.new('Explosion',workspace).Position=pos
157
end
158
if hit and hit.Parent==workspace.Terrain or hit==workspace.Terrain and parti/8==math.floor(parti/8) then
159
e=Instance.new('Explosion',workspace)
160
e.Position=pos
161
e.BlastRadius=14
162
e.BlastPressure=1e4
163
end
164
if hit and not hit.Anchored and not (hit:GetMass()>1e4) then
165
hit.Velocity=hit.Velocity+beam.CFrame.lookVector*(1*s1.Volume*hit:GetMass())
166
end
167
168
if parti==math.floor(parti) then
169
par=part:Clone()
170
table.insert(particles,par)
171
par.Parent=beamm
172
par.Transparency=1-s1.Volume
173
par.light.Range=br*s1.Volume
174
par.CFrame=cf(pos)*ang(math.random(-180,180),math.random(-180,180),math.random(-180,180))*cf(0,0,-10)
175
end
176
177
mag=((wep.CFrame*cf(0,-1.5,0)).p-pos).magnitude
178
ms.Scale=v3(s1.Volume,s1.Volume,mag)
179
ms2.Scale=v3(ms.Scale.x/2,ms.Scale.y/2,mag-(.1/mag))
180
beam.CFrame=cf((wep.CFrame*cf(0,-1.5,0)).p,pos)*cf(0,0,-mag/2)*ang(0,0,math.random(0,180))
181
inner.CFrame=beam.CFrame
182
pl.Range=br*s1.Volume
183
pl2.Range=br*s1.Volume
184
expl.Size=v3(math.random(9,13),math.random(9,13),math.random(9,13))*s1.Volume
185
expl.Transparency=math.random(40,60)/100
186
expl.CFrame=cf(pos)*ang(math.random(0,180),math.random(0,180),math.random(0,180))
187
exa.Size=v3(4,4,4)*s1.Volume
188
exa.CFrame=wep.CFrame*cf(0,-1.5,0)*ang(math.random(0,180),math.random(0,180),math.random(0,180))
189
char.Torso.Velocity=char.Torso.Velocity-beam.CFrame.lookVector*(7*s1.Volume)
190
end
191
end)
192
193
194
195
196
local new=Instance.new
197
local rad=math.rad
198
local cf=CFrame.new
199
local v3=Vector3.new
200
local ang=function(x,y,z)
201
return CFrame.Angles(rad(x),rad(y),rad(z))
202
end
203
local player=game:service'Players'.LocalPlayer
204
local char=player.Character
205
local cam=workspace.Camera
206
local mouse=player:GetMouse()
207
local weld=function(a,b,c0,c1)
208
m=Instance.new('Motor',a)
209
m.Part0=a
210
m.Part1=b
211
m.C0=c0
212
m.C1=c1
213
return m
214
end
215-
snd='rbxassetid://326396715'
215+
216
snd='rbxassetid://356432256'
217
beamm=Instance.new('Model',workspace)
218
beamm.Name='beam'
219
220
laser=false
221
222
rs=Instance.new('Part',char)
223
rs.Transparency=1
224
rs.CanCollide=false
225
rs.TopSurface,rs.BottomSurface=0,0
226
rs.FormFactor=1
227
rs.Size=Vector3.new(.5,.5,.5)
228
229
ls=rs:Clone()
230
ls.Parent=char
231
232
rsw=weld(rs,char.Torso,cf(-1,-.5,0),cf())
233
lsw=weld(ls,char.Torso,cf(1,-.5,0),cf())
234
raw=weld(char['Right Arm'],rs,cf(-.5,.6,-.14),ang(90,0,-8))
235
law=weld(char['Left Arm'],ls,cf(-.3,1.5,-.14),ang(90,0,43))
236
237
s1=Instance.new('Sound',char)
238
s1.Volume=1
239
s1.Pitch=1
240
s1.Looped=true
241
s1.SoundId=snd
242
243
particles={}
244
245
local wep=new('Part',char)
246
wep.FormFactor=1
247
wep.CanCollide=false
248
wep.Size=v3(1,3,1)
249
wep.TopSurface,wep.BottomSurface=0,0
250
local wepw=weld(wep,char['Right Arm'],cf(.99,.4,1.5),ang(0,0,8))
251
252
local beam=wep:Clone()
253
beam:ClearAllChildren()
254-
beam.BrickColor=BrickColor.new('Hot white')
254+
255
beam.BrickColor=BrickColor.new('Really black')
256
beam.Size=Vector3.new(3,3,1)
257
beam.Transparency=.5
258
beam.Anchored=true
259
local ms=Instance.new('BlockMesh',beam)
260
local inner=beam:Clone()
261
inner.Transparency=0
262-
inner.BrickColor=BrickColor.new('New Yeller')
262+
263
inner.BrickColor=BrickColor.new('Really red')
264
local ms2=inner.Mesh
265
266
local expl=inner:Clone()
267
expl.Mesh:Destroy()
268-
expl.BrickColor=BrickColor.new('Bright blue')
268+
269
expl.BrickColor=BrickColor.new('Really black')
270
expl.Size=Vector3.new(11,11,11)
271
expl.Transparency=.55
272
pl=Instance.new('PointLight',expl)
273
pl.Color=expl.BrickColor.Color
274
pl.Range=pl.Range*2
275
pl.Name='light'
276
local br=pl.Range
277
278
local exa=expl:Clone()
279
exa.Size=Vector3.new(4,4,4)
280
pl2=exa.light
281
282
local part=exa:Clone()
283
part.Size=Vector3.new(1.5,1.5,1.5)
284
pl3=part.light
285
pms=Instance.new('BlockMesh',part)
286
287
char.Humanoid.Died:connect(function()
288
laser=false
289
beam.Parent=nil
290
inner.Parent=nil
291
expl.Parent=nil
292
exa.Parent=nil
293
s1:stop()
294
end)
295
296
mouse.Button1Down:connect(function() if char.Humanoid.Health~=0 then
297
laser=true
298
s1.Volume=1
299
s1:play()
300
end end)
301
mouse.Button1Up:connect(function()
302
laser=false
303
beam.Parent=nil
304
inner.Parent=nil
305
expl.Parent=nil
306
exa.Parent=nil
307
s1:stop()
308
end)
309
310
parti=0
311
game:service'RunService'.Stepped:connect(function()
312
parti=parti+1
313
for i,v in pairs(particles) do
314
v.CFrame=v.CFrame*CFrame.new(0,0,-.3)
315
v.Transparency=v.Transparency+.08
316
if v.Transparency >= 1 then
317
v:Destroy()
318
table.remove(particles,i)
319
else
320
v.Parent=beamm
321
end
322
end
323
a=cam.CoordinateFrame.p
324
b=mouse.Hit.p
325
mhitr=Ray.new(a,(b-a).unit*999)
326
mhit,ps=workspace:FindPartOnRayWithIgnoreList(mhitr,{char,beamm})
327
raw.C1=ang(90+(mouse.Hit.lookVector.y*90),0,-8)
328
law.C1=ang(90+(mouse.Hit.lookVector.y*90),0,43)
329
if not char.Humanoid.Sit and not char.Humanoid.PlatformStand then
330
char.Torso.CFrame=CFrame.new(char.Torso.CFrame.p,Vector3.new(ps.x,char.Torso.CFrame.p.y,ps.z))
331
end
332
if laser then
333
beamm.Parent=workspace
334
beam.Parent=beamm
335
inner.Parent=beamm
336
expl.Parent=beamm
337
exa.Parent=beamm
338
s1.Volume=s1.Volume-.0
339
340
ray=Ray.new((wep.CFrame*cf(0,-1.5,0)).p,((wep.CFrame*cf(0,-10,0)).p-(wep.CFrame*cf(0,-1.5,0)).p).unit*999)
341
hit,pos=workspace:FindPartOnRayWithIgnoreList(ray,{char,beamm})
342
343
if hit and hit.Parent:findFirstChild('Humanoid') and s1.Volume > .3 and parti/8==math.floor(parti/8) then
344
Instance.new('Explosion',workspace).Position=pos
345
end
346
if hit and hit.Parent==workspace.Terrain or hit==workspace.Terrain and parti/8==math.floor(parti/8) then
347
e=Instance.new('Explosion',workspace)
348
e.Position=pos
349
e.BlastRadius=14
350
e.BlastPressure=1e4
351
end
352
if hit and not hit.Anchored and not (hit:GetMass()>1e4) then
353
hit.Velocity=hit.Velocity+beam.CFrame.lookVector*(1*s1.Volume*hit:GetMass())
354
end
355
356
if parti==math.floor(parti) then
357
par=part:Clone()
358
table.insert(particles,par)
359
par.Parent=beamm
360
par.Transparency=1-s1.Volume
361
par.light.Range=br*s1.Volume
362
par.CFrame=cf(pos)*ang(math.random(-180,180),math.random(-180,180),math.random(-180,180))*cf(0,0,-10)
363
end
364
365
mag=((wep.CFrame*cf(0,-1.5,0)).p-pos).magnitude
366
ms.Scale=v3(s1.Volume,s1.Volume,mag)
367
ms2.Scale=v3(ms.Scale.x/2,ms.Scale.y/2,mag-(.1/mag))
368
beam.CFrame=cf((wep.CFrame*cf(0,-1.5,0)).p,pos)*cf(0,0,-mag/2)*ang(0,0,math.random(0,180))
369
inner.CFrame=beam.CFrame
370
pl.Range=br*s1.Volume
371
pl2.Range=br*s1.Volume
372
expl.Size=v3(math.random(9,13),math.random(9,13),math.random(9,13))*s1.Volume
373
expl.Transparency=math.random(40,60)/100
374
expl.CFrame=cf(pos)*ang(math.random(0,180),math.random(0,180),math.random(0,180))
375
exa.Size=v3(4,4,4)*s1.Volume
376
exa.CFrame=wep.CFrame*cf(0,-1.5,0)*ang(math.random(0,180),math.random(0,180),math.random(0,180))
377
char.Torso.Velocity=char.Torso.Velocity-beam.CFrame.lookVector*(7*s1.Volume)
378
end
379
end)
380
381
382
383
384
--3--
385
386
local new=Instance.new
387
local rad=math.rad
388
local cf=CFrame.new
389
local v3=Vector3.new
390
local ang=function(x,y,z)
391
return CFrame.Angles(rad(x),rad(y),rad(z))
392
end
393
local player=game:service'Players'.LocalPlayer
394
local char=player.Character
395
local cam=workspace.Camera
396
local mouse=player:GetMouse()
397
local weld=function(a,b,c0,c1)
398
m=Instance.new('Motor',a)
399
m.Part0=a
400
m.Part1=b
401
m.C0=c0
402
m.C1=c1
403
return m
404
end
405-
snd='rbxassetid://326396715'
405+
406
snd='rbxassetid://356432256'
407
beamm=Instance.new('Model',workspace)
408
beamm.Name='beam'
409
410
laser=false
411
412
rs=Instance.new('Part',char)
413
rs.Transparency=1
414
rs.CanCollide=false
415
rs.TopSurface,rs.BottomSurface=0,0
416
rs.FormFactor=3
417
rs.Size=Vector3.new(.5,.5,.5)
418
419
ls=rs:Clone()
420
ls.Parent=char
421
422
rsw=weld(rs,char.Torso,cf(-1,-.5,0),cf())
423
lsw=weld(ls,char.Torso,cf(1,-.5,0),cf())
424
raw=weld(char['Right Arm'],rs,cf(-.5,.6,-.14),ang(90,0,-8))
425
law=weld(char['Left Arm'],ls,cf(-.3,1.5,-.14),ang(90,0,43))
426
427
s1=Instance.new('Sound',char)
428
s1.Volume=1
429
s1.Pitch=1
430
s1.Looped=true
431
s1.SoundId=snd
432
433
particles={}
434
435
local wep=new('Part',char)
436
wep.FormFactor=3
437
wep.CanCollide=false
438
wep.Size=v3(1,3,1)
439
wep.TopSurface,wep.BottomSurface=0,0
440
local wepw=weld(wep,char['Right Arm'],cf(-.48,.4,1.5),ang(0,0,8))
441
442
local beam=wep:Clone()
443
beam:ClearAllChildren()
444-
beam.BrickColor=BrickColor.new('Hot white')
444+
445
beam.BrickColor=BrickColor.new('Really black')
446
beam.Size=Vector3.new(3,3,1)
447
beam.Transparency=.5
448
beam.Anchored=true
449
local ms=Instance.new('BlockMesh',beam)
450
local inner=beam:Clone()
451
inner.Transparency=0
452-
inner.BrickColor=BrickColor.new('New Yeller')
452+
453
inner.BrickColor=BrickColor.new('Really red')
454
local ms2=inner.Mesh
455
456
local expl=inner:Clone()
457
expl.Mesh:Destroy()
458-
expl.BrickColor=BrickColor.new('Bright blue')
458+
459
expl.BrickColor=BrickColor.new('Really black')
460
expl.Size=Vector3.new(11,11,11)
461
expl.Transparency=.55
462
pl=Instance.new('PointLight',expl)
463
pl.Color=expl.BrickColor.Color
464
pl.Range=pl.Range*2
465
pl.Name='light'
466
local br=pl.Range
467
468
local exa=expl:Clone()
469
exa.Size=Vector3.new(4,4,4)
470
pl2=exa.light
471
472
local part=exa:Clone()
473
part.Size=Vector3.new(1.5,1.5,1.5)
474
pl3=part.light
475
pms=Instance.new('BlockMesh',part)
476
477
char.Humanoid.Died:connect(function()
478
laser=false
479
beam.Parent=nil
480
inner.Parent=nil
481
expl.Parent=nil
482
exa.Parent=nil
483
s1:stop()
484
end)
485
486
mouse.Button1Down:connect(function() if char.Humanoid.Health~=0 then
487
laser=true
488
s1.Volume=1
489
s1:play()
490
end end)
491
mouse.Button1Up:connect(function()
492
laser=false
493
beam.Parent=nil
494
inner.Parent=nil
495
expl.Parent=nil
496
exa.Parent=nil
497
s1:stop()
498
end)
499
500
parti=0
501
game:service'RunService'.Stepped:connect(function()
502
parti=parti+1
503
for i,v in pairs(particles) do
504
v.CFrame=v.CFrame*CFrame.new(0,0,-.3)
505
v.Transparency=v.Transparency+.08
506
if v.Transparency >= 1 then
507
v:Destroy()
508
table.remove(particles,i)
509
else
510
v.Parent=beamm
511
end
512
end
513
a=cam.CoordinateFrame.p
514
b=mouse.Hit.p
515
mhitr=Ray.new(a,(b-a).unit*999)
516
mhit,ps=workspace:FindPartOnRayWithIgnoreList(mhitr,{char,beamm})
517
raw.C1=ang(90+(mouse.Hit.lookVector.y*90),0,-8)
518
law.C1=ang(90+(mouse.Hit.lookVector.y*90),0,43)
519
if not char.Humanoid.Sit and not char.Humanoid.PlatformStand then
520
char.Torso.CFrame=CFrame.new(char.Torso.CFrame.p,Vector3.new(ps.x,char.Torso.CFrame.p.y,ps.z))
521
end
522
if laser then
523
beamm.Parent=workspace
524
beam.Parent=beamm
525
inner.Parent=beamm
526
expl.Parent=beamm
527
exa.Parent=beamm
528
s1.Volume=s1.Volume-.0
529
530
ray=Ray.new((wep.CFrame*cf(0,-1.5,0)).p,((wep.CFrame*cf(0,-10,0)).p-(wep.CFrame*cf(0,-1.5,0)).p).unit*999)
531
hit,pos=workspace:FindPartOnRayWithIgnoreList(ray,{char,beamm})
532
533
if hit and hit.Parent:findFirstChild('Humanoid') and s1.Volume > .3 and parti/8==math.floor(parti/8) then
534
Instance.new('Explosion',workspace).Position=pos
535
end
536
if hit and hit.Parent==workspace.Terrain or hit==workspace.Terrain and parti/8==math.floor(parti/8) then
537
e=Instance.new('Explosion',workspace)
538
e.Position=pos
539
e.BlastRadius=14
540
e.BlastPressure=1e4
541
end
542
if hit and not hit.Anchored and not (hit:GetMass()>1e4) then
543
hit.Velocity=hit.Velocity+beam.CFrame.lookVector*(1*s1.Volume*hit:GetMass())
544
end
545
546
if parti==math.floor(parti) then
547
par=part:Clone()
548
table.insert(particles,par)
549
par.Parent=beamm
550
par.Transparency=1-s1.Volume
551
par.light.Range=br*s1.Volume
552
par.CFrame=cf(pos)*ang(math.random(-180,180),math.random(-180,180),math.random(-180,180))*cf(0,0,-10)
553
end
554
555
mag=((wep.CFrame*cf(0,-1.5,0)).p-pos).magnitude
556
ms.Scale=v3(s1.Volume,s1.Volume,mag)
557
ms2.Scale=v3(ms.Scale.x/2,ms.Scale.y/2,mag-(.1/mag))
558
beam.CFrame=cf((wep.CFrame*cf(0,-1.5,0)).p,pos)*cf(0,0,-mag/2)*ang(0,0,math.random(0,180))
559
inner.CFrame=beam.CFrame
560
pl.Range=br*s1.Volume
561
pl2.Range=br*s1.Volume
562
expl.Size=v3(math.random(9,13),math.random(9,13),math.random(9,13))*s1.Volume
563
expl.Transparency=math.random(40,60)/100
564
expl.CFrame=cf(pos)*ang(math.random(0,180),math.random(0,180),math.random(0,180))
565
exa.Size=v3(4,4,4)*s1.Volume
566
exa.CFrame=wep.CFrame*cf(0,-1.5,0)*ang(math.random(0,180),math.random(0,180),math.random(0,180))
567
char.Torso.Velocity=char.Torso.Velocity-beam.CFrame.lookVector*(7*s1.Volume)
568
end
569
end)