View difference between Paste ID: f0AwQZNF and g4uapNWY
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
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 <= 100 then
671+
672
end
673
if transform == true then
674-
if transform == false then
674+
675
end
676
677
for i, v in pairs(findCloseHumanoid(Torso.Position, 10)) do
678
humanoid.Health = 0
679
head.BrickColor = BrickColor.new("Really black")
680
torso.BrickColor = BrickColor.new("Really black")
681
leftleg.BrickColor = BrickColor.new("Really black")
682
rightleg.BrickColor = BrickColor.new("Really black")
683
rightarm.BrickColor = BrickColor.new("Really black")
684
leftarm.BrickColor = BrickColor.new("Really black")
685
torso.Anchored = true
686
687
e=Instance.new('Part', model)
688
e.Size = Vector3.new(2.25,2.25,2.25)
689
e.Transparency = 1
690
e.Anchored = true
691
e.CFrame = CFrame.new(head.Position)
692
693
694
q=Instance.new('ParticleEmitter', e)
695
q.Rate = 500
696
q.Speed = NumberRange.new(7)
697
q.VelocitySpread = 40
698
q.Lifetime = NumberRange.new(0.1,1)
699
q.Texture = 'rbxassetid://164417280'
700
q.Acceleration = Vector3.new(0,-50,0)
701
q.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.1), NumberSequenceKeypoint.new(1, 0.01, 0.01)})
702
q.RotSpeed = NumberRange.new(-180, 180)
703
q.Rotation = NumberRange.new(-360, 360)
704
q.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
705
706
torso.Anchored = true
707
rightleg.Anchored = true
708
leftleg.Anchored = true
709
rightarm.Anchored = true
710
leftarm.Anchored = true
711
ded = Instance.new("Sound")
712
ded.Parent = torso
713
ded.SoundId = "rbxassetid://658228911"
714
ded.Volume = 3
715
ded.Looped = false
716
wait()
717
ded:Play()
718
end
719
720
end 
721
722
723
724
Character.Torso.Touched:connect(onTouch)
725
726
function rayCast(Pos, Dir, Max, Ignore) -- Origin Position, Direction, MaxDistance, IgnoreDescendants
727
	return game:GetService("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
728
end
729
730
function QuaternionFromCFrame(cf) 
731
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
732
	local trace = m00 + m11 + m22 
733
	if trace > 0 then 
734
		local s = math.sqrt(1 + trace) 
735
		local recip = 0.5/s 
736
		return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
737
	else 
738
		local i = 0 
739
		if m11 > m00 then
740
			i = 1
741
		end
742
		if m22 > (i == 0 and m00 or m11) then 
743
			i = 2 
744
		end 
745
		if i == 0 then 
746
			local s = math.sqrt(m00-m11-m22+1) 
747
			local recip = 0.5/s 
748
			return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
749
		elseif i == 1 then 
750
			local s = math.sqrt(m11-m22-m00+1) 
751
			local recip = 0.5/s 
752
			return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
753
		elseif i == 2 then 
754
			local s = math.sqrt(m22-m00-m11+1) 
755
			local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
756
		end 
757
	end 
758
end
759
 
760
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
761
	local xs, ys, zs = x + x, y + y, z + z 
762
	local wx, wy, wz = w*xs, w*ys, w*zs 
763
	local xx = x*xs 
764
	local xy = x*ys 
765
	local xz = x*zs 
766
	local yy = y*ys 
767
	local yz = y*zs 
768
	local zz = z*zs 
769
	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)) 
770
end
771
 
772
function QuaternionSlerp(a, b, t) 
773
	local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
774
	local startInterp, finishInterp; 
775
	if cosTheta >= 0.0001 then 
776
		if (1 - cosTheta) > 0.0001 then 
777
			local theta = math.acos(cosTheta) 
778
			local invSinTheta = 1/math.sin(theta) 
779
			startInterp = math.sin((1-t)*theta)*invSinTheta 
780
			finishInterp = math.sin(t*theta)*invSinTheta  
781
		else 
782
			startInterp = 1-t 
