View difference between Paste ID: FxzkWdE5 and id4ff9dE
SHOW: | | - or go back to the newest paste.
1
--Created with PenguinAnonymous's compiler
2
--PenguinAnonymous is not responsible for damages caused to your game
3
--This plugin does not remove things
4
--PenguinAnonymous cannot be held resonsible for manual deletion for the purpose of testing
5
--Keep in mind, any items that cause errors in compilation will be skipped and documented within the last line of the disclaimer comments
6
--Thank you for using my plugin and enjoy :)
7
--It is free to use
8
--If you use this plugin to create your own, please give me credit
9
--Errors: 
10
local runDummyScript = function(f,scri)
11
local oldenv = getfenv(f)
12
local newenv = setmetatable({}, {
13
__index = function(_, k)
14
if k:lower() == 'script' then
15
return scri
16
else
17
return oldenv[k]
18
end
19
end
20
})
21
setfenv(f, newenv)
22
ypcall(function() f() end)
23
end
24
cors = {}
25
mas = Instance.new("Model",game:GetService("Lighting")) 
26
mas.Name = "CompiledModel"
27
o1 = Instance.new("Tool")
28
o2 = Instance.new("Part")
29
o3 = Instance.new("Sound")
30
o4 = Instance.new("SpecialMesh")
31
o5 = Instance.new("Sound")
32
o6 = Instance.new("Sound")
33
o7 = Instance.new("Fire")
34
o8 = Instance.new("PointLight")
35
o9 = Instance.new("Smoke")
36
o10 = Instance.new("ParticleEmitter")
37
o11 = Instance.new("PointLight")
38
o12 = Instance.new("ParticleEmitter")
39
o13 = Instance.new("LocalScript")
40
o14 = Instance.new("Animation")
41
o15 = Instance.new("Animation")
42
o16 = Instance.new("Animation")
43
o17 = Instance.new("Script")
44
o18 = Instance.new("ParticleEmitter")
45
o19 = Instance.new("PointLight")
46
o20 = Instance.new("ParticleEmitter")
47
o1.Name = "ChargedFireball"
48
o1.Parent = mas
49-
o1.TextureId = "http://www.roblox.com/asset/?id=188445129"
49+
o1.TextureId = "http://www.roblox.com/asset/?id=318924325"
50
o1.GripRight = Vector3.new(0, -1, 0)
51
o1.GripUp = Vector3.new(1, 0, 0)
52
o1.ToolTip = "Fireball"
53
o1.CanBeDropped = false
54
o2.Name = "Handle"
55
o2.Parent = o1
56-
o2.BrickColor = BrickColor.new("Br. yellowish orange")
56+
o2.BrickColor = BrickColor.new("Bright blue")
57
o2.Transparency = 1
58
o2.Position = Vector3.new(4.70000029, 2086, -3.10000014)
59
o2.Rotation = Vector3.new(-90, 0, -90)
60
o2.RotVelocity = Vector3.new(1, 1, 1)
61
o2.Locked = true
62
o2.FormFactor = Enum.FormFactor.Symmetric
63
o2.Shape = Enum.PartType.Ball
64
o2.Size = Vector3.new(1, 1, 1)
65
o2.CFrame = CFrame.new(4.70000029, 2086, -3.10000014, 0, 1, 0, 0, 0, 1, 1, 0, 0)
66
o2.BottomSurface = Enum.SurfaceType.Smooth
67
o2.TopSurface = Enum.SurfaceType.Smooth
68
o2.Color = Color3.new(0.886275, 0.607843, 0.25098)
69
o2.Position = Vector3.new(4.70000029, 2086, -3.10000014)
70
o2.Orientation = Vector3.new(-90, -90, 0)
71
o2.Color = Color3.new(0.886275, 0.607843, 0.25098)
72
o3.Name = "ExplodeSound"
73
o3.Parent = o2
74-
o3.SoundId = "http://www.roblox.com/asset/?id=130792180"
74+
o3.SoundId = "http://www.roblox.com/asset/?id=163277488"
75-
o3.Volume = 1
75+
o3.Volume = math.huge
76
o4.Parent = o2
77
o4.MeshType = Enum.MeshType.Sphere
78
o5.Name = "ChargeSound"
79
o5.Parent = o2
80-
o5.SoundId = "http://www.roblox.com/asset/?id=142472270"
80+
o5.SoundId = "http://www.roblox.com/asset/?id=339027743"
81-
o5.Volume = 1
81+
o5.Volume = math.huge
82
o6.Name = "FireSound"
83
o6.Parent = o2
84-
o6.SoundId = "http://www.roblox.com/asset/?id=75422951"
84+
o6.SoundId = "http://www.roblox.com/asset/?id=137304720"
85
o6.Volume = 1
86
o7.Parent = o2
87
o7.Size = 3
88-
o7.Color = Color3.new(1, 0.576471, 0.294118)
88+
o7.Color = Color3.new(178, 138, 239)
89
o7.Enabled = false
90
o7.Heat = 0
91-
o7.Color = Color3.new(1, 0.576471, 0.294118)
91+
o7.Color = Color3.new(178, 138, 239)
92
o8.Parent = o2
93-
o8.Color = Color3.new(0.92549, 0.545098, 0.27451)
93+
o8.Color = Color3.new(178, 138, 239)
94
o8.Enabled = false
95-
o8.Range = 3
95+
96
o8.Color = Color3.new(178, 138, 239)
97-
o8.Color = Color3.new(0.92549, 0.545098, 0.27451)
97+
98
o9.Size = 0.10000000149012
99
o9.Color = Color3.new(178, 138, 239)
100-
o9.Color = Color3.new(0.27451, 0.27451, 0.27451)
100+
101
o9.RiseVelocity = 0
102-
o9.Opacity = 0.20000000298023
102+
o9.Color = Color3.new(178, 138, 239)
103
o10.Name = "Fire"
104-
o9.Color = Color3.new(0.27451, 0.27451, 0.27451)
104+
105
o10.Transparency = NumberSequence.new(1,0.76875001192093,0.59375,0.41874998807907,0.28749996423721,0.28125,0.34999996423721,0.54999995231628,1)
106
o10.Rotation = NumberRange.new(-180,180)
107
o10.Size = NumberSequence.new(1.25,2)
108
o10.Color = ColorSequence.new(Color3.new(178, 138, 239),Color3.new(178, 138, 239))
109
o10.LightEmission = 1
110
o10.Texture = "http://www.roblox.com/asset/?id=1057317572"
111-
o10.LightEmission = 0.625
111+
112-
o10.Texture = "http://www.roblox.com/asset/?id=301811459"
112+
113
o10.Lifetime = NumberRange.new(0.20000000298023,0.60000002384186)
114
o10.Rate = 50
115
o10.RotSpeed = NumberRange.new(-180,180)
116
o10.Speed = NumberRange.new(0,0)
117
o10.VelocitySpread = 180
118
o10.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
119
o11.Name = "Light"
120
o11.Parent = o2
121
o11.Color = Color3.new(1, 0.654902, 0.235294)
122
o11.Shadows = true
123
o11.Color = Color3.new(1, 0.654902, 0.235294)
124
o12.Name = "Sparks"
125
o12.Parent = o2
126
o12.Size = NumberSequence.new(0.625,0)
127
o12.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
128
o12.LightEmission = 1
129
o12.Texture = "http://www.roblox.com/asset/?id=1057317572"
130
o12.ZOffset = 1
131-
o12.Texture = "http://www.roblox.com/asset/?id=298984512"
131+
132
o12.Lifetime = NumberRange.new(0.5,0.82499998807907)
133
o12.Rate = 50
134
o12.Speed = NumberRange.new(1,3)
135
o12.VelocitySpread = 180
136
o12.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
137
o13.Parent = o1
138
table.insert(cors,coroutine.create(function()
139
wait()
140
runDummyScript(function()
141
--Originally by Stickmasterluke, modified by BombHunter2000
142
143
144
sp=script.Parent
145
plr=game.Players.localPlayer
146
147
--Bomb--
148
damage={inf,inf}
149
firerate=1
150-
damage={20,400}
150+
151-
firerate=1.5
151+
152
extrasize=4
153
--------
154
155
rate=1/30
156
debris=game:GetService("Debris")
157
equipped=false
158
check=true
159
160
function waitfor(a,b)
161
	while a:FindFirstChild(b)==nil do
162
		a.ChildAdded:wait()
163
	end
164
	return a:FindFirstChild(b)
165
end
166
167
local anim2=waitfor(sp,"ChargeEnergyBall")
168
local anim3=waitfor(sp,"RightSlash")
169
170
function onEquipped(mouse)
171
	sp.Handle.Transparency=1
172
	equipped=true
173
	if chargeanim~=nil then
174
		chargeanim:Stop()
175
	end
176
	if mouse~=nil then
177
		mouse.Icon="rbxasset://textures\\GunCursor.png"
178
		mouse.Button1Down:connect(function()
179
			down=true
180
			local he=sp.Parent:FindFirstChild("Head")
181
			local hu=sp.Parent:FindFirstChild("Humanoid")
182
			if check and he and hu and hu.Health>0 then
183
				check=false
184
				mouse.Icon="rbxasset://textures\\GunWaitCursor.png"
185
				starttime=tick()
186
				lv=he.CFrame.lookVector
187
				local mesh=sp.Handle:FindFirstChild("Mesh")
188
				if mesh~=nil then
189
					mesh.Scale=Vector3.new(1,1,1)
190
				end
191
				local fire=sp.Handle:FindFirstChild("Fire")
192
				if fire~=nil then
193
					fire.Size=0
194
					fire.Enabled=true
195
				end
196
				local light=sp.Handle:FindFirstChild("PointLight")
197
				if light~=nil then
198
					light.Range=0
199
					light.Enabled=true
200
				end
201
				local smoke=sp.Handle:FindFirstChild("Smoke")
202
				if smoke~=nil then
203
					smoke.Size=0
204
					smoke.Enabled=true
205
				end
206
				if chargeanim~=nil then
207
					chargeanim:Stop()
208
				end
209
				chargeanim=hu:LoadAnimation(anim2)
210
				if chargeanim then
211
					chargeanim:Play()
212
				end
213
				local lastchargesound=0
214
				while down and equipped and tick()-starttime<chargetime and hu~=nil and hu.Health>0 do
215
					local percent=(tick()-starttime)/chargetime
216
					sp.Handle.Transparency=1+(math.random()*.3)
217
					local mesh=sp.Handle:FindFirstChild("Mesh")
218
					if mesh~=nil then
219
						mesh.Scale=Vector3.new(1,1,1)+(Vector3.new(1,1,1)*extrasize*percent)
220
					end
221
					local fire=sp.Handle:FindFirstChild("Fire")
222
					if fire~=nil then
223
						fire.Size=percent*extrasize*2
224
					end
225
					local light=sp.Handle:FindFirstChild("PointLight")
226
					if light~=nil then
227
						light.Range=percent*extrasize*4
228
					end
229
					local smoke=sp.Handle:FindFirstChild("Smoke")
230
					if smoke~=nil then
231
						smoke.Size=percent*extrasize*.2
232
					end
233
					if tick()-lastchargesound>5 then
234
						lastchargesound=tick()
235
						local sound=sp.Handle:FindFirstChild("ChargeSound")
236
						if sound~=nil then
237
							sound:Play()
238
						end
239
					end
240
					wait()
241
				end
242
				sp.GripPos=Vector3.new(0,0,0)
243
				sp.Handle.Transparency=1
244
				throwanim=hu:LoadAnimation(anim3)
245
				if throwanim then
246
					throwanim:Play(0,1,8)
247
				end
248
				local sound=sp.Handle:FindFirstChild("ChargeSound")
249
				if sound~=nil then
250
					sound:Stop()
251
				end
252
				local sound=sp.Handle:FindFirstChild("FireSound")
253
				if sound~=nil then
254
					sound:Play()
255
				end
256
				local fire=sp.Handle:FindFirstChild("Fire")
257
				if fire~=nil then
258
					fire.Enabled=false
259
				end
260
				local smoke=sp.Handle:FindFirstChild("Smoke")
261
				if smoke~=nil then
262
					smoke.Enabled=false
263
				end
264
				local light=sp.Handle:FindFirstChild("PointLight")
265
				if light~=nil then
266
					light.Enabled=false
267
				end
268
				local shot=sp.Handle:clone()
269
				if chargeanim~=nil then
270
					chargeanim:Stop()
271
				end
272
				local fire=shot:FindFirstChild("Fire")
273
				if fire~=nil then
274
					fire.Enabled=true
275
				end
276
				local smoke=shot:FindFirstChild("Smoke")
277
				if smoke~=nil then
278
					smoke.Enabled=true
279
				end
280
				local light=shot:FindFirstChild("PointLight")
281
				if light~=nil then
282
					light.Enabled=true
283
				end
284
				local percent=math.min(math.max((tick()-starttime)/chargetime,0),1)
285
				local size=(1+(extrasize*percent))
286
				shot.Size=Vector3.new(1,1,1)*size
287
				shot.Mesh.Scale=Vector3.new(1,1,1)*(size/shot.Size.Y)
288
				shot.Name="Effect"
289
				shot.CanCollide=false
290
				shot.Transparency=1
291
				if mouse~=nil then
292
					shot.Velocity=((mouse.Hit.p-shot.Position).unit)*bombvelocity
293
				else
294
					shot.Velocity=lv*bombvelocity
295
				end
296
				shot.RotVelocity=Vector3.new(math.random()-.5,math.random()-.5,math.random()-.5)*20
297
				local bf=Instance.new("BodyForce")
298
				bf.force=Vector3.new(0,shot:GetMass()*196.2,0)
299
				bf.Parent=shot
300
				shot.Touched:connect(function(hit)
301
					if shot~=nil and shot.Transparency~=10 and hit~=nil and string.lower(string.sub(hit.Name,1,6))~="effect" then
302
						if not hit:IsDescendantOf(sp.Parent) then
303
							local hum=hit.Parent:FindFirstChild("Humanoid")
304
							if hum~=nil then
305
								for _,v in pairs(hum:GetChildren()) do
306
									if v~=nil and v.Name=="creator" then
307
										v:remove()
308
									end
309
								end
310
								local ct=Instance.new("ObjectValue")
311
								ct.Name="creator"
312
								ct.Value=game.Players.LocalPlayer
313
								ct.Parent=hum
314
								hum:TakeDamage(damage[1]+(percent*(damage[2]-damage[1])))
315
							end
316
							local explosion = Instance.new('Explosion')
317
							explosion.BlastPressure = percent*extrasize*5
318
							explosion.BlastRadius = percent*extrasize*2
319
							explosion.Position = shot.Position
320
							explosion.Parent = game.Workspace
321
							local sound=shot:FindFirstChild("ExplodeSound")
322
							if sound~=nil then
323
								sound.Volume=.5+(.5*percent)
324
								sound:Play()
325
							end
326
							shot.Transparency=1
327
							shot.Anchored=true
328
							local fire=shot:FindFirstChild("Fire")
329
							if fire~=nil then
330
								fire.Enabled=false
331
							end
332
							local smoke=shot:FindFirstChild("Smoke")
333
							if smoke~=nil then
334
								smoke.Enabled=false
335
							end
336
							local light=shot:FindFirstChild("PointLight")
337
							if light~=nil then
338
								light.Enabled=false
339
							end
340
							wait(.1)
341
							if shot~=nil then
342
								shot:remove()
343
							end
344
						end
345
					end
346
				end)
347
				debris:AddItem(shot,14)
348
				shot.Parent=game.Workspace
349
				wait(firerate)
350
				mouse.Icon="rbxasset://textures\\GunCursor.png"
351
				check=true
352
			end
353
		end)
354
		mouse.Button1Up:connect(function()
355
			down=false
356
		end)
357
	end
358
end
359
360
function onUnequipped()
361
	equipped=false
362
end
363
364
-- Waits for the child of the specified parent
365
local function WaitForChild(parent, childName)
366
	while not parent:FindFirstChild(childName) do parent.ChildAdded:wait() end
367
	return parent[childName]
368
end
369
370
local Tool = script.Parent
371
372
local Animations = {}
373
local MyHumanoid
374
local MyCharacter
375
376
377
local function PlayAnimation(animationName)
378
	if Animations[animationName] then
379
		Animations[animationName]:Play()
380
	end
381
end
382
383
local function StopAnimation(animationName)
384
	if Animations[animationName] then
385
		Animations[animationName]:Stop()
386
	end
387
end
388
389
390
function OnEquipped(mouse)
391
	MyCharacter = Tool.Parent
392
	MyHumanoid = WaitForChild(MyCharacter, 'Humanoid')
393
	if MyHumanoid then
394
		
395
		Animations['IdleAnim'] = MyHumanoid:LoadAnimation(WaitForChild(Tool, 'IdleAnim3'))
396
	end
397
	PlayAnimation('IdleAnim')
398
end
399
400
function OnUnequipped()
401
	for animName, _ in pairs(Animations) do
402
		StopAnimation(animName)
403
	end
404
end
405
406
Tool.Equipped:connect(OnEquipped)
407
Tool.Unequipped:connect(OnUnequipped)
408
409
sp.Equipped:connect(onEquipped)
410
sp.Unequipped:connect(onUnequipped)
411
412
413
414
415
416
417
end,o13)
418
end))
419
o14.Name = "ChargeEnergyBall"
420
o14.Parent = o1
421
o14.AnimationId = "http://www.roblox.com/Asset?ID=30257281"
422
o15.Name = "IdleAnim3"
423-
o14.AnimationId = "http://www.roblox.com/Asset?ID=77320917"
423+
424
o15.AnimationId = "http://www.roblox.com/asset/?id=69427262"
425
o16.Name = "RightSlash"
426
o16.Parent = o1
427
o16.AnimationId = "http://www.roblox.com/asset?id=187564515"
428
o17.Name = "FireTool"
429
o17.Parent = o1
430
table.insert(cors,coroutine.create(function()
431
wait()
432
runDummyScript(function()
433
-- Scripted by duncan778
434
435
local Tool = script.Parent;
436
enabled = true
437
438
function fire(v)
439
	local vCharacter = Tool.Parent
440
	local vPlayer = game.Players:playerFromCharacter(vCharacter)
441
442
	local missile = Instance.new("Part")
443
444
	local spawnPos = Tool.Handle.Position
445
	spawnPos  = spawnPos + (v * 4)
446
	
447
	missile.Position = spawnPos
448
	missile.Size = Vector3.new(1,1,1)
449
	missile.Velocity = v * 85
450
	missile.Shape = 0
451
	missile.BottomSurface = 0
452
	missile.TopSurface = 0
453
	missile.Name = "Firebolt"
454
	missile.Transparency = 1
455
	missile.CanCollide = false
456
	
457
	local f = script.Fire:clone()
458
	f.Parent = missile
459
	f.Enabled = true
460
	local s = script.Sparks:clone()
461
	s.Parent = missile
462
	s.Enabled = true
463
	local l = script.Light:clone()
464
	l.Parent = missile
465
	l.Enabled = true
466
467
	local force = Instance.new("BodyForce")
468
	force.force = Vector3.new(0,100,0)
469
	force.Parent = missile
470
471
	local creator_tag = Instance.new("ObjectValue")
472
	creator_tag.Value = vPlayer
473
	creator_tag.Name = "creator"
474
	creator_tag.Parent = missile
475
	
476
	local new_script = Tool.BurnScript:clone()
477
	new_script.Parent = missile
478
	new_script.Disabled = false
479
	
480
	local CreatorTag = Instance.new("StringValue")
481
	CreatorTag.Name = "CreatorTag"
482
	CreatorTag.Value = Tool.Parent.Name	
483
	CreatorTag.Parent = missile
484
	
485
	missile.Parent = game.Workspace
486
end
487
488
function gunUp()
489
	Tool.Handle.Fire.Enabled = false
490
	Tool.Handle.Sparks.Enabled = false
491
	Tool.Handle.Light.Enabled = false
492
end
493
494
function gunOut()
495
	Tool.Handle.Fire.Enabled = true
496
	Tool.Handle.Sparks.Enabled = true
497
	Tool.Handle.Light.Enabled = true
498
end
499
500
function onActivated()
501
	if not enabled  then
502
	return
503
	end
504
	enabled = false
505
	local character = Tool.Parent;
506
	local humanoid = character.Humanoid
507
	if humanoid == nil then
508
	print("Humanoid not found")
509
	return 
510
	end
511
	local targetPos = humanoid.TargetPoint
512
	local lookAt = (targetPos - character.Head.Position).unit	
513
	
514
	local reload = 5
515
	
516
	gunUp()
517
	fire(lookAt)
518
	wait(reload)
519
	gunOut()
520
	wait()
521
	enabled = true
522
end
523
524
script.Parent.Activated:connect(onActivated)
525
526
end,o17)
527
end))
528
o18.Name = "Sparks"
529
o18.Parent = o17
530
o18.Size = NumberSequence.new(0.625,0)
531
o18.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
532
o18.Enabled = false
533
o18.LightEmission = 1
534
o18.Texture = "http://www.roblox.com/asset/?id=298984512"
535
o18.ZOffset = 1
536
o18.Acceleration = Vector3.new(0, -5, 0)
537
o18.Lifetime = NumberRange.new(1,2)
538
o18.Rate = 75
539
o18.Speed = NumberRange.new(6,8)
540
o18.VelocitySpread = 65
541
o18.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
542
o19.Name = "Light"
543
o19.Parent = o17
544
o19.Color = Color3.new(1, 0.654902, 0.235294)
545
o19.Brightness = 1.5
546
o19.Range = 12
547
o19.Shadows = true
548
o19.Color = Color3.new(1, 0.654902, 0.235294)
549
o20.Name = "Fire"
550
o20.Parent = o17
551
o20.Transparency = NumberSequence.new(1,0.76875001192093,0.59375,0.41874998807907,0.28749996423721,0.28125,0.34999996423721,0.54999995231628,1)
552
o20.Rotation = NumberRange.new(-180,180)
553
o20.Size = NumberSequence.new(2.5,3.75)
554
o20.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
555
o20.Enabled = false
556
o20.LightEmission = 0.625
557
o20.Texture = "http://www.roblox.com/asset/?id=301811459"
558
o20.ZOffset = 1
559
o20.Acceleration = Vector3.new(0, 12.5, 0)
560
o20.Lifetime = NumberRange.new(0.40000000596046,0.80000001192093)
561
o20.Rate = 125
562
o20.RotSpeed = NumberRange.new(-180,180)
563
o20.Speed = NumberRange.new(0,0)
564
o20.VelocitySpread = 180
565
o20.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
566
mas.Parent = workspace
567
mas:MakeJoints()
568
local mas1 = mas:GetChildren()
569
for i=1,#mas1 do
570
	mas1[i].Parent = game:GetService("Players").LocalPlayer.Backpack 
571
	ypcall(function() mas1[i]:MakeJoints() end)
572
end
573
mas:Destroy()
574
for i=1,#cors do
575
coroutine.resume(cors[i])
576
end