View difference between Paste ID: jsPpuL5L and 6zeeWDet
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").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
619
mouse.KeyDown:connect(function(key)
620
if key == "n" and talking == false then
621
talking = true
622
S = Instance.new("Sound")
623
S.Parent = Character.Torso
624
S.SoundId = "rbxassetid://1766162663"
625
S.Volume = 10
626
S.Looped = false
627
S.Pitch = 1
628
S:Play()
629
wait(4.13)
630
talking = false
631
end end)
632
633
mouse.KeyDown:connect(function(key)
634
if key == "m" and talking == false then
635
talking = true
636
S = Instance.new("Sound")
637
S.Parent = Character.Torso
638
S.SoundId = "rbxassetid://1766163151"
639
S.Volume = 10
640
S.Looped = false
641
S.Pitch = 1
642
S:Play()
643
wait(2.38)
644
talking = false
645
end end)
646
647
function findCloseHumanoid(centre, distance)
648
  local tab = {}
649
  for _, child in pairs(game.Workspace:GetChildren()) do
650
    if child:findFirstChild("Humanoid") and child:findFirstChild("Humanoid") ~= Humanoid and child:findFirstChild("Torso") then
651
      local vtors = child.Torso
652
      local mag = math.abs((vtors.Position - centre).magnitude)
653
      if distance >= mag then
654
        table.insert(tab, child.Humanoid)
655
      end
656
    end
657
  end
658
  return tab
659
end
660
661
662
function onTouch(part)
663
664
local humanoid = part.Parent:findFirstChild("Humanoid")
665
local model = part.Parent
666
local torso = part.Parent:findFirstChild("Torso")
667
local head = part.Parent:findFirstChild("Head")
668
local leftleg = part.Parent:findFirstChild("Left Leg")
669
local rightleg = part.Parent:findFirstChild("Right Leg")
670
local leftarm = part.Parent:findFirstChild("Left Arm")
671
local rightarm = part.Parent:findFirstChild("Right Arm")
672
return
673
end
674
if transform == true 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
722
723
Character.Torso.Touched:connect(onTouch)
724
725
function rayCast(Pos, Dir, Max, Ignore) -- Origin Position, Direction, MaxDistance, IgnoreDescendants
726
	return game:GetService("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
727
end
728
729
function QuaternionFromCFrame(cf) 
730
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
731
	local trace = m00 + m11 + m22 
732
	if trace > 0 then 
733
		local s = math.sqrt(1 + trace) 
734
		local recip = 0.5/s 
735
		return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
736
	else 
737
		local i = 0 
738
		if m11 > m00 then
739
			i = 1
740
		end
741
		if m22 > (i == 0 and m00 or m11) then 
742
			i = 2 
743
		end 
744
		if i == 0 then 
745
			local s = math.sqrt(m00-m11-m22+1) 
746
			local recip = 0.5/s 
747
			return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
748
		elseif i == 1 then 
749
			local s = math.sqrt(m11-m22-m00+1) 
750
			local recip = 0.5/s 
751
			return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
752
		elseif i == 2 then 
753
			local s = math.sqrt(m22-m00-m11+1) 
754
			local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
755
		end 
756
	end 
757
end
758
 
759
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
760
	local xs, ys, zs = x + x, y + y, z + z 
761
	local wx, wy, wz = w*xs, w*ys, w*zs 
762
	local xx = x*xs 
763
	local xy = x*ys 
764
	local xz = x*zs 
765
	local yy = y*ys 
766
	local yz = y*zs 
767
	local zz = z*zs 
768
	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)) 
769
end
770
 
771
function QuaternionSlerp(a, b, t) 
772
	local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
773
	local startInterp, finishInterp; 
774
	if cosTheta >= 0.0001 then 
775
		if (1 - cosTheta) > 0.0001 then 
776
			local theta = math.acos(cosTheta) 
777
			local invSinTheta = 1/math.sin(theta) 
778
			startInterp = math.sin((1-t)*theta)*invSinTheta 
779
			finishInterp = math.sin(t*theta)*invSinTheta  
780
		else 