783
			finishInterp = t 
784
		end 
785
	else 
786
		if (1+cosTheta) > 0.0001 then 
787
			local theta = math.acos(-cosTheta) 
788
			local invSinTheta = 1/math.sin(theta) 
789
			startInterp = math.sin((t-1)*theta)*invSinTheta 
790
			finishInterp = math.sin(t*theta)*invSinTheta 
791
		else 
792
			startInterp = t-1 
793
			finishInterp = t 
794
		end 
795
	end 
796
	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 
797
end
798
799
function clerp(a, b, t) 
800
	local qa = {QuaternionFromCFrame(a)}
801
	local qb = {QuaternionFromCFrame(b)} 
802
	local ax, ay, az = a.x, a.y, a.z 
803
	local bx, by, bz = b.x, b.y, b.z
804
	local _t = 1-t
805
	return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
806
end
807
808
swait()
809
LA_Weld = newWeld(Torso, Left_Arm, -1.5, 0.5, 0)
810
Left_Arm.Weld.C1 = CFrame.new(0, 0.5, 0)
811
RA_Weld = newWeld(Torso, Right_Arm, 1.5, 0.5, 0)
812
Right_Arm.Weld.C1 = CFrame.new(0, 0.5, 0)
813
LL_Weld = newWeld(Torso, Left_Leg, -0.5, -1, 0)
814
Left_Leg.Weld.C1 = CFrame.new(0, 1, 0) -- Left_Leg.Weld.C1 = CFrame.new(0, 1, 0.15)
815
RL_Weld = newWeld(Torso, Right_Leg, 0.5, -1, 0)
816
Right_Leg.Weld.C1 = CFrame.new(0, 1, 0) -- Right_Leg.Weld.C1 = CFrame.new(0, 1, 0.15)
817
Torso_Weld = newWeld(rootPart, Torso, 0, -1, 0)
818
Torso.Weld.C1 = CFrame.new(0, -1, 0)
819
Head_Weld = newWeld(Torso, Head, 0, 1.5, 0)
820
821
for i,v in pairs(Character:GetChildren()) do
822
	if v:IsA('Accoutrement') or v:IsA('Shirt') or v:IsA('Pants') then
823
		v:Destroy()
824
	end
