View difference between Paste ID: 8acQTLJm and cBL45gwM
SHOW: | | - or go back to the newest paste.
1
--By Rufus14
2
--wait(1.5)
3
--owner = game.Players:FindFirstChild(script.Parent.Name)
4
NLS([[owner = game:GetService("Players"):findFirstChild(script.Parent.Name)
5
remote = owner.Character:WaitForChild("moonmanremote")
6
mouse = owner:GetMouse()
7
function keys(key)
8
	key = key:lower()
9
	if key == "q" then
10
		remote:FireServer("mothafuckah")
11
	elseif key == "e" then
12
		remote:FireServer("nigor")
13
	elseif key == "r" then
14
		remote:FireServer("grab")
15
	elseif key == "t" then
16
		remote:FireServer("punchgrab")
17
	end
18
end
19
function sprinton(key)
20
	key = key:lower()
21
	if key:byte() == 48 and owner.Character:findFirstChildOfClass("Humanoid").WalkSpeed > 0 then
22
		owner.Character:findFirstChildOfClass("Humanoid").WalkSpeed = 30
23
	end
24
end
25
function sprintoff(key)
26
	key = key:lower()
27
	if key:byte() == 48 and owner.Character:findFirstChildOfClass("Humanoid").WalkSpeed > 0 then
28
		owner.Character:findFirstChildOfClass("Humanoid").WalkSpeed = 16
29
	end
30
end
31
mouse.KeyUp:connect(sprintoff)
32
mouse.KeyDown:connect(sprinton)
33
mouse.KeyDown:connect(keys)
34
local part = Instance.new("Part", owner.Character.Head)
35
part.Size = Vector3.new(0.1,0.1,0.1)
36
part.Transparency = 1
37
part.CanCollide = false
38
part.Name = "camera"
39
part:BreakJoints()
40
local weld = Instance.new("Weld", part)
41
weld.Part0 = owner.Character.Head
42
weld.Part1 = part
43
weld.C0 = CFrame.new(0,0,-1)
44
cangoup = true
45
rolling = false
46
local function rotatecamera()
47
	while true do
48
		if (workspace.CurrentCamera.CFrame.p - part.Position).magnitude > 1.7 then
49
			local cfp = workspace.CurrentCamera.CFrame.p
50
			game:GetService("RunService").RenderStepped:wait()
51
			workspace.CurrentCamera.CFrame = workspace.CurrentCamera.CFrame * CFrame.Angles(0,0,(workspace.CurrentCamera.CFrame.p-cfp).magnitude/50)
52
		else
53
			game:GetService("RunService").RenderStepped:wait()
54
		end
55
	end
56
end
57
spawn(rotatecamera)
58
while game:GetService("RunService").RenderStepped:wait() do
59
	if (workspace.CurrentCamera.CFrame.p - part.Position).magnitude <= 1.7 then
60
		game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position,Vector3.new(mouse.Hit.p.x,game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position.y,mouse.Hit.p.z))
61
		workspace.CurrentCamera.FieldOfView = 80
62
		if owner.Character.Head:findFirstChild("Cone") then
63
			for i,v in pairs(owner.Character.Head:findFirstChild("Cone"):GetChildren()) do
64
				if v.ClassName == "Part" then
65
					v.Transparency = 1
66
				end
67
			end
68
		end
69
		for i,v in pairs(owner.Character:GetChildren()) do
70
			if v.ClassName == "Part" or v.ClassName == "MeshPart" and v.Name ~= "Head" then
71
				v.LocalTransparencyModifier = 0
72
			end
73
			if v.ClassName == "Accessory" then
74
				v.Handle.Transparency = 1
75
	        end
76
		end
77
		if owner.Character.Head:findFirstChildOfClass("Decal") then
78
		    owner.Character.Head:findFirstChildOfClass("Decal").Transparency = 1
79
		end
80
		owner.Character.Head.Transparency = 1
81
		workspace.CurrentCamera.CameraSubject = part
82
	else
83
		for i,v in pairs(owner.Character:GetChildren()) do
84
			if v.ClassName == "Accessory" then
85
				if owner.Character.Head:findFirstChild("Cone") then
86
					v.Handle.Transparency = 1
87
				else
88
					v.Handle.Transparency = 0
89
				end
90
	        end
91
		end
92
		if owner.Character.Head:findFirstChild("Cone") then
93
			for i,v in pairs(owner.Character.Head:findFirstChild("Cone"):GetChildren()) do
94
				if v.ClassName == "Part" then
95
					v.Transparency = 0
96
				end
97
			end
98
		end
99
		workspace.CurrentCamera.FieldOfView = 70
100
		owner.Character.Head.Transparency = 0
101
		workspace.CurrentCamera.CameraSubject = owner.Character
102
		if owner.Character.Head:findFirstChild("Cone") then
103
			if owner.Character.Head:findFirstChildOfClass("Decal") then
104
			    owner.Character.Head:findFirstChildOfClass("Decal").Transparency = 1
105
			end
106
		elseif not owner.Character.Head:findFirstChild("Cone") then
107
			if owner.Character.Head:findFirstChildOfClass("Decal") then
108
			    owner.Character.Head:findFirstChildOfClass("Decal").Transparency = 0
109
			end
110
		end
111
	end
112
end]], owner.Character)
113
-- Farewell Infortality.
114
-- Version: 2.82
115
-- Instances:
116
local Text = Instance.new("BillboardGui")
117
local Name = Instance.new("TextLabel")
118
--Properties:
119
Text.Name = "Text"
120
Text.Parent = owner.Character.Head
121
Text.Size = UDim2.new(2, 0, 2, 0)
122
Text.StudsOffset = Vector3.new(0, 2, 0)
123
124
Name.Name = "Name"
125
Name.Parent = Text
126
Name.TextStrokeTransparency = 0
127
Name.BackgroundTransparency = 1
128
Name.Size = UDim2.new(1, 0, 1, 0)
129
Name.Font = Enum.Font.Arial
130
Name.Text = owner.Name
131
Name.TextColor3 = Color3.new(1, 1, 1)
132
Name.TextScaled = true
133
Name.TextSize = 3
134
Name.TextWrapped = true
135
--GUI
136
--Converted with ttyyuu12345's model to script plugin v4
137
function sandbox(var,func)
138
	local env = getfenv(func)
