View difference between Paste ID: FMg4a04K and z65yJezt
SHOW: | | - or go back to the newest paste.
1
2
local p = game.Players.LocalPlayer
3
local char = p.Character
4
local mouse = p:GetMouse()
5
local larm = char["Left Arm"]
6
local rarm = char["Right Arm"]
7
local lleg = char["Left Leg"]
8
local rleg = char["Right Leg"]
9
local hed = char.Head
10
local torso = char.Torso
11
local hum = char.Humanoid
12
local cam = game.Workspace.CurrentCamera
13
local root = char.HumanoidRootPart
14
local deb = false
15
local shot = 0
16
local debris=game:service"Debris"
17
local l = game:GetService("Lighting")
18
local rs = game:GetService("RunService").RenderStepped
19
ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
20
math.randomseed(os.time())
21
----------------------------------------------------
22
Debounces = {
23
CanAttack = true;
24
NoIdl = false;
25
Slashing = false;
26
Slashed = false;
27
RPunch = false;
28
RPunched = false;
29
LPunch = false;
30
LPunched = false;
31
}
32
local Touche = {char.Name, }
33
----------------------------------------------------
34
hed.face.Texture = "rbxassetid://227969918"
35
char["Body Colors"].HeadColor = BrickColor.new("Pastel brown")
36
char["Body Colors"].TorsoColor = BrickColor.new("Pastel brown")
37
char["Body Colors"].LeftArmColor = BrickColor.new("Pastel brown")
38
char["Body Colors"].RightArmColor = BrickColor.new("Pastel brown")
39
char["Body Colors"].LeftLegColor = BrickColor.new("Pastel brown")
40
char["Body Colors"].RightLegColor = BrickColor.new("Pastel brown")
41
----------------------------------------------------
42
ypcall(function()
43
char.Shirt:Destroy()
44
char.Pants:Destroy()
45
shirt = Instance.new("Shirt", char)
46
shirt.Name = "Shirt"
47
pants = Instance.new("Pants", char)
48
pants.Name = "Pants"
49
char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=0"
50
char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=0"
51
end)
52
----------------------------------------------------
53
--------------nico
54
local fartids={251309043,251309043}
55
local timer=false
56
local debris=game:GetService("Debris")
57
local char=game.Players.LocalPlayer.Character
58
for i = 1,3,2 do
59
	local asdf=Instance.new("Part",char)
60
	asdf.Shape="Ball"
61
	asdf.Locked=true
62
	asdf.FormFactor="Custom"
63
	asdf.Material="SmoothPlastic"
64
	asdf.BrickColor=BrickColor.new(1030)
65
	asdf.Size=Vector3.new(.4,.4,.4)
66
	local weld=Instance.new("Weld",char)
67
	weld.Part0=char.Torso
68
	weld.Part1=asdf
69
	weld.C0=CFrame.new((i-2)/2.5,-.9,.4)
70
end
71
function crap()
72
	if timer==false then
73
		timer=true
74
		local char=game.Players.LocalPlayer.Character
75-
		local crap=Instance.new("Part",Workspace)
75+
		local crap=Instance.new("Part",workspace)
76
		crap.FormFactor="Custom"
77
		crap.BrickColor=BrickColor.new(25)
78
		crap.Material="Grass"
79
		crap.Size=Vector3.new(1.2,0.4,0.4)
80
		local snd=Instance.new("Sound",char)
