View difference between Paste ID: zktxFfqb and MeEGaUDt
SHOW: | | - or go back to the newest paste.
1
--By Rufus14
2
--owner = game:GetService("Players"):GetPlayerFromCharacter(script.Parent)
3
character = owner.Character
4
NLS([[
5
--By Rufus14
6
owner = game:GetService("Players").LocalPlayer
7
character = owner.Character
8
runservice = game:GetService("RunService")
9
humanoid = character:findFirstChildOfClass("Humanoid")
10
remote = character:WaitForChild("postalremote")
11
rootpart = character.HumanoidRootPart
12
mouse = owner:GetMouse()
13
mouse.Button1Down:connect(function()
14
	remote:FireServer("shoot", mouse.Hit)
15
end)
16
mouse.KeyDown:connect(function(key)
17
	key = key:lower()
18
	if key == "x" then
19
		remote:FireServer("well hello there")
20
	end
21
end)
22
while runservice.RenderStepped:wait() do
23
	remote:FireServer("look", workspace.CurrentCamera.CFrame)
24
end
25
]], character)
26
runservice = game:GetService("RunService")
27
humanoid = character:findFirstChildOfClass("Humanoid")
28
local remote = Instance.new("RemoteEvent", character)
29
remote.Name = "postalremote"
30
ragdolltime = 2
31
local rightleg = Instance.new("Weld", owner.Character.Torso)
32
rightleg.Part0 = owner.Character.Torso
33
rightleg.Part1 = owner.Character["Right Leg"]
34
rightleg.C0 = CFrame.new(0.5,-2,0)
35
rightleg.Name = "RightLegWeld"
36
local leftleg = Instance.new("Weld", owner.Character.Torso)
37
leftleg.Part0 = owner.Character.Torso
38
leftleg.Part1 = owner.Character["Left Leg"]
39
leftleg.C0 = CFrame.new(-0.5,-1,0)
40
leftleg.Name = "LeftLegWeld"
41
local rightarm = Instance.new("Weld", owner.Character.Torso)
42
rightarm.Part0 = owner.Character.Torso
43
rightarm.Part1 = owner.Character["Right Arm"]
44
rightarm.C0 = CFrame.new(1.5,0,0)
45
rightarm.Name = "RightArmWeld"
46
local leftarm = Instance.new("Weld", owner.Character.Torso)
47
leftarm.Part0 = owner.Character.Torso
48
leftarm.Part1 = owner.Character["Left Arm"]
49
leftarm.C0 = CFrame.new(-1.5,0,0)
50
leftarm.Name = "LeftArmWeld"
51
local humanoidrootpart = Instance.new("Weld", owner.Character.HumanoidRootPart)
52
humanoidrootpart.Part0 = owner.Character.HumanoidRootPart
53
humanoidrootpart.Part1 = owner.Character.Torso
54
humanoidrootpart.Name = "HumanoidRootPartWeld"
55
local head = Instance.new("Weld", owner.Character.Torso)
56
head.Part0 = owner.Character.Torso
57
head.Part1 = owner.Character.Head
58
head.C0 = CFrame.new(0,1.5,0)
59
head.Name = "HeadWeld"
60
rootpart = character.HumanoidRootPart
61
anim = "idle"
62
humanoid.WalkSpeed = 20
63-
for i,v in pairs(character:GetChildren()) do
63+
64-
	if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" then
64+
65-
		v:destroy()
65+
66
	end
67-
	if v.ClassName == "Part" and v.Name ~= "Head" then
67+
68-
		v.BrickColor = BrickColor.new("Smoky grey")
68+
69
	billboard.StudsOffset = Vector3.new(-1, 2.5, 0)
70
	billboard.Size = UDim2.new(2,0,1,0)
71
	billboard.Name = "chat"
72
	local text = Instance.new("TextLabel", billboard)
73
	text.BackgroundTransparency = 1
74
	text.TextStrokeTransparency = 0
75
	text.TextSize = 25
76
	text.TextStrokeColor3 = Color3.fromRGB(0,0,0)
77
	text.Size = billboard.Size
78
	text.Font = "Code"
79
	text.TextColor3 = Color3.fromRGB(100,100,100)
80
	text.Text = butwhathechatted
81
	coroutine.wrap(function()
82
		wait(3)
83
		for i = 1,50 do
84
			billboard.StudsOffset = billboard.StudsOffset - Vector3.new(0,-0.01,0)
85
			text.TextTransparency = text.TextTransparency + 0.02
86
			text.TextStrokeTransparency = text.TextStrokeTransparency + 0.02
87
			runservice.Stepped:wait()
88
		end
89
		billboard:destroy()
90
	end)()
91
end)
92
local shotgun = Instance.new("Part", character)
93
shotgun.Size = Vector3.new(0.26, 1.11, 4.85)
94
shotgun.CanCollide = false
95
local meshshotgun = Instance.new("SpecialMesh", shotgun)
96
meshshotgun.MeshId = "http://www.roblox.com/asset/?id=94219391"
97
meshshotgun.TextureId = "http://www.roblox.com/asset/?id=94219470"
98
meshshotgun.Scale = Vector3.new(0.75,0.75,0.75)
99
shotgun:BreakJoints()
100-
local shirt = Instance.new("Shirt", character)
100+
101-
shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=161053461"
101+
102-
shirt.Color3 = Color3.fromRGB(0,0,0)
102+
103-
local pants = Instance.new("Pants", character)
103+
104-
pants.PantsTemplate = "http://www.roblox.com/asset/?id=161053481"
104+
105-
pants.Color3 = Color3.fromRGB(0,0,0)
105+
106-
local glasses = Instance.new("Part", character)
106+
107-
glasses.Size = Vector3.new(1,1,1)
107+
108-
glasses.CanCollide = false
108+
109-
glasses:BreakJoints()
109+
shootsound.SoundId = "rbxassetid://631924917"
110-
local meshglasses = Instance.new("SpecialMesh", glasses)
110+
shootsound.Volume = 7
111-
meshglasses.MeshId = "http://www.roblox.com/asset/?id=1577360"
111+
112-
meshglasses.TextureId = "http://www.roblox.com/asset/?id=48385919"
112+
113-
meshglasses.Scale = Vector3.new(1,1.3,1)
113+
114-
local weldglasses = Instance.new("Weld", glasses)
114+
115-
weldglasses.Part0 = character.Head
115+
116-
weldglasses.Part1 = glasses
116+
117-
weldglasses.C0 = CFrame.new(0,0.15,-0.15)
117+
118
	music.SoundId = "rbxassetid://4433374633"
