View difference between Paste ID: jpJ6ubzR and 49tYcMcT
SHOW: | | - or go back to the newest paste.
1
--https://github.com/Mokiros/roblox-FE-compatibility
2
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
3
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
4
local RealPlayer = Player
5
do print("This is an edit by RhiBel00351.")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 
6
end
7
do --CFrame lerp (stravant, clerp by AntiBoomz0r)
8
        local function QuaternionFromCFrame(cf) 
9
                local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
10
                local trace = m00 + m11 + m22 
11
                if trace > 0 then 
12
                        local s = math.sqrt(1 + trace) 
13
                        local recip = 0.5/s 
14
                        return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
15
                else 
16
                        local i = 0 
17
                        if m11 > m00 then
18
                                i = 1 
19
                        end 
20
                        if m22 > (i == 0 and m00 or m11) then 
21
                                i = 2 
22
                        end 
23
                        if i == 0 then 
24
                                local s = math.sqrt(m00-m11-m22+1) 
25
                                local recip = 0.5/s 
26
                                return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
27
                        elseif i == 1 then 
28
                                local s = math.sqrt(m11-m22-m00+1) 
29
                                local recip = 0.5/s 
30
                                return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
31
                        elseif i == 2 then 
32
                                local s = math.sqrt(m22-m00-m11+1) 
33
                                local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
34
                        end 
35
                end 
36
        end
37
        local function QuaternionToCFrame(px, py, pz, x, y, z, w) 
38
                local xs, ys, zs = x + x, y + y, z + z 
39
                local wx, wy, wz = w*xs, w*ys, w*zs 
40
                local xx = x*xs 
41
                local xy = x*ys 
42
                local xz = x*zs 
43
                local yy = y*ys 
44
                local yz = y*zs 
45
                local zz = z*zs 
46
                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)) 
47
        end   
48
        function QuaternionSlerp(a, b, t) 
49
                local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
50
                local startInterp, finishInterp; 
51
                if cosTheta >= 0.0001 then 
52
                        if (1 - cosTheta) > 0.0001 then 
53
                                local theta = math.acos(cosTheta) 
54
                                local invSinTheta = 1/math.sin(theta) 
55
                                startInterp = math.sin((1-t)*theta)*invSinTheta 
56
                                finishInterp = math.sin(t*theta)*invSinTheta  
57
                        else 
58
                                startInterp = 1-t 
59
                                finishInterp = t 
60
                        end 
61
                else
62
                        if (1+cosTheta) > 0.0001 then 
63
                                local theta = math.acos(-cosTheta) 
64
                                local invSinTheta = 1/math.sin(theta) 
65
                                startInterp = math.sin((t-1)*theta)*invSinTheta 
66
                                finishInterp = math.sin(t*theta)*invSinTheta 
67
                        else 
68
                                startInterp = t-1 
69
                                finishInterp = t 
70
                        end 
71
                end 
72
                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 
73
        end  
74
        function clerp(a,b,t) 
75
                local qa = {QuaternionFromCFrame(a)}
76
                local qb = {QuaternionFromCFrame(b)} 
77
                local ax, ay, az = a.x, a.y, a.z 
78
                local bx, by, bz = b.x, b.y, b.z  
79
                local _t = 1-t 
80
                return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
81
        end 
82
end
83
84
plr = game:service'Players'.LocalPlayer
85
char = plr.Character
86
mouse = plr:GetMouse()
87
humanoid = char:findFirstChild("Humanoid")
88
torso = char:findFirstChild("Torso")
89
head = char.Head
90
ra = char:findFirstChild("Right Arm")
91
la = char:findFirstChild("Left Arm")
92
rl = char:findFirstChild("Right Leg")
93
ll = char:findFirstChild("Left Leg")
94
rs = torso:findFirstChild("Right Shoulder")
95
ls = torso:findFirstChild("Left Shoulder")
96
rh = torso:findFirstChild("Right Hip")
97
lh = torso:findFirstChild("Left Hip")
98
neck = torso:findFirstChild("Neck")
99
rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
100
anim = char:findFirstChild("Animate")
101
if anim then
102
anim:Destroy()
103
end
104
rootpart = char:findFirstChild("HumanoidRootPart")
105
camera = workspace.CurrentCamera
106
modelforparts = char:findFirstChild("ModelForParts") or Instance.new("Model", char)
107
modelforparts.Name = "ModelForParts"
108
109
function trailconnect(obj, wat)
110
local trail = {}
111
for i = 1, 4 do 
112
local p = Instance.new("Part") 
113
p.Material = "SmoothPlastic"
114
p.BrickColor = obj.BrickColor
115
p.formFactor = "Custom" 
116
p.Size = Vector3.new(1,1,1)
117
p.Locked = true 
118
p.Anchored = true 
119
p.CanCollide = false 
120
local mesh = Instance.new("CylinderMesh", p) 
121
mesh.Name = "Mesh" 
122
table.insert(trail,{p,0}) 
123
end
124
local lastpos = obj.Position 
125
local updatethis = 0 
126
local dontdothis = false
127
game:service'RunService'.Stepped:connect(function()
128
    if wat == true then if dontdothis then return end
129
        for i,v in pairs(trail) do
130
        game:service'Debris':AddItem(obj, 0)
131
        table.remove(v, i)
132
        end
133
        dontdothis = true
134
        return 
135
    end
136
updatethis = ((updatethis) % 4) + 1
137
local dstnc = (obj.Position - lastpos).magnitude 
138
trail[updatethis][1].Mesh.Scale = Vector3.new(.2,dstnc,.2)
139
trail[updatethis][1].Parent = obj.Parent
140
trail[updatethis][1].CFrame = CFrame.new((obj.Position + lastpos)/2,obj.Position) * CFrame.Angles(math.pi/2, 0, 0)
141
trail[updatethis][2] = 0 
142
for i,v in pairs(trail) do 
143
v[2] = v[2] + .15
144
v[1].Transparency = v[2] 
145
end 
146
lastpos = obj.Position
147
end)
148
end 
149
150
do --rayCast
151
    function rayCast(startpos, Speed, Gravity, Dmg, color)
