View difference between Paste ID: n5X5cAMe and GYVvrVwY
SHOW: | | - or go back to the newest paste.
1
-- This script has been converted to FE by iPxter
2
3
4
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
5
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
6
do
7
	print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
8
	script.Parent = Player.Character
9
10
	--RemoteEvent for communicating
11
	local Event = Instance.new("RemoteEvent")
12
	Event.Name = "UserInput_Event"
13
14
	--Fake event to make stuff like Mouse.KeyDown work
15
	local function fakeEvent()
16
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
17
		t.connect = t.Connect
18
		return t
19
	end
20
21
	--Creating fake input objects with fake variables
22
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
23
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
24
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
25
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
26
	end}
27
	--Merged 2 functions into one by checking amount of arguments
28
	CAS.UnbindAction = CAS.BindAction
29
30
	--This function will trigger the events that have been :Connect()'ed
31
	local function te(self,ev,...)
32
		local t = m[ev]
33
		if t and t._fakeEvent and t.Function then
34
			t.Function(...)
35
		end
36
	end
37
	m.TrigEvent = te
38
	UIS.TrigEvent = te
39
40
	Event.OnServerEvent:Connect(function(plr,io)
41
	    if plr~=Player then return end
42
		if io.isMouse then
43
			m.Target = io.Target
44
			m.Hit = io.Hit
45
		else
46
			local b = io.UserInputState == Enum.UserInputState.Begin
47
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
48
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
49
			end
50
			for _,t in pairs(CAS.Actions) do
51
				for _,k in pairs(t.Keys) do
52
					if k==io.KeyCode then
53
						t.Function(t.Name,io.UserInputState,io)
54
					end
55
				end
56
			end
57
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
58
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
59
	    end
60
	end)
61
	Event.Parent = NLS([==[
62
	local Player = game:GetService("Players").LocalPlayer
63
	local Event = script:WaitForChild("UserInput_Event")
64
65
	local UIS = game:GetService("UserInputService")
66
	local input = function(io,a)
67
		if a then return end
68
		--Since InputObject is a client-side instance, we create and pass table instead
69
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
70
	end
71
	UIS.InputBegan:Connect(input)
72
	UIS.InputEnded:Connect(input)
73
74
	local Mouse = Player:GetMouse()
75
	local h,t
76
	--Give the server mouse data 30 times every second, but only if the values changed
77
	--If player is not moving their mouse, client won't fire events
78
	while wait(1/30) do
79
		if h~=Mouse.Hit or t~=Mouse.Target then
80
			h,t=Mouse.Hit,Mouse.Target
81
			Event:FireServer({isMouse=true,Target=t,Hit=h})
82
		end
83
	end]==],Player.Character)
84
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
85
end
86
87
88
--Made by Zalgo_exe.. and the one who made the edit containing boobs.. why.. that's just.. a m a z i n g.. no sarcasm.
89
wait(0.2)
90-
local Player, Character, Mouse  = game:service("Players").unbox1, game:GetService("Players").unbox1.Character
90+
local Player, Character, Mouse  = game:service("Players").TameDoNotClick, game:GetService("Players").TameDoNotClick.Character
91
local Torso = Character:FindFirstChild("Torso")
92
local rootPart = Character:FindFirstChild("HumanoidRootPart")
93
local Humanoid = Character:FindFirstChild("Humanoid")
94
local Head = Character:FindFirstChild("Head")
95
local Right_Arm = Character:FindFirstChild("Right Arm")
96
local Left_Arm = Character:FindFirstChild("Left Arm")
97
local Right_Leg = Character:FindFirstChild("Right Leg")
98
local Left_Leg = Character:FindFirstChild("Left Leg")
99
local Right_Shoulder = Torso:FindFirstChild("Right Shoulder")
100
local Left_Shoulder = Torso:FindFirstChild("Left Shoulder")
101
local Right_Hip = Torso:FindFirstChild("Right Hip")
102
local Left_Hip = Torso:FindFirstChild("Left Hip")
103
local Neck = Torso:FindFirstChild("Neck")
104
local rootPart = Character:FindFirstChild("HumanoidRootPart")
105
local rootJoint = rootPart:FindFirstChild("RootJoint")
106
local CurrentIdle = "Idling1"
107
local Degree = 0.0175438596491228
108
local canremove = false
109
local debounce = false
110
local UIService=game:GetService'UserInputService'
111
_G.SongName = math.random(1,9025232)
112
113
local Hood = Instance.new("Part",Head)
114
Hood.Name = "Hood"
115
Hood.Shape = Enum.PartType.Ball
116
Hood.CanCollide = false
117
Hood.BrickColor = BrickColor.new("Medium stone grey")
118
Hood.Transparency = 0
119
Hood.Material = "Grass"
120
Hood.Size = Vector3.new(0.1, 0.1, 0.1)
121
Hood.TopSurface = Enum.SurfaceType.Smooth
122
Hood.BottomSurface = Enum.SurfaceType.Smooth	
123
local Weld = Instance.new("Weld", Hood)
124
Weld.Part0 = Head
125
Weld.Part1 = Hood
126
Weld.C1 = CFrame.new(0,0,0.6)
127
HoodMesh = Instance.new("FileMesh",Hood)
128
HoodMesh.MeshId = "http://www.roblox.com/asset/?id=13520910"
129
HoodMesh.TextureId = "http://www.roblox.com/asset/?id=1772096775"
130
HoodMesh.Scale = Vector3.new(1,1,1)
131
132
local Hair = Instance.new("Part",Head)
133
Hair.Name = "Hair"
134
Hair.Shape = Enum.PartType.Ball
135
Hair.CanCollide = false
136
Hair.BrickColor = BrickColor.new("Really black")
137
Hair.Transparency = 0
138
Hair.Material = "Grass"
139
Hair.Size = Vector3.new(0.1, 0.1, 0.1)
140
Hair.TopSurface = Enum.SurfaceType.Smooth
141
Hair.BottomSurface = Enum.SurfaceType.Smooth	
142
local Weld = Instance.new("Weld", Hair)
143
Weld.Part0 = Head
144
Weld.Part1 = Hair
145
Weld.C1 = CFrame.new(0,-0.5,0)
146
HairMesh = Instance.new("FileMesh",Hair)
147
HairMesh.MeshId = "http://www.roblox.com/asset/?id=15730710"
148
HairMesh.TextureId = "http://www.roblox.com/asset/?id=13332337"
149
HairMesh.Scale = Vector3.new(1.1,1.1,1.1)
150
151
lit = Instance.new("PointLight",Torso)
152
lit.Brightness = 0
153
lit.Range = 3
154
lit.Color = Color3.fromRGB(180, 128, 255)
155
156
sin = math.sin
157
Right_Leg.FormFactor 		= "Custom";
158
Left_Leg.FormFactor			= "Custom";
159
rootPart.Archivable 		= true;
160
rootJoint.Archivable 		= true;
161
c_new						= CFrame.new;
162
c_angles					= CFrame.Angles;
163
i_new = Instance.new
164
Humanoid:ClearAllChildren();
165
local isAttacking = false
166
local isSprinting = false
167
local Animations = false
168
local Angle = 0
169
local Axis = 0
170
local angleSpeed = 1
171
local axisSpeed = angleSpeed
172
local currentAnim
173
local levetatingheight = 3
174
local WalkType = "Ground"
175
176
function Sound(parent,loop,vol,id)
177
	local s =  Instance.new('Sound',parent)
