View difference between Paste ID: 3UWsyFTq and dqPb8kVq
SHOW: | | - or go back to the newest paste.
1-
--joemom33's dance script! credit to jarredbcv and madiik, thx guys for taking my watch dogs script, heres another ;)
1+
2
game.Players.LocalPlayer.Character.Humanoid.MaxHealth = math.huge --so u cant die when fights are going on e.e
3
4
do
5
        local function QuaternionFromCFrame(cf) 
6
                local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
7
                local trace = m00 + m11 + m22 
8
                if trace > 0 then 
9
                        local s = math.sqrt(1 + trace) 
10
                        local recip = 0.5/s 
11
                        return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
12
                else 
13
                        local i = 0 
14
                        if m11 > m00 then
15
                                i = 1 
16
                        end 
17
                        if m22 > (i == 0 and m00 or m11) then 
18
                                i = 2 
19
                        end 
20
                        if i == 0 then 
21
                                local s = math.sqrt(m00-m11-m22+1) 
22
                                local recip = 0.5/s 
23
                                return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
24
                        elseif i == 1 then 
25
                                local s = math.sqrt(m11-m22-m00+1) 
26
                                local recip = 0.5/s 
27
                                return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
28
                        elseif i == 2 then 
29
                                local s = math.sqrt(m22-m00-m11+1) 
30
                                local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
31
                        end 
32
                end 
33
        end
34
        local function QuaternionToCFrame(px, py, pz, x, y, z, w) 
35
                local xs, ys, zs = x + x, y + y, z + z 
36
                local wx, wy, wz = w*xs, w*ys, w*zs 
37
                local xx = x*xs 
38
                local xy = x*ys 
39
                local xz = x*zs 
40
                local yy = y*ys 
41
                local yz = y*zs 
42
                local zz = z*zs 
43
                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)) 
44
                end   
45
        local function QuaternionSlerp(a, b, t) 
46
                local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
47
                local startInterp, finishInterp; 
48
                if cosTheta >= 0.0001 then 
49
                        if (1 - cosTheta) > 0.0001 then 
50
                                local theta = math.acos(cosTheta) 
51
                                local invSinTheta = 1/math.sin(theta) 
52
                                startInterp = math.sin((1-t)*theta)*invSinTheta 
53
                                finishInterp = math.sin(t*theta)*invSinTheta  
54
                        else 
55
                                startInterp = 1-t 
56
                                finishInterp = t 
57
                        end 
58
                else
59
                        if (1+cosTheta) > 0.0001 then 
60
                                local theta = math.acos(-cosTheta) 
61
                                local invSinTheta = 1/math.sin(theta) 
62
                                startInterp = math.sin((t-1)*theta)*invSinTheta 
63
                                finishInterp = math.sin(t*theta)*invSinTheta 
64
                        else 
65
                                startInterp = t-1 
66
                                finishInterp = t 
67
                        end 
68
                end 
69
                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 
70
        end  
71
        function clerp(a,b,t) 
72
                local qa = {QuaternionFromCFrame(a)}
73
                local qb = {QuaternionFromCFrame(b)} 
74
                local ax, ay, az = a.x, a.y, a.z 
75
                local bx, by, bz = b.x, b.y, b.z  
76
                local _t = 1-t 
77
                return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
78
        end 
