View difference between Paste ID: 7iKysxB6 and fHmn48kb
SHOW: | | - or go back to the newest paste.
1
local Me = game:GetService("Players").LocalPlayer
2
local Char = Me.Character
3
local Torso = Char.Torso
4
local TickWait = 1
5
local Color = "Medium stone gray"
6
local Dead = false
7
8
local Tool = Instance.new("HopperBin", Me.Backpack)
9
Tool.Name = "Bomb Vest"
10
11
local Position = Vector3.new(0,100,0)
12
function NewPart(Parent)
13
	local Part = Instance.new("Part", Parent)
14
	Part.CanCollide = false
15
	Part.FormFactor = "Custom"
16
	Part.Position = Position
17
	Part.TopSurface = "Smooth"
18
	Part.BottomSurface = "Smooth"
19
	Part.BrickColor = BrickColor.new(Color)
20
	Position = Position + Vector3.new(0,Part.Size.Y + 10,0)
21
	return Part
22
end
23
24
local Model = Char:FindFirstChild("Bomb")
25
if Model then Model:Destroy() end
26
27
Model = Instance.new("Model", Char)
28
Model.Name = "Bomb"
29
30
local Belt = NewPart(Model)
31
Belt.Size = Vector3.new(2.2,0.5,1.2)
32
local Weld = Instance.new("Weld", Belt)
33
Weld.Part0 = Belt
34
Weld.Part1 = Torso
35
Weld.C0 = CFrame.new(0,1.1,0)
36
local Light = Instance.new("PointLight", Belt)
37
Light.Range = 15
38
Light.Brightness = 5
39
Light.Color = Color3.new(1,0,0)
40
local Beep = Instance.new("Sound", Belt)
41
Beep.SoundId = "http://www.roblox.com/asset/?id=188588790"
42
local ExplodeSound = Instance.new("Sound", Belt)
43
ExplodeSound.SoundId = "http://www.roblox.com/asset/?id="..(tonumber((math.ceil(1776.66^2)+17).."."..string.rep("36",3))*77)+0.00003 --144507765
44
ExplodeSound.Pitch = 2.8
45
ExplodeSound.Volume = 100
46
47
ExplodeSound.SoundId = "http://www.roblox.com/asset/?id="..(tonumber((math.ceil(1776.66^2)+17).."."..string.rep("36",3))*77)+0.00003 --144507765
48
ExplodeSound.Pitch = 2.8
49
ExplodeSound.Volume = 100
50
51
ExplodeSound.SoundId = "http://www.roblox.com/asset/?id="..(tonumber((math.ceil(1776.66^2)+17).."."..string.rep("36",3))*77)+0.00003 --144507765
52
ExplodeSound.Pitch = 2.8
53
ExplodeSound.Volume = 100
54
55
ExplodeSound.SoundId = "http://www.roblox.com/asset/?id="..(tonumber((math.ceil(1776.66^2)+17).."."..string.rep("36",3))*77)+0.00003 --144507765
56
ExplodeSound.Pitch = 2.8
57
ExplodeSound.Volume = 100
58
59
local Back = NewPart(Model)
60
Back.Size = Vector3.new(1.5,1.5,0.5)
61
local Weld = Instance.new("Weld", Back)
62
Weld.Part0 = Back
63
Weld.Part1 = Torso
64
Weld.C0 = CFrame.new(0,0.1,-0.75)
65
66
local StrapLeft = NewPart(Model)
67
StrapLeft.Size = Vector3.new(0.2,0.5,1.6)
68
local Weld = Instance.new("Weld", StrapLeft)
69
Weld.Part0 = StrapLeft
70
Weld.Part1 = Torso
71
Weld.C0 = CFrame.new(0.65,-0.9,-0.2)
72
73
local BuckleLeft = NewPart(Model)
74
BuckleLeft.Size = Vector3.new(0.2,1.5,0.2)
75
local Weld = Instance.new("Weld", BuckleLeft)
76
Weld.Part0 = BuckleLeft
77
Weld.Part1 = Torso
78
Weld.C0 = CFrame.new(0.65,0.1,0.5)
79
80
local StrapRight = NewPart(Model)
81
StrapRight.Size = Vector3.new(0.2,0.5,1.6)
82
local Weld = Instance.new("Weld", StrapRight)
83
Weld.Part0 = StrapRight
84
Weld.Part1 = Torso
85
Weld.C0 = CFrame.new(-0.65,-0.9,-0.2)
86
87
local BuckleRight = NewPart(Model)
88
BuckleRight.Size = Vector3.new(0.2,1.5,0.2)
89
local Weld = Instance.new("Weld", BuckleRight)
90
Weld.Part0 = BuckleRight
91
Weld.Part1 = Torso
92
Weld.C0 = CFrame.new(-0.65,0.1,0.5)
93
94
Tool.Selected:connect(function(Mouse)
95
	TickWait = 0.3
96
	Mouse.Icon = "http://www.roblox.com/asset/?id=9109985"
97
	
98
	Mouse.Button1Down:connect(function()
99
		if Dead == false then
100
			Dead = true
101
			ExplodeSound:Play()
102
			wait(1.4)
103
			local Explosion = Instance.new("Explosion", Workspace)
104
			Explosion.Position = Belt.Position
105
			Explosion.BlastPressure = 100000
106
			Explosion.DestroyJointRadiusPercent = 0.7
107
			Explosion.ExplosionType = "CratersAndDebris"
108
			Explosion.BlastRadius = 50
109
			Explosion.Hit:connect(function(Part, Distance)
110
				Part.Anchored = false
111
				if Distance <= 10 then
112
					Part:BreakJoints()
113
				end
114
			end)
115
		end
116
	end)
117
end)
118
119
Tool.Deselected:connect(function()
120
	TickWait = 1
121
end)
122
123
coroutine.wrap(function()
124
	repeat
125
		wait(TickWait)
126
		Light.Enabled = not Light.Enabled
127
		Beep:Play()
128
	until Dead == true
129
end)()