119
end
120
music:Play()
121
shotgun.Locked = true
122
cananimate = true
123
canattack = true
124
coroutine.wrap(function()
125
	while runservice.Stepped:wait() do
126
		if rootpart.Velocity.x >= 2 or rootpart.Velocity.x <= -2 or rootpart.Velocity.z >= 2 or rootpart.Velocity.z <= -2 then
127
			if humanoid.FloorMaterial == Enum.Material.Air then
128
				if rootpart.Velocity.x >= 15.5 or rootpart.Velocity.x <= -15.5 or rootpart.Velocity.z >= 15.5 or rootpart.Velocity.z <= -15.5 then
129
					if rootpart.Velocity.y >= 3 then
130
						anim = "jumprun"
131
						--print("jumping (running)")
132
					elseif rootpart.Velocity.y <= -3 then
133
						anim = "fallrun"
134
						--("falling (running)")
135-
shootsound.SoundId = "rbxassetid://2452443974"
135+
136-
shootsound.Volume = 1
136+
137
					if rootpart.Velocity.y >= 3 then
138
						anim = "jump"
139
						--print("jumping (walking)")
140
					elseif rootpart.Velocity.y <= -3 then
141
						anim = "fall"
142
						--print("falling (walking)")
143
					end
144
				end
145
			else
146
				if rootpart.Velocity.x >= 15 or rootpart.Velocity.x <= -15 or rootpart.Velocity.z >= 15 or rootpart.Velocity.z <= -15 then
147
					anim = "run"
148-
glasses.Locked = true
148+
149
				else
150
					anim = "run"
151
					--print("walking")
152
				end
153
			end
154
		elseif rootpart.Velocity.x <= 2 or rootpart.Velocity.x >= -2 or rootpart.Velocity.z <= 2 or rootpart.Velocity.z >= -2 then
155
			if humanoid.FloorMaterial == Enum.Material.Air then
156
				if rootpart.Velocity.y >= 3 then
157
					anim = "jump"
158
					--print("jumping (standing)")
159
				elseif rootpart.Velocity.y < -3 then
160
					anim = "fall"
161
					--print("falling (standing)")
162
				end
163
			else
164
				anim = "idle"
165
				--print("standing")
166
			end
167
		end
168
	end
169
end)()
170
local tiltvalue = 0
171
function ragdollplr(v)
172
	if not v:findFirstChild("ragdolledpostal") then
173
		local head = v.Head
174
		local torso = v:findFirstChild("Torso")
175
		local humanoid = v:findFirstChildOfClass("Humanoid")
176
		hitmarkersound:Play()
177
		local ragdolledknife = Instance.new("BoolValue", v)
178
		ragdolledknife.Name = "ragdolledpostal"
179
		local velocity = Instance.new("BodyVelocity", head)
180
		velocity.MaxForce = Vector3.new(math.huge,0,math.huge)
181
		velocity.Velocity = character.HumanoidRootPart.CFrame.lookVector * math.random(10,20)
182
		humanoid.PlatformStand = true
183
		coroutine.wrap(function()
184
			wait(ragdolltime)
185
			humanoid.PlatformStand = false
186
		end)()
187
		game.Debris:AddItem(ragdolledknife, ragdolltime)
188
		game.Debris:AddItem(velocity, 0.2)
189
		if torso then