81
		snd.SoundId="rbxassetid://" .. tostring(fartids[math.random(1,#fartids)])
82
		snd.Volume=2
83
		snd:Play()
84
		debris:AddItem(snd,snd.TimeLength)
85
		local smk=Instance.new("Smoke",crap)
86
		smk.Color=BrickColor.new(25).Color
87
		debris:AddItem(smk,2.5)
88
		for i = 0.15,1.3,.02 do
89
			local weld=Instance.new("Weld",crap)
90
			weld.Part0=char.Torso
91
			weld.Part1=crap
92
			weld.C0=CFrame.new(0,-.9,i)*CFrame.Angles(0,math.rad(90),0)
93
			wait()
94
		end
95
		local crapCFrame=crap.CFrame
96
		crap:Destroy()
97
98
		for i = 0,1.2,0.4 do
99-
			local newCrap=Instance.new("Part",Workspace)
99+
			local newCrap=Instance.new("Part",workspace)
100
			newCrap.FormFactor="Custom"
101
			newCrap.BrickColor=BrickColor.new(25)
102
			newCrap.Material="Grass"
103
			newCrap.Size=Vector3.new(.4,.4,.4)
104
			newCrap.CFrame=crapCFrame*CFrame.new(i-1,0,0)
105
		end
106
		timer=false
107
	end
108
end
109
110
function Spamcrap()
111
	for i = 0,500000,.1 do
112
		wait(.1)
113
			local char=game.Players.LocalPlayer.Character
114
			local crap=Instance.new("Part",workspace)
115
			crap.FormFactor="Custom"
116
			crap.BrickColor=BrickColor.new(25)
117
			crap.Material="Grass"
118
			crap.Size=Vector3.new(1.2,0.4,0.4)
119
			local snd=Instance.new("Sound",char)
120
			snd.SoundId="rbxassetid://" .. tostring(fartids[math.random(1,#fartids)])
121
			snd.Volume=2
122
			snd:Play()
123
			debris:AddItem(snd,snd.TimeLength)
124
			local smk=Instance.new("Smoke",crap)
125
			smk.Color=BrickColor.new(25).Color
126
			debris:AddItem(smk,2.5)
127
			for i = 0.15,1.3,.02 do
128
				local weld=Instance.new("Weld",crap)
129
				weld.Part0=char.Torso
130
				weld.Part1=crap
131
				weld.C0=CFrame.new(0,-.9,i)*CFrame.Angles(0,math.rad(90),0)
132
				wait()
133
			end
134
			local crapCFrame=crap.CFrame
135
			crap:Destroy()
136
	
137
			for i = 0,1.2,0.4 do
138
				local newCrap=Instance.new("Part",workspace)
139
				newCrap.FormFactor="Custom"
140
				newCrap.BrickColor=BrickColor.new(25)
141
				newCrap.Material="Grass"
142
				newCrap.Size=Vector3.new(.4,.4,.4)
143
				newCrap.CFrame=crapCFrame*CFrame.new(i-1,0,0)
144
		end	
145
	end
146
end
147
game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key)
148
	if string.lower(key)=="x" then
149
		crap()
150
	end
151
end)
152
153
game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key)
154
	if string.lower(key)=="z" then
155
		Spamcrap()
156
	end
157
end)
158
159
do --CFrame lerp
160
        local function QuaternionFromCFrame(cf)
161
                local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
162
                local trace = m00 + m11 + m22
163
                if trace > 0 then
164
                        local s = math.sqrt(1 + trace)
165
                        local recip = 0.5/s
166
                        return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
167
                else
168
                        local i = 0
169
                        if m11 > m00 then
170
                                i = 1
171
                        end
172
                        if m22 > (i == 0 and m00 or m11) then
173
                                i = 2
174
                        end
175
                        if i == 0 then
176
                                local s = math.sqrt(m00-m11-m22+1)
177
                                local recip = 0.5/s
178
                                return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
179
                        elseif i == 1 then
180
                                local s = math.sqrt(m11-m22-m00+1)
181
                                local recip = 0.5/s
182
                                return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
183
                        elseif i == 2 then
184
                                local s = math.sqrt(m22-m00-m11+1)
185
                                local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
186
                        end
187
                end
188
        end
189
        local function QuaternionToCFrame(px, py, pz, x, y, z, w)
190
                local xs, ys, zs = x + x, y + y, z + z
191
                local wx, wy, wz = w*xs, w*ys, w*zs
192
                local xx = x*xs
193
                local xy = x*ys
194
                local xz = x*zs
195
                local yy = y*ys
196
                local yz = y*zs
197
                local zz = z*zs
198
                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))