178
	s.Looped = loop
179
	s.Volume = vol
180
	s.MaxDistance=200
181
	s.EmitterSize=20
182
	s.SoundId = 'rbxassetid://'..tostring(id)
183
	s:Play()
184
	if loop == false then
185
		wait(s.TimeLength)
186
		s:Destroy()
187
	end
188
end
189
190
Sound(rootPart,true,1,708003712)
191
192
newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
193
	wld = Instance.new("Weld", wp1)
194
	wld.Part0 = wp0
195
	wld.Part1 = wp1
196
	wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
197
	return wld
198
end
199
200
function noOutline(part)
201
	part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
202
end
203
204
local function Part(Name,Color, Material, Transparency,Shape, Size, CFrame,CanCollide,Anchored,parent)
205
	local partie = i_new("Part",parent)
206
	partie.Name=Name
207
	partie.BrickColor = BrickColor.new(Color)
208
	partie.Material = Material
209
	partie.Shape = Shape
210
	partie.Transparency = Transparency
211
	partie.Size = Size
212
	partie.CFrame = CFrame
213
	partie.CanCollide = CanCollide
214
	partie.Anchored = Anchored
215
	return partie
216
end
217
	
218
219
220
function swait(num)
221
	if num == 0 or num == nil then
222
		game:GetService("RunService").Stepped:wait(0)
223
	else
224
		for i = 0, num do
225
			game:GetService("RunService").Stepped:wait(0)
226
		end
227
	end
228
end
229
230
function mesh(Mesh, part, meshtype, meshid, offset, scale)
231
	local mesh = i_new(Mesh)
232
	mesh.Parent = part
233
	if Mesh == "SpecialMesh" then
234
		mesh.MeshType = meshtype
235
		mesh.MeshId = meshid
236
	end
237
	mesh.Offset = offset
238
	mesh.Scale = scale
239
	return mesh
240
end
241
transform = false
242
debounce = false
243
coughing = false
244
245
Debris = game:GetService("Debris")
246
247
local Particle = Instance.new("ParticleEmitter",nil)
248
Particle.Enabled = false
249
Particle.LightEmission = 0.2
250
Particle.Rate = 150
251
Particle.ZOffset = 1
252
Particle.Rotation = NumberRange.new(-180, 180)
253
254
local RINGFIRE = {}
255
256
function ParticleEmitter(Table)
257
	local PRTCL = Particle:Clone()
258
	local Color1 = Table.Color1 or Color3.new(1,1,1)
259
	local Color2 = Table.Color2 or Color3.new(1,1,1)
260
	local Speed = Table.Speed or 5
261
	local Drag = Table.Drag or 0
262
	local Size1 = Table.Size1 or 1
263
	local Size2 = Table.Size2 or 5
264
	local Lifetime1 = Table.Lifetime1 or 1
265
	local Lifetime2 = Table.Lifetime2 or 1.5
266
	local Parent = Table.Parent or Torso
267
	local Emit = Table.Emit or 100
268
	local Offset = Table.Offset or 360
269
	local Acel = Table.Acel or Vector3.new(0,0,0)
270
	local Enabled = Table.Enabled or false
271
	local Texture = Table.Texture or "281983280"
272
	local RotS = Table.RotSpeed or NumberRange.new(-15, 15)
273
	local Trans1 = Table.Transparency1 or 0
274
	local Trans2 = Table.Transparency2 or 0
275
	PRTCL.Parent = Parent
276
	PRTCL.RotSpeed = RotS
277
	PRTCL.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,Trans1),NumberSequenceKeypoint.new(1,Trans2)})
278
	PRTCL.Texture = "http://www.roblox.com/asset/?id="..Texture
279
	PRTCL.Color = ColorSequence.new(Color1,Color2)
280
	PRTCL.Size = NumberSequence.new(Size1,Size2)
281
	PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
282
	PRTCL.Speed = NumberRange.new(Speed)
283
	PRTCL.VelocitySpread = Offset
284
	PRTCL.Drag = Drag
285
	PRTCL.Acceleration = Acel
286
	if Enabled == false then
287
		PRTCL:Emit(Emit)
288
		Debris:AddItem(PRTCL,Lifetime2)
289
	else
290
		PRTCL.Enabled = true
291
	end