190
			coroutine.wrap(function()
191
				humanoid = v:WaitForChild("Humanoid")
192
				local ragdoll = v
193
				if ragdoll:findFirstChild("Right Arm") then
194
					local glue = Instance.new("Glue", ragdoll.Torso)
195
					glue.Part0 = ragdoll.Torso
196
					glue.Part1 = ragdoll:findFirstChild("Right Arm")
197
					glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
198
					glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
199
					local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Arm"))
200
					limbcollider.Size = Vector3.new(1.4,1,1)
201
					limbcollider.Shape = "Cylinder"
202
					limbcollider.Transparency = 1
203
					limbcollider.Name = "LimbCollider"
204
					local limbcolliderweld = Instance.new("Weld", limbcollider)
205
					limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Arm")
206
					limbcolliderweld.Part1 = limbcollider
207
					limbcolliderweld.Name = "LimbWeld"
208
					limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
209
					coroutine.wrap(function()
210
						if ragdoll.Torso:findFirstChild("Right Shoulder") then
211
							local limbclone = ragdoll.Torso:findFirstChild("Right Shoulder"):Clone()
212
							ragdoll.Torso:findFirstChild("Right Shoulder"):destroy()
213
							coroutine.wrap(function()
214
								wait(ragdolltime)
215
								if not ragdoll:findFirstChild("Torso") then
216
									return
217
								end
218
								limbclone.Parent = ragdoll.Torso
219
								limbclone.Part0 = ragdoll.Torso
220
								limbclone.Part1 = ragdoll["Right Arm"]
221
							end)()
222
						end
223
						wait(ragdolltime)
224
						glue:destroy()
225
						limbcollider:destroy()
226
						limbcolliderweld:destroy()
227
					end)()
228
				end
229
				if ragdoll:findFirstChild("Left Arm") then
230
					local glue = Instance.new("Glue", ragdoll.Torso)
231
					glue.Part0 = ragdoll.Torso
232
					glue.Part1 = ragdoll:findFirstChild("Left Arm")
233
					glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
234
					glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
235
					local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Arm"))
236
					limbcollider.Size = Vector3.new(1.4,1,1)
237
					limbcollider.Shape = "Cylinder"
238
					limbcollider.Name = "LimbCollider"
239
					limbcollider.Transparency = 1
240
					local limbcolliderweld = Instance.new("Weld", limbcollider)
241
					limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Arm")			
242
					limbcolliderweld.Part1 = limbcollider
243
					limbcolliderweld.Name = "LimbWeld"
244
					limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
245
					coroutine.wrap(function()
246
						if ragdoll.Torso:findFirstChild("Left Shoulder") then
247
							local limbclone = ragdoll.Torso:findFirstChild("Left Shoulder"):Clone()
248
							ragdoll.Torso:findFirstChild("Left Shoulder"):destroy()
249
							coroutine.wrap(function()
250
								wait(ragdolltime)
251
								if not ragdoll:findFirstChild("Torso") then
252
									return
253
								end
254
								limbclone.Parent = ragdoll.Torso
255
								limbclone.Part0 = ragdoll.Torso
256
								limbclone.Part1 = ragdoll["Left Arm"]
257
							end)()
258
						end
259
						wait(ragdolltime)
260
						glue:destroy()
261
						limbcollider:destroy()
262
						limbcolliderweld:destroy()
263
					end)()
264
				end
265
				if ragdoll:findFirstChild("Left Leg") then
266
					local glue = Instance.new("Glue", ragdoll.Torso)
267
					glue.Part0 = ragdoll.Torso
268
					glue.Part1 = ragdoll:findFirstChild("Left Leg")
269
					glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
270
					glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
271
					local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Leg"))
272
					limbcollider.Size = Vector3.new(1.5,1,1)
273
					limbcollider.Shape = "Cylinder"
274
					limbcollider.Name = "LimbCollider"
275
					limbcollider.Transparency = 1
276
					local limbcolliderweld = Instance.new("Weld", limbcollider)
277
					limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Leg")
278
					limbcolliderweld.Part1 = limbcollider
279
					limbcolliderweld.Name = "LimbWeld"
280
					limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.2,0,0)
281
					coroutine.wrap(function()
282
						if ragdoll.Torso:findFirstChild("Left Hip") then
283
							local limbclone = ragdoll.Torso:findFirstChild("Left Hip"):Clone()
284
							ragdoll.Torso:findFirstChild("Left Hip"):destroy()
285
							coroutine.wrap(function()
286
								wait(ragdolltime)
287
								if not ragdoll:findFirstChild("Torso") then
288
									return
289
								end
290
								limbclone.Parent = ragdoll.Torso
291
								limbclone.Part0 = ragdoll.Torso
292
								limbclone.Part1 = ragdoll["Left Leg"]
293
							end)()
294
						end
295
						wait(ragdolltime)
296
						glue:destroy()
297
						limbcollider:destroy()
298
						limbcolliderweld:destroy()
299
					end)()
300
				end
301
				if ragdoll:findFirstChild("Right Leg") then
302
					local glue = Instance.new("Glue", ragdoll.Torso)
303
					glue.Part0 = ragdoll.Torso
304
					glue.Part1 = ragdoll:findFirstChild("Right Leg")
305
					glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
306
					glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
307
					local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Leg"))
308
					limbcollider.Size = Vector3.new(1.5,1,1)
309
					limbcollider.Shape = "Cylinder"
310
					limbcollider.Name = "LimbCollider"
311
					limbcollider.Transparency = 1
312
					local limbcolliderweld = Instance.new("Weld", limbcollider)
313
					limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Leg")
314
					limbcolliderweld.Part1 = limbcollider
315
					limbcolliderweld.Name = "LimbWeld"
316
					limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.2,0,0)
317
					coroutine.wrap(function()
318
						if ragdoll.Torso:findFirstChild("Right Hip") then
319
							local limbclone = ragdoll.Torso:findFirstChild("Right Hip"):Clone()
320
							ragdoll.Torso:findFirstChild("Right Hip"):destroy()
321
							coroutine.wrap(function()
322
								wait(ragdolltime)
323
								if not ragdoll:findFirstChild("Torso") then
324
									return
325
								end
326
								limbclone.Parent = ragdoll.Torso
327
								limbclone.Part0 = ragdoll.Torso
328
								limbclone.Part1 = ragdoll["Right Leg"]
329
							end)()
330
						end
331
						wait(ragdolltime)
332
						glue:destroy()
333
						limbcollider:destroy()
334
						limbcolliderweld:destroy()
335
					end)()
336
				end
337
			end)()
338
		end
339
	end
340
end
341
remote.OnServerEvent:connect(function(plr, what, message, message2)
342
	if plr == owner then
343
		if what == "look" then
344
			local lookvector = owner.Character.Torso.CFrame:toObjectSpace(message).lookVector.unit
345
			head.C0 = CFrame.new(0,1,0) * CFrame.Angles(lookvector.y,0,0)
346
			head.C0 = head.C0 * CFrame.Angles(0,-lookvector.x,math.rad(-tiltvalue))
347
			head.C0 = head.C0 * CFrame.new(0,0.5,0)
348
		elseif what == "shoot" and canattack then
349
			canattack = false
350
			cananimate = false
351
			humanoid.WalkSpeed = 0
352
			for i = 0,1 , 0.08 do
353
				rootpart.CFrame = rootpart.CFrame:lerp(CFrame.new(rootpart.Position, Vector3.new(message.x,rootpart.Position.y,message.z)),i)
354
				weldshotgun.C0 = weldshotgun.C0:lerp(CFrame.new(0,-1,-0.35) * CFrame.Angles(-math.pi/2,0,0),i)
355
				rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.21384871, 0.500000477, -0.879925251, 0.342019856, 0.939692438, -1.49501886e-08, 1.94707184e-07, -2.68220873e-07, -0.999999821, -0.939692438, 0.342020035, -3.76157232e-07),i)