79
80
end
81
do
82
plr = game:service'Players'.LocalPlayer
83
char = plr.Character
84
mouse = plr:GetMouse()
85
humanoid = char:findFirstChild("Humanoid")
86
torso = char:findFirstChild("Torso")
87
head = char.Head
88
ra = char:findFirstChild("Right Arm")
89
la = char:findFirstChild("Left Arm")
90
rl = char:findFirstChild("Right Leg")
91
ll = char:findFirstChild("Left Leg")
92
rs = torso:findFirstChild("Right Shoulder")
93
ls = torso:findFirstChild("Left Shoulder")
94
rh = torso:findFirstChild("Right Hip")
95
lh = torso:findFirstChild("Left Hip")
96
neck = torso:findFirstChild("Neck")
97
rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
98
anim = char:findFirstChild("Animate")
99
rootpart = char:findFirstChild("HumanoidRootPart")
100
camera = workspace.CurrentCamera
101
if anim then
102
anim:Destroy()
103
end
104
105
local rm = Instance.new("Motor", torso)
106
rm.C0 = CFrame.new(1.5, 0.5, 0)
107
rm.C1 = CFrame.new(0, 0.5, 0)
108
rm.Part0 = torso
109
rm.Part1 = ra
110
local lm = Instance.new("Motor", torso)
111
lm.C0 = CFrame.new(-1.5, 0.5, 0)
112
lm.C1 = CFrame.new(0, 0.5, 0)
113
lm.Part0 = torso
114
lm.Part1 = la
115
116
local rlegm = Instance.new("Motor", torso)
117
rlegm.C0 = CFrame.new(0.5, -1, 0)
118
rlegm.C1 = CFrame.new(0, 1, 0)
119
rlegm.Part0 = torso
120
rlegm.Part1 = rl
121
local llegm = Instance.new("Motor", torso)
122
llegm.C0 = CFrame.new(-0.5, -1, 0)
123
llegm.C1 = CFrame.new(0, 1, 0)
124
llegm.Part0 = torso
125
llegm.Part1 = ll
126
127
neck.C0 = CFrame.new(0, 1, 0)
128
neck.C1 = CFrame.new(0, -0.5, 0)
129
130
131
rj.C0 = CFrame.new()
132
rj.C1 = CFrame.new()
133
134
local sound = Instance.new("Sound", head)
135
sound.SoundId = "http://www.roblox.com/asset/?id=130797915"
136
sound.Volume = 0.8
137
sound.Looped = true
138
139
for _,v in pairs(char:GetChildren()) do if v.ClassName=="Hat" then v:remove() end end
140
141
local speed = 0.3
142
local angle = 0
143
local humanwalk = true
144
local anglespeed = 1
145
rsc0 = rm.C0
146
lsc0 = lm.C0
147
llc0 = llegm.C0
148
rlc0 = rlegm.C0
149
neckc0 = neck.C0
150
151
local controllerService = game:GetService("ControllerService")
152
local controller = controllerService:GetChildren()[1]
153
154
controller.Parent = nil
155
156
Instance.new("HumanoidController", game:service'ControllerService')
157
Instance.new("SkateboardController", game:service'ControllerService')
158
Instance.new("VehicleController", game:service'ControllerService')
159
local controller = controllerService:GetChildren()[1]
160
mouse.KeyDown:connect(function(k)
161
    if k == "q" then
162
        if not sound.IsPlaying and  music == true then
163
            game:service'InsertService':LoadAsset(44114719):children()[1].Parent = char
164
            sound:stop()
165
            sound.SoundId = "http://www.roblox.com/asset/?id=157460849"
166
            wait()
167
            sound:play()
168
        end
169
    end
170
    if k == "e" then
171
        if not sound.IsPlaying and music == true then
172
            game:service'InsertService':LoadAsset(1073690):children()[1].Parent = char
173
            sound:stop()
174
            sound.SoundId = "http://www.roblox.com/asset/?id=149069781"
175
            wait()
176
            sound:play()
177
        end
178
    end
179
        if k == "r" then
180
        if not sound.IsPlaying and music == true then
181
            game:service'InsertService':LoadAsset(47697285):children()[1].Parent = char
182
            game:service'InsertService':LoadAsset(11748356):children()[1].Parent = char
183
            sound:stop()
184
            sound.SoundId = "http://www.roblox.com/asset/?id=149410799"
185
            wait()
186
            sound:play()
187
        end
188
    end
189
        if k == "t" then
190
        if not sound.IsPlaying and music == true then
191
            game:service'InsertService':LoadAsset(10911990):children()[1].Parent = char
192
            sound:stop()
193
            sound.SoundId = "http://www.roblox.com/asset/?id=142305777"
194
            wait()
195
            sound:play()
196
        end
197
    end
198
         if k == "y" then
199
        if not sound.IsPlaying and music == true then
200
            game:service'InsertService':LoadAsset(128159229):children()[1].Parent = char
201
            sound:stop()
202
            sound.SoundId = "http://www.roblox.com/asset/?id=160525520"
203
            wait()
204
            sound:play()
205
        end
206
    end
207
         if k == "u" then
208
        if not sound.IsPlaying and music == true then
209
            game:service'InsertService':LoadAsset(139618234):children()[1].Parent = char
210
            sound:stop()
211
            sound.SoundId = "http://www.roblox.com/asset/?id=152401544" 
212
            wait()
213
            sound:play()
214
        end
215
    end
216
         if k == "p" then
217
        if not sound.IsPlaying and music == true then
218
            game:service'InsertService':LoadAsset(163500995):children()[1].Parent = char
219
    game:service'InsertService':LoadAsset(164203067):children()[1].Parent = char
220
            sound:stop()
221
            sound.SoundId = "http://www.roblox.com/asset/?id=146048136"
222
            wait()
223
            sound:play()
224
        end
225
    end
226
        if k == "f" then
227
        if not sound.IsPlaying and music == true then
228
            game:service'InsertService':LoadAsset(11453654):children()[1].Parent = char
229
            sound:stop()
230
            sound.SoundId = "http://www.roblox.com/asset/?id=133061687"
231
            wait()
232
            sound:play()
233
        end
234
    end
235
 if string.byte(k) == 48 then
236
        humanoid.WalkSpeed = 55
237
elseif string.byte(k) == 50 then
238
humanoid.Sit = true
239
    end 
240
    
241
end)
242
mouse.KeyUp:connect(function(k)
243
    
244
    if string.byte(k) == 48 then
245
        humanoid.WalkSpeed = 16
246
    end
247
    
248
end)
249
250
    