199
                end  
200
        local function QuaternionSlerp(a, b, t)
201
                local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
202
                local startInterp, finishInterp;
203
                if cosTheta >= 0.0001 then
204
                        if (1 - cosTheta) > 0.0001 then
205
                                local theta = math.acos(cosTheta)
206
                                local invSinTheta = 1/math.sin(theta)
207
                                startInterp = math.sin((1-t)*theta)*invSinTheta
208
                                finishInterp = math.sin(t*theta)*invSinTheta  
209
                        else
210
                                startInterp = 1-t
211
                                finishInterp = t
212
                        end
213
                else
214
                        if (1+cosTheta) > 0.0001 then
215
                                local theta = math.acos(-cosTheta)
216
                                local invSinTheta = 1/math.sin(theta)
217
                                startInterp = math.sin((t-1)*theta)*invSinTheta
218
                                finishInterp = math.sin(t*theta)*invSinTheta
219
                        else
220
                                startInterp = t-1
221
                                finishInterp = t
222
                        end
223
                end
224
                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
225
        end  
226
        function clerp(a,b,t)
227
                local qa = {QuaternionFromCFrame(a)}
228
                local qb = {QuaternionFromCFrame(b)}
229
                local ax, ay, az = a.x, a.y, a.z
230
                local bx, by, bz = b.x, b.y, b.z  
231
                local _t = 1-t
232
                return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
233
        end
234
 
235
end
236
do --the animating
237
plr = game:service'Players'.LocalPlayer
238
char = plr.Character
239
mouse = plr:GetMouse()
240
humanoid = char:findFirstChild("Humanoid")
241
torso = char:findFirstChild("Torso")
242
head = char.Head
243
ra = char:findFirstChild("Right Arm")
244
la = char:findFirstChild("Left Arm")
245
rl = char:findFirstChild("Right Leg")
246
ll = char:findFirstChild("Left Leg")
247
rs = torso:findFirstChild("Right Shoulder")
248
ls = torso:findFirstChild("Left Shoulder")
249
rh = torso:findFirstChild("Right Hip")
250
lh = torso:findFirstChild("Left Hip")
251
neck = torso:findFirstChild("Neck")
252
rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
253
anim = char:findFirstChild("Animate")
254
rootpart = char:findFirstChild("HumanoidRootPart")
255
camera = workspace.CurrentCamera
256
if anim then
257
anim:Destroy()
258
end
259
 
260
 
261
local rm = Instance.new("Motor", torso)
262
rm.C0 = CFrame.new(1.5, 0.5, 0)
263
rm.C1 = CFrame.new(0, 0.5, 0)
264
rm.Part0 = torso
265
rm.Part1 = ra
266
local lm = Instance.new("Motor", torso)
267
lm.C0 = CFrame.new(-1.5, 0.5, 0)
268
lm.C1 = CFrame.new(0, 0.5, 0)
269
lm.Part0 = torso
270
lm.Part1 = la
271
 
272
local rlegm = Instance.new("Motor", torso)
273
rlegm.C0 = CFrame.new(0.5, -1, 0)
274
rlegm.C1 = CFrame.new(0, 1, 0)
275
rlegm.Part0 = torso
276
rlegm.Part1 = rl
277
local llegm = Instance.new("Motor", torso)
278
llegm.C0 = CFrame.new(-0.5, -1, 0)
279
llegm.C1 = CFrame.new(0, 1, 0)
280
llegm.Part0 = torso
281
llegm.Part1 = ll
282
 
283
neck.C0 = CFrame.new(0, 1, 0)
284
neck.C1 = CFrame.new(0, -0.5, 0)
285
 
286
 
287
rj.C0 = CFrame.new()
288
rj.C1 = CFrame.new()
289
 
290
 
291
local sound = Instance.new("Sound", head)
292
sound.SoundId = "http://www.roblox.com/asset/?id=130797915"
293
sound.Volume = 0.8
294
sound.Looped = true
295
 