152
        local ran,err = ypcall(function()
153
    local rayPart         = Instance.new("Part")
154
    rayPart.Material      = "SmoothPlastic"
155
    rayPart.Name          = "RayPart"
156
    rayPart.BrickColor    = BrickColor.new(color)
157
    rayPart.Anchored      = true
158
    rayPart.CanCollide    = false
159
	rayPart.Locked        = true
160
	rayPart.FormFactor    = "Custom"
161
    rayPart.TopSurface    = Enum.SurfaceType.Smooth
162
    rayPart.BottomSurface = Enum.SurfaceType.Smooth
163
    rayPart.Size          = Vector3.new(.2, 50, .2)
164
    rayPart:breakJoints()
165
    Instance.new("CylinderMesh", rayPart)
166
    local fire = Instance.new("Fire", rayPart)
167
    fire.Color = rayPart.BrickColor.Color
168
    fire.SecondaryColor = rayPart.BrickColor.Color
169
    fire.Heat = 0
170
    fire.Size = 10
171
    local pl = Instance.new("PointLight", rayPart)
172
    pl.Color = Color3.new(rayPart.BrickColor.r/1.5, rayPart.BrickColor.g/1.5, rayPart.BrickColor.b/1.5)
173
    pl.Range = 18
174
175
	local hitobj = false
176
    local bulletposition = startpos.Position
177
    rayPart.CFrame = startpos.CFrame
178
    trailconnect(rayPart, hitobj)
179
180
   local bulletvelocity = (Vector3.new(math.random(-2,2), math.random(-2,2), math.random(-2,2)))+( mouse.Hit.p - bulletposition).unit*Speed
181
    local bulletlastposition = bulletposition
182
    
183
    coroutine.resume(coroutine.create(function()
184
        while true do
185
186
	        local dt = wait()
187
            bulletlastposition = bulletposition
188
            bulletvelocity = bulletvelocity + (Vector3.new(0, -3.81*Gravity, 0)*dt)
189
	        bulletposition = bulletposition + (bulletvelocity*dt)
190
            local ray = Ray.new(bulletlastposition,  (bulletposition - bulletlastposition))
191
            local hit, hitposition = workspace:FindPartOnRayWithIgnoreList( ray, {char, modelforparts} )
192
	            
193
	if (torso.Position - rayPart.Position).magnitude > 840 then
194
	 	rayPart:Destroy()
195
	 	hitobj = true
196
	 break
197
    end
198
199
	
200
            if hit then
201
                hitobj = true
202
					local damage = math.random(Dmg, Dmg+6)
203
				if hit.Parent:findFirstChild("Humanoid") ~= nil then
204
					hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - damage
205
				elseif hit.Parent:IsA("Hat") and hit.Parent.Parent:findFirstChild("Humanoid") then
206
				    hit.Parent.Parent.Humanoid.Health = hit.Parent.Parent.Humanoid.Health - damage
207
			    end
208
			    local boom = Instance.new("Part", modelforparts)
209
                            boom.Material = "SmoothPlastic"
210
			    boom.BrickColor = rayPart.BrickColor
211
			    boom.Anchored = true
212
			    boom.FormFactor = "Custom"
213
			    boom.Size = Vector3.new(1,1,1)
214
			    boom.CanCollide = false
215
			    boom.Transparency = 0.25
216
			    boom.CFrame = CFrame.new(hitposition.x, hitposition.y, hitposition.z)
217
			    boom.TopSurface = 0
218
			    boom.BottomSurface = 0
219
			    local sphere = Instance.new("SpecialMesh", boom)
220
			    sphere.MeshType = "Sphere"
221
			    local pl = Instance.new("PointLight", boom)
222
                pl.Color = Color3.new(boom.BrickColor.r/1.5, boom.BrickColor.g/1.5, boom.BrickColor.b/1.5)
223
                pl.Range = 20
224
                for ye = 0, 8 do
225
                    local lite = Instance.new("Part", boom)
226
                                lite.Material = "SmoothPlastic"
227
			        lite.FormFactor = "Custom"
228
			        lite.Size = Vector3.new(.2, 1.5, .2)
229
			        lite.BrickColor = boom.BrickColor
230
			        lite.CanCollide = false
231
			        lite.TopSurface = 0
232
			        lite.Anchored = false
233
			        lite.BottomSurface = 0
234
			        lite.Position = boom.Position + Vector3.new(math.random(-10, 10), math.random(6,15), math.random(-10, 10))
235
		        end
236
		            
237
			    for i = 0, 20, 2.5 do
238
			        sphere.Scale = sphere.Scale + Vector3.new(i,i,i)
239
			        boom.Transparency = boom.Transparency + i/60
240
			        pl.Range = pl.Range + i/15
241
			     wait()
242
		        end
243
		        boom:Destroy()
244
	        for i,v in pairs(workspace:children()) do
245
	            if v:IsA("Model") and v:findFirstChild("Humanoid") then
246
	                if v:findFirstChild("Head") and v:findFirstChild("Torso") then
247
	                if (v:findFirstChild("Torso").Position - boom.Position).magnitude < 16 and v.Name ~= char.Name then
248
	                v:findFirstChild("Humanoid"):TakeDamage(math.random(Dmg+2,Dmg+6))
249
                    end
250
                    end
251
                end
252
                if v and v:IsA("Part") and v.Name ~= "Base" then
253
                    if (v.Position - boom.Position).magnitude < 16 then
254
                    v.Material = "SmoothPlastic"
255
                    v:BreakJoints()
256
                    v.TopSurface = 10
257
                    v.BottomSurface = 10
258
                    v.LeftSurface = 10
259
                    v.RightSurface = 10
260
                    v.FrontSurface = 10
261
                    v.BackSurface = 10
262
                    v.Anchored = false
263
                    end
264
                end
265
        end
266
            pcall(function()
267
				bulletposition = hitposition
268
                rayPart.CFrame = CFrame.new(bulletposition, bulletposition+bulletvelocity) * CFrame.Angles(math.pi/2, 0, 0)
269
                rayPart:Destroy()
270
            end)
271
                break
272
            end
273
	        rayPart.CFrame = CFrame.new(bulletposition, bulletposition+bulletvelocity) * CFrame.Angles(math.pi/2, 0, 0)
274
			rayPart.Parent = modelforparts
275
        end
276
    end))
277
 for i = 70, 65, -1.5 do
278
    camera.FieldOfView = i
279
    wait()
280
end
281
for i = 65, 70, 2.5 do
282
    camera.FieldOfView = i
283
    wait()
284
end
285
end)
286
if err then
287
    print(err)