139
	local newenv = setmetatable({},{
140
		__index = function(self,k)
141
			if k=="script" then
142
				return var
143
			else
144
				return env[k]
145
			end
146
		end,
147
	})
148
	setfenv(func,newenv)
149
	return func
150
end
151
cors = {}
152
mas = Instance.new("Model",game:GetService("Lighting"))
153
ScreenGui0 = Instance.new("ScreenGui")
154
TextButton1 = Instance.new("TextButton")
155
TextButton2 = Instance.new("TextButton")
156
TextButton3 = Instance.new("TextButton")
157
TextButton4 = Instance.new("TextButton")
158
ScreenGui0.Name = "nice meme"
159
ScreenGui0.Parent = mas
160
ScreenGui0.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
161
TextButton1.Name = "Moonman"
162
TextButton1.Parent = ScreenGui0
163
TextButton1.Position = UDim2.new(0.799560726, 0, 0.252747834, 0)
164
TextButton1.Rotation = -3
165
TextButton1.Size = UDim2.new(0, 291, 0, 43)
166
TextButton1.BackgroundColor = BrickColor.new("Institutional white")
167
TextButton1.BackgroundColor3 = Color3.new(1, 1, 1)
168
TextButton1.Style = Enum.ButtonStyle.RobloxRoundButton
169
TextButton1.Font = Enum.Font.SourceSans
170
TextButton1.FontSize = Enum.FontSize.Size14
171
TextButton1.Text = "Moonman v2"
172
TextButton1.TextColor = BrickColor.new("Really black")
173
TextButton1.TextColor3 = Color3.new(0, 0, 0)
174
TextButton1.TextScaled = true
175
TextButton1.TextSize = 14
176
TextButton1.TextWrap = true
177
TextButton1.TextWrapped = true
178
TextButton2.Name = "bywho"
179
TextButton2.Parent = ScreenGui0
180
TextButton2.Position = UDim2.new(0.799560726, 0, 0.307866335, 0)
181
TextButton2.Rotation = -3
182
TextButton2.Size = UDim2.new(0, 291, 0, 28)
183
TextButton2.BackgroundColor = BrickColor.new("Institutional white")
184
TextButton2.BackgroundColor3 = Color3.new(1, 1, 1)
185
TextButton2.Style = Enum.ButtonStyle.RobloxRoundButton
186
TextButton2.Font = Enum.Font.SourceSans
187
TextButton2.FontSize = Enum.FontSize.Size14
188
TextButton2.Text = "by Rufus14"
189
TextButton2.TextColor = BrickColor.new("Really black")
190
TextButton2.TextColor3 = Color3.new(0, 0, 0)
191
TextButton2.TextScaled = true
192
TextButton2.TextSize = 14
193
TextButton2.TextWrap = true
194
TextButton2.TextWrapped = true
195
TextButton3.Name = "bywhooriginal"
196
TextButton3.Parent = ScreenGui0
197
TextButton3.Position = UDim2.new(0.765426338, 0, 0.344324648, 0)
198
TextButton3.Rotation = -3
199
TextButton3.Size = UDim2.new(0, 323, 0, 30)
200
TextButton3.BackgroundColor = BrickColor.new("Institutional white")
201
TextButton3.BackgroundColor3 = Color3.new(1, 1, 1)
202
TextButton3.Style = Enum.ButtonStyle.RobloxRoundButton
203
TextButton3.Font = Enum.Font.SourceSans
204
TextButton3.FontSize = Enum.FontSize.Size14
205
TextButton3.Text = "Original Moonman script by MemeNicoi"
206
TextButton3.TextColor = BrickColor.new("Really black")
207
TextButton3.TextColor3 = Color3.new(0, 0, 0)
208
TextButton3.TextScaled = true
209
TextButton3.TextSize = 14
210
TextButton3.TextWrap = true
211
TextButton3.TextWrapped = true
212
TextButton4.Name = "suit"
213
TextButton4.Parent = ScreenGui0
214
TextButton4.Position = UDim2.new(0.799560726, 0, 0.397279054, 0)
215
TextButton4.Rotation = -3
216
TextButton4.Size = UDim2.new(0, 291, 0, 43)
217
TextButton4.BackgroundColor = BrickColor.new("Institutional white")
218
TextButton4.BackgroundColor3 = Color3.new(1, 1, 1)
219
TextButton4.Style = Enum.ButtonStyle.RobloxRoundButton
220
TextButton4.Font = Enum.Font.SourceSans
221
TextButton4.FontSize = Enum.FontSize.Size14
222
TextButton4.Text = "Suit: Off"
223
TextButton4.TextColor = BrickColor.new("Really black")
224
TextButton4.TextColor3 = Color3.new(0, 0, 0)
225
TextButton4.TextScaled = true
226
TextButton4.TextSize = 14
227
TextButton4.TextWrap = true
228
TextButton4.TextWrapped = true
229
for i,v in pairs(mas:GetChildren()) do
230
	v.Parent = owner:findFirstChildOfClass("PlayerGui")
231
	pcall(function() v:MakeJoints() end)
232
end
233
mas:Destroy()
234
for i,v in pairs(cors) do
235
	spawn(function()
236
		pcall(v)
237
	end)