356
				leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.59201181, 0.470158577, -0.794548988, 0.271118939, 0.181368172, 0.945304275, 0.902039766, -0.390578717, -0.18377316, 0.335885108, 0.902526498, -0.269494623) * CFrame.new(0.1,0,0.5),i)
357
				rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.681244612, -2.07163191, -4.76837158e-07, 0.98480773, -0.173648283, 0, 0.173648283, 0.98480767, 0, 0, 1.86264515e-09, 0.99999994),i)
358
				leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.681244373, -2.07163191, 0, 0.98480773, 0.173648283, 0, -0.173648283, 0.98480767, 0, 0, -1.86264515e-09, 0.99999994),i)
359
				humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.fromEulerAnglesXYZ(0,(-math.pi/2)+math.rad(20),0), i)
360
				tiltvalue = tiltvalue + 0.5
361
				runservice.Stepped:wait()
362
			end
363
			shootsound:Play()
364
			shootsound.TimePosition = 0.1
365
			local light = Instance.new("PointLight", shotgun)
366
			game.Debris:AddItem(light, 0.1)
367
			for i = 1,5 do
368
				local bullet = Instance.new("Part", character.Head)
369
				bullet.Size = Vector3.new(0.1,0.1,4)
370
				bullet.Material = "Neon"
371
				bullet.Name = "bullet"
372
				bullet.CanCollide = false
373
				bullet.CFrame = shotgun.CFrame * CFrame.new(0,0.2,-4)
374
				bullet.CFrame = CFrame.new(bullet.Position, message.p)
375
				game.Debris:AddItem(bullet, 5)
376
				local velocity = Instance.new("BodyVelocity", bullet)
377
				velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
378
				velocity.Velocity = bullet.CFrame.lookVector * 800 + Vector3.new(math.random(-40,40),math.random(-40,40),0)