292
	return PRTCL
293
end
294
295
local EYE1 = Instance.new("Attachment",Head)
296
EYE1.Position = (Vector3.new(0.4, 0.5, -1.195)/2)
297
local EYE2 = Instance.new("Attachment",Head)
298
EYE2.Position = (Vector3.new(-0.4, 0.5, -1.195)/2)
299
local PRTCL = ParticleEmitter({Transparency1 = 1, Transparency2 = 0, Speed = 0.2, Acel = Vector3.new(2,0.5,0.6), RotSpeed = NumberRange.new(-15, 15), Drag = 0, Size1 = 0.15, Size2 = 0, Lifetime1 = 0.4, Lifetime2 = 1.4, Parent = EYE1, Emit = 100, Offset = 360, Enabled = true, Color1 = Color3.fromRGB(180, 128, 255), Color2 = Color3.new(0,0,0), Texture = "1523916715"})
300
PRTCL.LockedToPart = true
301
PRTCL.Rate = 185
302
PRTCL.ZOffset = 0.1
303
PRTCL.LightEmission = 1
304
PRTCL.Enabled = false
305
table.insert(RINGFIRE,PRTCL)
306
local PRTCL2 = ParticleEmitter({Transparency1 = 1, Transparency2 = 0, Speed = 0.2, Acel = Vector3.new(-2,0.5,0.6), RotSpeed = NumberRange.new(-15, 15), Drag = 0, Size1 = 0.15, Size2 = 0, Lifetime1 = 0.4, Lifetime2 = 1.4, Parent = EYE2, Emit = 100, Offset = 360, Enabled = true, Color1 = Color3.fromRGB(180, 128, 255), Color2 = Color3.new(0,0,0), Texture = "1523916715"})
307
PRTCL2.LockedToPart = true
308
PRTCL2.Rate = 185
309
PRTCL2.ZOffset = 0.1
310
PRTCL2.LightEmission = 1
311
PRTCL2.Enabled = false
312
table.insert(RINGFIRE,PRTCL2)
313
314
talking = false
315
316
mouse.KeyDown:connect(function(key)
317
if key == "e" and transform == false and debounce == false and talking == false then
318
debounce = true
319
talking = true
320
SOU = Instance.new("Sound")
321
SOU.Parent = Character.Torso
322
SOU.SoundId = "rbxassetid://1384757081"
323
SOU.Volume = 15
324
SOU.Looped = false
325
SOU.Pitch = 1
326
SOU.TimePosition = 4.5
327
SOU:Play()
328
wait(1.5)
329
talking = false
330
HairMesh.TextureId = "http://www.roblox.com/asset/?id=101678162"
331
Character['Body Colors'].HeadColor=BrickColor.new('Really black')
332
Character['Body Colors'].TorsoColor=BrickColor.new('Really black')
333
Character['Body Colors'].RightArmColor=BrickColor.new('Really black')
334
Character['Body Colors'].LeftArmColor=BrickColor.new('Really black')
335
Character['Body Colors'].RightLegColor=BrickColor.new('Really black')
336
Character['Body Colors'].LeftLegColor=BrickColor.new('Really black')
337
shirt.ShirtTemplate = "rbxassetid://767866442"
338
pants.PantsTemplate = "rbxassetid://842364401"
339
coroutine.wrap(function()
340
wait(7)
341
for i = 1,100 do
342
Hair.Transparency = Hair.Transparency + 0.01
343
wait()
344
end
345
end)()
346
DP = Instance.new("Sound")
347
DP.Parent = Character.Torso
348
DP.SoundId = "rbxassetid://244502094"
349
DP.Volume = 10
350
DP.Looped = true
351
DP.Pitch = 1
352
DP:Play()
353
q=Instance.new('ParticleEmitter',Head)
354
q.Rate = 500
355
q.Speed = NumberRange.new(7)
356
q.VelocitySpread = 0
357
q.EmissionDirection = "Front"
358
q.Lifetime = NumberRange.new(0.1,1)
359
q.Texture = 'rbxassetid://164417280'
360
q.Acceleration = Vector3.new(0,-50,0)
361
q.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.1), NumberSequenceKeypoint.new(1, 0.01, 0.01)})
362
q.RotSpeed = NumberRange.new(-180, 180)
363
q.Rotation = NumberRange.new(-360, 360)
364
q.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
365
coughing = true
366
wait(10) --28 is the original but it's too long
367
DP:Stop()
368
q.Enabled = false
369
coughing = false
370
SOU:Stop()
371
wait(1)
372
talking = true
373
PRTCL2.Enabled = true
374
PRTCL.Enabled = true
375
HoodMesh.MeshId = "http://www.roblox.com/asset/?id=13520257"
376
HoodMesh.TextureId = "http://www.roblox.com/asset/?id=558227098"
377
Head.face.Texture = "rbxassetid://256293532"
378
Head.face.Color3 = Color3.new(0,0,0)
379
S = Instance.new("Sound")
380
S.Parent = Character.Torso
381
S.SoundId = "rbxassetid://858697889"
382
S.Volume = 10
383
S.Looped = false
384
S.Pitch = 1
385
S:Play()
386
wait(2)
387
talking = false
388
PRTCL2.Enabled = false
389
PRTCL.Enabled = false
390
q:Destroy()
391
transform = true
392
end end)
393
394
mouse.KeyDown:connect(function(key)
395
if key == "v" and transform == true and PRTCL.Enabled == false and talking == false then
396
talking = true
397
lit.Brightness = 1
398
PRTCL2.Enabled = true
399
PRTCL.Enabled = true
400
S = Instance.new("Sound")
401
S.Parent = Character.Torso
402
S.SoundId = "rbxassetid://398631872"
403
S.Volume = 10
404
S.Looped = false
405
S.Pitch = 1
406
S.TimePosition = 2
407
S:Play()
408
wait(14)
409
PRTCL2.Enabled = false
410
PRTCL.Enabled = false
411
lit.Brightness = 0
412
talking = false
413
end end)
414
415
laughing = false
416
417
mouse.KeyDown:connect(function(key)
418
if key == "r" and transform == true and PRTCL.Enabled == false and talking == false then
419
talking = true
420
lit.Brightness = 1
421
PRTCL2.Enabled = true
422
PRTCL.Enabled = true
423
S = Instance.new("Sound")
424
S.Parent = Character.Torso
425
S.SoundId = "rbxassetid://177359995"
426
S.Volume = 10
427
S.Looped = false
428
S.Pitch = 1
429
S:Play()
430
wait(3.35)
431
PRTCL2.Enabled = false
432
PRTCL.Enabled = false
433
lit.Brightness = 0
434
talking = false
435
end end)
436
437
mouse.KeyDown:connect(function(key)
438
if key == "t" and transform == true and PRTCL.Enabled == false and talking == false then
439
talking = true
440
PRTCL2.Enabled = true
441
PRTCL.Enabled = true
442
lit.Brightness = 1
443
S = Instance.new("Sound")
444
S.Parent = Character.Torso
445
S.SoundId = "rbxassetid://858697889"
446
S.Volume = 10
447
S.Looped = false
448
S.Pitch = 1
449
S:Play()
450
wait(3.8)
451
PRTCL2.Enabled = false
452
PRTCL.Enabled = false
453
lit.Brightness = 0
454
talking = false
455
end end)
456
457
mouse.KeyDown:connect(function(key)
458
if key == "y" and transform == true then
459
S = Instance.new("Sound")
460
S.Parent = Character.Torso
461
S.SoundId = "rbxassetid://708003498"
462
S.Volume = 10
463
S.Looped = false
464
S.Pitch = 1
465
S:Play()
466
end end)
467
468
mouse.KeyDown:connect(function(key)
469
if key == "r" and transform == false and talking == false then
470
talking = true
471
S = Instance.new("Sound")
472
S.Parent = Character.Torso
473
S.SoundId = "rbxassetid://155074440"
474
S.Volume = 10
475
S.Looped = false
476
S.Pitch = 1
477
S.TimePosition = 0.4
478
S:Play()
479
wait(6)
480
talking = false
481
end end)
482
483
mouse.KeyDown:connect(function(key)
484
if key == "t" and transform == false and talking == false then
485
talking = true
486
S = Instance.new("Sound")
487
S.Parent = Character.Torso
488
S.SoundId = "rbxassetid://494478995"
489
S.Volume = 10
490
S.Looped = false
491
S.Pitch = 1
492
S:Play()
493
wait(5.04)
494
talking = false
495
end end)
496
497
q1=Instance.new('ParticleEmitter',Head)
498
q1.Rate = 500
499
q1.Speed = NumberRange.new(7)
500
q1.VelocitySpread = 0
501
q1.EmissionDirection = "Front"
502
q1.Lifetime = NumberRange.new(0.1,1)
503
q1.Texture = 'rbxassetid://164417280'
504
q1.Acceleration = Vector3.new(0,-50,0)
505
q1.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.1), NumberSequenceKeypoint.new(1, 0.01, 0.01)})
506
q1.RotSpeed = NumberRange.new(-180, 180)
507
q1.Rotation = NumberRange.new(-360, 360)
508
q1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
509
q1.Enabled = false
510
511
mouse.KeyDown:connect(function(key)
512
if key == "f" and transform == true then
513
S = Instance.new("Sound")
514
S.Parent = Character.Torso
515
S.SoundId = "rbxassetid://176850421"
516
S.Volume = 10
517
S.Looped = false
518
S.Pitch = 1
519
S:Play()
520
end end)
521
522
toggle = false
523
524
mouse.KeyDown:connect(function(key)
525
if key == "f" and transform == false and talking == false then
526
talking = true
527
S = Instance.new("Sound")
528
S.Parent = Character.Torso
529
S.SoundId = "rbxassetid://1765588386"
530
S.Volume = 10
531
S.Looped = false
532
S.Pitch = 1
533
S:Play()
534
wait(18.5)
535
talking = false
536
end end)
537
538
mouse.KeyDown:connect(function(key)
539
if key == "j" and transform == false and talking == false then
540
talking = true
541
S = Instance.new("Sound")
542
S.Parent = Character.Torso
543
S.SoundId = "rbxassetid://936161138"
544
S.Volume = 10
545
S.Looped = false
546
S.Pitch = 1
547
S:Play()
548
wait(24.73)
549
talking = false
550
end end)
551
552
mouse.KeyDown:connect(function(key)
553
if key == "k" and transform == false and talking == false then
554
talking = true
555
S = Instance.new("Sound")
556
S.Parent = Character.Torso
557
S.SoundId = "rbxassetid://936159847"
558
S.Volume = 10
559
S.Looped = false
560
S.Pitch = 1
561
S:Play()
562
wait(27.22)
563
talking = false
564
end end)
565
566
mouse.KeyDown:connect(function(key)
567
if key == "l" and transform == false and talking == false then
568
talking = true
569
S = Instance.new("Sound")
570
S.Parent = Character.Torso
571
S.SoundId = "rbxassetid://936162120"
572
S.Volume = 10
573
S.Looped = false
574
S.Pitch = 1
575
S:Play()
576
wait(25.3)
577
talking = false
578
end end)
579
580
mouse.KeyDown:connect(function(key)
581
if transform == true then
582
583
584
if key == "x" then
585
if coughing == false then
586
coughing = true
587
HoodMesh.MeshId = "http://www.roblox.com/asset/?id=13520910"
588
HoodMesh.TextureId = "http://www.roblox.com/asset/?id=1772096775"
589
q1.Enabled = true
590
ZZ = Instance.new("Sound")
591
ZZ.Parent = Character.Torso
592
ZZ.SoundId = "rbxassetid://244502094"
593
ZZ.Volume = 10
594
ZZ.Looped = true
595
ZZ.Pitch = 1
596
ZZ:Play()
597
ZZ2 = Instance.new("Sound")
598
ZZ2.Parent = Character.Torso
599
ZZ2.SoundId = "rbxassetid://300046017"
600
ZZ2.Volume = 2
601
ZZ2.Looped = true
602
ZZ2.Pitch = 1
603
ZZ2:Play()
604
elseif coughing == true then
605
coughing = false
606
HoodMesh.MeshId = "http://www.roblox.com/asset/?id=13520257"
607
HoodMesh.TextureId = "http://www.roblox.com/asset/?id=558227098"
608
ZZ:Destroy()
609
ZZ2:Destroy()
610
q1.Enabled = false
611
end
612
end
613
614
615
end
616
end)
617
618
mouse.KeyDown:connect(function(key)
619
if key == "m" and talking == false then
620
talking = true
621
S = Instance.new("Sound")
622
S.Parent = Character.Torso
623
S.SoundId = "rbxassetid://1766163151"
624
S.Volume = 10
625
S.Looped = false
626
S.Pitch = 1
627
S:Play()
628
wait(2.38)
629
talking = false
630
end end)
631
632
mouse.KeyDown:connect(function(key)
633
if key == "n" and talking == false then
634
talking = true
635
S = Instance.new("Sound")
636
S.Parent = Character.Torso
637
S.SoundId = "rbxassetid://1766162663"
638
S.Volume = 10
639
S.Looped = false
640
S.Pitch = 1
641
S:Play()
642
wait(4.13)
643
talking = false
644
end end)
645
646
function findCloseHumanoid(centre, distance)
647
  local tab = {}