296
local speed = 0.3
297
local angle = 0
298
local sitting = false
299
local humanwalk = false
300
local anglespeed = 1
301
rsc0 = rm.C0
302
lsc0 = lm.C0
303
llc0 = llegm.C0
304
rlc0 = rlegm.C0
305
neckc0 = neck.C0
306
 
307
local controllerService = game:GetService("ControllerService")
308
local controller = controllerService:GetChildren()[1]
309
 
310
controller.Parent = nil
311
 
312
while wait() do
313
    angle = (angle % 100) + anglespeed/10
314
        mvmnt = math.pi * math.sin(math.pi*2/100*(angle*10))
315
        local rscf = rsc0
316
        local lscf = lsc0
317
        local rlcf = rlc0
318
        local llcf = llc0
319
        local rjcf = CFrame.new()
320
        local ncf = neckc0
321
        local rayz = Ray.new(rootpart.Position, Vector3.new(0, -6, 0))
322
            local hitz, enz = workspace:findPartOnRay(rayz, char)
323
            if not hitz then
324
        if sound.IsPlaying then
325
            sound:stop()
326
        end
327
       
328
        if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 then
329
       
330
        ncf = neckc0 * CFrame.Angles(math.pi/5, 0, 0)
331
        rjcf = CFrame.new() * CFrame.Angles(-math.pi/5, math.sin(angle)*0.05, 0)
332
        rscf = rsc0 * CFrame.Angles(math.pi/1.7+math.sin(angle)*0.1, 0, 0)
333
        lscf = lsc0 * CFrame.Angles(math.pi/1.7+math.sin(-angle)*0.1, 0, 0)
334
        rlcf = rlc0 * CFrame.Angles(-math.pi/10+math.sin(-angle)*0.3, 0, 0)
335
        llcf = llc0 * CFrame.Angles(-math.pi/10+math.sin(angle)*0.3, 0, 0)
336
       
337
        else
338
       
339
        ncf = neckc0 * CFrame.Angles(math.pi/14, 0, 0)
340
        rjcf = CFrame.new() * CFrame.Angles(-math.pi/18, math.sin(angle)*0.05, 0)
341
        rscf = rsc0 * CFrame.Angles(-math.pi/10+math.sin(angle)*0.2, 0, 0)
342
        lscf = lsc0 * CFrame.Angles(-math.pi/10+math.sin(-angle)*0.2, 0, 0)
343
        rlcf = rlc0 * CFrame.new(0, 0.7, -0.5) CFrame.Angles(-math.pi/14, 0, 0)
344
        llcf = llc0 * CFrame.Angles(-math.pi/20, 0, 0)
345
       
346
        end
347
    elseif humanoid.Sit then
348
        if sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=150794704" then
349
        anglespeed = 6
350
        ncf = neckc0 * CFrame.Angles(math.pi/5-math.sin(angle)*0.1, 0, 0)
351
        rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, 0, 0)
352
        rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
353
        lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
354
        rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
355
        llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
356
        elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=135570347" then
357
        anglespeed = 4
358
        ncf = neckc0 * CFrame.Angles(math.pi/5-math.abs(math.sin(angle))*0.3, 0, 0)
359
        rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, 0, 0)
360
        rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
361
        lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
362
        rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
363
        llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
364
        elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=149713968" then
365
        anglespeed = 2
366
        ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08)
367
        rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0)
368
        rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
369
        lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
370
        rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
371
        llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
372
        else
373
        anglespeed = 1/2
374
        ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08)
375
        rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0)
376
        rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
377
        lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
378
        rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
379
        llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
380
        end
381
    elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then
382
        if sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=130797915" then
383
        anglespeed = 6
384
            ncf = neckc0 * CFrame.Angles(math.pi/10-math.sin(angle)*0.07, 0, 0)
385
            rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi/10, math.sin(angle)*0.001, 0)