379
				bullet.Touched:connect(function(what)
380
					if what ~= nil then
381
						if what.Parent ~= nil and what.Name ~= "bullet" then
382
							if what.Parent:findFirstChildOfClass("Humanoid") then
383
								if what.Parent ~= character then
384
									hitmarkersound:Play()
385
									local hum = what.Parent:findFirstChildOfClass("Humanoid")
386
									local damage = math.random(30,110)
387
									if hum.Health > 500 then
388
										hum.Health = 500
389
										hum.MaxHealth = 500
390
									end
391
									if hum.Health <= damage then
392
										if not what.Parent:findFirstChild("ragdolledpostal") then
393
											--print("critical health")
394
											if math.random(1,3) == 1 and what.Parent:findFirstChild("HumanoidRootPart") then
395
												if not what.Parent:findFirstChild("dying") then
396
													if what.Parent:findFirstChild("Torso") then
397
														coroutine.wrap(function()
398
															Instance.new("BoolValue", what.Parent).Name = "dying"
399
															--print("lean")
400
															ragdollplr(what.Parent)
401
															if what.Parent:findFirstChild("Health") then
402
																what.Parent:findFirstChild("Health").Disabled = true
403
															end
404
															hum.Health = 10
405
															hum.Name = "im hurt help"
406
															local vhum = hum
407
															wait(ragdolltime)
408
															local vrightarm = Instance.new("Weld", what.Parent.Torso)
409
															vrightarm.Part0 = what.Parent.Torso
410
															vrightarm.Part1 = what.Parent["Right Arm"]
411
															vrightarm.C0 = CFrame.new(1.5,0,0)
412
															vrightarm.Name = "RightArmWeld"
413
															local vrightleg = Instance.new("Weld", what.Parent.Torso)
414
															vrightleg.Part0 = what.Parent.Torso
415
															vrightleg.Part1 = what.Parent["Right Leg"]
416
															vrightleg.C0 = CFrame.new(0.5,-2,0)
417
															vrightleg.Name = "RightLegWeld"
418
															local vleftarm = Instance.new("Weld", what.Parent.Torso)
419
															vleftarm.Part0 = what.Parent.Torso
420
															vleftarm.Part1 = what.Parent["Left Arm"]
421
															vleftarm.C0 = CFrame.new(-1.5,0,0)
422
															vleftarm.Name = "LeftArmWeld"
423
															local vleftleg = Instance.new("Weld", what.Parent.Torso)
424
															vleftleg.Part0 = what.Parent.Torso
425
															vleftleg.Part1 = what.Parent["Left Leg"]
426
															vleftleg.C0 = CFrame.new(-0.5,-2,0)
427
															vleftleg.Name = "LeftLegWeld"
428
															local vhead = Instance.new("Weld", what.Parent.Torso)
429
															vhead.Part0 = what.Parent.Torso
430
															vhead.Part1 = what.Parent.Head
431
															vhead.C0 = CFrame.new(0,1.5,0)
432
															vhead.Name = "HeadWeld"
433
															local vhumanoidrootpart = Instance.new("Weld", what.Parent.HumanoidRootPart)
434
															vhumanoidrootpart.Part0 = what.Parent.HumanoidRootPart
435
															vhumanoidrootpart.Part1 = what.Parent.Torso
436
															vhumanoidrootpart.Name = "HumanoidRootPartWeld"
437
															local vrootpart = what.Parent.HumanoidRootPart
438
															coroutine.wrap(function()
439
																for i = 0,1 , 0.05 do
440
																	vrootpart.CFrame = vrootpart.CFrame:lerp(CFrame.new(vrootpart.Position),i)
441
																end
442
															end)()
443
															local vanim = "idle"
444
															coroutine.wrap(function()
445
																while runservice.Stepped:wait() do
446
																	vhum.JumpPower = 0
447
																	vhum.WalkSpeed = 2
448
																	if vrootpart.Velocity.x >= 0.1 or vrootpart.Velocity.x <= -0.1 or vrootpart.Velocity.z >= 0.1 or vrootpart.Velocity.z <= -0.1 then
449
																		if vhum.FloorMaterial == Enum.Material.Air then
450
																			if vrootpart.Velocity.x >= 15.5 or vrootpart.Velocity.x <= -15.5 or vrootpart.Velocity.z >= 15.5 or vrootpart.Velocity.z <= -15.5 then
451
																				if vrootpart.Velocity.y >= 3 then
452
																					vanim = "jumprun"
453
																					--print("jumping (running)")
454
																				elseif vrootpart.Velocity.y <= -3 then
455
																					vanim = "fallrun"
456
																					--("falling (running)")
457
																				end
458
																			else
459
																				if vrootpart.Velocity.y >= 3 then
460
																					vanim = "jump"
461
																					--print("jumping (walking)")
462
																				elseif vrootpart.Velocity.y <= -3 then
463
																					vanim = "fall"
464
																					--print("falling (walking)")
465
																				end
466
																			end
467
																		else
468
																			if vrootpart.Velocity.x >= 15.5 or vrootpart.Velocity.x <= -15.5 or vrootpart.Velocity.z >= 15.5 or vrootpart.Velocity.z <= -15.5 then
469
																				vanim = "run"
470
																				--print("running")
471
																			else
472
																				vanim = "walk"
473
																				--print("walking")
474
																			end
475
																		end
476
																	elseif vrootpart.Velocity.x <= 0.1 or vrootpart.Velocity.x >= -0.1 or vrootpart.Velocity.z <= 0.1 or vrootpart.Velocity.z >= -0.1 then
477
																		if vhum.FloorMaterial == Enum.Material.Air then
478
																			if vrootpart.Velocity.y >= 3 then
479
																				vanim = "jump"
480
																				--print("jumping (standing)")
481
																			elseif vrootpart.Velocity.y < -3 then
482
																				vanim = "fall"
483
																				--print("falling (standing)")
484
																			end
485
																		else
486
																			vanim = "idle"
487
																			--print("standing")
488
																		end
489
																	end
490
																end
491
															end)()
492
															local dyinganim = math.random(1,3)
493
															local larmrand = math.random(0,80)
494
															local rarmrand = math.random(0,80)
495
															local llegrand = math.random(0,30)
496
															local rlegrand = math.random(0,30)
497
															coroutine.wrap(function()
498
																while vhum.Health > 0.005 do
499
																	vhum.Health = vhum.Health - 0.005
500
																	runservice.Stepped:wait()
501
																end
502
																if dyinganim == 3 then
503
																	dyinganim = 0
504
																	for i = 0,1 , 0.02 do
505
																		vhumanoidrootpart.C0 = vhumanoidrootpart.C0:lerp(CFrame.new(0,-2.5,0) * CFrame.Angles(-math.pi/2,0,rootpart.RotVelocity.y/50),i)
506
																		vhead.C0 = vhead.C0:lerp(CFrame.new(0,1.5,0),i)
507
																		vleftarm.C0 = vleftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(math.pi,0,-math.rad(larmrand)) * CFrame.new(0,-0.5,0),i)
508
																		vrightarm.C0 = vrightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(math.pi,0,math.rad(rarmrand)) * CFrame.new(0,-0.5,0),i)
509
																		vleftleg.C0 = vleftleg.C0:lerp(CFrame.new(-0.5,-1,0) * CFrame.Angles(0,0,-math.rad(llegrand)) * CFrame.new(0,-1,0),i)
510
																		vrightleg.C0 = vrightleg.C0:lerp(CFrame.new(0.5,-1,0) * CFrame.Angles(0,0,math.rad(rlegrand)) * CFrame.new(0,-1,0),i)
511
																		vhum.WalkSpeed = 0
512
																		runservice.Stepped:wait()
513
																	end
514
																end
515
																vhum.WalkSpeed = 0
516
																wait(1)
517
																vhum.Parent.Archivable = true
518
																vhum.Health = 0
519
																local vclone = vhum.Parent:Clone()
520
																for q,w in pairs(vhum.Parent:GetDescendants()) do
521
																	if w.ClassName == "Part" or w.ClassName == "MeshPart" then
522
																		w:destroy()
523
																	end
524
																end
525
																vclone.Parent = workspace
526
																for q,w in pairs(vclone:GetDescendants()) do
527
																	if w.ClassName == "Sound" then
528
																		w:destroy()
529
																	end
530
																end
531
															end)()
532
															coroutine.wrap(function()
533
																while runservice.Stepped:wait() do
534
																	if dyinganim == 1 then
535
																		if vanim == "idle" then
536
																			vhumanoidrootpart.C0 = vhumanoidrootpart.C0:lerp(CFrame.new(0,-2.5,0) * CFrame.Angles(-math.pi/2,0,rootpart.RotVelocity.y/50),0.1)
537
																			vhead.C0 = vhead.C0:lerp(CFrame.new(0,1.5,0),0.1)
538
																			vleftarm.C0 = vleftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(math.pi,0,-math.rad(larmrand)) * CFrame.new(0,-0.5,0),0.1)
539
																			vrightarm.C0 = vrightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(math.pi,0,math.rad(rarmrand)) * CFrame.new(0,-0.5,0),0.1)
540
																			vleftleg.C0 = vleftleg.C0:lerp(CFrame.new(-0.5,-1,0) * CFrame.Angles(0,0,-math.rad(llegrand)) * CFrame.new(0,-1,0),0.1)
541
																			vrightleg.C0 = vrightleg.C0:lerp(CFrame.new(0.5,-1,0) * CFrame.Angles(0,0,math.rad(rlegrand)) * CFrame.new(0,-1,0),0.1)
542
																		elseif vanim == "walk" then
543
																			vhumanoidrootpart.C0 = vhumanoidrootpart.C0:lerp(CFrame.new(0,-2.5,0) * CFrame.Angles(-math.pi/2,0,math.cos(tick()*7)/8),0.1)
544
																			vhead.C0 = vhead.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles((math.pi/2)-math.rad(20),0,0) * CFrame.new(0,0.5,0),0.1)
