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