781
			startInterp = 1-t 
782
			finishInterp = t 
783
		end 
784
	else 
785
		if (1+cosTheta) > 0.0001 then 
786
			local theta = math.acos(-cosTheta) 
787
			local invSinTheta = 1/math.sin(theta) 
788
			startInterp = math.sin((t-1)*theta)*invSinTheta 
789
			finishInterp = math.sin(t*theta)*invSinTheta 
790
		else 
791
			startInterp = t-1 
792
			finishInterp = t 
793
		end 
794
	end 
795
	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 
796
end
797
798
function clerp(a, b, t) 
799
	local qa = {QuaternionFromCFrame(a)}
800
	local qb = {QuaternionFromCFrame(b)} 
801
	local ax, ay, az = a.x, a.y, a.z 
802
	local bx, by, bz = b.x, b.y, b.z
803
	local _t = 1-t
804
	return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
805
end
806
807
swait()
808
LA_Weld = newWeld(Torso, Left_Arm, -1.5, 0.5, 0)
809
Left_Arm.Weld.C1 = CFrame.new(0, 0.5, 0)
810
RA_Weld = newWeld(Torso, Right_Arm, 1.5, 0.5, 0)
811
Right_Arm.Weld.C1 = CFrame.new(0, 0.5, 0)
812
LL_Weld = newWeld(Torso, Left_Leg, -0.5, -1, 0)
813
Left_Leg.Weld.C1 = CFrame.new(0, 1, 0) -- Left_Leg.Weld.C1 = CFrame.new(0, 1, 0.15)
814
RL_Weld = newWeld(Torso, Right_Leg, 0.5, -1, 0)
815
Right_Leg.Weld.C1 = CFrame.new(0, 1, 0) -- Right_Leg.Weld.C1 = CFrame.new(0, 1, 0.15)
816
Torso_Weld = newWeld(rootPart, Torso, 0, -1, 0)
817
Torso.Weld.C1 = CFrame.new(0, -1, 0)
818
Head_Weld = newWeld(Torso, Head, 0, 1.5, 0)
819
820
for i,v in pairs(Character:GetChildren()) do
821
	if v:IsA('Accoutrement') or v:IsA('Shirt') or v:IsA('Pants') then
822
		v:Destroy()
823
	end