288
    end
289
end
290
end
291
292
293
charge = 100
294
295
plrgui = game:service'Players'.LocalPlayer:findFirstChild("PlayerGui")
296
297
local statusgui = Instance.new("ScreenGui", plrgui)
298
local mainframe = Instance.new("Frame", statusgui)
299
    mainframe.Size = UDim2.new(0, 200, 0, 200)
300-
    image.Image = "rbxassetid://145057975"
300+
301
    mainframe.Style = 3
302
    local image = Instance.new("ImageLabel", mainframe)
303
    image.Size = UDim2.new(1, 0, .47, 0)
304
    image.Position = UDim2.new(0, 0, .235, 0)
305
    image.BackgroundTransparency = 1
306
    image.Image = "rbxassetid://172952539"
307
    local chargetext = Instance.new("TextLabel", mainframe)
308
    chargetext.FontSize = "Size18"
309
    chargetext.Size = UDim2.new(1, 0, .95, 0)
310
    chargetext.TextYAlignment = "Bottom"
311
    chargetext.BackgroundTransparency = 1
312
    chargetext.TextColor3 = Color3.new(1,1,1)
313
    game:service'RunService'.Stepped:connect(function()
314
        chargetext.Text = math.floor(charge).."%"
315
    end)
316
    
317
    
318
319
local rm = Instance.new("Weld", torso)
320
rm.C0 = CFrame.new(1.5, 0.5, 0)
321
rm.C1 = CFrame.new(0, 0.5, 0)
322
rm.Part0 = torso
323
rm.Part1 = ra
324
local lm = Instance.new("Weld", torso)
325
lm.C0 = CFrame.new(-1.5, 0.5, 0)
326-
sound.SoundId = "rbxassetid://130768080"
326+
327
lm.Part0 = torso
328
lm.Part1 = la
329
330
sound = Instance.new("Sound", head)
331
sound.Volume = 1
332
sound.SoundId = "rbxassetid://131538164"
333
sound.Looped = true
334
335
336
dancemode = true
337
debounceofsprint = false
338
339
--create func
340
function part(parent, size, color, formfactor, collide, transparency)
341
	if transparency == nil then transparency=0 end
342
	if collide == nil then collide=false end
343
		if formfactor == nil then formfactor="Custom" end
344
        local p = Instance.new("Part", parent)
345
        p.FormFactor = formfactor
346
        p.CanCollide = collide
347
        p.Size = size
348
        p.Locked = true
349
        p.Transparency = transparency
350
        p.Position = torso.Position + Vector3.new(0, 1, 0)
351
        p.BrickColor = color
352
        p.FrontSurface = "SmoothNoOutlines" 
353
        p.BackSurface = "SmoothNoOutlines"         
354
        p.LeftSurface = "SmoothNoOutlines" 
355
        p.BottomSurface = "SmoothNoOutlines" 
356
        p.TopSurface = "SmoothNoOutlines"  
357
        p.RightSurface = "SmoothNoOutlines"
358
        return p
359
end
360
function wedge(parent, size, color, formfactor, collide, transparency)
361
		if transparency==nil then transparency=0 end
362
	if collide==nil then collide=false end
363
		if formfactor==nil then formfactor="Custom" end
364
        local p = Instance.new("WedgePart", parent)
365
        p.FormFactor = formfactor
366
        p.CanCollide = collide
367
        p.Size = size
368
        p.Locked = true
369
        p.Position = torso.Position
370
        p.BrickColor = color
371
        p.FrontSurface = "SmoothNoOutlines" 
372
        p.BackSurface = "SmoothNoOutlines"         
373
        p.LeftSurface = "SmoothNoOutlines" 
