View difference between Paste ID: f0NB7EUf and akfLvyMS
SHOW: | | - or go back to the newest paste.
1
--By Rufus14
2
--ears: 391268255
3
--bamalam: 720451528
4
--columb: 1202637744
5
music = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
6
music.Volume = 0
7
music.SoundId = "rbxassetid://0"
8
music.Looped = true
9
music:Play()
10
mouse = game.Players.LocalPlayer:GetMouse()
11
gun = Instance.new("Part", game.Players.LocalPlayer.Character)
12
gun:BreakJoints()
13
gun.CanCollide = false
14
gun.Name = "Shotgun"
15
mesh = Instance.new("SpecialMesh", gun)
16
mesh.MeshId = "rbxassetid://477037714"
17
mesh.TextureId = "rbxassetid://477037796"
18
mesh.Scale = Vector3.new(0.03,0.03,0.03)
19
weld = Instance.new("Weld", gun)
20
NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
21
	NEWPART.Name = NAME
22
	NEWPART.Size = SIZE
23
	NEWPART.Position = Torso.Position
24
	NEWPART.Material = MATERIAL
25
	NEWPART:BreakJoints()
26
	NEWPART.Parent = PARENT
27
weld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
28
weld.Part1 = gun
29
weld.C0 = weld.C0 * CFrame.Angles(-1.5,0,0) * CFrame.new(0,0,-2.5)
30
local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
31
rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
32
rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
33
rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
34
local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
35
lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
36
lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
37
lhandweld.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
38
shot = Instance.new("Sound", gun)
39
shot.Volume = 10
40
shot.SoundId = "rbxassetid://185044507"
41
pump = Instance.new("Sound", gun)
42
pump.Volume = 10
43
pump.SoundId = "rbxassetid://255061173"
44
pump.PlaybackSpeed = 0.7
45
function owtheedge()
46
	workspace.CurrentCamera.FieldOfView = 70 + music.PlaybackLoudness / 80
47
end
48
game:GetService("RunService").RenderStepped:connect(owtheedge)
49
for i = 0,0.7 , 0.01 do
50
	weld.C0 = weld.C0:lerp(CFrame.new(-0.342021942, -1.88848877, -0.088739872, 0.978147507, -0.0289359875, -0.205888897, 0.204753578, -0.0378959738, 0.978079677, -0.0361040607, -0.998862624, -0.0311431047),i)
51
	rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.917564392, 0.399175882, -0.578536987, 0.978147507, 0.204753578, -0.0361040607, -0.0289359875, -0.0378959738, -0.998862624, -0.205888897, 0.978079677, -0.0311431047),i)
52
	lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.472423553, 0.409558296, -1.4746933, 0.939692736, -0.342019886, -2.0985492e-06, 0.0238559935, 0.0655499771, -0.997564137, 0.341186911, 0.937403619, 0.0697560608),i)
53
	game:GetService("RunService").RenderStepped:wait()
54
end
55
using = false
56
ammo = 5
57
function shoot()
58
	if not using then
59
		using = true
60
		shot:Play()
61
		for i = 1,5 do
62
			local missle = Instance.new("Part", workspace)
63
			missle:BreakJoints()
64
			missle.Name = "bullet"
65
			missle.CanCollide = false
66
			missle.Material = "Neon"
67
			missle.Size = Vector3.new(0.1,0.1,0.1)
68
			missle.CFrame = gun.CFrame * CFrame.new(0,0,2)
69
			missle.Transparency = 1
70
			local vel = Instance.new("BodyVelocity", missle)
71
			vel.Velocity = mouse.Hit.lookVector * math.random(500,500) + Vector3.new(math.random(-50,50),math.random(-50,50),0)
72
			vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
73
			local function hit(part)
74
				local hitval = math.random(25,40)
75
				local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
76
				if humanoid then
77
					if humanoid.Health == math.huge or humanoid.Health >= 600 then
78
						humanoid.Health = 100