386
            rscf = rsc0 * CFrame.Angles(math.pi/1+math.sin(angle)*0.5, 0, 0)
387
            lscf = lsc0 * CFrame.Angles(math.pi/1+math.sin(angle)*0.5, 0, 0)
388
            rlcf = rlc0 * CFrame.Angles(math.pi/10, math.sin(angle)*0.08, math.rad(6.5))
389
            llcf = llc0 * CFrame.Angles(math.pi/10, -math.sin(angle)*0.08, -math.rad(6.5))
390
        elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=149713968" then
391
            anglespeed = 2
392
            ncf = neckc0 * CFrame.Angles(math.pi/10-math.abs(math.sin(angle))*0.3, 0, 0)
393
            rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi/20, math.sin(angle)*0.001, 0)
394
            rscf = rsc0 * CFrame.Angles(math.pi/2+math.abs(math.sin(angle)*1), 0, 0)
395
            lscf = lsc0 * CFrame.Angles(math.pi/2+math.abs(math.sin(angle)*1), 0, 0)
396
            rlcf = rlc0 * CFrame.Angles(math.pi/20, math.sin(angle)*0.08, math.rad(2.5))
397
            llcf = llc0 * CFrame.Angles(math.pi/20, -math.sin(angle)*0.08, -math.rad(2.5))
398
        elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=130802245" then
399
        anglespeed = 3
400
        ncf = neckc0 * CFrame.Angles(math.sin(angle)*0.07, math.rad(30), 0)
401
        rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.sin(angle)*0.001, 0)
402
        rscf = rsc0 * CFrame.Angles(math.sin(angle)*0.05, 0, 0)
403
        lscf = lsc0 * CFrame.Angles(math.sin(-angle)*0.05, 0, 0)
404
        rlcf = rlc0 * CFrame.new(0, -0.1 + math.abs(mvmnt)*0.1, -0.1) * CFrame.Angles(0, math.rad(5), math.rad(5))
405
        llcf = llc0 * CFrame.Angles(0, math.rad(2.5), math.rad(1))
406
        else
407
            if humanwalk then
408
                        anglespeed = 1/4
409
        ncf = neckc0 * CFrame.Angles(-math.sin(angle)*0.07, 0, 0)
410
        rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.sin(angle)*0.001, 0)
411
        rscf = rsc0 * CFrame.Angles(math.sin(angle)*0.1, 0, 0)
412
        lscf = lsc0 * CFrame.Angles(math.sin(-angle)*0.1, 0, 0)
413
        rlcf = rlc0 * CFrame.Angles(0, math.sin(angle)*0.08, math.rad(2.5))
414
        llcf = llc0 * CFrame.Angles(0, -math.sin(angle)*0.08, -math.rad(2.5))
415
                else
416
        anglespeed = 1/2
417
        ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08)
418
        rjcf = CFrame.new(0, -2, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0)
419
        rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
420
        lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
421
        rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
422
        llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
423
            end
424
        end
425
    elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 20 then
426
        if sound.IsPlaying then
427
            sound:stop()
428
        end
429
        if humanwalk then
430
                                anglespeed = 4
431
        ncf = neckc0 * CFrame.Angles(math.pi/24, mvmnt*.02, 0)
432
        rjcf = CFrame.new(0, math.abs(mvmnt)*0.05, 0) * CFrame.Angles(-math.pi/24, -mvmnt*.02, 0)
433
        rscf = rsc0 * CFrame.Angles(math.sin(angle)*1.25, 0, -math.abs(mvmnt)*0.02)
434
        lscf = lsc0 * CFrame.Angles(math.sin(-angle)*1.25, 0, math.abs(mvmnt)*0.02)
435
        rlcf = rlc0 * CFrame.Angles(math.sin(-angle)*1, 0, math.rad(.5))
436
        llcf = llc0 * CFrame.Angles(math.sin(angle)*1, 0, -math.rad(.5))
437
                else
438
        anglespeed = 4