238
end
239
--end of GUI
240
for i,v in pairs(owner.Character.Head:GetChildren()) do
241
	if v.ClassName == "Sound" then
242
		v:destroy()
243
	end
244
end
245
for i,v in pairs(owner.Character:GetChildren()) do
246
	if v.Name == "Sound" and v.ClassName == "Script" then
247
		v.Disabled = true
248
		if v:findFirstChildOfClass("LocalScript") then
249
			v:findFirstChildOfClass("LocalScript").Disabled = true
250
		end
251
	end
252
end
253
function spawnshockwave(position)
254
	local part = Instance.new("Part", workspace)
255
	part.CanCollide = false
256
	part.Anchored = true
257
	part.Position = position
258
	local mesh = Instance.new("SpecialMesh", part)
259
	mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
260
	part.BrickColor = BrickColor.new("Institutional white")
261
	local function resize()
262
		for i = 1,20 do
263
			mesh.Scale = mesh.Scale + Vector3.new(0.2,0.5,0.2)
264
			part.Transparency = part.Transparency + 0.05
265
			part.CFrame = part.CFrame * CFrame.new(0,0.2,0)
266
			step:wait()
267
		end
268
		part:destroy()
269
	end
270
	spawn(resize)
271
end
272
local leftarm = Instance.new("Weld", owner.Character.Torso)
273
leftarm.Part0 = owner.Character.Torso
274
leftarm.Part1 = owner.Character["Left Arm"]
275
leftarm.C0 = CFrame.new(-1.5,0.5,0)
276
leftarm.C1 = CFrame.new(0,0.5,0)
277
leftarm.Name = "LeftArmWeld"
278
local rightarm = Instance.new("Weld", owner.Character.Torso)
279
rightarm.Part0 = owner.Character.Torso
280
rightarm.Part1 = owner.Character["Right Arm"]
281
rightarm.C0 = CFrame.new(1.5,0.5,0)
282
rightarm.C1 = CFrame.new(0,0.5,0)
283
rightarm.Name = "RightArmWeld"
284
local rightleg = Instance.new("Weld", owner.Character.Torso)
285
rightleg.Part0 = owner.Character.Torso
286
rightleg.Part1 = owner.Character["Right Leg"]
287
rightleg.C0 = CFrame.new(0.5,-1,0)
288
rightleg.C1 = CFrame.new(0,1,0)
289
rightleg.Name = "RightLegWeld"
290
local leftleg = Instance.new("Weld", owner.Character.Torso)
291
leftleg.Part0 = owner.Character.Torso
292
leftleg.Part1 = owner.Character["Left Leg"]
293
leftleg.C0 = CFrame.new(-0.5,-1,0)
294
leftleg.C1 = CFrame.new(0,1,0)
295
leftleg.Name = "LeftLegWeld"
296
local head = Instance.new("Weld", owner.Character.Torso)
297
head.Part0 = owner.Character.Torso
298
head.Part1 = owner.Character.Head
299
head.C0 = CFrame.new(0,1,0)
300
head.C1 = CFrame.new(0,-0.5,0)
301
head.Name = "HeadWeld"
302
local humanoidrootpart = Instance.new("Weld", owner.Character.HumanoidRootPart)
303
humanoidrootpart.Part0 = owner.Character.HumanoidRootPart
304
humanoidrootpart.Part1 = owner.Character.Torso
305
humanoidrootpart.Name = "HumanoidRootPartWeld"
306
rootpart = owner.Character.HumanoidRootPart
307
ownerhumanoid = owner.Character:findFirstChildOfClass("Humanoid")
308
step = game:GetService("RunService").Stepped
309
anim = "idle"
310
sine = 0
311
cananimate = true
312
suiton = false
313
rightarmcolor = owner.Character["Right Arm"].BrickColor
314
leftarmcolor = owner.Character["Left Arm"].BrickColor
315
rightlegcolor = owner.Character["Right Leg"].BrickColor
316
leftlegcolor = owner.Character["Left Leg"].BrickColor
317
headcolor = owner.Character["Head"].BrickColor
318
torsocolor = owner.Character["Torso"].BrickColor
319
local remote = Instance.new("RemoteEvent", owner.Character)
320
remote.Name = "moonmanremote"
321
local mothabloxuh = Instance.new("Sound", owner.Character.Head)
322
mothabloxuh.SoundId = "rbxassetid://143302576"
323
mothabloxuh.Volume = 4
324
mothabloxuh.PlaybackSpeed = 16
325
local nigor = Instance.new("Sound", owner.Character.Head)
326
nigor.SoundId = "rbxassetid://3416346714"
327
nigor.Volume = 4
328
local explosion = Instance.new("Sound", owner.Character.Head)
329
explosion.SoundId = "rbxassetid://142070127"
330
explosion.Volume = 2
331
local goresplatter = Instance.new("Sound", owner.Character.Head)
332
goresplatter.SoundId = "rbxassetid://206082327"
333
goresplatter.Volume = 2
334
grabbed = false
335
canuse = true
336
function notification(text)
337
	--Converted with ttyyuu12345's model to script plugin v4
338
	local function sandbox(var,func)
339
		local env = getfenv(func)
340
		local newenv = setmetatable({},{
341
			__index = function(self,k)
342
				if k=="script" then
343
					return var
344
				else
345
					return env[k]
346
				end
347
			end,
348
		})
349
		setfenv(func,newenv)
350
		return func
351
	end
352
	cors = {}
353
	mas = Instance.new("Model",game:GetService("Lighting"))
354
	local stateguii = Instance.new("ScreenGui")
355
	local statetextt = Instance.new("TextLabel")
356
	stateguii.Parent = mas
357
	stateguii.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
358
	statetextt.Parent = stateguii
359
	statetextt.Position = UDim2.new(0.222557679, 0, 0.84498024, 0)