648
  for _, child in pairs(game.Workspace:GetChildren()) do
649
    if child:findFirstChild("Humanoid") and child:findFirstChild("Humanoid") ~= Humanoid and child:findFirstChild("Torso") then
650
      local vtors = child.Torso
651
      local mag = math.abs((vtors.Position - centre).magnitude)
652
      if distance >= mag then
653
        table.insert(tab, child.Humanoid)
654
      end
655
    end
656
  end
657
  return tab
658
end
659
660
661
function onTouch(part)
662
663
local humanoid = part.Parent:findFirstChild("Humanoid")
664
local model = part.Parent
665
local torso = part.Parent:findFirstChild("Torso")
666
local head = part.Parent:findFirstChild("Head")
667
local leftleg = part.Parent:findFirstChild("Left Leg")
668
local rightleg = part.Parent:findFirstChild("Right Leg")
669
local leftarm = part.Parent:findFirstChild("Left Arm")
670
local rightarm = part.Parent:findFirstChild("Right Arm")
671
if humanoid.Health <= 0 then
672
return
673
end
674
if transform == false then
675
return
676
end
677
678
for i, v in pairs(findCloseHumanoid(Torso.Position, 10)) do
679
humanoid.Health = 0
680
head.BrickColor = BrickColor.new("Really black")
681
torso.BrickColor = BrickColor.new("Really black")
682
leftleg.BrickColor = BrickColor.new("Really black")
683
rightleg.BrickColor = BrickColor.new("Really black")
684
rightarm.BrickColor = BrickColor.new("Really black")
685
leftarm.BrickColor = BrickColor.new("Really black")
686
torso.Anchored = true
687
688
e=Instance.new('Part', model)
689
e.Size = Vector3.new(2.25,2.25,2.25)
690
e.Transparency = 1
691
e.Anchored = true
692
e.CFrame = CFrame.new(head.Position)
693
694
695
q=Instance.new('ParticleEmitter', e)
696
q.Rate = 500
697
q.Speed = NumberRange.new(7)
698
q.VelocitySpread = 40
699
q.Lifetime = NumberRange.new(0.1,1)
700
q.Texture = 'rbxassetid://164417280'
701
q.Acceleration = Vector3.new(0,-50,0)
702
q.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.1), NumberSequenceKeypoint.new(1, 0.01, 0.01)})
703
q.RotSpeed = NumberRange.new(-180, 180)
704
q.Rotation = NumberRange.new(-360, 360)
705
q.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
706
707
torso.Anchored = true
708
rightleg.Anchored = true
709
leftleg.Anchored = true
710
rightarm.Anchored = true
711
leftarm.Anchored = true
712
ded = Instance.new("Sound")
713
ded.Parent = torso
714
ded.SoundId = "rbxassetid://658228911"
715
ded.Volume = 3
716
ded.Looped = false
717
wait()
718
ded:Play()
719
end
720
721
end 
722
723
724
725
Character.Torso.Touched:connect(onTouch)
726
727
function rayCast(Pos, Dir, Max, Ignore) -- Origin Position, Direction, MaxDistance, IgnoreDescendants
728
	return game:GetService("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
729
end
730
731
function QuaternionFromCFrame(cf) 
732
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
733
	local trace = m00 + m11 + m22 
734
	if trace > 0 then 
735
		local s = math.sqrt(1 + trace) 
736
		local recip = 0.5/s 
737
		return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
738
	else 
739
		local i = 0 
740
		if m11 > m00 then
741
			i = 1
742
		end
743
		if m22 > (i == 0 and m00 or m11) then 
744
			i = 2 
745
		end 
746
		if i == 0 then 
747
			local s = math.sqrt(m00-m11-m22+1) 
748
			local recip = 0.5/s 
749
			return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
750
		elseif i == 1 then 
751
			local s = math.sqrt(m11-m22-m00+1) 
752
			local recip = 0.5/s 
753
			return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
754
		elseif i == 2 then 
755
			local s = math.sqrt(m22-m00-m11+1) 
756
			local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
757
		end 
758
	end 
759
end
760
 
761
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
762
	local xs, ys, zs = x + x, y + y, z + z 
763
	local wx, wy, wz = w*xs, w*ys, w*zs 
764
	local xx = x*xs 
765
	local xy = x*ys 
766
	local xz = x*zs 
767
	local yy = y*ys 
768
	local yz = y*zs 
769
	local zz = z*zs 
770
	return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) 