79
					end
80
					if humanoid.MaxHealth == math.huge or humanoid.MaxHealth >= 600 then
81
						humanoid.MaxHealth = 100
82
					end
83
					if humanoid.Parent.Name == game.Players.LocalPlayer.Name then
84
						
85
					else
86
						if humanoid.Health < hitval then
87
							humanoid.JumpPower = 0
88
	                        humanoid.PlatformStand = true
89
	                        humanoid.WalkSpeed = 0
90
	                        local findlefthip = humanoid.Parent.Torso:findFirstChild("Left Hip")
91
	                        if findlefthip then
92
	                            findlefthip:Remove()
93
	                            local glue = Instance.new("Glue",  humanoid.Parent.Torso)
94
	                            glue.Part0 = humanoid.Parent.Torso
95
	                            glue.Part1 = humanoid.Parent["Left Leg"]
96
	                            glue.Name = "Left leg"
97
	                            local collider = Instance.new("Part",  humanoid.Parent["Left Leg"])
98
	                            collider.Position = Vector3.new(0,999,0)
99
	                            collider.Size = Vector3.new(1.5, 1, 1)
100
	                            collider.Shape = "Cylinder"
101
	                            local weld = Instance.new("Weld", collider)
102
	                            weld.Part0 =  humanoid.Parent["Left Leg"]
103
	                            weld.Part1 = collider
104
	                            weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
105
	                            collider.TopSurface = "Smooth"
106
	                            collider.BottomSurface = "Smooth"
107
	                            collider.formFactor = "Symmetric"
108
	                            glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
109
	                            glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
110
	                            collider.Transparency = 1
111
	                        end
112
	                        --
113
	                        local findrighthip = humanoid.Parent.Torso:findFirstChild("Right Hip")
114
	                        if findrighthip then
115
	                            findrighthip:Remove()
116
	                            local glue = Instance.new("Glue",  humanoid.Parent.Torso)
117
	                            glue.Part0 = humanoid.Parent.Torso
118
	                            glue.Part1 = humanoid.Parent["Right Leg"]
119
	                            glue.Name = "Right leg"
120
	                            local collider = Instance.new("Part",  humanoid.Parent["Right Leg"])
121
	                            collider.Position = Vector3.new(0,999,0)
122
	                            collider.Size = Vector3.new(1.5, 1, 1)
123
	                            collider.Shape = "Cylinder"
124
	                            local weld = Instance.new("Weld", collider)
125
	                            weld.Part0 =  humanoid.Parent["Right Leg"]
126
	                            weld.Part1 = collider
127
	                            weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
128
	                            collider.TopSurface = "Smooth"
129
	                            collider.BottomSurface = "Smooth"
130
	                            collider.formFactor = "Symmetric"
131
	                            glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
132
	                            glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
133
	                            collider.Transparency = 1
134
	                        end
135
	                        --
136
	                        local findrightshoulder = humanoid.Parent.Torso:findFirstChild("Right Shoulder")
137
	                        if findrightshoulder then
138
	                            findrightshoulder:Remove()
139
	                            local glue = Instance.new("Glue",  humanoid.Parent.Torso)
140
	                            glue.Part0 = humanoid.Parent.Torso
141
	                            glue.Part1 = humanoid.Parent["Right Arm"]
142
	                            glue.Name = "Right arm"
143
	                            local collider = Instance.new("Part",  humanoid.Parent["Right Arm"])
144
	                            collider.Position = Vector3.new(0,999,0)
145
	                            collider.Size = Vector3.new(1.5, 1, 1)
146
	                            collider.Shape = "Cylinder"
147
	                            local weld = Instance.new("Weld", collider)
148
	                            weld.Part0 =  humanoid.Parent["Right Arm"]
149
	                            weld.Part1 = collider
150
	                            weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
151
	                            collider.TopSurface = "Smooth"
152
	                            collider.BottomSurface = "Smooth"
