View difference between Paste ID: cUs4Vd18 and w7gALqmw
SHOW: | | - or go back to the newest paste.
1
wait()
2
3
player = game:GetService("Players").LocalPlayer
4
name = player.Name
5
keyboard = game:GetService("UserInputService")
6
mouse = player:GetMouse()
7
character = player.Character
8
humanoid = character.Humanoid
9
head = character.Head
10
torso = character.Torso
11
leftarm = character["Left Arm"]
12
rightarm = character["Right Arm"]
13
leftleg = character["Left Leg"]
14
rightleg = character["Right Leg"]
15
highnoon1 = true
16
highnoon2 = false
17
runservice = game:GetService("RunService")
18
bullets = 6
19
20
for i,v in pairs(game.Workspace:GetChildren()) do
21
	if v.ClassName == "Sound" then
22
		v:Destroy()
23
	end
24
end
25
26-
for i,v in pairs(game.Workspace.Bloxplosions:GetChildren()) do
26+
for i,v in pairs(game.Workspace.DragonBxllinGamver:GetChildren()) do
27
	if v.ClassName == "Hat" then
28
		v:Destroy()
29
	end
30
end
31
32-
for i,v in pairs(game.Workspace.Bloxplosions:GetChildren()) do
32+
for i,v in pairs(game.Workspace.DragonBxllinGamver:GetChildren()) do
33
	if v.ClassName == "Part" then
34
		v.BrickColor = BrickColor.new("Light orange")
35
	end
36
end
37
38
humanoid.MaxHealth = math.huge
39
wait(0.1)
40
humanoid.Health = math.huge
41
42
itshighnoon = Instance.new("Sound",character)
43
itshighnoon.SoundId = "http://www.roblox.com/asset?id=420649518"
44
itshighnoon.Volume = 1
45
46
draw = Instance.new("Sound",character)
47
draw.SoundId = "http://www.roblox.com/asset?id=423993839"
48
draw.Volume = 1
49
50
highnoonwind = Instance.new("Sound",character)
51
highnoonwind.SoundId = "http://www.roblox.com/asset?id=200253660"
52
highnoonwind.Volume = 0.3
53
highnoonwind.Looped = true
54
highnoonwind:Play()
55
56
revolvershot = Instance.new("Sound",character)
57
revolvershot.SoundId = "https://www.roblox.com/asset/?id=203691837"
58
revolvershot.Volume = 0.1
59
60
revolverspin = Instance.new("Sound",character)
61
revolverspin.SoundId = "https://www.roblox.com/asset/?id=291203268"
62
revolverspin.Volume = 1
63
64
revolverbi = Instance.new("Sound",character)
65
revolverbi.SoundId = "https://www.roblox.com/asset/?id=291203429"
66
revolverbi.Volume = 1
67
68
function deadeye()
69
	for i,v in pairs(game.Workspace:GetChildren()) do
70
		if v.ClassName == "Model" then
71
			if v:findFirstChild("Torso") ~= nil and v:findFirstChild("Humanoid") ~= nil and v.Name ~= "Bloxplosions" then
72
				local head = v:findFirstChild("Humanoid")
73
				revolvershot:Play()
74
				wait(0.21)
75
				bullets = bullets - 1
76
				head.Health = 0
77
				if bullets == 0 then
78
					revolverspin:Play()
79
					wait(0.7)
80
					revolverbi:Play()
81
					wait(0.3)
82
					revolverbi:Play()
83
					wait(0.3)
84
					revolverbi:Play()
85
					wait(0.3)
86
					revolverbi:Play()
87
					wait(0.3)
88
					revolverbi:Play()
89
					wait(0.3)
90
					revolverbi:Play()
91
					bullets = 6
92
					wait(1)
93
				end
94
			end
95
		end
96
	end
97
end
98
99
function reload()
100
	if bullets == 0 then
101
		revolverspin:Play()
102
		wait(0.7)
103
		revolverbi:Play()
104
		wait(0.3)
105
		revolverbi:Play()
106
		wait(0.3)
107
		revolverbi:Play()			
108
		wait(0.3)
109
		revolverbi:Play()
110
		wait(0.3)
111
		revolverbi:Play()
112
		wait(0.3)
113
		revolverbi:Play()
114
		bullets = 6
115
		wait(1)
116
	end
117
end
118
119
function shoot()
120
	if bullets > 0 then
121
		local bullet = Instance.new("Part",game.Workspace)
122
		bullet.Shape = "Ball"
123
		bullet.Size = Vector3.new(0.2,0.2,0.2)
124
		bullet.BrickColor = BrickColor.new("Black")
125
		bullet.Material = "SmoothPlastic"
126
		bullet.CFrame = revolver.Handle.CFrame * CFrame.new(0,0.6,2.2)
127
		bullet.CFrame = CFrame.new(bullet.Position, mouse.Hit.p)
128
		local bulletbv = Instance.new("BodyVelocity",bullet)
129
		bulletbv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
130
		bulletbv.Velocity = bullet.CFrame.lookVector * 400
131
		bullet.Touched:connect(function(dmg)
132
			local person = dmg.Parent:findFirstChild("Humanoid")
133
			if person ~= nil then
134
				person:TakeDamage(25)
135
				bullet:Destroy()
136
			end
137
		end)