771
end
772
 
773
function QuaternionSlerp(a, b, t) 
774
	local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
775
	local startInterp, finishInterp; 
776
	if cosTheta >= 0.0001 then 
777
		if (1 - cosTheta) > 0.0001 then 
778
			local theta = math.acos(cosTheta) 
779
			local invSinTheta = 1/math.sin(theta) 
780
			startInterp = math.sin((1-t)*theta)*invSinTheta 
781
			finishInterp = math.sin(t*theta)*invSinTheta  
782
		else 
783
			startInterp = 1-t 
784
			finishInterp = t 
785
		end 
786
	else 
787
		if (1+cosTheta) > 0.0001 then 
788
			local theta = math.acos(-cosTheta) 
789
			local invSinTheta = 1/math.sin(theta) 
790
			startInterp = math.sin((t-1)*theta)*invSinTheta 
791
			finishInterp = math.sin(t*theta)*invSinTheta 
792
		else 
793
			startInterp = t-1 
794
			finishInterp = t 
795
		end 
796
	end 
797
	return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp 
798
end
799
800
function clerp(a, b, t) 
801
	local qa = {QuaternionFromCFrame(a)}
802
	local qb = {QuaternionFromCFrame(b)} 
803
	local ax, ay, az = a.x, a.y, a.z 