360
	statetextt.Size = UDim2.new(0, 757, 0, 60)
361
	statetextt.BackgroundColor = BrickColor.new("Institutional white")
362
	statetextt.BackgroundColor3 = Color3.new(1, 1, 1)
363
	statetextt.BackgroundTransparency = 1
364
	statetextt.Font = Enum.Font.Arial
365
	statetextt.TextStrokeTransparency = 0
366
	statetextt.FontSize = Enum.FontSize.Size14
367
	statetextt.TextColor = BrickColor.new("Institutional white")
368
	statetextt.TextColor3 = Color3.new(0, 0, 0)
369
	statetextt.TextScaled = true
370
	statetextt.TextSize = 14
371
	statetextt.TextWrap = true
372
	statetextt.TextWrapped = true
373
	for i,v in pairs(mas:GetChildren()) do
374
		v.Parent = owner:findFirstChildOfClass("PlayerGui")
375
		pcall(function() v:MakeJoints() end)
376
	end
377
	mas:Destroy()
378
	for i,v in pairs(cors) do
379
		spawn(function()
380
			pcall(v)
381
		end)
382
	end
383
	statetextt.Text = text
384
	local function disapear()
385
		wait(2)
386
		for i = 1,100 do
387
			statetextt.TextStrokeTransparency = statetextt.TextStrokeTransparency + 0.01
388
			statetextt.TextTransparency = statetextt.TextTransparency + 0.01
389
			step:wait()
390
		end
391
		stateguii:destroy()
392
	end
393
	spawn(disapear)
394
end
395
grabsound = Instance.new("Sound", rightarm.Part1)
396
grabsound.SoundId = "rbxassetid://169380525"
397
grabsound.PlayOnRemove = true
398
function action(plr, what, message)
399
	if plr == owner and canuse then
400
		cananimate = false
401
		canuse = false
402
		if what == "mothafuckah" then
403
			mothabloxuh:Play()
404
		elseif what == "nigor" then
405
			nigor:Play()
406
		elseif what == "grab" and not grabbed then
407
			grabbed = false
408
			for i = 0,0.8 , 0.02 do
409
				leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1,0) * CFrame.Angles(math.rad(-5),0,math.rad(-5)),i)
410
				rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1,0) * CFrame.Angles(math.rad(4),0,math.rad(5)),i)
411
				head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(0,math.rad(80),0),i)
412
				humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.Angles(0,math.rad(-80),0),i)
413
				rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(90),0,math.rad(40)),i)
414
				leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(0,0,math.rad(-40)),i)
415
				step:wait()
416
			end
417
			for i = 0,0.8 , 0.02 do
418
				leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1,0) * CFrame.Angles(math.rad(-5),0,math.rad(-5)),i)
419
				rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1,0) * CFrame.Angles(math.rad(4),0,math.rad(5)),i)
420
				head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(0,math.rad(-80),0),i)
421
				humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.Angles(0,math.rad(80),0),i)
422
				rightarm.C0 = rightarm.C0:lerp(CFrame.new(1,0.5,-0.5) * CFrame.Angles(math.rad(90),0,math.rad(-10)),i)
423
				leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0)*CFrame.Angles(0,0,math.rad(-10)),i)
424
				if i >= 0.4 and i <= 0.42 then
425
					for i,v in pairs(workspace:GetChildren()) do
426
						if v.ClassName == "Model" and v ~= owner.Character then
427
							local vhead = v:findFirstChild("Head")
428
							local vhumanoid = v:findFirstChildOfClass("Humanoid")
429
							if vhumanoid and vhead then
430
								if (vhead.Position - rightarm.Part1.Position).magnitude <= 3 then
431
									grabbed = true
432
									local randompitch = math.random(1,6)
433
									if randompitch == 1 then
434
										grabsound.Pitch = 1.1
435
									elseif randompitch == 2 then
436
										grabsound.Pitch = 1
437
									elseif randompitch == 3 then
438
										grabsound.Pitch = 0.9
439
									elseif randompitch == 4 then
440
										grabsound.Pitch = 0.8
441
									elseif randompitch == 5 then
442
										grabsound.Pitch = 0.7
443
									elseif randompitch == 6 then
444
										grabsound.Pitch = 1.2
445
									end
446
									grabsound:Play()
447
									vhumanoid.PlatformStand = true
448
									--[[if v:findFirstChild("HumanoidRootPart") then
449
										v.HumanoidRootPart:destroy()
450
									end]]
451
									local victimweld = Instance.new("Weld", owner.Character)
452
									victimweld.Part0 = rightarm.Part1
453
									victimweld.Part1 = vhead
454
									victimweld.Name = "guyweld"
455
									victimweld.C0 = CFrame.Angles(math.pi/2,0,math.pi) * CFrame.new(0,1,0.8)
456
								end
457
							end
458
						end
459
					end
460
				end
461
				step:wait()
462
			end
463
		elseif what == "grab" and grabbed then
464
			grabbed = false
465
			for i = 0,1 , 0.08 do
466
				leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1,0) * CFrame.Angles(0,0,math.rad(-40)),i)
467
				rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1,0) * CFrame.Angles(math.rad(4),0,math.rad(5)),i)
468
				head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(0,math.rad(80),0),i)
469
				humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.Angles(0,math.rad(-80),math.rad(40)),i)
470
				rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(90),0,math.rad(40)),i)
471
				leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(0,0,math.rad(-40)),i)
472
				step:wait()
473
			end
474
			for i = 0,0.8 , 0.1 do
475
				leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1,0) * CFrame.Angles(math.rad(-60),0,0),i)
476
				rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,0,-1) * CFrame.Angles(0,0,0),i)
477
				head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(0,0,0),i)