251
252
while wait() do
253
    angle = (angle % 100) + anglespeed/10 -- i don't see any function getting called here
254
        mvmnt = math.pi * math.sin(math.pi*2/100*(angle*10))
255
        local rscf = rsc0
256
        local lscf = lsc0
257
        local rlcf = rlc0
258
        local llcf = llc0
259
        local rjcf = CFrame.new()
260
        local ncf = neckc0
261
        local rayz = Ray.new(rootpart.Position, Vector3.new(0, -6, 0))
262
            local hitz, enz = workspace:findPartOnRay(rayz, char)
263
            if not hitz then
264
        if sound.IsPlaying then
265
            sound:stop()
266
        end
267
elseif humanoid.Sit then
268
        if sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=157460849" then
269
	anglespeed = 1/2
270
        ncf = neckc0 * CFrame.Angles(math.pi/4, 0,math.sin(angle)*0.08)
271
        rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, 0, math.sin(angle)*0.01,0,math.pi/2)
272
        rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.sin(angle),0,math.pi/1)
273
        lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, -math.sin(angle)*0.09, math.rad(15))
274
        rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
275
        llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
276
            elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=149069781" then
277
        elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=149069781" then
278
        anglespeed = 6
279
        ncf = neckc0 * CFrame.Angles(math.pi/5-math.sin(angle)*0.1, 0, 0)
280
        rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, 0, 0)
281
        rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
282
        lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
283
        rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
284
        llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
285
        elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=149410799" then
286
        anglespeed = 6
287
        ncf = neckc0 * CFrame.Angles(math.pi/5-math.sin(angle)*0.1, 0, 0)
288
        rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, 0, 0)
289
        rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
290
        lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
291
        rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
292
        llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
293
        elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=142305777" then
294
        anglespeed = 6
295
        rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(0, math.sin(angle),math.rad(20))
296
        rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.sin(angle),0,math.pi/1)
297
        lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.sin(angle),0,math.pi/1)
298
        elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=160525520" then
299
        anglespeed = 6
300
        ncf = neckc0 * CFrame.Angles(math.pi/5-math.sin(angle)*0.1, 0, 0)
301
        rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, 0, 0)
302
        rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
303
        lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
304
        rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