545
																			vleftarm.C0 = vleftarm.C0:lerp(CFrame.new(-1.5,0.5+math.sin(tick()*7)/3,0) * CFrame.Angles(math.pi,0,-math.rad(larmrand)+math.cos(tick()*7)/3) * CFrame.new(0,-0.5,0),0.1)
546
																			vrightarm.C0 = vrightarm.C0:lerp(CFrame.new(1.5,0.5-math.sin(tick()*7)/3,0) * CFrame.Angles(math.pi,0,math.rad(rarmrand)-math.cos(tick()*7)/3) * CFrame.new(0,-0.5,0),0.1)
547
																			vleftleg.C0 = vleftleg.C0:lerp(CFrame.new(-0.5,-1-math.sin(tick()*7)/3,0) * CFrame.Angles(0,0,-math.rad(llegrand)) * CFrame.new(0,-1,0),0.1)
548
																			vrightleg.C0 = vrightleg.C0:lerp(CFrame.new(0.5,-1+math.sin(tick()*7)/3,0) * CFrame.Angles(0,0,math.rad(rlegrand)) * CFrame.new(0,-1,0),0.1)
549
																		end
550
																	elseif dyinganim == 2 then
551
																		if vanim == "idle" then
552
																			vhumanoidrootpart.C0 = vhumanoidrootpart.C0:lerp(CFrame.new(0,-2.5,0) * CFrame.Angles(-math.pi/2,0,rootpart.RotVelocity.y/50),0.1)
553
																			vhead.C0 = vhead.C0:lerp(CFrame.new(0,1.5,0),0.1)
554
																			vleftarm.C0 = vleftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(0,0,-math.rad(larmrand)/8) * CFrame.new(0,-0.5,0),0.1)
555
																			vrightarm.C0 = vrightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(0,0,math.rad(rarmrand)/8) * CFrame.new(0,-0.5,0),0.1)
556
																			vleftleg.C0 = vleftleg.C0:lerp(CFrame.new(-0.5,-1,0) * CFrame.Angles(0,0,-math.rad(llegrand)/2) * CFrame.new(0,-1,0),0.1)
557
																			vrightleg.C0 = vrightleg.C0:lerp(CFrame.new(0.5,-1,0) * CFrame.Angles(0,0,math.rad(rlegrand)/2) * CFrame.new(0,-1,0),0.1)
558
																		elseif vanim == "walk" then
559
																			vhumanoidrootpart.C0 = vhumanoidrootpart.C0:lerp(CFrame.new(0,-2.5,0) * CFrame.Angles(-math.pi/2,0,math.cos(tick()*7)/10),0.1)
560
																			vhead.C0 = vhead.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(0,0,0) * CFrame.new(0,0.5,0),0.1)
561
																			vleftarm.C0 = vleftarm.C0:lerp(CFrame.new(-1.5,0.5+math.sin(tick()*7)/5,0) * CFrame.Angles(0,0,-math.rad(larmrand)/8+math.cos(tick()*7)/4) * CFrame.new(0,-0.5,0),0.1)
562
																			vrightarm.C0 = vrightarm.C0:lerp(CFrame.new(1.5,0.5-math.sin(tick()*7)/5,0) * CFrame.Angles(0,0,math.rad(rarmrand)/8-math.cos(tick()*7)/4) * CFrame.new(0,-0.5,0),0.1)
563
																			vleftleg.C0 = vleftleg.C0:lerp(CFrame.new(-0.5,-1-math.sin(tick()*7)/5,0) * CFrame.Angles(0,0,-math.rad(llegrand)/2) * CFrame.new(0,-1,0),0.1)
564
																			vrightleg.C0 = vrightleg.C0:lerp(CFrame.new(0.5,-1+math.sin(tick()*7)/5,0) * CFrame.Angles(0,0,math.rad(rlegrand)/2) * CFrame.new(0,-1,0),0.1)
565
																		end
566
																	elseif dyinganim == 3 then
567
																		if vanim == "idle" then
568
																			vhumanoidrootpart.C0 = vhumanoidrootpart.C0:lerp(CFrame.new(0,-2,0) * CFrame.Angles(-math.pi/2,0,rootpart.RotVelocity.y/50),0.1)
569
																			vhead.C0 = vhead.C0:lerp(CFrame.new(0,1.5,0),0.1)
570
																			vleftarm.C0 = vleftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(math.pi/2+math.rad(40),0,-math.rad(larmrand)/8) * CFrame.new(0,-0.5,0),0.1)
571
																			vrightarm.C0 = vrightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(math.pi/2+math.rad(40),0,math.rad(rarmrand)/8) * CFrame.new(0,-0.5,0),0.1)
572
																			vleftleg.C0 = vleftleg.C0:lerp(CFrame.new(-0.5,-1,-0.5) * CFrame.Angles(0,0,-math.rad(llegrand)/2) * CFrame.new(0,-1,0),0.1)
573
																			vrightleg.C0 = vrightleg.C0:lerp(CFrame.new(0.5,-1,-0.5) * CFrame.Angles(0,0,math.rad(rlegrand)/2) * CFrame.new(0,-1,0),0.1)
574
																		elseif vanim == "walk" then
575
																			vhumanoidrootpart.C0 = vhumanoidrootpart.C0:lerp(CFrame.new(0,-2,0) * CFrame.Angles(-math.pi/2,0,math.cos(tick()*5)/10),0.1)
576
																			vhead.C0 = vhead.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(0,0,0) * CFrame.new(0,0.5,0),0.1)
577
																			vleftarm.C0 = vleftarm.C0:lerp(CFrame.new(-1.5,0.5+math.sin(tick()*5)/3,0) * CFrame.Angles(math.pi/2+math.rad(40)+math.sin(tick()*5)/2,0,-math.rad(larmrand)/8+math.cos(tick()*5)/4) * CFrame.new(0,-0.5,0),0.1)