478
				humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,-2,0) * CFrame.Angles(-math.rad(50),math.rad(40),0),i)
479
				rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(50),0,0),i)
480
				leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(0,0,math.rad(-40)),i)
481
				step:wait()
482
			end
483
			if owner.Character:findFirstChild("guyweld") then
484
				if owner.Character:findFirstChild("guyweld").Part1 ~= nil then
485
					if owner.Character:findFirstChild("guyweld").Part1.Parent:findFirstChildOfClass("Humanoid") and owner.Character:findFirstChild("guyweld").Part1.Parent:findFirstChild("Head") then
486
						explosion:Play()
487
						local function delayed()
488
							wait(0.1)
489
							goresplatter:Play()
490
						end
491
						spawn(delayed)
492
						if owner.Character:findFirstChild("guyweld").Part1.Parent:findFirstChildOfClass("Humanoid").MaxHealth == math.huge then
493
							owner.Character:findFirstChild("guyweld").Part1:destroy()
494
						else
495
							spawnshockwave(owner.Character:findFirstChild("guyweld").Part1.Parent:findFirstChild("Head").Position)
496
							owner.Character:findFirstChild("guyweld").Part1.Parent:findFirstChildOfClass("Humanoid").PlatformStand = false
497
							--[[local fakehum = Instance.new("Part", owner.Character:findFirstChild("guyweld").Part1.Parent)
498
							fakehum.Size = Vector3.new(2,2,1)
499
							fakehum.Name = "HumanoidRootPart"
500
							fakehum:BreakJoints()
501
							if owner.Character:findFirstChild("guyweld").Part1.Parent:findFirstChild("Torso") then
502
								fakehum.CFrame = owner.Character:findFirstChild("guyweld").Part1.Parent:findFirstChild("Torso").CFrame
503
								local humweld = Instance.new("Motor6D", fakehum)
504
								humweld.Part0 = fakehum
505
								humweld.Name = "RootJoint"
506
								humweld.Part1 = owner.Character:findFirstChild("guyweld").Part1.Parent.Torso
507
							elseif owner.Character:findFirstChild("guyweld").Part1.Parent:findFirstChild("UpperTorso") then
508
								fakehum.CFrame = owner.Character:findFirstChild("guyweld").Part1.Parent:findFirstChild("UpperTorso").CFrame
509
								local humweld = Instance.new("Motor6D", fakehum)
510
								humweld.Part0 = fakehum
511
								humweld.Name = "RootJoint"
512
								humweld.Part1 = owner.Character:findFirstChild("guyweld").Part1.Parent.UpperTorso
513
							end]]
514
							owner.Character:findFirstChild("guyweld").Part1.Parent:findFirstChildOfClass("Humanoid"):TakeDamage(math.random(30,70))
515
							owner.Character:findFirstChild("guyweld"):destroy()
516
						end
517
					end
518
				end
519
			end
520
		elseif what == "punchgrab" then
521
			if not grabbed then
522
				notification("Grab someone before using this attack.")
523
			else
524
				humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,math.cos(sine/20)/20,0)*CFrame.Angles(0,math.rad(90),0),1)
525
				head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(5)+math.sin(sine/25)/25,-math.rad(90),0),1)
526
				leftarm.C0 = leftarm.C0:lerp(CFrame.new(0.5,1,-0.5) * CFrame.Angles(math.pi/2,math.rad(10),math.pi/2),1)
527
				rightarm.C0 = rightarm.C0:lerp(CFrame.new(1,0.5,-0.5) * CFrame.Angles(math.rad(90),math.sin(sine/25)/25,math.rad(90)),1)
528
				leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/20)/20,0) * CFrame.Angles(0,0,-math.rad(10)),1)
529
				rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1-math.cos(sine/20)/20,0) * CFrame.Angles(0,0,math.rad(10)),1)
530
				local randompitch = math.random(1,6)
531
				if randompitch == 1 then
532
					grabsound.Pitch = 1.1
533
				elseif randompitch == 2 then
534
					grabsound.Pitch = 1
535
				elseif randompitch == 3 then
536
					grabsound.Pitch = 0.9
537
				elseif randompitch == 4 then
538
					grabsound.Pitch = 0.8
539
				elseif randompitch == 5 then
540
					grabsound.Pitch = 0.7
541
				elseif randompitch == 6 then
542
					grabsound.Pitch = 1.2
543
				end
544
				grabsound:Play()
545
				if owner.Character:findFirstChild("guyweld").Part1.Parent:findFirstChildOfClass("Humanoid") then
546
					local huma = owner.Character:findFirstChild("guyweld").Part1.Parent:findFirstChildOfClass("Humanoid")
547
					if huma.Health <= 8 then
548
						owner.Character:findFirstChild("guyweld"):destroy()
549
						huma.Health = 0
550
						grabbed = false
551
					else
552
						huma:TakeDamage(8)
553
					end
554
				end
555
				wait()
556
			end
557
		end
558
		cananimate = true
559
		canuse = true
560
	end
561
end
562
remote.OnServerEvent:connect(action)
563
function pressedsuit()
564
	if suiton then
565
		suiton = false
566
		TextButton4.Text = "Suit: Off"
567
		owner.Character["Right Arm"].BrickColor = rightarmcolor
568
		owner.Character["Left Arm"].BrickColor = leftarmcolor
569
		owner.Character["Right Leg"].BrickColor = rightlegcolor
570
		owner.Character["Left Leg"].BrickColor = leftlegcolor
571
		owner.Character["Head"].BrickColor = headcolor 
572
		owner.Character["Torso"].BrickColor = torsocolor
573
		for i,v in pairs(owner.Character.Head:GetChildren()) do
574
			if v.ClassName == "SpecialMesh" and v.Name == "Cone" then
575
				v:destroy()
576
			end