804
	local bx, by, bz = b.x, b.y, b.z
805
	local _t = 1-t
806
	return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
807
end
808
809
swait()
810
LA_Weld = newWeld(Torso, Left_Arm, -1.5, 0.5, 0)
811
Left_Arm.Weld.C1 = CFrame.new(0, 0.5, 0)
812
RA_Weld = newWeld(Torso, Right_Arm, 1.5, 0.5, 0)
813
Right_Arm.Weld.C1 = CFrame.new(0, 0.5, 0)
814
LL_Weld = newWeld(Torso, Left_Leg, -0.5, -1, 0)
815
Left_Leg.Weld.C1 = CFrame.new(0, 1, 0) -- Left_Leg.Weld.C1 = CFrame.new(0, 1, 0.15)
816
RL_Weld = newWeld(Torso, Right_Leg, 0.5, -1, 0)
817
Right_Leg.Weld.C1 = CFrame.new(0, 1, 0) -- Right_Leg.Weld.C1 = CFrame.new(0, 1, 0.15)
818
Torso_Weld = newWeld(rootPart, Torso, 0, -1, 0)
819
Torso.Weld.C1 = CFrame.new(0, -1, 0)
820
Head_Weld = newWeld(Torso, Head, 0, 1.5, 0)
821
822
for i,v in pairs(Character:GetChildren()) do
823
	if v:IsA('Accoutrement') or v:IsA('Shirt') or v:IsA('Pants') then
824
		v:Destroy()
825
	end
826
end
827
828
Head.face.Texture = "rbxassetid://141728515"
829
Head.face.Color3 = Color3.new(0,0,0)
830
831
shirt = Instance.new("Shirt",Character)
832
pants = Instance.new("Pants",Character)
833
wait()
834
shirt.ShirtTemplate = "rbxassetid://120471954"
835
pants.PantsTemplate = "rbxassetid://120471978"
836
837
Character['Body Colors'].HeadColor=BrickColor.new('Linen')
838
Character['Body Colors'].TorsoColor=BrickColor.new('Linen')
839
Character['Body Colors'].RightArmColor=BrickColor.new('Linen')
840
Character['Body Colors'].LeftArmColor=BrickColor.new('Linen')
841
Character['Body Colors'].RightLegColor=BrickColor.new('Linen')
842
Character['Body Colors'].LeftLegColor=BrickColor.new('Linen')
843
844
Humanoid.DisplayDistanceType='None'
845
846
sine = 0
847
change = 1
848
sprint=false
849
local punches={
850
	a=false,
851
	b=false,
852
	c=false
853
}
854
855
UIService.InputBegan:connect(function(Input,GUIProcessed)
856
	if not GUIProcessed and Input.UserInputType==Enum.UserInputType.MouseButton1 then
857
		if punches.a==false then
858
			punches.a=true wait(.4) punches.a=false
859
		else
860
			punches.a=true
861
			print('a ',punches.a)
862
			if punches.b==false then
863
				punches.b=true wait(.4) punches.b=false
864
			else
865
				punches.b=true
866
				print('b ',punches.b)
867
				if punches.c==false then
868
					punches.c=true wait(.4) punches.c=false
869
				else
870
					punches.c=true
871
					print('c ',punches.c)
872
					print('a ',punches.a,'b ',punches.b,'c ',punches.c)
873
				end
874
			end
875
		end
876
	elseif not GUIProcessed and Input.KeyCode==Enum.KeyCode.LeftShift and transform == true then
877
		sprint=true
878
	end
879
end)
880
881
UIService.InputEnded:connect(function(Input,GUIProcessed)
882
	if not GUIProcessed and Input.KeyCode==Enum.KeyCode.LeftShift then
883
		sprint=false
884
	end
885
end)
886
887
Humanoid.Died:connect(function()
888
q.Enabled = true
889
S = Instance.new("Sound")
890
S.Parent = Character.Torso
891
S.SoundId = "rbxassetid://891043624"
892
S.Volume = 10
893
S.Looped = false
894
S.Pitch = 1
895
S:Play()
896
S = Instance.new("Sound")
897
S.Parent = Character.Torso
898
S.SoundId = "rbxassetid://429400881"
899
S.Volume = 5
900
S.Looped = false
901
S.Pitch = 1
902
S:Play()
903
end)
904
905
game:GetService("RunService").Stepped:connect(function()
906
	Angle = (Angle % 100) + angleSpeed/10
907
	Axis = (Axis % 100) + axisSpeed/10
908
	walkingMagnitude = Vector3.new(rootPart.Velocity.X, 0, rootPart.Velocity.Z).magnitude
909
	jumpVel = Torso.Velocity.Y
910
	sine = change + sine
911
912
	if(Humanoid.Jump) and jumpVel > 1 then
913
		currentAnim = "Jumping"
914
	elseif walkingMagnitude < 2 then
915
		currentAnim = "Idling"
916
	elseif isSprinting == true then
917
		currentAnim = "Sprinting"
918
	elseif walkingMagnitude > 2 then
919
		currentAnim = "Walking"
920
	elseif isAttacking == true then
921
		currentAnim = "Attacking"
922
	end
923
924
	if currentAnim == "Jumping" and Animations == false then
925
		angleSpeed = 2
926
		axisSpeed = 2
927
		RA_Weld.C0		= clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
928
		LA_Weld.C0		= clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
929
		LL_Weld.C0		= clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
930
		RL_Weld.C0 		= clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
931
		Torso_Weld.C0 	= clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
932
		Head_Weld.C0 	= clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)	