578
																			vrightarm.C0 = vrightarm.C0:lerp(CFrame.new(1.5,0.5-math.sin(tick()*5)/3,0) * CFrame.Angles(math.pi/2+math.rad(40)-math.sin(tick()*5)/2,0,math.rad(rarmrand)/8-math.cos(tick()*5)/4) * CFrame.new(0,-0.5,0),0.1)
579
																			vleftleg.C0 = vleftleg.C0:lerp(CFrame.new(-0.5,-1-math.sin(tick()*5)/3,-0.5) * CFrame.Angles(0,0,-math.rad(llegrand)/2) * CFrame.new(0,-1,0),0.1)
580
																			vrightleg.C0 = vrightleg.C0:lerp(CFrame.new(0.5,-1+math.sin(tick()*5)/3,-0.5) * CFrame.Angles(0,0,math.rad(rlegrand)/2) * CFrame.new(0,-1,0),0.1)
581
																		end
582
																	end
583
																end
584
															end)()
585
														end)()
586
													end
587
												end
588
											else
589
												--print("death")
590
												hum.Parent.Archivable = true
591
												hum.PlatformStand = true
592
												ragdollplr(hum.Parent)
593
												local vclone = hum.Parent:Clone()
594
												for q,w in pairs(hum.Parent:GetDescendants()) do
595
													if w.ClassName == "Part" or w.ClassName == "MeshPart" then
596
														w:destroy()
597
													end
598
												end
599
												for q,w in pairs(vclone:GetDescendants()) do
600
													if w.ClassName == "Sound" then
601
														w:destroy()
602
													end
603
													if w.ClassName == "BodyPosition" or w.ClassName == "BodyVelocity" or w.ClassName == "Weld" then
604
														if w.Name ~= "LimbCollider" and w.Name ~= "LimbWeld" then
605
															w:destroy()
606
														end
607
													end
608
													if w.ClassName == "Script"  then
609
														w.Disabled = true
610
													end
611
												end
612
												vclone.Parent = workspace
613
												vclone:findFirstChildOfClass("Humanoid").Health = 0
614
												vclone:findFirstChildOfClass("Humanoid").PlatformStand = true
615
												coroutine.wrap(function()
616
													wait()
617
													if vclone:findFirstChild("HumanoidRootPart") then
618
														vclone:findFirstChild("HumanoidRootPart"):destroy()
619
													end
620
												end)()
621
												game.Debris:AddItem(vclone, 30)
622
											end
623
										end
624
									else
625
										hum.Health = hum.Health - damage
626
										ragdollplr(what.Parent)
627
									end
628
								end
629
							else
630
								bullet:Destroy()
631
							end
632
						end
633
					end
634
				end)
635
			end
636
			coroutine.wrap(function()
637
				for i = 1,5 do
638
					tiltvalue = tiltvalue + 2.5
639
					runservice.Stepped:wait()
640
				end
641
			end)()
642
			for i = 0,1 , 0.08 do
643
				rootpart.CFrame = rootpart.CFrame * CFrame.new(0,0,0.1)
644
				weldshotgun.C0 = weldshotgun.C0:lerp(CFrame.new(0,-1,-0.35) * CFrame.Angles(-math.pi/2,0,0),i)
645
				rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.21384871, 0.500000477, -0.879925251, 0.342019856, 0.939692438, -1.49501886e-08, 1.94707184e-07, -2.68220873e-07, -0.999999821, -0.939692438, 0.342020035, -3.76157232e-07) * CFrame.new(0,0.3,0),i)
646
				leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.59201181, 0.470158577, -0.794548988, 0.271118939, 0.181368172, 0.945304275, 0.902039766, -0.390578717, -0.18377316, 0.335885108, 0.902526498, -0.269494623) * CFrame.new(0.1,0,0.8),i)
647
				rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.681244612, -2.07163191, -4.76837158e-07, 0.98480773, -0.173648283, 0, 0.173648283, 0.98480767, 0, 0, 1.86264515e-09, 0.99999994),i)
648
				leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.681244373, -2.07163191, 0, 0.98480773, 0.173648283, 0, -0.173648283, 0.98480767, 0, 0, -1.86264515e-09, 0.99999994),i)
649
				humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.fromEulerAnglesXYZ(0,(-math.pi/2)+math.rad(20),0), i)
650
				runservice.Stepped:wait()
651
			end
652
			coroutine.wrap(function()
653
				for i = 1,5 do
654
					tiltvalue = tiltvalue - 2.5
655
					runservice.Stepped:wait()
656
				end
657
				tiltvalue = 0
658
			end)()
659
			humanoid.WalkSpeed = 20
660
			cananimate = true
661
			canattack = true
662
		elseif what == "well hello there" and canattack then
663
			canattack = false
664
			cananimate = false
665
			local gottem = false
666
			for i,v in pairs(workspace:GetDescendants()) do
667
				if v.ClassName == "Model" then
668
					local vhum = v:findFirstChildOfClass("Humanoid")
669
					local vhead = v:findFirstChild("Head")
670
					if vhum and vhead then
671
						if vhum.Health > 0 then
672
							if v:findFirstChild("dying") then
673
								if (vhead.Position - rootpart.Position).magnitude < 12 then
674
									if not gottem then
675
										gottem = true
676
										local uhoh = Instance.new("Sound", character.Head)
677
										uhoh.SoundId = "rbxassetid://4458464514"
678
										uhoh.Volume = 2
679
										uhoh.PlayOnRemove = true
680
										uhoh:destroy()
681
										for i = 0,1 , 0.01 do
682
											weldshotgun.C0 = weldshotgun.C0:lerp(CFrame.new(0,-1,-0.35) * CFrame.Angles(-math.pi/2,0,0),i)
683
											rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles((math.pi/2)-math.rad(40),0,math.rad(50)) * CFrame.new(0,-0.5,0),i)
684
											leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(0,0,-math.rad(30)) * CFrame.new(0,-0.5,0),i)