577
			if v.ClassName == "CharacterMesh" or v.ClassName == "Shirt" or v.ClassName == "Pants" then
578
				v.Parent = owner.Character
579
			end
580
		end
581
		for i,v in pairs(owner.Character:GetChildren()) do
582
			if v.ClassName == "Part" then
583
				if v.Name == "Head" then
584
					if v:findFirstChildOfClass("Decal") then
585
						v:findFirstChildOfClass("Decal").Transparency = 0
586
					end
587
				end
588
			end
589
			if v.ClassName == "Accessory" or v.ClassName == "Handle" then
590
				if v:findFirstChildOfClass("Part") then
591
					v:findFirstChildOfClass("Part").Transparency = 0
592
				end
593
			end
594
		end
595
	else
596
		TextButton4.Text = "Suit: On"
597
		local cone = Instance.new("SpecialMesh", owner.Character.Head)
598
		cone.MeshId = "http://www.roblox.com/asset/?id=1033714"
599
		cone.Scale = Vector3.new(0.8,3,0.8)
600
		cone.Offset = Vector3.new(0,0.5,0)
601
		cone.Name = "Cone"
602
		local eye = Instance.new("Part", cone)
603
		eye.Shape = "Ball"
604
		eye.Material = "Neon"
605
		eye.Size = Vector3.new(0.1,0.1,0.1)
606
		eye:BreakJoints()
607
		local eye1weld = Instance.new("Weld", cone)
608
		eye1weld.Part0 = owner.Character.Head
609
		eye1weld.Part1 = eye
610
		eye1weld.C0 = CFrame.new(0.2,0.15,-0.52)
611
		--
612
		local eye1 = Instance.new("Part", cone)
613
		eye1.Shape = "Ball"
614
		eye1.Material = "Neon"
615
		eye1.Size = Vector3.new(0.1,0.1,0.1)
616
		eye1:BreakJoints()
617
		local eye11weld = Instance.new("Weld", cone)
618
		eye11weld.Part0 = owner.Character.Head
619
		eye11weld.Part1 = eye1
620
		eye11weld.C0 = CFrame.new(-0.2,0.15,-0.52)
621
		for i,v in pairs(owner.Character:GetChildren()) do
622
			if v.ClassName == "CharacterMesh" or v.ClassName == "Shirt" or v.ClassName == "Pants" then
623
				v.Parent = owner.Character.Head
624
			end
625
			if v.ClassName == "Part" then
626
				v.BrickColor = BrickColor.new("Institutional white")
627
				if v.Name == "Head" then
628
					if v:findFirstChildOfClass("Decal") then
629
						v:findFirstChildOfClass("Decal").Transparency = 1
630
					end
631
				end
632
			end
633
			if v.ClassName == "Accessory" or v.ClassName == "Handle" then
634
				if v:findFirstChildOfClass("Part") then
635
					v:findFirstChildOfClass("Part").Transparency = 1
636
				end
637
			end
638
		end
639
		suiton = true
640
	end
641
end
642
TextButton4.MouseButton1Click:connect(pressedsuit)
643
function detectwalk()
644
	while step:wait() do
645
		if rootpart.Velocity.x >= 2 or rootpart.Velocity.x <= -2 or rootpart.Velocity.z >= 2 or rootpart.Velocity.z <= -2 then
646
			if ownerhumanoid.FloorMaterial == Enum.Material.Air then
647
				if rootpart.Velocity.x >= 17 or rootpart.Velocity.x <= -17 or rootpart.Velocity.z >= 17 or rootpart.Velocity.z <= -17 then
648
					if rootpart.Velocity.y >= 3 then
649
						anim = "jumprun"
650
						--print("jumping (running)")
651
					elseif rootpart.Velocity.y <= -3 then
652
						anim = "fallrun"
653
						--("falling (running)")
654
					end
655
				else
656
					if rootpart.Velocity.y >= 3 then
657
						anim = "jump"
658
						--print("jumping (walking)")
659
					elseif rootpart.Velocity.y <= -3 then
660
						anim = "fall"
661
						--print("falling (walking)")
662
					end
663
				end
664
			else
665
				if rootpart.Velocity.x >= 17 or rootpart.Velocity.x <= -17 or rootpart.Velocity.z >= 17 or rootpart.Velocity.z <= -17 then
666
					anim = "run"
667
					--print("running")
668
				else
669
					anim = "walk"
670
					--print("walking")
671
				end
672
			end
673
		elseif rootpart.Velocity.x <= 2 or rootpart.Velocity.x >= -2 or rootpart.Velocity.z <= 2 or rootpart.Velocity.z >= -2 then
674
			if ownerhumanoid.FloorMaterial == Enum.Material.Air then
675-
				if rootpart.Velocity.y >= 3 then
675+
				if rootpart.Velocity.y >= 0 then
676
					anim = "jump"
677
					--print("jumping (standing)")
678-
				elseif rootpart.Velocity.y < -3 then
678+
				elseif rootpart.Velocity.y < 0 then
679
					anim = "fall"
680
					--print("falling (standing)")
681
				end
682
			else
683
				anim = "idle"
684
				--print("standing")
685
			end
686
		end
687
	end
688
end
689
spawn(detectwalk)
690
jumpsine = 0
691
local playedfootstep = false
692
local footstep = Instance.new("Sound", rootpart)
693
footstep.SoundId = "rbxassetid://131436155"
694
footstep.Volume = 1.5
695
while step:wait() do
696
	sine = sine + 1
697
	if cananimate then
698
		if anim == "idle" then
699
			if grabbed then
700
				humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,math.cos(sine/20)/20,0)*CFrame.Angles(0,math.rad(90),0),0.3)
701
				head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(5)+math.sin(sine/25)/25,-math.rad(90),0),0.3)