374
        p.BottomSurface = "SmoothNoOutlines" 
375
        p.TopSurface = "SmoothNoOutlines"  
376
        p.RightSurface = "SmoothNoOutlines"
377
        return p
378
end 
379
function weld(part0, part1, c0, parent, c1)
380
	if parent == nil then parent=char end
381
	if c1 == nil then c1=CFrame.new() end
382
383
        local wel = Instance.new("Weld", parent)
384
        wel.Part0 = part0
385
        wel.Part1 = part1
386
        wel.C0 = c0
387
        wel.C1 = c1
388
        return wel
389
end
390
function specialmesh(parent, meshType, scale, meshId)
391
	if meshId==nil then meshId="" end
392
        local mesh = Instance.new("SpecialMesh", parent)
393
        mesh.Scale = scale
394
        mesh.MeshType = meshType
395
        mesh.MeshId = meshId
396
        return mesh
397
end
398
----------------------------------------------------------------------------------------------------------
399
--function part(parent, size, color, formfactor, collide, transparency)
400
--function weld(part0, part1, c0, parent, c1)
401
402
----------------------------------------------------------------------------------------------------------
403
function animatehuman(animationid, object)
404
			local animation = object:findFirstChild("Humanoid"):LoadAnimation(animationid)
405
			animation:Play()
406
end
407
local danceAnim = Instance.new("Animation", char)
408
danceAnim.AnimationId = "http://www.roblox.com/asset/?id=130018893"
409
danceAnim.Name = "DancingAnimation"
410-
        main.BrickColor = BrickColor.new("Institutional white")
410+
411
local main = Instance.new("Part", char)
412
        main.FormFactor = "Custom"
413
        main.CanCollide = false
414
        main.Size = Vector3.new(.75, 1, 1.2)
415
        main.Locked = true
416
        main.BrickColor = BrickColor.new("Really black")
417
        main.TopSurface = 0
418
        main.BottomSurface = 0
419
        main.Position = torso.Position
420
        main:BreakJoints()
421-
        speaker.BrickColor = BrickColor.new("Institutional white")
421+
422
    local speaker = Instance.new("Part", char)
423
        speaker.FormFactor = "Custom"
424
        speaker.CanCollide = false
425
        speaker.Size = Vector3.new(1.5, .25, 1.4)
426
        speaker.Locked = true
427
        speaker.BrickColor = BrickColor.new("Really black")
428
        speaker.TopSurface = 0
429
        speaker.BottomSurface = 0
430
        speaker.Position = torso.Position
431
        speaker:BreakJoints()
432-
        speaker2.BrickColor = BrickColor.new("Institutional white")
432+
433
        local speaker2 = Instance.new("Part", char)
434
        speaker2.FormFactor = "Custom"
435
        speaker2.CanCollide = false
436
        speaker2.Size = Vector3.new(1, .25, 2)
437
        speaker2.Locked = true
438
        speaker2.BrickColor = BrickColor.new("Really black")
439
        speaker2.TopSurface = 0
440
        speaker2.BottomSurface = 0
441
        speaker2.Position = torso.Position
442
        speaker2:BreakJoints()
443-
        main2.BrickColor = BrickColor.new("Institutional white")
443+
444
        local main2 = Instance.new("Part", char)
445
        main2.FormFactor = "Custom"
446
        main2.CanCollide = false
447
        main2.Size = Vector3.new(.751, 1, .6)
448
        main2.Locked = true
449
        main2.BrickColor = BrickColor.new("Really black")
450
        main2.TopSurface = 0
451
        main2.BottomSurface = 0
452
        main2.Position = torso.Position
453
        main2:BreakJoints()
454-
        main3.BrickColor = BrickColor.new("Institutional white")
454+
455
    local main3 = Instance.new("Part", char)
456
        main3.FormFactor = "Custom"
457
        main3.CanCollide = false
458
        main3.Size = Vector3.new(.751, 1.45, 1)
459
        main3.Locked = true
460
        main3.BrickColor = BrickColor.new("Really black")
461
        main3.TopSurface = 0
462
        main3.BottomSurface = 0
463
        main3.Position = torso.Position
464
        main3:BreakJoints()
465
local weld5 = weld(main3, ra, CFrame.new(), char, CFrame.new(0, -1.6, -.9))
466-
        main4.BrickColor = BrickColor.new("Institutional white")
466+
467
        main4.FormFactor = "Custom"
468
        main4.CanCollide = false
469
        main4.Size = Vector3.new(1, .76, 1)
470
        Instance.new("CylinderMesh", main4)
471
        main4.Locked = true
472
        main4.BrickColor = BrickColor.new("Really black")
473
        main4.TopSurface = 0
474
        main4.BottomSurface = 0
475
        main4.Position = torso.Position
476
        main4:BreakJoints()
477-
        speaker3.BrickColor = BrickColor.new("Institutional white")
477+
478
    local speaker3 = Instance.new("Part", char)
479
        speaker3.FormFactor = "Custom"
480
        speaker3.CanCollide = false
481
        speaker3.Size = Vector3.new(1.5, .5, 1.4)
482
        speaker3.Locked = true
483
        speaker3.BrickColor = BrickColor.new("Really black")
484
        speaker3.TopSurface = 0
485
        speaker3.BottomSurface = 0
486
        speaker3.Position = torso.Position
487
        speaker3:BreakJoints()
488-
        speaker4.BrickColor = BrickColor.new("Institutional white")