305
        llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
306
        elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=152401544" then
307
        anglespeed = 6
308
        ncf = neckc0 * CFrame.Angles(math.pi/5-math.sin(angle)*0.1, 0, 0)
309
        rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, 0, 0)
310
        rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
311
        lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
312
        rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
313
        llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
314
        elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=146048136" then
315
	anglespeed = 6
316
        ncf = neckc0 * CFrame.Angles(math.sin(angle)-math.abs(math.sin(angle))*0.9,math.cos(angle)*.3, 0)
317
            rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.sin(angle)*.2, 0)
318
            rscf = rsc0 * CFrame.Angles(math.pi/3+math.abs(math.sin(angle)*1), math.rad(anglespeed*angle)*.3,  math.sin(angle*3)*.6)
319
            lscf = lsc0 * CFrame.Angles(math.pi/3+math.abs(math.sin(angle)*1), math.rad(anglespeed*angle)*.3,  math.sin(angle*3)*.6)
320
            rlcf = rlc0 * CFrame.Angles(0, math.rad(angle)*math.sin(anglespeed), math.rad(angle)*.5)
321
            llcf = llc0 * CFrame.Angles(0, math.rad(angle)*math.sin(anglespeed), -math.rad(angle)*.5)
322
        elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=142305777" then
323
        anglespeed = 6
324
        rjcf = CFrame.new(0, math.sin(angle)*2, 0) * CFrame.Angles(0, math.sin(angle),0)
325
        rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.sin(angle),0,math.pi/1)
326
        lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.sin(angle),0,math.pi/1)
327
        else
328
        anglespeed = 1/2
329
        ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08)
330
        rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(math.pi/5, math.sin(angle)*0.01, 0)
331
        rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
332
        lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
333
        rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
334
        llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
335
        end
336
    elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then
337
            if sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=157460849" then
338
	anglespeed = 3
339
        ncf = neckc0 * CFrame.Angles(math.pi/4, 0,math.sin(angle)*0.08)
340
        rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, 0, math.sin(angle)*0.01,0,math.pi/2)
341
        rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.sin(angle),0,math.pi/1)
342
        lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, -math.sin(angle)*0.09, math.rad(15))
343
        rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
344
        llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
345
            elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=149069781" then
346
            anglespeed = 2
347
            ncf = neckc0 * CFrame.Angles(math.pi/10-math.abs(math.sin(angle))*0.3,0, 0)
348
            rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.sin(angle)*.5, 0)
349
            rscf = rsc0 * CFrame.Angles(0, 0, math.pi/2+math.abs(math.sin(angle)*1))
350
            lscf = lsc0 * CFrame.Angles(0, 0, -math.pi/2-math.abs(math.sin(angle)*1))
351
            rlcf = rlc0 * CFrame.Angles(0, math.sin(angle)*0.08, math.rad(2.5))
352
            llcf = llc0 * CFrame.Angles(0, -math.sin(angle)*0.08, -math.rad(2.5))
353
            elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=149410799" then
354
            anglespeed = 2
355
            ncf = neckc0 * CFrame.Angles(math.pi/10-math.abs(math.sin(angle))*0.3,0, 0)
356
            rjcf = CFrame.new(math.sin(angle)*2, 0, 0) * CFrame.Angles(-math.pi/20, math.sin(angle)*.5, 0)
357
            rscf = rsc0 * CFrame.Angles(math.pi/3+math.abs(math.sin(angle)*.5), math.pi/20,  -math.pi/20)
358
            lscf = lsc0 * CFrame.Angles(math.pi/3+math.abs(math.sin(angle)*.5), -math.pi/20,  math.pi/20)
359
            rlcf = rlc0 * CFrame.Angles(math.pi/20+math.sin(angle)*0.2, math.sin(angle)*0.08, math.rad(2.5))
360
            llcf = llc0 * CFrame.Angles(math.pi/20-math.sin(angle)*0.2, -math.sin(angle)*0.08, -math.rad(2.5))
361
            elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=142305777" then
362
            anglespeed = 4