933
	elseif currentAnim == "Idling" and Animations == false then
934
		if coughing == false and talking == false then
935
		angleSpeed = 1
936
		axisSpeed = 1
937
		change = 0.5
938
		RA_Weld.C0		= clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(0), -math.sin((rootPart.RotVelocity.X/10))/-2, math.sin((-rootPart.RotVelocity.Y/10))/-2), 0.15)
939
		LA_Weld.C0		= clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0), math.sin((rootPart.RotVelocity.X/10))/2, -math.sin((-rootPart.RotVelocity.Y/10))/2), 0.15)
940
		LL_Weld.C0		= clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), -math.sin((rootPart.RotVelocity.X/10))/-2, math.sin((-rootPart.RotVelocity.Y/10))/-2), 0.15)
941
		RL_Weld.C0 		= clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.sin((rootPart.RotVelocity.X/10))/2, -math.sin((-rootPart.RotVelocity.Y/10))/2), 0.15)
942
		Torso_Weld.C0 	= clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
943
		Head_Weld.C0 	= clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(0)), 0.15)
944
		elseif coughing == true then
945
		RA_Weld.C0		= clerp(RA_Weld.C0, c_new(1, 0.5, -0.1) * c_angles(math.rad(150), -math.sin((rootPart.RotVelocity.X/10))/-2, math.rad(-55)), 0.15)
946
		LA_Weld.C0		= clerp(LA_Weld.C0, c_new(-1, 0.5, -0.1) * c_angles(math.rad(150), math.sin((rootPart.RotVelocity.X/10))/2, math.rad(55)), 0.15)
947
		LL_Weld.C0		= clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), -math.sin((rootPart.RotVelocity.X/10))/-2, math.sin((-rootPart.RotVelocity.Y/10))/-2), 0.15)
948
		RL_Weld.C0 		= clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.sin((rootPart.RotVelocity.X/10))/2, -math.sin((-rootPart.RotVelocity.Y/10))/2), 0.15)
949
		Torso_Weld.C0 	= clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
950
		Head_Weld.C0 	= clerp(Head_Weld.C0, c_new(0, 1.4, 0.5) * c_angles(math.rad(45), math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(0)), 0.15)
951
		elseif talking == true and coughing == false then
952
		RA_Weld.C0		= clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(0), -math.sin((rootPart.RotVelocity.X/10))/-2, math.sin((-rootPart.RotVelocity.Y/10))/-2), 0.15)
953
		LA_Weld.C0		= clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0), math.sin((rootPart.RotVelocity.X/10))/2, -math.sin((-rootPart.RotVelocity.Y/10))/2), 0.15)
954
		LL_Weld.C0		= clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), -math.sin((rootPart.RotVelocity.X/10))/-2, math.sin((-rootPart.RotVelocity.Y/10))/-2), 0.15)
955
		RL_Weld.C0 		= clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.sin((rootPart.RotVelocity.X/10))/2, -math.sin((-rootPart.RotVelocity.Y/10))/2), 0.15)
956
		Torso_Weld.C0 	= clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
957
		Head_Weld.C0 	= clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(-math.sin(sine/1.5)/20, math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(0)), 0.15)
958
		end
959
	elseif currentAnim == "Walking" and Animations == false then
960
		if sprint==false then
961
		if coughing == false and talking == false then
962
			angleSpeed = 1
963
			axisSpeed = 1
964
			Humanoid.WalkSpeed = 10
965
			RA_Weld.C0		= clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(-math.sin(sine/4)/8, -math.sin((rootPart.RotVelocity.Y/10))/2,math.rad(5)), 0.15)
966
			LA_Weld.C0		= clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.sin(sine/4)/8, math.sin((rootPart.RotVelocity.Y/10))/2,math.rad(-5)), 0.15)
967
			LL_Weld.C0		= clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.sin(sine/4)/3, math.sin((rootPart.RotVelocity.Y/10))/2, -math.sin((rootPart.RotVelocity.Y/10))/2), 0.15)
968
			RL_Weld.C0 		= clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(-math.sin(sine/4)/3, -math.sin((rootPart.RotVelocity.Y/10))/2, math.sin((-rootPart.RotVelocity.Y/10))/2), 0.15)
969
			Torso_Weld.C0 	= clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
970
			Head_Weld.C0 	= clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(0)), 0.15)	
971
		elseif coughing == true then
972
			Humanoid.WalkSpeed = 3
973
			RA_Weld.C0		= clerp(RA_Weld.C0, c_new(1.2, 0.6, -0.1) * c_angles(math.rad(90), -math.sin((rootPart.RotVelocity.X/10))/-2, math.rad(-60)), 0.15)