488+
489
        local speaker4 = Instance.new("Part", char)
490
        speaker4.FormFactor = "Custom"
491
        speaker4.CanCollide = false
492
        speaker4.Size = Vector3.new(1, .5, 2)
493
        speaker4.Locked = true
494
        speaker4.BrickColor = BrickColor.new("Really black")
495
        speaker4.TopSurface = 0
496
        speaker4.BottomSurface = 0
497
        speaker4.Position = torso.Position
498
        speaker4:BreakJoints()
499-
        speaker5.BrickColor = BrickColor.new("Institutional white")
499+
500
        local speaker5 = Instance.new("Part", char)
501
        speaker5.FormFactor = "Custom"
502
        speaker5.CanCollide = false
503
        speaker5.Size = Vector3.new(1.4, .4, 1.3)
504
        speaker5.Locked = true
505
        speaker5.BrickColor = BrickColor.new("Really black")
506
        speaker5.TopSurface = 0
507
        speaker5.BottomSurface = 0
508
        speaker5.Position = torso.Position
509
        speaker5:BreakJoints()
510-
        speaker6.BrickColor = BrickColor.new("Institutional white")
510+
511
        local speaker6 = Instance.new("Part", char)
512
        speaker6.FormFactor = "Custom"
513
        speaker6.CanCollide = false
514
        speaker6.Size = Vector3.new(.9, .4, 1.9)
515
        speaker6.Locked = true
516
        speaker6.BrickColor = BrickColor.new("Really black")
517
        speaker6.TopSurface = 0
518
        speaker6.BottomSurface = 0
519
        speaker6.Position = torso.Position
520
        speaker6:BreakJoints()
521
local welds4 = weld(speaker6, main, CFrame.new(), char, CFrame.new(0, -2, -.2))
522-
        support.BrickColor = BrickColor.new("Institutional white")
522+
523
        local support = Instance.new("Part", char)
524
        support.FormFactor = "Custom"
525
        support.CanCollide = false
526
        support.Size = Vector3.new(.3, .4, .6)
527
        support.Locked = true
528
        support.BrickColor = BrickColor.new("Really black")
529
        support.TopSurface = 0
530
        support.BottomSurface = 0
531
        support.Position = torso.Position
532
        support:BreakJoints()
533
local welds5 = weld(support, main, CFrame.new(), char, CFrame.new(0, -1.5, -.4))
534
535
536
debounce = false
537
538
function stopsound()
539
if debounce then return end
540
    if not sound.IsPlaying then return end
541
    sound:stop()
542
    debounce = true
543
    local dancebro = Instance.new("StringValue", game:service'Lighting')
544
    dancebro.Name = ('STOPDANCING'..plr.Name)
545
    game:service'Debris':AddItem(dancebro, 1)
546
        coroutine.wrap(function()
547
        while not sound.IsPlaying do
548
            if charge <= 100 then
549
            charge = charge + .1
550
            wait()
551
            elseif charge > 100 then
552
            charge = 100
553
            break
554
            end
555
        end
556
    end)()
557
        wait(.1)
558
    debounce = false