363
        rjcf = CFrame.new(0, math.sin(angle)*2, 0) * CFrame.Angles(0, math.sin(angle),0)
364
        rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.sin(angle),0,math.pi/1)
365
        lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.sin(angle),0,math.pi/1)
366
            elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=160525520" then
367
            anglespeed = 2
368
            ncf = neckc0 * CFrame.Angles(math.pi/10-math.abs(math.sin(angle))*0.5,0, 0)
369
            rjcf = CFrame.new(0, 0, math.sin(angle)*3) * CFrame.Angles(0, math.sin(angle)*0.1, 0)
370
            rscf = rsc0 * CFrame.Angles(math.pi/3+math.abs(math.sin(angle)*1), math.pi/20,  -math.pi/20)
371
            lscf = lsc0 * CFrame.Angles(math.pi/3+math.abs(math.sin(angle)*1), -math.pi/20,  math.pi/20)
372
            rlcf = rlc0 * CFrame.Angles(math.pi/20+math.sin(angle*2)*.75, 0, 0)
373
            llcf = llc0 * CFrame.Angles(math.pi/20-math.sin(angle*2)*.75, 0, 0)
374
            elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=152401544" then
375
            anglespeed = 2
376
            ncf = neckc0 * CFrame.Angles(0,0, 0)
377
            rjcf = CFrame.new(0, -math.abs(math.sin(angle))*1.5, 0) * CFrame.Angles(math.sin(angle)*2, 0, 0)
378
            rscf = rsc0 * CFrame.Angles(0, 0,  0)
379
            lscf = lsc0 * CFrame.Angles(0, 0,  0)
380
            rlcf = rlc0 * CFrame.Angles(0, 0, 0)
381
            llcf = llc0 * CFrame.Angles(0, 0, 0)
382
            elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=146048136" then
383
	anglespeed = 6
384
        ncf = neckc0 * CFrame.Angles(math.sin(angle)-math.abs(math.sin(angle))*0.9,math.cos(angle)*.3, 0)
385
            rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.sin(angle)*.2, 0)
386
            rscf = rsc0 * CFrame.Angles(math.pi/3+math.abs(math.sin(angle)*1), math.rad(anglespeed*angle)*.3,  math.sin(angle*3)*.6)
387
            lscf = lsc0 * CFrame.Angles(math.pi/3+math.abs(math.sin(angle)*1), math.rad(anglespeed*angle)*.3,  math.sin(angle*3)*.6)
388
            rlcf = rlc0 * CFrame.Angles(0, math.rad(angle)*math.sin(anglespeed), math.rad(angle)*.5)
389
            llcf = llc0 * CFrame.Angles(0, math.rad(angle)*math.sin(anglespeed), -math.rad(angle)*.5)
390
            elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=133061687" then
391
            anglespeed = 7
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(0, math.sin(angle)*.5, 0)
394
            rscf = rsc0 * CFrame.Angles(math.pi/3+math.abs(math.sin(angle)*1), math.pi/20,  -math.pi/20)
395
            lscf = lsc0 * CFrame.Angles(math.pi/3+math.abs(math.sin(angle)*1), -math.pi/20,  math.pi/20)
396
            rlcf = rlc0 * CFrame.Angles(0, math.sin(angle)*0.1, math.rad(2.5))
397
            llcf = llc0 * CFrame.Angles(0, -math.sin(angle)*1, -math.rad(2.5))
398
            else
399
            if humanwalk then
400
                        anglespeed = 1/4
401
        ncf = neckc0 * CFrame.Angles(-math.sin(angle)*0.07, 0, 0)
402
        rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.sin(angle)*0.009, 0)
403
        rscf = rsc0 * CFrame.Angles(math.sin(angle)*0.6, 0, 0)
404
        lscf = lsc0 * CFrame.Angles(math.sin(-angle)*0.6, 0, 0)
405
        rlcf = rlc0 * CFrame.Angles(0, math.sin(angle)*0.09, math.rad(2.5))
406
        llcf = llc0 * CFrame.Angles(0, -math.sin(angle)*0.12, -math.rad(angle)*0.2)