138
	end
139
end
140
141
cowboyhat = Instance.new("Hat",game.Workspace)
142
cowboyhat.Name = "McCree's Hat"
143
cowboyhat.AttachmentForward = Vector3.new(0,0,-1)
144
cowboyhat.AttachmentPos = Vector3.new(0,0.1,-0.3)
145
cowboyhat.AttachmentRight = Vector3.new(1, 0, 0)
146
cowboyhat.AttachmentUp = Vector3.new(0, 1, 0)
147
148
handle1 = Instance.new("Part",cowboyhat)
149
handle1.Name = "Handle"
150
handle1.Size = Vector3.new(1,1,1)
151
handle1.Position = head.Position
152
153
handle1.Touched:connect(function()
154
	cowboyhat.Parent = character
155
end)
156
157
mesh1 = Instance.new("SpecialMesh",handle1)
158
mesh1.MeshType = "FileMesh"
159
mesh1.MeshId = "http://www.roblox.com/asset/?id=227395575"
160
mesh1.TextureId = "http://www.roblox.com/asset/?id=227395185"
161
mesh1.Scale = Vector3.new(0.6,0.6,0.6)
162
163
cowboybeard = Instance.new("Hat",game.Workspace)
164
cowboybeard.Name = "McCree's Beard"
165
cowboybeard.AttachmentForward = Vector3.new(0,0,-1)
166
cowboybeard.AttachmentPos = Vector3.new(0,0.7,0.3)
167
cowboybeard.AttachmentRight = Vector3.new(1, 0, 0)
168
cowboybeard.AttachmentUp = Vector3.new(0, 1, 0)
169
170
handle2 = Instance.new("Part",cowboybeard)
171
handle2.Name = "Handle"
172
handle2.Size = Vector3.new(1,1,1)
173
handle2.Position = head.Position
174
175
handle2.Touched:connect(function()
176
	cowboybeard.Parent = character
177
end)
178
179
mesh2 = Instance.new("SpecialMesh",handle2)
180
mesh2.MeshType = "FileMesh"
181
mesh2.MeshId = "http://www.roblox.com/asset/?id=157959108"
182
mesh2.TextureId = "http://www.roblox.com/asset/?id=157924575"
183
mesh2.Scale = Vector3.new(0.6,0.6,0.6)
184
185
shirt = Instance.new("Shirt",character)
186
shirt.ShirtTemplate = "http://www.roblox.com/asset?id=453543655"
187
shirt.Name = "McCree's Shirt"
188
189
pants = Instance.new("Pants",character)
190
pants.PantsTemplate = "http://www.roblox.com/asset?id=453544953"
191
pants.Name = "McCree's Pants"
192
193
head.face.Texture = "http://www.roblox.com/asset?id=209714802"
194
195
revolver = Instance.new("Tool",player.Backpack)
196
revolver.Name = "McCree's Peacekeeper"
197
revolver.GripForward = Vector3.new(0,0,1)
198
revolver.GripPos = Vector3.new(0,0,0)
199
revolver.GripRight = Vector3.new(-1,0,0)
200
revolver.GripUp = Vector3.new(0,1,0)
201
202
handle3 = Instance.new("Part",revolver)
203
handle3.Size = Vector3.new(1,1,1)
204
handle3.Name = "Handle"
205
206
mesh3 = Instance.new("SpecialMesh",handle3)
207
mesh3.MeshType = "FileMesh"
208
mesh3.MeshId = "http://www.roblox.com/asset?id=470534872"
209
mesh3.TextureId = "http://www.roblox.com/asset?id=470534875"
210
mesh3.Scale = Vector3.new(0.05,0.05,0.05)
211
mesh3.Offset = Vector3.new(0,0.2,0.8)
212
213
revolver.Equipped:connect(function()
214
	highnoon1 = true
215
	if highnoon1 == true then
216
		keyboard.InputBegan:connect(function(KeyE)
217
			if KeyE.KeyCode == Enum.KeyCode.E then
218
				if highnoon2 == false and highnoon1 == true then
219
					highnoon2 = true
220
					itshighnoon:Play()
221
					print("It's high noon...")
222
					game:GetService("Chat"):Chat(head, "It's high noon...")
223
					wait(5)
224
					draw:Play()
225
					game:GetService("Chat"):Chat(head, "Draw!")
226
					wait(1.3)
227
					deadeye()
228
					wait(3)
229
					highnoon2 = false
230
				end
231
			end
232
		end)
233
	end
234
end)
235
236
revolver.Equipped:connect(function()
237
	highnoon1 = true
238
	if highnoon1 == true then
239
		mouse.Button1Down:connect(function()
240
			if highnoon1 == true then
241
				if highnoon2 == false then
242
					if bullets > 0 then
243
						highnoon2 = true
244
						shoot()
245
						revolvershot:Play()
246
						wait(0.3)
247
						highnoon2 = false
248
						bullets = bullets - 1
249
						reload()
250
					end
251
				end
252
			end
253
		end)
254
	end
255
end)
256
257
revolver.Unequipped:connect(function()
258
	highnoon1 = false
259
end)