559
end
560
mouse.Button1Down:connect(function(mous)
561
    if debounceofsprint then return end
562
    if sound.IsPlaying then return end
563
    if debounce then return end
564
    sound:play()
565
 for i = 70, 55, -.35 do
566
     if not sound.IsPlaying then debounce = true camera.FieldOfView = 70 return end
567
    camera.FieldOfView = i
568
    wait()
569
end
570
for i = 65, 70, 2.5 do
571
    if not sound.IsPlaying then debounce = true camera.FieldOfView = 70 return end
572
    camera.FieldOfView = i
573
    wait()
574
end
575
if debounce then debounce = false return end
576
    if dancemode then
577
    for i,v in pairs(workspace:children()) do
578
        if not sound.IsPlaying then break end
579
                coroutine.wrap(function()
580
                if v:IsA("Model") and v:findFirstChild("Humanoid") and v.Name ~= char.Name and v:findFirstChild("ModelForParts") == nil and v:findFirstChild("Torso") and (v:findFirstChild("Torso").Position - head.Position).magnitude < 30 then
581
	                    danceAnimClone = danceAnim:clone()
582
	                    danceAnimClone.Parent = v
583
	                    danceAnimClone.AnimationId = "http://www.roblox.com/asset/?id=130018893"
584
	                    wait()
585
	                    NLS([[
586
	                    function animatehuman(animationid, object)
587
		                    local animation = object:findFirstChild("Humanoid"):LoadAnimation(animationid)
588
			                animation:Play()
589
                        end
590
                        while wait(.5) do
591
                        if game:service'Lighting':findFirstChild("STOPDANCING]]..plr.Name..[[") and game:service'Lighting':findFirstChild("STOPDANCING]]..plr.Name..[["):IsA("StringValue") then game:service'Debris':AddItem(script.Parent:findFirstChild("DancingAnimation"), 5) break end
592
	                    animatehuman(script.Parent:findFirstChild("DancingAnimation"), script.Parent)
593
	                    end
594
	                    ]], v)
595
                end
596
                end)()
597
        end
598
end
599
    coroutine.wrap(function()
600
        while sound.IsPlaying do
601
            if charge <= 1 then 
602
                if debounce then break end
603
                if not sound.IsPlaying then break end
604
                    sound:stop()
605
                    debounce = true
606
                    chargetext.TextColor3 = Color3.new(1,0,0)
607
                    dancebro = Instance.new("StringValue", game:service'Lighting')
608
                    dancebro.Name = ('STOPDANCING'..plr.Name)
609
                    game:service'Debris':AddItem(dancebro, 1)
610
                    coroutine.wrap(function()
611
                        repeat wait() until charge >= 10
612
                        debounce = false
613
                        chargetext.TextColor3 = Color3.new(1,1,1)
614
                    end)()
615
                    coroutine.wrap(function()
616
                        while not sound.IsPlaying do
617
                            if charge <= 100 then
618
                            charge = charge + .1
619
                            wait()
620
                            elseif charge > 100 then
621
                            charge = 100
622
                            break
623
                            end
624
                        end
625
                    end)() 
626
            else
627
            charge = charge - .08
628
            wait()
629
            end
630
        end
631
    end)()
632
    coroutine.wrap(function()
633
        local ran,err = ypcall(function()
634
        while sound.IsPlaying and Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 20 do
635
    if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then stopsound() break end
636
    if not sound.IsPlaying then break end
637
    rayCast(speaker, 1250, 0, 5, "Lavender")
638
    wait(.35)
639
    if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then stopsound() break end
640
    if not sound.IsPlaying then break end
641
    rayCast(speaker, 1250, 0, 5, "Pink")
642
    wait(.95)
643
    if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then stopsound() break end
644
    if not sound.IsPlaying then break end
645
    rayCast(speaker, 1250, 0, 5, "Bright bluish green")
646
    wait(.55)
647
    if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then stopsound() break end
648
    if not sound.IsPlaying then break end
649
    rayCast(speaker, 1250, 0, 5, "Pink")
650
    wait(.4)
651
    if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then stopsound() break end
652
    if not sound.IsPlaying then break end
653
    rayCast(speaker, 1250, 0, 5, "Bright bluish green")
654
    local pl = Instance.new("PointLight", torso)
655
    pl.Color = Color3.new(153/255/1.25, 102/255/1.25, 204/255/1.25)
656
    pl.Range = 30
657
    pl.Brightness = 0.7
658
    game:service'Debris':AddItem(pl, .3)
659
    wait(.45)
660
    if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then stopsound() break end
661
    if not sound.IsPlaying then break end
662
    rayCast(speaker, 1250, 0, 5, "Lavender")
663
    wait(.75)
664
    end
665
    end) if err then print(err) end
666
    end)()
667
end)
668
669
mouse.Button1Up:connect(function(mous)
670
    stopsound()
671
end)
672
ctrl = false
673
mouse.KeyDown:connect(function(k)
674
    if string.byte(k) == 50 then
675
        ctrl = true
676
        humanoid.WalkSpeed = 8
677
    end
678
    if string.byte(k) == 48 then
679
    humanoid.WalkSpeed = 28
680
    end
681
end)
682
683
mouse.KeyUp:connect(function(k)
684
    if string.byte(k) == 50 then
685
        ctrl = false
686
        humanoid.WalkSpeed = 16
687
    end
688
    if string.byte(k) == 48 then
689
    humanoid.WalkSpeed = 16
690
        if ctrl then
691
            humanoid.WalkSpeed = 8
692
        end
693
    end
694
end)
695
696
humanoid.Died:connect(function()
697
    deathpos = torso.Position
698
	WorkModel = Instance.new("Model", workspace)
699
	WorkModel.Name = " "
700
        wait(1/60)
701
        humanoid.Parent = nil
702
	if torso then
703
		local Head = char:FindFirstChild("Head")
704
		if Head then
705
			local Neck = Instance.new("Weld")
706
			Neck.Name = "Neck"
707
			Neck.Part0 = torso
708
			Neck.Part1 = Head
709
			Neck.C0 = CFrame.new(0, 1.5, 0)
710
			Neck.C1 = CFrame.new()
711
			Neck.Parent = torso
712
		end
713
		local Limb = char:FindFirstChild("Right Arm")
714
		if Limb then
715
716
			Limb.CFrame = torso.CFrame * CFrame.new(1.5, 0, 0)
717
			local Joint = Instance.new("Glue")
718
			Joint.Name = "RightShoulder"
719
			Joint.Part0 = torso
720
			Joint.Part1 = Limb
721
			Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
722
			Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
723
			Joint.Parent = torso
724
725
			local B = Instance.new("Part")
726
			B.TopSurface = 0
727
			B.BottomSurface = 0
728
			B.formFactor = "Symmetric"
729
			B.Size = Vector3.new(1, 1, 1)
730
			B.Transparency = 1
731
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
732
			B.Parent = char
733
			B.CanCollide = false
734
			local W = Instance.new("Weld")
735
			W.Part0 = Limb
736
			W.Part1 = B
737
			W.C0 = CFrame.new(0, -0.5, 0)
738
			W.Parent = Limb
739
740
		end
741
		local Limb = char:FindFirstChild("Left Arm")
742
		if Limb then
743
744
			Limb.CFrame = torso.CFrame * CFrame.new(-1.5, 0, 0)
745
			local Joint = Instance.new("Glue")
746
			Joint.Name = "LeftShoulder"
747
			Joint.Part0 = torso
748
			Joint.Part1 = Limb
749
			Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
750
			Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
751
			Joint.Parent = torso
752
753
			local B = Instance.new("Part")
754
			B.TopSurface = 0
755
			B.BottomSurface = 0
756
			B.formFactor = "Symmetric"
757
			B.Size = Vector3.new(1, 1, 1)
758
			B.Transparency = 1
759
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
760
			B.Parent = char
761
			B.CanCollide = false
762
			local W = Instance.new("Weld")
763
			W.Part0 = Limb
764
			W.Part1 = B
765
			W.C0 = CFrame.new(0, -0.5, 0)
766
			W.Parent = Limb
767
768
		end
769
		local Limb = char:FindFirstChild("Right Leg")
770
		if Limb then
771
772
			Limb.CFrame = torso.CFrame * CFrame.new(0.5, -2, 0)
773
			local Joint = Instance.new("Glue")
774
			Joint.Name = "RightHip"
775
			Joint.Part0 = torso
776
			Joint.Part1 = Limb
777
			Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
778
			Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
779
			Joint.Parent = torso
780
781
			local B = Instance.new("Part")
782
			B.TopSurface = 0
783
			B.BottomSurface = 0
784
			B.formFactor = "Symmetric"
785
			B.Size = Vector3.new(1, 1, 1)
786
			B.Transparency = 1
787
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
788
			B.Parent = char
789
			B.CanCollide = false
790
			local W = Instance.new("Weld")
791
			W.Part0 = Limb
792
			W.Part1 = B
793
			W.C0 = CFrame.new(0, -0.5, 0)
794
			W.Parent = Limb
795
796
		end
797
		local Limb = char:FindFirstChild("Left Leg")
798
		if Limb then
799
800
			Limb.CFrame = torso.CFrame * CFrame.new(-0.5, -2, 0)
801
			local Joint = Instance.new("Glue")
802
			Joint.Name = "LeftHip"
803
			Joint.Part0 = torso
804
			Joint.Part1 = Limb
805
			Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
806
			Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
807
			Joint.Parent = torso
808
809
			local B = Instance.new("Part")
810
			B.TopSurface = 0
811
			B.BottomSurface = 0
812
			B.formFactor = "Symmetric"
813
			B.Size = Vector3.new(1, 1, 1)
814
			B.Transparency = 1
815
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
816
			B.Parent = char
817
			B.CanCollide = false
818
			local W = Instance.new("Weld")
819
			W.Part0 = Limb
820
			W.Part1 = B
821
			W.C0 = CFrame.new(0, -0.5, 0)
822
			W.Parent = Limb
823
		end
824
		for blood = 0, 3 do
825
		    local blood = Instance.new("Part", workspace)
826
		    blood.BrickColor = BrickColor.Red()
827
		    blood.FormFactor = "Custom"
828
		    blood.Size = Vector3.new(.2,.2,.2)
829
		    blood.Anchored = true
830
		    blood.TopSurface = "Smooth"
831
		    blood.BackSurface = "Smooth"
832
		    local bloodmesh = Instance.new("CylinderMesh", blood)
833
		    bloodmesh.Scale = Vector3.new(3, 0, 3)
834
		    local rayzb = Ray.new(torso.Position, Vector3.new(0, -20, 0) + Vector3.new(math.random(-2, 2), 0, math.random(-2, 2)))
835
            local hitzb, hitposb = workspace:findPartOnRay(rayzb, char)
836
            if hitzb then
837
            blood.CFrame = CFrame.new(hitposb.x,hitposb.y,hitposb.z)
838
            blood.CFrame = blood.CFrame * CFrame.new(0, .05, 0)
839
                coroutine.wrap(function()
840
                    for cframe = 0, math.random(16, 24) do
841
                        bloodmesh.Scale = bloodmesh.Scale + Vector3.new(.45, 0, .45)
842
                        wait()
843
                    end
844
                end)()
845
            elseif not hitzb then
846
            blood:Destroy()
847
            end
848
	    end
849
		local BP = Instance.new("BodyPosition", torso)
850
		BP.maxForce = Vector3.new(1,1,1)/0
851
		BP.position = deathpos
852
		for i,v in pairs(char:children()) do
853
			if v:IsA("Part") then v.Parent = WorkModel end
854
		end
855
        wait(.3)
856
		BP:Destroy()
857
	end
858
end)
859
860
local rlegm = Instance.new("Motor", torso)
861
rlegm.C0 = CFrame.new(0.5, -1, 0)
862
rlegm.C1 = CFrame.new(0, 1, 0)
863
rlegm.Part0 = torso
864
rlegm.Part1 = rl
865
rlegm.Name = "Right Hip"
866
local llegm = Instance.new("Motor", torso)
867
llegm.C0 = CFrame.new(-0.5, -1, 0)
868
llegm.C1 = CFrame.new(0, 1, 0)
869
llegm.Part0 = torso
870
llegm.Part1 = ll
871
llegm.Name = "Left Hip"
872
neck.C0 = CFrame.new(0, 1, 0)
873
neck.C1 = CFrame.new(0, -0.5, 0)
874
rj.C0 = CFrame.new(0, -1, 0)
875
rj.C1 = CFrame.new(0, -1, 0)
876
rsc0 = rm.C0
877
lsc0 = lm.C0
878
neckc0 = neck.C0
879
rootc0 = rj.C0
880
llc0 = llegm.C0
881
rlc0 = rlegm.C0
882
speed = 0.4
883
angle = 0
884
anglespeed = 0
885
mvmnt = 0
886
game:service'RunService'.RenderStepped:connect(function()
887
    angle = (angle % 100) + anglespeed/10
888
    mvmnt = math.pi * math.sin(math.pi*2/100*(angle*10))
889
        local rscf = rsc0
890
        local lscf = lsc0
891
        local rlcf = rlc0
892
        local llcf = llc0
893
        local rjcf = rootc0
894
        local ncf = neckc0
895
        local rayz = Ray.new(rootpart.Position, Vector3.new(0, -4.1, 0))
896
        local hitz, enz = workspace:findPartOnRay(rayz, char)
897
        --math.asin(mouse.UnitRay.Direction.y)
898
        ncf = neckc0 * CFrame.Angles(camera.CoordinateFrame.lookVector.y, 0, 0)
899
        rscf = rsc0 * CFrame.new(-.55, 0, .35) * CFrame.Angles(camera.CoordinateFrame.lookVector.y+math.pi/2, 0, 0)
900
        lscf = lsc0 * CFrame.new(.85, 0, -.65) * CFrame.Angles(camera.CoordinateFrame.lookVector.y+math.pi/2, 0, math.rad(45))
901
        if not hitz then
902
            ncf = neckc0 * CFrame.Angles(math.pi/18, 0, 0)
903
                rscf = rsc0 * CFrame.new(-.45, 0, -.75) * CFrame.Angles(math.pi/5+math.pi/18, 0, math.rad(-70))
904
                lscf = lsc0 * CFrame.new(.35, 0, 0) * CFrame.Angles(math.pi/3.5+math.pi/18, 0, 0)
905
            rjcf = rootc0 * CFrame.Angles(-math.pi/32, 0, 0)
906
                rlcf = rlc0 * CFrame.new(0, 0.7, -0.5) * CFrame.Angles(-math.pi/14, 0, 0)
907
                llcf = llc0 * CFrame.Angles(-math.pi/20, 0, 0)
908
        elseif humanoid.Sit then
909
            ncf = neckc0 * CFrame.Angles(0, 0, 0)
910
            rjcf = rootc0 * CFrame.new(0, -.2, 0)
911
            rlcf = rlc0 * CFrame.Angles(math.pi/2, 0, math.rad(7.5))
912
            llcf = llc0 * CFrame.Angles(math.pi/2, 0, -math.rad(7.5))
913
            if sprinting then
914
                debounceofsprint = false
915
                sprinting = false
916
            end
917
        elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 2 then
918
            speed = 0.3
919
            if ctrl then
920
                rjcf = rootc0 * CFrame.new(0, -1.25, 0)
921
                llcf = llc0 * CFrame.new(0, 0, -.45) * CFrame.Angles(-math.pi/2.2, 0, 0)
922
                rlcf = rlcf * CFrame.new(0, 1.25, -.85)
923
            else
924
                rjcf = rootc0
925
                rlcf = rlc0 * CFrame.Angles(-math.rad(.5), 0, math.rad(1.5))
926
                llcf = llc0 * CFrame.Angles(math.rad(1.5), 0, -math.rad(1.5))
927
            end
928
    elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 20 then
929
        if not humanoid.Sit then
930
            anglespeed = 3
931
            if ctrl then
932
                anglespeed = 3
933
                ncf = neckc0 * CFrame.Angles(camera.CoordinateFrame.lookVector.y+math.pi/18, 0, 0)
934
                rjcf = rootc0 * CFrame.new(0, -.35, 0) * CFrame.Angles(-math.pi/18, 0, 0)
935
                rscf = rsc0 * CFrame.new(-.55, 0, .35) * CFrame.Angles(camera.CoordinateFrame.lookVector.y+math.pi/2+math.pi/18, 0, 0)
936
                lscf = lsc0 * CFrame.new(.85, 0, -.65) * CFrame.Angles(camera.CoordinateFrame.lookVector.y+math.pi/2+math.pi/18, 0, math.rad(45))
937
                llcf = llc0 * CFrame.new(0, .45, -.35) * CFrame.Angles(math.pi/18 - math.sin(angle)*.45, 0, 0)
938
                rlcf = rlcf * CFrame.new(0, .45, -.35) * CFrame.Angles(math.pi/18 + math.sin(angle)*.45, 0, 0)
939
            else
940
                rjcf = rootc0
941
                rlcf = rlc0 * CFrame.Angles(math.sin(-angle)*.65, 0, math.rad(.5))
942
                llcf = llc0 * CFrame.Angles(math.sin(angle)*.65, 0, -math.rad(.5))
943
            end
944
            if sprinting then
945
                debounceofsprint = false
946
                sprinting = false
947
            end
948
            end
949
        elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then
950
            if not humanoid.Sit then
951
            anglespeed = 3
952
                ncf = neckc0 * CFrame.Angles(math.pi/18, 0, 0)
953
                rscf = rsc0 * CFrame.new(-.45, 0, -.75) * CFrame.Angles(math.pi/5+math.pi/18, 0, math.rad(-70))
954
                lscf = lsc0 * CFrame.new(.35, 0, 0) * CFrame.Angles(math.pi/3.5+math.pi/18, 0, 0)
955
                rjcf = rootc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi/18, math.sin(angle)*.1, math.sin(angle)*.045)
956
                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))
957
                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))
958
            sprinting = true
959
            debounceofsprint = true
960
            end
961
        end
962
    rm.C0 = clerp(rm.C0,rscf,speed)
963
    lm.C0 = clerp(lm.C0,lscf,speed)
964
    rj.C0 = clerp(rj.C0,rjcf,speed)
965
    rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
966
    llegm.C0 = clerp(llegm.C0,llcf,speed)
967
    neck.C0 = clerp(neck.C0,ncf,speed)
968
end)