407
                else
408
        anglespeed = 1/2
409
        ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.5)
410
        rjcf = CFrame.new(0, -2, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0)
411
        rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/6, 0, -math.rad(60))
412
        lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/6, 0, math.rad(60))
413
        rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
414
        llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
415
            end
416
        end
417
    elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 20 then
418
        if sound.IsPlaying then
419
            sound:stop()
420
            for _,v in pairs(char:GetChildren()) do if v.ClassName=="Hat" then v:remove() end end
421
        end
422
        if humanwalk then
423
                                anglespeed = 4
424
        ncf = neckc0 * CFrame.Angles(math.pi/24, mvmnt*.02, 0)
425
        rjcf = CFrame.new(0, math.abs(mvmnt)*0.05, 0) * CFrame.Angles(math.pi/24, -mvmnt*.02, 0)
426
        rscf = rsc0 * CFrame.Angles(math.sin(angle)*1.25, 0, -math.abs(mvmnt)*0.02)
427
        lscf = lsc0 * CFrame.Angles(math.sin(-angle)*1.25, 0, math.abs(mvmnt)*0.02)
428
        rlcf = rlc0 * CFrame.Angles(math.sin(-angle)*1, 0, math.rad(.5))
429
        llcf = llc0 * CFrame.Angles(math.sin(angle)*1, 0, -math.rad(.5))
430
                else
431
        anglespeed = 4
432
        ncf = neckc0 * CFrame.new(0, 0, .2) * CFrame.Angles(math.pi/1.9, 0, 0)
433
        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)
434
        rscf = rsc0 * CFrame.new(-.45, 0.2, -.4+math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2+math.sin(angle)*1, 0, math.rad(5))
435
        lscf = lsc0 * CFrame.new(.45, 0.2, .1-math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2+math.sin(-angle)*0.4, 0, -math.rad(5))
436
        rlcf = rlc0 * CFrame.new(0, 0, -.3+math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2.5+math.sin(-angle)*0.8, 0, math.abs(mvmnt)*0.025)
437
        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)
438
        end
439
    elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then
440
        if sound.IsPlaying then
441
            sound:stop()
442
        for _,v in pairs(char:GetChildren()) do if v.ClassName=="Hat" then v:remove() end end
443
        end
444
        if humanwalk then
445
        anglespeed = 5
446
        ncf = neckc0 * CFrame.Angles(math.rad(30), math.sin(angle)*.5, 0)
447
        rjcf = CFrame.new(0, -.4 + math.abs(mvmnt)*0.25, 0) * CFrame.Angles(0, -math.sin(angle)*.08, 0)
448
        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)*1.7)
449
        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)*1.7)
450
        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))
451
        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))
452
        else
453
        anglespeed = 5.5
454
        ncf = neckc0 * CFrame.new(0, 0, .2) * CFrame.Angles(math.pi/1.9+math.sin(mvmnt/2)*0.05, 0, 0)
455
        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)
456
        rscf = rsc0 * CFrame.new(-1, 0.2, -.5) * CFrame.Angles(math.pi/2+math.sin(angle)*1.8, 0, math.rad(5))
457
        lscf = lsc0 * CFrame.new(1, 0.2, -.5) * CFrame.Angles(math.pi/2+math.sin(angle)*1.8, 0, -math.rad(5))
458
        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)
459
        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)
460
        end
461
    end
462
        
463
    rm.C0 = clerp(rm.C0,rscf,speed)
464
    lm.C0 = clerp(lm.C0,lscf,speed)
465
    rj.C0 = clerp(rj.C0,rjcf,speed)
466
    neck.C0 = clerp(neck.C0,ncf,speed)
467
    rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
468
    llegm.C0 = clerp(llegm.C0,llcf,speed)
469
end
470
471
472
end
473
474
game.Players.LocalPlayer.Chatted:connect(function(k)
475
if k:lower() == "musicon" then
476
music = true
477
elseif k:lower() == "musicoff" then
478
music = false
479
end
480
end)