685
											rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.681244612, -2.07163191, -4.76837158e-07, 0.98480773, -0.173648283, 0, 0.173648283, 0.98480767, 0, 0, 1.86264515e-09, 0.99999994),i)
686
											leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.681244373, -2.07163191, 0, 0.98480773, 0.173648283, 0, -0.173648283, 0.98480767, 0, 0, -1.86264515e-09, 0.99999994),i)
687
											humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.fromEulerAnglesXYZ(0,(math.pi/2),0), i)
688
											rootpart.CFrame = rootpart.CFrame:lerp(CFrame.new(rootpart.Position, Vector3.new(vhead.Position.x,rootpart.Position.y,vhead.Position.z)) * CFrame.Angles(0,math.rad(-30),0),i)
689
											runservice.Stepped:wait()
690
										end
691
										local light = Instance.new("PointLight", shotgun)
692
										game.Debris:AddItem(light,0.1)
693
										vhum.Health = 0.005
694
										shootsound:Play()
695
										for i = 0,1 , 0.09 do
696
											vhum.WalkSpeed = 0
697
											weldshotgun.C0 = weldshotgun.C0:lerp(CFrame.new(0,-1,-0.35) * CFrame.Angles(-math.pi/2,0,0),i)
698
											rightarm.C0 = rightarm.C0:lerp(CFrame.new(1,0.7,0.5) * CFrame.Angles((math.pi/2)-math.rad(50),0,math.rad(70)) * CFrame.new(0,-0.5,0),i)
699
											leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(0,0,-math.rad(30)) * CFrame.new(0,-0.5,0),i)
700
											rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.681244612, -2.07163191, -4.76837158e-07, 0.98480773, -0.173648283, 0, 0.173648283, 0.98480767, 0, 0, 1.86264515e-09, 0.99999994),i)
701
											leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.681244373, -2.07163191, 0, 0.98480773, 0.173648283, 0, -0.173648283, 0.98480767, 0, 0, -1.86264515e-09, 0.99999994),i)
702
											humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.fromEulerAnglesXYZ(math.rad(5),(math.pi/2)-math.rad(35),0), i)
703
											rootpart.CFrame = rootpart.CFrame * CFrame.new(0,0,0.05)
704
											runservice.Stepped:wait()
705
										end
706
									end
707
								end
708
							end
709
						end
710
					end
711
				end
712
			end
713
			cananimate = true
714
			canattack = true
715
		end
716
	end
717
end)
718
while runservice.Stepped:wait() do
719
	if cananimate then
720
		if anim == "run" then
721
			weldshotgun.C0 = weldshotgun.C0:lerp(CFrame.new(0,-0.5,-0.25) * CFrame.Angles(-math.pi/2,0,0),0.3)
722
			humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,math.sin(tick()*24)/15,0) * CFrame.Angles(0,math.rad(-rootpart.Orientation.y),0) * CFrame.fromEulerAnglesXYZ(humanoid.MoveDirection.z/3,0,-humanoid.MoveDirection.x/3) * CFrame.Angles(0,math.rad(rootpart.Orientation.y),0) * CFrame.Angles(0,0,math.cos(tick()*12)/15),0.3)
723
			leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.3,0,-0.65) * CFrame.fromEulerAnglesXYZ(math.sin(tick()*12)/5+math.rad(50),0,math.rad(30)) * CFrame.new(0,-0.5,0),0.3)
724
			rightarm.C0 = rightarm.C0:lerp(CFrame.new(1,0.25,-0.5) * CFrame.fromEulerAnglesXYZ(math.sin(tick()*12)/5+math.rad(50),0,math.rad(-50)) * CFrame.new(0,-0.5,0),0.3)
725
			leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1+math.cos(tick()*12)/4,-math.cos(tick()*12)/2.5) * CFrame.Angles(0,math.rad(-rootpart.Orientation.y),0) * CFrame.fromEulerAnglesXYZ((-math.sin(tick()*12)*humanoid.MoveDirection.z)*1.1,0,(-math.sin(tick()*12)*-humanoid.MoveDirection.x)*1.1) * CFrame.Angles(0,math.rad(rootpart.Orientation.y),0) * CFrame.new(0,-1,0),0.3)
726
			rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1-math.cos(tick()*12)/4,math.cos(tick()*12)/2.5) * CFrame.Angles(0,math.rad(-rootpart.Orientation.y),0) * CFrame.fromEulerAnglesXYZ((math.sin(tick()*12)*humanoid.MoveDirection.z)*1.1,0,(math.sin(tick()*12)*-humanoid.MoveDirection.x)*1.1) * CFrame.Angles(0,math.rad(rootpart.Orientation.y),0) * CFrame.new(0,-1,0),0.3)
727
		elseif anim == "idle" then
728
			weldshotgun.C0 = weldshotgun.C0:lerp(CFrame.new(0,-0.5,-0.25) * CFrame.Angles(-math.pi/2,0,0),0.3)
729
			humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,math.sin(tick())/20,0) * CFrame.Angles(0,math.rad(20),math.sin(tick()/2)/30),0.3)
730
			leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.3,0.1,-0.65) * CFrame.fromEulerAnglesXYZ(math.sin(tick())/5+math.rad(70),0,math.rad(30)) * CFrame.new(0,-0.5,0),0.3)
731
			rightarm.C0 = rightarm.C0:lerp(CFrame.new(1,0.25,-0.5) * CFrame.fromEulerAnglesXYZ(math.sin(tick())/5+math.rad(70),0,math.rad(-50)) * CFrame.new(0,-0.5,0),0.3)
732
			leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1-math.sin(tick())/20,0) * CFrame.Angles(0,0,math.rad(-3)-math.sin(tick()/2)/30) * CFrame.new(0,-1,0),0.3)
733
			rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1-math.sin(tick())/20,0) * CFrame.Angles(0,0,math.rad(3)-math.sin(tick()/2)/30) * CFrame.new(0,-1,0),0.3)
734
		end
735
	end
736
end