825
end
826
827
Head.face.Texture = "rbxassetid://141728515"
828
Head.face.Color3 = Color3.new(0,0,0)
829
830
shirt = Instance.new("Shirt",Character)
831
pants = Instance.new("Pants",Character)
832
wait()
833
shirt.ShirtTemplate = "rbxassetid://120471954"
834
pants.PantsTemplate = "rbxassetid://120471978"
835
836
Character['Body Colors'].HeadColor=BrickColor.new('Linen')
837
Character['Body Colors'].TorsoColor=BrickColor.new('Linen')
838
Character['Body Colors'].RightArmColor=BrickColor.new('Linen')
839
Character['Body Colors'].LeftArmColor=BrickColor.new('Linen')
840
Character['Body Colors'].RightLegColor=BrickColor.new('Linen')
841
Character['Body Colors'].LeftLegColor=BrickColor.new('Linen')
842
843
Humanoid.DisplayDistanceType='None'
844
845
sine = 0
846
change = 1
847
sprint=false
848
local punches={
849
	a=false,
850
	b=false,
851
	c=false
852
}
853
854
UIService.InputBegan:connect(function(Input,GUIProcessed)
855
	if not GUIProcessed and Input.UserInputType==Enum.UserInputType.MouseButton1 then
856
		if punches.a==false then
857
			punches.a=true wait(.4) punches.a=false
858
		else
859
			punches.a=true
860
			print('a ',punches.a)
861
			if punches.b==false then
862
				punches.b=true wait(.4) punches.b=false
863
			else
864
				punches.b=true
865
				print('b ',punches.b)
866
				if punches.c==false then
867
					punches.c=true wait(.4) punches.c=false
868
				else
869
					punches.c=true
870
					print('c ',punches.c)
871
					print('a ',punches.a,'b ',punches.b,'c ',punches.c)
872
				end
873
			end
874
		end
875
	elseif not GUIProcessed and Input.KeyCode==Enum.KeyCode.LeftShift and transform == true then
876
		sprint=true
877
	end
878
end)
879
880
UIService.InputEnded:connect(function(Input,GUIProcessed)
881
	if not GUIProcessed and Input.KeyCode==Enum.KeyCode.LeftShift then
882
		sprint=false
883
	end
884
end)
885
886
Humanoid.Died:connect(function()
887
q.Enabled = true
888
S = Instance.new("Sound")
889
S.Parent = Character.Torso
890
S.SoundId = "rbxassetid://891043624"
891
S.Volume = 10
892
S.Looped = false
893
S.Pitch = 1
894
S:Play()
895
S = Instance.new("Sound")
896
S.Parent = Character.Torso
897
S.SoundId = "rbxassetid://429400881"
898
S.Volume = 5
899
S.Looped = false
900
S.Pitch = 1
901
S:Play()
902
end)
903
904
game:GetService("RunService").Stepped:connect(function()
905
	Angle = (Angle % 100) + angleSpeed/10
906
	Axis = (Axis % 100) + axisSpeed/10
907
	walkingMagnitude = Vector3.new(rootPart.Velocity.X, 0, rootPart.Velocity.Z).magnitude
908
	jumpVel = Torso.Velocity.Y
909
	sine = change + sine
910
911
	if(Humanoid.Jump) and jumpVel > 1 then
912
		currentAnim = "Jumping"
913
	elseif walkingMagnitude < 2 then
914
		currentAnim = "Idling"
915
	elseif isSprinting == true then
916
		currentAnim = "Sprinting"
917
	elseif walkingMagnitude > 2 then
918
		currentAnim = "Walking"
919
	elseif isAttacking == true then
920
		currentAnim = "Attacking"
921
	end
922
923
	if currentAnim == "Jumping" and Animations == false then
924
		angleSpeed = 2
925
		axisSpeed = 2
926
		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)
927
		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)
928
		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)
929
		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)
930
		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)
931
		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)	
932
	elseif currentAnim == "Idling" and Animations == false then
933
		if coughing == false and talking == false then
934
		angleSpeed = 1
935
		axisSpeed = 1
936
		change = 0.5
937
		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)
938
		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)
939
		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)
940
		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)
941
		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)
942
		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)
943
		elseif coughing == true then
944
		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)
945
		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)
946
		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)
947
		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)
948
		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)
949
		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)
950
		elseif talking == true and coughing == false then
951
		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)
952
		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)
953
		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)
954
		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)
955
		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)
956
		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)
957
		end
958
	elseif currentAnim == "Walking" and Animations == false then
959
		if sprint==false then
960
		if coughing == false and talking == false then
961
			angleSpeed = 1
962
			axisSpeed = 1
963
			Humanoid.WalkSpeed = 10
964
			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)
965
			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)
966
			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)
967
			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)
968
			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)
969
			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)	
970
		elseif coughing == true then
971
			Humanoid.WalkSpeed = 3
972
			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)
973
			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)
974
			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)
975
			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)
976
			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)
977
			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)
978
		elseif coughing == false and talking == true then
979
			Humanoid.WalkSpeed = 10
980
			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)
981
			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)
982
			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)
983
			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)
984
			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)
985
			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)	
986
		end
987
		else
988
		if coughing == false and talking == false then
989
			angleSpeed = 10
990
			axisSpeed = 10
991
			Humanoid.WalkSpeed = 20
992
			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)
993
			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)
994
			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)
995
			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)
996
			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)
997
			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)
998
		elseif coughing == true then
999
			Humanoid.WalkSpeed = 8
1000
			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)
1001
			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)
1002
			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)
1003
			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)
1004
			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)
1005
			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)
1006
		elseif coughing == false and talking == true then
1007
			Humanoid.WalkSpeed = 20
1008
			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)
1009
			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)
1010
			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)
1011
			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)
1012
			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)
1013
			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)
1014
		end
1015
		end
1016
	end
1017
end)