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