153
	                            collider.formFactor = "Symmetric"
154
	                            glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
155
	                            glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
156
	                            collider.Transparency = 1
157
	                        end
158
	                        --
159
	                        local findleftshoulder = humanoid.Parent.Torso:findFirstChild("Left Shoulder")
160
	                        if findleftshoulder then
161
	                            findleftshoulder:Remove()
162
	                            local glue = Instance.new("Glue",  humanoid.Parent.Torso)
163
	                            glue.Part0 = humanoid.Parent.Torso
164
	                            glue.Part1 = humanoid.Parent["Left Arm"]
165
	                            glue.Name = "Left arm"
166
	                            local collider = Instance.new("Part",  humanoid.Parent["Left Arm"])
167
	                            collider.Position = Vector3.new(0,999,0)
168
	                            collider.Size = Vector3.new(1.5, 1, 1)
169
	                            collider.Shape = "Cylinder"
170
	                            local weld = Instance.new("Weld", collider)
171
	                            weld.Part0 =  humanoid.Parent["Left Arm"]
172
	                            weld.Part1 = collider
173
	                            weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
174
	                            collider.TopSurface = "Smooth"
175
	                            collider.BottomSurface = "Smooth"
176
	                            collider.formFactor = "Symmetric"
177
	                            glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
178
	                            glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
179
	                            collider.Transparency = 1
180
	                        end
181
							local findhead = humanoid.Parent:findFirstChild("Head")
182
	                        if findhead then
183
								local attachment = Instance.new("Attachment", humanoid.Parent.Head)
184
					            attachment.Position = Vector3.new(0, -0.5, 0)
185
					            attachment.Name = "lol"
186
					            attachment.Visible = false
187
					            humanoid.Parent.Torso.NeckAttachment.Visible = false
188
					            humanoid.Parent.Torso.NeckAttachment.Position = humanoid.Parent.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
189
					            local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
190
					            ball.Attachment0 = humanoid.Parent.Torso.NeckAttachment
191
					            ball.Attachment1 = attachment
192
								ball.LimitsEnabled = true
193
								ball.TwistLimitsEnabled = true
194
								ball.UpperAngle = 90
195
								ball.Restitution = 0.5
196
								ball.TwistUpperAngle = 90
197
								ball.TwistLowerAngle = -90
198
					            local  collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
199
					            collidepartofleftleg.Name = "Bone"
200
					            collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
201
					            collidepartofleftleg.Transparency = 1
202
					            collidepartofleftleg:BreakJoints()
203
					            local weeld = Instance.new("Weld", collidepartofleftleg)
204
					            weeld.Part0 = collidepartofleftleg
205
					            weeld.Part1 = humanoid.Parent["Head"]
206
								if humanoid.Parent.Torso:findFirstChild("Neck") then
207
									humanoid.Parent.Torso.Neck:destroy()
208
								end
209
							end
210
	                        wait(10)
211
	                        humanoid.Health = 0
212
					else
213
						humanoid.Health = humanoid.Health - hitval
214
					end
215
					end
216
				else
217
					if part.Name == "Shotgun" or "bullet" then
218
						
219
					else
220
						missle:destroy()
221
					end
222
				end
223
			end
224
			missle.Touched:connect(hit)
225
		end
226
		for i = 0,1 , 0.07 do
227
			weld.C0 = weld.C0:lerp(CFrame.new(-0.342021942, -1.88848877, -0.088739872, 0.978147507, -0.0289359875, -0.205888897, 0.204753578, -0.0378959738, 0.978079677, -0.0361040607, -0.998862624, -0.0311431047),i)
228
			rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.917564392, 0.491810799, -0.168943405, 0.978147507, 0.204753578, -0.0361040607, 0.0289353225, -0.306021929, -0.951584637, -0.205889001, 0.929745436, -0.305259228),i)