974
			LA_Weld.C0		= clerp(LA_Weld.C0, c_new(-1.2, 0.6, -0.1) * c_angles(math.rad(90), math.sin((rootPart.RotVelocity.X/10))/2, math.rad(60)), 0.15)
975
			LL_Weld.C0		= clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.sin(sine/4)/3, math.sin((rootPart.RotVelocity.Y/10))/2, -math.sin((rootPart.RotVelocity.Y/10))/2), 0.05)
976
			RL_Weld.C0 		= clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(-math.sin(sine/4)/3, -math.sin((rootPart.RotVelocity.Y/10))/2, math.sin((-rootPart.RotVelocity.Y/10))/2), 0.05)
977
			Torso_Weld.C0 	= clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
978
			Head_Weld.C0 	= clerp(Head_Weld.C0, c_new(0, 1.4, -0.5) * c_angles(math.rad(-45), math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(0)), 0.15)
979
		elseif coughing == false and talking == true then
980
			Humanoid.WalkSpeed = 10
981
			RA_Weld.C0		= clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(-math.sin(sine/4)/8, -math.sin((rootPart.RotVelocity.Y/10))/2,math.rad(5)), 0.15)
982
			LA_Weld.C0		= clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.sin(sine/4)/8, math.sin((rootPart.RotVelocity.Y/10))/2,math.rad(-5)), 0.15)
983
			LL_Weld.C0		= clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.sin(sine/4)/3, math.sin((rootPart.RotVelocity.Y/10))/2, -math.sin((rootPart.RotVelocity.Y/10))/2), 0.15)
984
			RL_Weld.C0 		= clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(-math.sin(sine/4)/3, -math.sin((rootPart.RotVelocity.Y/10))/2, math.sin((-rootPart.RotVelocity.Y/10))/2), 0.15)
985
			Torso_Weld.C0 	= clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
986
			Head_Weld.C0 	= clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(-math.sin(sine/1.5)/20, math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(0)), 0.15)	
987
		end
988
		else
989
		if coughing == false and talking == false then
990
			angleSpeed = 10
991
			axisSpeed = 10
992
			Humanoid.WalkSpeed = 20
993
			RA_Weld.C0		= clerp(RA_Weld.C0, c_new(1.5, 0.55, -0.2) * c_angles(math.rad(90),-math.sin((rootPart.RotVelocity.X/80))/-2, math.sin((rootPart.RotVelocity.Y/2.5))/-2), 0.15)
994
			LA_Weld.C0		= clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0),math.rad(0),math.rad(0)), 0.15)
995
			LL_Weld.C0		= clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.sin(sine/4)/2, math.sin((rootPart.RotVelocity.Y/10))/1, -math.sin((rootPart.RotVelocity.Y/10))/1), 0.4)
996
			RL_Weld.C0 		= clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(-math.sin(sine/4)/2, -math.sin((rootPart.RotVelocity.Y/10))/1, math.sin((-rootPart.RotVelocity.Y/10))/1), 0.4)
997
			Torso_Weld.C0 	= clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
998
			Head_Weld.C0 	= clerp(Head_Weld.C0, c_new(-0.1, 1.5, 0) * c_angles(math.rad(0), math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(10)), 0.15)
999
		elseif coughing == true then
1000
			Humanoid.WalkSpeed = 8
1001
			RA_Weld.C0		= clerp(RA_Weld.C0, c_new(1.5, 0.55, 0) * c_angles(math.rad(-10), -math.sin((rootPart.RotVelocity.X/80))/2, math.sin((rootPart.RotVelocity.Y/2.5))/2), 0.15)
1002
			LA_Weld.C0		= clerp(LA_Weld.C0, c_new(-1, 0.9, -0.1) * c_angles(math.rad(100), math.rad(50), math.rad(50)), 0.15)
1003
			LL_Weld.C0		= clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.sin(sine/4)/2, math.sin((rootPart.RotVelocity.Y/10))/1, -math.sin((rootPart.RotVelocity.Y/10))/1), 0.1)
1004
			RL_Weld.C0 		= clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(-math.sin(sine/4)/2, -math.sin((rootPart.RotVelocity.Y/10))/1, math.sin((-rootPart.RotVelocity.Y/10))/1), 0.1)
1005
			Torso_Weld.C0 	= clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
1006
			Head_Weld.C0 	= clerp(Head_Weld.C0, c_new(-0.1, 1.5, -0.2) * c_angles(math.rad(-30), math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(10)), 0.15)
1007
		elseif coughing == false and talking == true then
1008
			Humanoid.WalkSpeed = 20
1009
			RA_Weld.C0		= clerp(RA_Weld.C0, c_new(1.5, 0.55, -0.2) * c_angles(math.rad(90),-math.sin((rootPart.RotVelocity.X/80))/-2, math.sin((rootPart.RotVelocity.Y/2.5))/-2), 0.15)
1010
			LA_Weld.C0		= clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0),math.rad(0),math.rad(0)), 0.15)
1011
			LL_Weld.C0		= clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.sin(sine/4)/2, math.sin((rootPart.RotVelocity.Y/10))/1, -math.sin((rootPart.RotVelocity.Y/10))/1), 0.4)
1012
			RL_Weld.C0 		= clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(-math.sin(sine/4)/2, -math.sin((rootPart.RotVelocity.Y/10))/1, math.sin((-rootPart.RotVelocity.Y/10))/1), 0.4)
1013
			Torso_Weld.C0 	= clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
1014
			Head_Weld.C0 	= clerp(Head_Weld.C0, c_new(-0.1, 1.5, 0) * c_angles(-math.sin(sine/1.5)/20, math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(10)), 0.15)
1015
		end
1016
		end
1017
	end
1018
end)