439
        ncf = neckc0 * CFrame.new(0, 0, .2) * CFrame.Angles(math.pi/1.9, 0, 0)
440
        rjcf = CFrame.new(0, -1.5+math.abs(mvmnt)*0.05, 0) * CFrame.Angles(-math.pi/1.9, math.sin(mvmnt/2)*0.05, 0)
441
        rscf = rsc0 * CFrame.new(-.45, 0.2, -.4+math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2+math.sin(angle)*0.7, 0, math.rad(5))
442
        lscf = lsc0 * CFrame.new(.45, 0.2, .1-math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2+math.sin(-angle)*0.7, 0, -math.rad(5))
443
        rlcf = rlc0 * CFrame.new(0, 0, -.3+math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2.5+math.sin(-angle)*0.6, 0, math.abs(mvmnt)*0.025)
444
        llcf = llc0 * CFrame.new(0, 0, .3-math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2.5+math.sin(angle)*.6, 0, -math.abs(mvmnt)*0.025)
445
        end
446
    elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then
447
        if sound.IsPlaying then
448
            sound:stop()
449
        end
450
        if humanwalk then
451
        anglespeed = 5
452
        ncf = neckc0 * CFrame.Angles(math.pi/20, math.sin(angle)*.04, 0)
453
        rjcf = CFrame.new(0, -.4 + math.abs(mvmnt)*0.25, 0) * CFrame.Angles(-math.pi/20, -math.sin(angle)*.08, 0)
454
        rscf = rsc0 * CFrame.new(0, 0, -.3+math.abs(mvmnt)*0.125) *  CFrame.Angles(math.pi/18+math.sin(angle)*1.5, 0, -math.abs(mvmnt)*0.02)
455
        lscf = lsc0 * CFrame.new(0, 0, .3-math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/18+math.sin(-angle)*1.5, 0, math.abs(mvmnt)*0.02)
456
        rlcf = rlc0 * CFrame.new(0, 0, -.6+math.abs(mvmnt)*0.125) * CFrame.Angles(-math.pi/18+math.sin(-angle)*1.3, 0, math.rad(.5))
457
        llcf = llc0 * CFrame.new(0, 0, -math.abs(mvmnt)*0.125) * CFrame.Angles(-math.pi/18+math.sin(angle)*1.3, 0, -math.rad(.5))
458
        else
459
        anglespeed = 5.5
460
        ncf = neckc0 * CFrame.new(0, 0, .2) * CFrame.Angles(math.pi/1.9+math.sin(mvmnt/2)*0.05, 0, 0)
461
        rjcf = CFrame.new(0, -1.3+math.abs(mvmnt)*0.05, 0) * CFrame.Angles(-math.pi/1.9+math.abs(mvmnt/2)*0.1, 0, 0)
462
        rscf = rsc0 * CFrame.new(-1, 0.2, -.5) * CFrame.Angles(math.pi/2+math.sin(angle)*1.8, 0, math.rad(5))
463
        lscf = lsc0 * CFrame.new(1, 0.2, -.5) * CFrame.Angles(math.pi/2+math.sin(angle)*1.8, 0, -math.rad(5))
464
        rlcf = rlc0 * CFrame.new(0, .3-math.abs(mvmnt)*0.125, -.3+math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2.5+math.sin(-angle)*1.4, 0, math.abs(mvmnt)*0.025)
465
        llcf = llc0 * CFrame.new(0, .3-math.abs(mvmnt)*0.125, .3-math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2.5+math.sin(-angle)*1.4, 0, -math.abs(mvmnt)*0.025)
466
        end
467
    end
468
       
469
    rm.C0 = clerp(rm.C0,rscf,speed)
470
    lm.C0 = clerp(lm.C0,lscf,speed)
471
    rj.C0 = clerp(rj.C0,rjcf,speed)
472
    neck.C0 = clerp(neck.C0,ncf,speed)
473
    rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
474
    llegm.C0 = clerp(llegm.C0,llcf,speed)
475
end
476
 
477
 
478
end