229
			lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.472423553, 0.748803854, -1.02752113, 0.939693093, -0.342019022, -2.66768012e-07, -0.0711100101, -0.195373133, -0.978147566, 0.334545016, 0.919158578, -0.207911715),i)
230
			game:GetService("RunService").RenderStepped:wait()
231
		end
232
		for i = 0,1 , 0.05 do
233
			weld.C0 = weld.C0:lerp(CFrame.new(-0.342021942, -1.88848877, -0.088739872, 0.978147507, -0.0289359875, -0.205888897, 0.204753578, -0.0378959738, 0.978079677, -0.0361040607, -0.998862624, -0.0311431047),i)
234
			rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.917564392, 0.491810799, -0.168943405, 0.978147507, 0.204753578, -0.0361040607, 0.0289353225, -0.306021929, -0.951584637, -0.205889001, 0.929745436, -0.305259228),i)
235
			lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.201648712, 0.903478384, -1.75520706, 0.939693093, -0.342019022, -2.66768012e-07, -0.0711100101, -0.195373133, -0.978147566, 0.334545016, 0.919158578, -0.207911715),i)
236
			game:GetService("RunService").RenderStepped:wait()
237
		end
238
		pump:Play()
239
		for i = 0,1 , 0.05 do
240
			weld.C0 = weld.C0:lerp(CFrame.new(-0.342021942, -1.88848877, -0.088739872, 0.978147507, -0.0289359875, -0.205888897, 0.204753578, -0.0378959738, 0.978079677, -0.0361040607, -0.998862624, -0.0311431047),i)
241
			rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.917564392, 0.491810799, -0.168943405, 0.978147507, 0.204753578, -0.0361040607, 0.0289353225, -0.306021929, -0.951584637, -0.205889001, 0.929745436, -0.305259228),i)
242
			lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.44393158, 0.765078783, -1.10408783, 0.939693093, -0.342019022, -2.66768012e-07, -0.0711100101, -0.195373133, -0.978147566, 0.334545016, 0.919158578, -0.207911715),i)
243
			game:GetService("RunService").RenderStepped:wait()
244
		end
245
		for i = 0,1 , 0.05 do
246
			weld.C0 = weld.C0:lerp(CFrame.new(-0.342021942, -1.88848877, -0.088739872, 0.978147507, -0.0289359875, -0.205888897, 0.204753578, -0.0378959738, 0.978079677, -0.0361040607, -0.998862624, -0.0311431047),i)
247
			rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.917564392, 0.491810799, -0.168943405, 0.978147507, 0.204753578, -0.0361040607, 0.0289353225, -0.306021929, -0.951584637, -0.205889001, 0.929745436, -0.305259228),i)
248
			lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.201648712, 0.903478384, -1.75520706, 0.939693093, -0.342019022, -2.66768012e-07, -0.0711100101, -0.195373133, -0.978147566, 0.334545016, 0.919158578, -0.207911715),i)
249
			game:GetService("RunService").RenderStepped:wait()
250
		end
251
		for i = 0,0.7 , 0.04 do
252
			weld.C0 = weld.C0:lerp(CFrame.new(-0.342021942, -1.88848877, -0.088739872, 0.978147507, -0.0289359875, -0.205888897, 0.204753578, -0.0378959738, 0.978079677, -0.0361040607, -0.998862624, -0.0311431047),i)
253
			rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.917564392, 0.399175882, -0.578536987, 0.978147507, 0.204753578, -0.0361040607, -0.0289359875, -0.0378959738, -0.998862624, -0.205888897, 0.978079677, -0.0311431047),i)
254
			lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.472423553, 0.409558296, -1.4746933, 0.939692736, -0.342019886, -2.0985492e-06, 0.0238559935, 0.0655499771, -0.997564137, 0.341186911, 0.937403619, 0.0697560608),i)
255
			game:GetService("RunService").RenderStepped:wait()
256
		end
257
		using = false
258
	end
259
end
260
mouse.Button1Down:connect(shoot)