702
				leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(0,0,-math.rad(30)+math.sin(sine/25)/25),0.3)
703
				rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(90),math.sin(sine/25)/25,math.rad(90)),0.3)
704
				leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/20)/20,0) * CFrame.Angles(0,0,-math.rad(10)),0.3)
705
				rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1-math.cos(sine/20)/20,0) * CFrame.Angles(0,0,math.rad(10)),0.3)
706
			else
707
				humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,-math.sin(sine/20)/30,-math.sin(sine/20)/10) * CFrame.Angles(0,math.rad(30)+math.rad(3*math.sin(sine/20)),0),0.2)
708
				head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(-5)+math.rad(-math.sin(sine/20)),math.rad(-30)-math.rad(2*math.sin(sine/20)),0),0.3)
709
				rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.55+math.sin(sine/20)/20,0.6-math.sin(sine/20)/20,-0.2) * CFrame.Angles(math.rad(4*math.sin(sine/20))+math.rad(math.cos(sine/20)),math.rad(25)+math.rad(2*math.sin(sine/20)),math.rad(10)+math.rad(2*math.sin(sine/20))),0.3)
710
				leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.55+math.sin(sine/20)/20,0.55-math.sin(sine/20)/15,0.1) * CFrame.Angles(math.rad(4*math.sin(sine/20))+math.rad(math.cos(sine/20)),math.rad(5)-math.rad(5*math.sin(sine/20)),math.rad(-10)+math.rad(2.5*math.sin(sine/20))),0.3)
711
				leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1+math.sin(sine/20)/30,math.sin(sine/20)/10) * CFrame.Angles(math.rad(-5),-math.rad(3*math.sin(sine/20)),math.rad(-5)),0.3)
712
				rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1+math.sin(sine/20)/30,math.sin(sine/20)/10) * CFrame.Angles(math.rad(4),-math.rad(3*math.sin(sine/20)),math.rad(5)),0.3)
713
			end
714
		elseif anim == "walk" then
715
			if grabbed then
716
				humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,math.sin(sine/3.5)/20,0) * CFrame.Angles(-0.1+math.cos(sine/3.5)/35,0,rootpart.RotVelocity.y/50),0.3)
717
				head.C0 = head.C0:lerp(CFrame.new(0,1,-0.05) * CFrame.Angles(-0.1-math.cos(sine/7)/35,rootpart.RotVelocity.y/20,0),0.3)
718
				leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,-math.sin(sine/7)/10) * CFrame.Angles(math.rad(30*math.sin(sine/7)),0,math.rad(5*-math.cos(sine/3.5))),0.3)
719
				rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,math.sin(sine/7)/10) * CFrame.Angles(math.rad(150)+math.rad(3*-math.sin(sine/7)),0,math.rad(25)),0.3)
720
				leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/7)/4,0) * CFrame.Angles(math.rad(40*-math.sin(sine/7)),0,0),0.3)
721
				rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/7)/4,0) * CFrame.Angles(math.rad(40*math.sin(sine/7)),0,0),0.3)
722
			else
723
				humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,math.sin(sine/3.5)/20,0) * CFrame.Angles(-0.1+math.cos(sine/3.5)/35,0,rootpart.RotVelocity.y/50),0.3)
724
				head.C0 = head.C0:lerp(CFrame.new(0,1,-0.05) * CFrame.Angles(-0.1-math.cos(sine/7)/35,rootpart.RotVelocity.y/20,0),0.3)
725
				leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,-math.sin(sine/7)/10) * CFrame.Angles(math.rad(30*math.sin(sine/7)),0,math.rad(5*-math.cos(sine/3.5))),0.3)
726
				rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,math.sin(sine/7)/10) * CFrame.Angles(math.rad(30*-math.sin(sine/7)),0,math.rad(5*math.cos(sine/3.5))),0.3)
727
				leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/7)/4,0) * CFrame.Angles(math.rad(40*-math.sin(sine/7)),0,0),0.3)
728
				rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/7)/4,0) * CFrame.Angles(math.rad(40*math.sin(sine/7)),0,0),0.3)
729
			end
730
			if (math.cos(sine/7)/4) <= 0.05 and (math.cos(sine/7)/4) >= -0.05 then
731
				if not playedfootstep then
732
					playedfootstep = true
733
					footstep:Play()
734
				end
735
			else
736
				playedfootstep = false
737
			end
738
		elseif anim == "jump" then
739
			if grabbed then
740
				humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.Angles(math.rad(10),0,0), 0.2)
741
				rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,math.sin(sine/5)/10) * CFrame.Angles(math.rad(150)+math.rad(3*-math.sin(sine/5)),0,math.rad(25)),0.3)
742
				leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(-math.rad(10),0,0),0.2)
743
				leftleg.C0 = CFrame.new(-0.5,-1,0) * CFrame.Angles(0,0,0)
744
				rightleg.C0 = CFrame.new(0.5,-1,0) * CFrame.Angles(0,0,0)
745
				head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(0,0,0),0.3)
746
			else
747
				humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.Angles(math.rad(10),0,0), 0.2)
748
				rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(-math.rad(10),0,0),0.2)
749
				leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(-math.rad(10),0,0),0.2)
750
				leftleg.C0 = CFrame.new(-0.5,-1,0) * CFrame.Angles(0,0,0)
751
				rightleg.C0 = CFrame.new(0.5,-1,0) * CFrame.Angles(0,0,0)
752
				head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(0,0,0),0.3)
753
			end
754
		elseif anim == "fall" then
755
			if grabbed then
756
				humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.Angles(-math.rad(10),0,0), 0.2)
757
				rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,math.sin(sine/5)/10) * CFrame.Angles(math.rad(150)+math.rad(3*-math.sin(sine/5)),0,math.rad(25)),0.3)