824
end
825
826
Head.face.Texture = "rbxassetid://141728515"
827
Head.face.Color3 = Color3.new(0,0,0)
828
829
shirt = Instance.new("Shirt",Character)
830
pants = Instance.new("Pants",Character)
831
wait()
832
shirt.ShirtTemplate = "rbxassetid://120471954"
833
pants.PantsTemplate = "rbxassetid://120471978"
834
835
Character['Body Colors'].HeadColor=BrickColor.new('Linen')
836
Character['Body Colors'].TorsoColor=BrickColor.new('Linen')
837
Character['Body Colors'].RightArmColor=BrickColor.new('Linen')
838
Character['Body Colors'].LeftArmColor=BrickColor.new('Linen')
839
Character['Body Colors'].RightLegColor=BrickColor.new('Linen')
840
Character['Body Colors'].LeftLegColor=BrickColor.new('Linen')
841
842
Humanoid.DisplayDistanceType='None'
843
844
sine = 0
845
change = 1
846
sprint=false
847
local punches={
848
	a=false,
849
	b=false,
850
	c=false
851
}
852
853
UIService.InputBegan:connect(function(Input,GUIProcessed)
854
	if not GUIProcessed and Input.UserInputType==Enum.UserInputType.MouseButton1 then
855
		if punches.a==false then
856
			punches.a=true wait(.4) punches.a=false
857
		else
858
			punches.a=true
859
			print('a ',punches.a)
860
			if punches.b==false then
861
				punches.b=true wait(.4) punches.b=false
862
			else
863
				punches.b=true
864
				print('b ',punches.b)
865
				if punches.c==false then
866
					punches.c=true wait(.4) punches.c=false
867
				else
868
					punches.c=true
869
					print('c ',punches.c)
870
					print('a ',punches.a,'b ',punches.b,'c ',punches.c)
871
				end
872
			end
873
		end
874
	elseif not GUIProcessed and Input.KeyCode==Enum.KeyCode.LeftShift and transform == true then
875
		sprint=true
876
	end
877
end)
878
879
UIService.InputEnded:connect(function(Input,GUIProcessed)
880
	if not GUIProcessed and Input.KeyCode==Enum.KeyCode.LeftShift then
881
		sprint=false
882
	end
883
end)
884
885
Humanoid.Died:connect(function()
886
q.Enabled = true
887
S = Instance.new("Sound")
888
S.Parent = Character.Torso
889
S.SoundId = "rbxassetid://891043624"
890
S.Volume = 10
891
S.Looped = false
892
S.Pitch = 1
893
S:Play()
894
S = Instance.new("Sound")
895
S.Parent = Character.Torso
896
S.SoundId = "rbxassetid://429400881"
897
S.Volume = 5
898
S.Looped = false
899
S.Pitch = 1
900
S:Play()
901
end)
902
903
game:GetService("RunService").Stepped:connect(function()
904
	Angle = (Angle % 100) + angleSpeed/10
905
	Axis = (Axis % 100) + axisSpeed/10
906
	walkingMagnitude = Vector3.new(rootPart.Velocity.X, 0, rootPart.Velocity.Z).magnitude
907
	jumpVel = Torso.Velocity.Y
908
	sine = change + sine
909
910
	if(Humanoid.Jump) and jumpVel > 1 then
911
		currentAnim = "Jumping"
912
	elseif walkingMagnitude < 2 then
913
		currentAnim = "Idling"
914
	elseif isSprinting == true then
915
		currentAnim = "Sprinting"
916
	elseif walkingMagnitude > 2 then
917
		currentAnim = "Walking"
918
	elseif isAttacking == true then
919
		currentAnim = "Attacking"
920
	end
921
922
	if currentAnim == "Jumping" and Animations == false then
923
		angleSpeed = 2
924
		axisSpeed = 2
925
		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)
926
		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)
927
		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)
928
		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)
929
		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)
930
		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)	
931
	elseif currentAnim == "Idling" and Animations == false then
932
		if coughing == false and talking == false then
933
		angleSpeed = 1
934
		axisSpeed = 1
935
		change = 0.5
936
		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)
937
		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)
938
		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)
939
		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)
940
		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)
941
		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)
942
		elseif coughing == true then
943
		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)
944
		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)
945
		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)
946
		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)
947
		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)
948
		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)
949
		elseif talking == true and coughing == false then
950
		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)
951
		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)
952
		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)
953
		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)
954
		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)
955
		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)
956
		end
957
	elseif currentAnim == "Walking" and Animations == false then
958
		if sprint==false then
959
		if coughing == false and talking == false then
960
			angleSpeed = 1
961
			axisSpeed = 1
962
			Humanoid.WalkSpeed = 10
963
			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)
964
			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)
965
			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)
966
			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)
967
			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)
968
			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)	
969
		elseif coughing == true then
970
			Humanoid.WalkSpeed = 3
971
			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)
972
			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)
973
			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)
974
			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)
975
			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)
976
			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)
977
		elseif coughing == false and talking == true then
978
			Humanoid.WalkSpeed = 10
979
			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)
980
			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)
981
			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)
982
			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)
983
			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)
984
			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)	
985
		end
986
		else
987
		if coughing == false and talking == false then
988
			angleSpeed = 10
989
			axisSpeed = 10
990
			Humanoid.WalkSpeed = 20
991
			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)
992
			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)
993
			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)
994
			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)
995
			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)
996
			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)
997
		elseif coughing == true then
998
			Humanoid.WalkSpeed = 8
999
			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)
1000
			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)
1001
			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)
1002
			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)
1003
			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)
1004
			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)
1005
		elseif coughing == false and talking == true then
1006
			Humanoid.WalkSpeed = 20
1007
			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)
1008
			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)
1009
			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)
1010
			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)
1011
			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)
1012
			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)
1013
		end
1014
		end
1015
	end
1016
end)