SHOW:
|
|
- or go back to the newest paste.
1 | local function QuaternionFromCFrame(cf) | |
2 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
3 | local trace = m00 + m11 + m22 | |
4 | if trace > 0 then | |
5 | local s = math.sqrt(1 + trace) | |
6 | local recip = 0.5/s | |
7 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
8 | else | |
9 | local i = 0 | |
10 | if m11 > m00 then | |
11 | i = 1 | |
12 | end | |
13 | if m22 > (i == 0 and m00 or m11) then | |
14 | i = 2 | |
15 | end | |
16 | if i == 0 then | |
17 | local s = math.sqrt(m00-m11-m22+1) | |
18 | local recip = 0.5/s | |
19 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
20 | elseif i == 1 then | |
21 | local s = math.sqrt(m11-m22-m00+1) | |
22 | local recip = 0.5/s | |
23 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
24 | elseif i == 2 then | |
25 | local s = math.sqrt(m22-m00-m11+1) | |
26 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
27 | end | |
28 | end | |
29 | end | |
30 | local function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
31 | local xs, ys, zs = x + x, y + y, z + z | |
32 | local wx, wy, wz = w*xs, w*ys, w*zs | |
33 | local xx = x*xs | |
34 | local xy = x*ys | |
35 | local xz = x*zs | |
36 | local yy = y*ys | |
37 | local yz = y*zs | |
38 | local zz = z*zs | |
39 | 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)) | |
40 | end | |
41 | local function QuaternionSlerp(a, b, t) | |
42 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
43 | local startInterp, finishInterp; | |
44 | if cosTheta >= 0.0001 then | |
45 | if (1 - cosTheta) > 0.0001 then | |
46 | local theta = math.acos(cosTheta) | |
47 | local invSinTheta = 1/math.sin(theta) | |
48 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
49 | finishInterp = math.sin(t*theta)*invSinTheta | |
50 | else | |
51 | startInterp = 1-t | |
52 | finishInterp = t | |
53 | end | |
54 | else | |
55 | if (1+cosTheta) > 0.0001 then | |
56 | local theta = math.acos(-cosTheta) | |
57 | local invSinTheta = 1/math.sin(theta) | |
58 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
59 | finishInterp = math.sin(t*theta)*invSinTheta | |
60 | else | |
61 | startInterp = t-1 | |
62 | finishInterp = t | |
63 | end | |
64 | end | |
65 | 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 | |
66 | end | |
67 | function clerp(a,b,t) | |
68 | local qa = {QuaternionFromCFrame(a)} | |
69 | local qb = {QuaternionFromCFrame(b)} | |
70 | local ax, ay, az = a.x, a.y, a.z | |
71 | local bx, by, bz = b.x, b.y, b.z | |
72 | local _t = 1-t | |
73 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
74 | end | |
75 | ||
76 | do --the animating | |
77 | plr = game:service'Players'.LocalPlayer | |
78 | char = plr.Character | |
79 | mouse = plr:GetMouse() | |
80 | humanoid = char:findFirstChild("Humanoid") | |
81 | torso = char:findFirstChild("Torso") | |
82 | head = char.Head | |
83 | ra = char:findFirstChild("Right Arm") | |
84 | la = char:findFirstChild("Left Arm") | |
85 | rl = char:findFirstChild("Right Leg") | |
86 | ll = char:findFirstChild("Left Leg") | |
87 | rs = torso:findFirstChild("Right Shoulder") | |
88 | ls = torso:findFirstChild("Left Shoulder") | |
89 | rh = torso:findFirstChild("Right Hip") | |
90 | lh = torso:findFirstChild("Left Hip") | |
91 | neck = torso:findFirstChild("Neck") | |
92 | rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint") | |
93 | anim = char:findFirstChild("Animate") | |
94 | rootpart = char:findFirstChild("HumanoidRootPart") | |
95 | camera = workspace.CurrentCamera | |
96 | if anim then | |
97 | anim:Destroy() | |
98 | end | |
99 | ||
100 | ||
101 | local rm = Instance.new("Motor", torso) | |
102 | rm.C0 = CFrame.new(1.5, 0.5, 0) | |
103 | rm.C1 = CFrame.new(0, 0.5, 0) | |
104 | rm.Part0 = torso | |
105 | rm.Part1 = ra | |
106 | local lm = Instance.new("Motor", torso) | |
107 | lm.C0 = CFrame.new(-1.5, 0.5, 0) | |
108 | lm.C1 = CFrame.new(0, 0.5, 0) | |
109 | lm.Part0 = torso | |
110 | lm.Part1 = la | |
111 | ||
112 | local rlegm = Instance.new("Motor", torso) | |
113 | rlegm.C0 = CFrame.new(0.5, -1, 0) | |
114 | rlegm.C1 = CFrame.new(0, 1, 0) | |
115 | rlegm.Part0 = torso | |
116 | rlegm.Part1 = rl | |
117 | local llegm = Instance.new("Motor", torso) | |
118 | llegm.C0 = CFrame.new(-0.5, -1, 0) | |
119 | llegm.C1 = CFrame.new(0, 1, 0) | |
120 | llegm.Part0 = torso | |
121 | llegm.Part1 = ll | |
122 | ||
123 | neck.C0 = CFrame.new(0, 1, 0) | |
124 | neck.C1 = CFrame.new(0, -0.5, 0) | |
125 | ||
126 | ||
127 | rj.C0 = CFrame.new() | |
128 | rj.C1 = CFrame.new() | |
129 | ||
130 | ||
131 | local sound = Instance.new("Sound", head) | |
132 | sound.SoundId = "http://www.roblox.com/asset/?id=130797915" | |
133 | sound.Volume = 0.8 | |
134 | sound.Looped = true | |
135 | ||
136 | for i,v in pairs(char:children()) do | |
137 | if v:IsA("Hat") then | |
138 | v:Destroy() | |
139 | end | |
140 | end | |
141 | ||
142 | ||
143 | --look of the fox here | |
144 | ||
145 | game:service'InsertService':LoadAsset(74225426):children()[1].Parent = char | |
146 | Instance.new("PointLight", torso).Range = 10 | |
147 | ||
148 | game:service'InsertService':LoadAsset(1309911):children()[1].Parent = char | |
149 | Instance.new("PointLight", torso).Range = 10 | |
150 | ||
151 | game:service'InsertService':LoadAsset(19380685):children()[1].Parent = char | |
152 | Instance.new("PointLight", torso).Range = 10 | |
153 | ||
154 | if char:findFirstChild("Shirt") then | |
155 | char:findFirstChild("Shirt"):Destroy() | |
156 | end | |
157 | if char:findFirstChild("Pants") then | |
158 | char:findFirstChild("Pants"):Destroy() | |
159 | end | |
160 | if char:findFirstChild("Shirt Graphic") then | |
161 | char:findFirstChild("Shirt Graphic"):Destroy() | |
162 | end | |
163 | if char:findFirstChild("T-Shirt") then | |
164 | char:findFirstChild("T-Shirt"):Destroy() | |
165 | end | |
166 | ||
167 | if key=="v" and voiddb==false then | |
168 | so("http://www.roblox.com/asset/?id=2101137",RightArm,3,0.5) | |
169 | voiddb=true | |
170 | Void() | |
171 | coroutine.resume(coroutine.create(function() | |
172 | wait(30) | |
173 | voiddb=false | |
174 | prt11.Transparency=0.5 | |
175 | end)) | |
176 | end | |
177 | if key=="n" and sundb==false then | |
178 | so("http://www.roblox.com/asset/?id=2101137",RightArm,3,0.5) | |
179 | sundb=true | |
180 | WhiteSun() | |
181 | coroutine.resume(coroutine.create(function() | |
182 | wait(30) | |
183 | sundb=false | |
184 | prt7.Transparency=0.5 | |
185 | end)) | |
186 | end | |
187 | Humanoid.WalkSpeed=16 | |
188 | end | |
189 | ||
190 | function key2(key) | |
191 | end | |
192 | ||
193 | function s(mouse) | |
194 | mouse.Button1Down:connect(function() ob1d(mouse) end) | |
195 | mouse.Button1Up:connect(function() ob1u(mouse) end) | |
196 | mouse.KeyDown:connect(key) | |
197 | mouse.KeyUp:connect(key2) | |
198 | unsheathed = true | |
199 | player = Player | |
200 | ch = Character | |
201 | MMouse = mouse | |
202 | RSH = ch.Torso["Right Shoulder"] | |
203 | LSH = ch.Torso["Left Shoulder"] | |
204 | -- | |
205 | RSH.Parent = nil | |
206 | LSH.Parent = nil | |
207 | -- | |
208 | RW.Part0 = ch.Torso | |
209 | RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
210 | RW.C1 = CFrame.new(0, 0.5, 0) | |
211 | RW.Part1 = ch["Right Arm"] | |
212 | RW.Parent = ch.Torso | |
213 | --_G.R = RW | |
214 | -- | |
215 | LW.Part0 = ch.Torso | |
216 | LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
217 | LW.C1 = CFrame.new(0, 0.5, 0) | |
218 | LW.Part1 = ch["Left Arm"] | |
219 | LW.Parent = ch.Torso | |
220 | --_G.L = LW | |
221 | -- | |
222 | equipanim() | |
223 | end | |
224 | ||
225 | function ds(mouse) | |
226 | hideanim() | |
227 | wait(0) | |
228 | RW.Parent = nil | |
229 | LW.Parent = nil | |
230 | RSH.Parent = player.Character.Torso | |
231 | LSH.Parent = player.Character.Torso | |
232 | end | |
233 | ||
234 | Bin.Selected:connect(s) | |
235 | Bin.Deselected:connect(ds) | |
236 | print("Staff loaded.") | |
237 | end | |
238 | ||
239 | print'Smokedelsin(Aka wable3) Made. BRUH BRUH' | |
240 | ||
241 | ||
242 | local speed = 0.3 | |
243 | local angle = 0 | |
244 | local sitting = false | |
245 | local humanwalk = false | |
246 | local anglespeed = 1 | |
247 | rsc0 = rm.C0 | |
248 | lsc0 = lm.C0 | |
249 | llc0 = llegm.C0 | |
250 | rlc0 = rlegm.C0 | |
251 | neckc0 = neck.C0 | |
252 | ||
253 | local controllerService = game:GetService("ControllerService") | |
254 | local controller = controllerService:GetChildren()[1] | |
255 | ||
256 | controller.Parent = nil | |
257 | ||
258 | Instance.new("HumanoidController", game:service'ControllerService') | |
259 | Instance.new("SkateboardController", game:service'ControllerService') | |
260 | Instance.new("VehicleController", game:service'ControllerService') | |
261 | local controller = controllerService:GetChildren()[1] | |
262 | mouse.KeyDown:connect(function(k) | |
263 | if k == "q" then | |
264 | humanwalk = not humanwalk | |
265 | end | |
266 | if k == "z" then | |
267 | if not sound.IsPlaying then | |
268 | sound:stop() | |
269 | sound.SoundId = "http://www.roblox.com/asset/?id=229675673" | |
270 | wait() | |
271 | sound:play() | |
272 | end | |
273 | end | |
274 | if k == "x" then | |
275 | if not sound.IsPlaying then | |
276 | sound:stop() | |
277 | sound.SoundId = "http://www.roblox.com/asset/?id=179849734" | |
278 | wait() | |
279 | sound:play() | |
280 | end | |
281 | end | |
282 | if k == "c" then | |
283 | if not sound.IsPlaying then | |
284 | sound:stop() | |
285 | sound.SoundId = "http://www.roblox.com/asset/?id=142283906" | |
286 | wait() | |
287 | sound:play() | |
288 | end | |
289 | end | |
290 | if string.byte(k) == 48 then | |
291 | humanoid.WalkSpeed = 34 | |
292 | end | |
293 | ||
294 | end) | |
295 | mouse.KeyUp:connect(function(k) | |
296 | ||
297 | if string.byte(k) == 48 then | |
298 | humanoid.WalkSpeed = 16 | |
299 | end | |
300 | ||
301 | end) | |
302 | ||
303 | ||
304 | ||
305 | while wait() do | |
306 | angle = (angle % 100) + anglespeed/10 | |
307 | mvmnt = math.pi * math.sin(math.pi*2/100*(angle*10)) | |
308 | local rscf = rsc0 | |
309 | local lscf = lsc0 | |
310 | local rlcf = rlc0 | |
311 | local llcf = llc0 | |
312 | local rjcf = CFrame.new() | |
313 | local ncf = neckc0 | |
314 | local rayz = Ray.new(rootpart.Position, Vector3.new(0, -6, 0)) | |
315 | local hitz, enz = workspace:findPartOnRay(rayz, char) | |
316 | if not hitz then | |
317 | if sound.IsPlaying then | |
318 | sound:stop() | |
319 | end | |
320 | ||
321 | if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 then | |
322 | ||
323 | ncf = neckc0 * CFrame.Angles(math.pi/5, 0, 0) | |
324 | rjcf = CFrame.new() * CFrame.Angles(-math.pi/5, math.sin(angle)*0.05, 0) | |
325 | rscf = rsc0 * CFrame.Angles(math.pi/1.7+math.sin(angle)*0.1, 0, 0) | |
326 | lscf = lsc0 * CFrame.Angles(math.pi/1.7+math.sin(-angle)*0.1, 0, 0) | |
327 | rlcf = rlc0 * CFrame.Angles(-math.pi/10+math.sin(-angle)*0.3, 0, 0) | |
328 | llcf = llc0 * CFrame.Angles(-math.pi/10+math.sin(angle)*0.3, 0, 0) | |
329 | ||
330 | else | |
331 | ||
332 | ncf = neckc0 * CFrame.Angles(math.pi/14, 0, 0) | |
333 | rjcf = CFrame.new() * CFrame.Angles(-math.pi/18, math.sin(angle)*0.05, 0) | |
334 | rscf = rsc0 * CFrame.Angles(-math.pi/10+math.sin(angle)*0.2, 0, 0) | |
335 | lscf = lsc0 * CFrame.Angles(-math.pi/10+math.sin(-angle)*0.2, 0, 0) | |
336 | rlcf = rlc0 * CFrame.new(0, 0.7, -0.5) CFrame.Angles(-math.pi/14, 0, 0) | |
337 | llcf = llc0 * CFrame.Angles(-math.pi/20, 0, 0) | |
338 | ||
339 | end | |
340 | elseif humanoid.Sit then | |
341 | if sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=142283906" then | |
342 | anglespeed = 6 | |
343 | ncf = neckc0 * CFrame.Angles(math.pi/5-math.abs(math.sin(angle))*0.3, 0, 0) | |
344 | rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, 0, 0) | |
345 | rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15)) | |
346 | lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15)) | |
347 | rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20)) | |
348 | llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20)) | |
349 | elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=179849734" then | |
350 | anglespeed = 4 | |
351 | ncf = neckc0 * CFrame.Angles(math.pi/5-math.abs(math.sin(angle))*0.3, 0, 0) | |
352 | rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, 0, 0) | |
353 | rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15)) | |
354 | lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15)) | |
355 | rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20)) | |
356 | llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20)) | |
357 | elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=229675673" then | |
358 | anglespeed = 11 | |
359 | ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08) | |
360 | rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0) | |
361 | rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15)) | |
362 | lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15)) | |
363 | rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20)) | |
364 | llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20)) | |
365 | else | |
366 | anglespeed = 1/2 | |
367 | ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08) | |
368 | rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0) | |
369 | rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15)) | |
370 | lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15)) | |
371 | rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20)) | |
372 | llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20)) | |
373 | end | |
374 | elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then | |
375 | if sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=142283906" then | |
376 | anglespeed = 4 | |
377 | ncf = neckc0 * CFrame.Angles(math.pi/10-math.abs(math.sin(angle))*0.3, 0, 0) | |
378 | rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi/20, math.sin(angle)*0.001, 0) | |
379 | rscf = rsc0 * CFrame.Angles(math.pi/2+math.abs(math.sin(angle)*1), 0, 0) | |
380 | lscf = lsc0 * CFrame.Angles(math.pi/2+math.abs(math.sin(angle)*1), 0, 0) | |
381 | rlcf = rlc0 * CFrame.Angles(math.pi/20, math.sin(angle)*0.08, math.rad(2.5)) | |
382 | llcf = llc0 * CFrame.Angles(math.pi/20, -math.sin(angle)*0.08, -math.rad(2.5)) | |
383 | elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=179849734" then | |
384 | anglespeed = 2 | |
385 | ncf = neckc0 * CFrame.Angles(math.pi/10-math.abs(math.sin(angle))*0.3, 0, 0) | |
386 | rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi/20, math.sin(angle)*0.001, 0) | |
387 | rscf = rsc0 * CFrame.Angles(math.pi/2+math.abs(math.sin(angle)*1), 0, 0) | |
388 | lscf = lsc0 * CFrame.Angles(math.pi/2+math.abs(math.sin(angle)*1), 0, 0) | |
389 | rlcf = rlc0 * CFrame.Angles(math.pi/20, math.sin(angle)*0.08, math.rad(2.5)) | |
390 | llcf = llc0 * CFrame.Angles(math.pi/20, -math.sin(angle)*0.08, -math.rad(2.5)) | |
391 | elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=229675673" then | |
392 | anglespeed = 9 | |
393 | ncf = neckc0 * CFrame.Angles(math.sin(angle)*0.07, math.rad(30), 0) | |
394 | rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.sin(angle)*0.001, 0) | |
395 | rscf = rsc0 * CFrame.Angles(math.sin(angle)*0.05, 0, 0) | |
396 | lscf = lsc0 * CFrame.Angles(math.sin(-angle)*0.05, 0, 0) | |
397 | rlcf = rlc0 * CFrame.new(0, -0.1 + math.abs(mvmnt)*0.1, -0.1) * CFrame.Angles(0, math.rad(5), math.rad(5)) | |
398 | llcf = llc0 * CFrame.Angles(0, math.rad(2.5), math.rad(1)) | |
399 | else | |
400 | if humanwalk then | |
401 | anglespeed = 1/4 | |
402 | ncf = neckc0 * CFrame.Angles(-math.sin(angle)*0.07, 0, 0) | |
403 | rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.sin(angle)*0.001, 0) | |
404 | rscf = rsc0 * CFrame.Angles(math.sin(angle)*0.1, 0, 0) | |
405 | lscf = lsc0 * CFrame.Angles(math.sin(-angle)*0.1, 0, 0) | |
406 | rlcf = rlc0 * CFrame.Angles(0, math.sin(angle)*0.08, math.rad(2.5)) | |
407 | llcf = llc0 * CFrame.Angles(0, -math.sin(angle)*0.08, -math.rad(2.5)) | |
408 | else | |
409 | anglespeed = 1/2 | |
410 | ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08) | |
411 | rjcf = CFrame.new(0, -2, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0) | |
412 | rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15)) | |
413 | lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15)) | |
414 | rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20)) | |
415 | llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20)) | |
416 | end | |
417 | end | |
418 | elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 20 then | |
419 | if sound.IsPlaying then | |
420 | sound:stop() | |
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)*0.7, 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.7, 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.6, 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 | end | |
443 | if humanwalk then | |
444 | anglespeed = 5 | |
445 | ncf = neckc0 * CFrame.Angles(math.pi/20, math.sin(angle)*.04, 0) | |
446 | rjcf = CFrame.new(0, -.4 + math.abs(mvmnt)*0.25, 0) * CFrame.Angles(-math.pi/20, -math.sin(angle)*.08, 0) | |
447 | 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) | |
448 | 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) | |
449 | 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)) | |
450 | 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)) | |
451 | else | |
452 | anglespeed = 5.5 | |
453 | ncf = neckc0 * CFrame.new(0, 0, .2) * CFrame.Angles(math.pi/1.9+math.sin(mvmnt/2)*0.05, 0, 0) | |
454 | 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) | |
455 | rscf = rsc0 * CFrame.new(-1, 0.2, -.5) * CFrame.Angles(math.pi/2+math.sin(angle)*1.8, 0, math.rad(5)) | |
456 | lscf = lsc0 * CFrame.new(1, 0.2, -.5) * CFrame.Angles(math.pi/2+math.sin(angle)*1.8, 0, -math.rad(5)) | |
457 | 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) | |
458 | 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) | |
459 | end | |
460 | end | |
461 | ||
462 | rm.C0 = clerp(rm.C0,rscf,speed) | |
463 | lm.C0 = clerp(lm.C0,lscf,speed) | |
464 | rj.C0 = clerp(rj.C0,rjcf,speed) | |
465 | neck.C0 = clerp(neck.C0,ncf,speed) | |
466 | rlegm.C0 = clerp(rlegm.C0,rlcf,speed) | |
467 | llegm.C0 = clerp(llegm.C0,llcf,speed) | |
468 | end | |
469 | ||
470 | ||
471 | end | |
472 | ||
473 | s = game.Workspace | |
474 | ||
475 | Player = game.Players.LocalPlayer | |
476 | c = Player.Character | |
477 | mouse = Player:GetMouse() | |
478 | ||
479 | s2 = Instance.new("Sound", c.Head) | |
480 | s2.Name = "Bleu" | |
481 | s2.Volume = 1 | |
482 | ||
483 | c.Humanoid.MaxHealth = math.huge | |
484 | c.Humanoid.Health = math.huge | |
485 | ||
486 | game:GetService("Chat"):Chat(c, "This thing was created by smokedelsin bruh bruh!!!!") | |
487 | ||
488 | for i,v in pairs(c:GetChildren()) do | |
489 | if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("Hat") then | |
490 | v:remove() | |
491 | wait() | |
492 | end | |
493 | end | |
494 | ||
495 | c.Humanoid.DisplayDistanceType = "None" | |
496 | c.Humanoid.NameOcclusion = "OccludeAll" | |
497 | c.Head.Transparency = .1 | |
498 | c.Torso.Transparency = .1 | |
499 | c["Right Arm"].Transparency = .1 | |
500 | c["Left Arm"].Transparency = .1 | |
501 | c["Right Leg"].Transparency = .1 | |
502 | c["Left Leg"].Transparency = .1 | |
503 | c.Head.BrickColor = BrickColor.new("Really black") | |
504 | c.Torso.BrickColor = BrickColor.new("Industrial white") | |
505 | c["Right Arm"].BrickColor = BrickColor.new("Really black") | |
506 | c["Left Arm"].BrickColor = BrickColor.new("Industrial white") | |
507 | c["Right Leg"].BrickColor = BrickColor.new("Really black") | |
508 | c["Left Leg"].BrickColor = BrickColor.new("Industrial white") | |
509 | c.Head.face.Texture = "rbxassetid://0" |