758
				leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(-math.rad(10),0,-math.rad(60)),0.2)
759
				leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-0.5,-0.5) * CFrame.Angles(0,0,0),0.2)
760
				rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-0.5,-0.5) * CFrame.Angles(0,0,0),0.2)
761
				head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(-math.rad(10),0,0),0.2)
762
			else
763
				humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.Angles(-math.rad(10),0,0), 0.2)
764
				rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(-math.rad(10),0,math.rad(60)),0.2)
765
				leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(-math.rad(10),0,-math.rad(60)),0.2)
766
				leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-0.5,-0.5) * CFrame.Angles(0,0,0),0.2)
767
				rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-0.5,-0.5) * CFrame.Angles(0,0,0),0.2)
768
				head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(-math.rad(10),0,0),0.2)
769
			end
770
		elseif anim == "jumprun" then
771
			if grabbed then
772
				humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.Angles(math.rad(-35),0,0), 0.2)
773
				rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,math.sin(sine/5)/10) * CFrame.Angles(math.rad(150)+math.rad(3*-math.sin(sine/5)),0,math.rad(25)),0.3)
774
				leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(-math.rad(10),0,0),0.2)
775
				leftleg.C0 = CFrame.new(-0.5,-1,0) * CFrame.Angles(0,0,0)
776
				rightleg.C0 = CFrame.new(0.5,-1,0) * CFrame.Angles(0,0,0)
777
				head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(0,0,0),0.3)
778
			else
779
				humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.Angles(math.rad(-35),0,0), 0.2)
780
				rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(-math.rad(10),0,0),0.2)
781
				leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(-math.rad(10),0,0),0.2)
782
				leftleg.C0 = CFrame.new(-0.5,-1,0) * CFrame.Angles(0,0,0)
783
				rightleg.C0 = CFrame.new(0.5,-1,0) * CFrame.Angles(0,0,0)
784
				head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(0,0,0),0.3)
785
			end
786
		elseif anim == "fallrun" then
787
			if grabbed then
788
				humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.Angles(math.rad(35),0,0), 0.2)
789
				rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,math.sin(sine/5)/10) * CFrame.Angles(math.rad(150)+math.rad(3*-math.sin(sine/5)),0,math.rad(25)),0.3)
790
				leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(-math.rad(10),0,-math.rad(60)),0.2)
791
				leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-0.5,-0.5) * CFrame.Angles(0,0,0),0.2)
792
				rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-0.5,-0.5) * CFrame.Angles(0,0,0),0.2)
793
				head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(-math.rad(10),0,0),0.2)
794
			else
795
				humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.Angles(math.rad(35),0,0), 0.2)
796
				rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(-math.rad(10),0,math.rad(60)),0.2)
797
				leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(-math.rad(10),0,-math.rad(60)),0.2)
798
				leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-0.5,-0.5) * CFrame.Angles(0,0,0),0.2)
799
				rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-0.5,-0.5) * CFrame.Angles(0,0,0),0.2)
800
				head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(-math.rad(10),0,0),0.2)
801
			end
802
		elseif anim == "run" then
803
			if grabbed then
804
				humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,math.sin(sine/2.5)/10,0) * CFrame.Angles(-0.4+3*math.cos(sine/4)/35,0,rootpart.RotVelocity.y/50),0.3)
805
				head.C0 = head.C0:lerp(CFrame.new(0,1,-0.05) * CFrame.Angles(0.35-3*math.cos(sine/4)/35,rootpart.RotVelocity.y/20,0),0.3)
806
				leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,-math.sin(sine/5)/3) * CFrame.Angles(0.2+math.rad(80*math.sin(sine/5)),0,math.rad(8*-math.cos(sine/5))),0.3)
807
				rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,math.sin(sine/5)/10) * CFrame.Angles(math.rad(150)+math.rad(3*-math.sin(sine/5)),0,math.rad(25)),0.3)
808
				leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/5)/2.5,0) * CFrame.Angles(math.rad(70*-math.sin(sine/5)),0,0),0.3)
809
				rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/5)/2.5,0) * CFrame.Angles(math.rad(70*math.sin(sine/5)),0,0),0.3)
810
			else
811
				humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,math.sin(sine/2.5)/10,0) * CFrame.Angles(-0.4+3*math.cos(sine/4)/35,0,rootpart.RotVelocity.y/50),0.3)
812
				head.C0 = head.C0:lerp(CFrame.new(0,1,-0.05) * CFrame.Angles(0.35-3*math.cos(sine/4)/35,rootpart.RotVelocity.y/20,0),0.3)
813-
				leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,-math.sin(sine/5)/3) * CFrame.Angles(0.2+math.rad(80*math.sin(sine/5)),0,math.rad(8*-math.cos(sine/2.5))),0.3)
813+
814-
				rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,math.sin(sine/5)/3) * CFrame.Angles(0.2+math.rad(80*-math.sin(sine/5)),0,math.rad(8*math.cos(sine/2.5))),0.3)
814+
				rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,math.sin(sine/5)/3) * CFrame.Angles(0.2+math.rad(80*-math.sin(sine/5)),0,math.rad(8*-math.cos(sine/5))),0.3)
815
				leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/5)/2.5,0) * CFrame.Angles(math.rad(70*-math.sin(sine/5)),0,0),0.3)
816
				rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/5)/2.5,0) * CFrame.Angles(math.rad(70*math.sin(sine/5)),0,0),0.3)
817
			end
818
			if (math.cos(sine/5)/2.5) <= 0.05 and (math.cos(sine/5)/2.5) >= -0.05 then
819
				if not playedfootstep then
820
					playedfootstep = true
821
					footstep:Play()
822
				end
823
			else
824
				playedfootstep = false
825
			end
826
		end
827
	end
828
end