SHOW:
|
|
- or go back to the newest paste.
1 | wait(0) | |
2 | Player = game.Players.LocalPlayer | |
3 | ||
4 | local count = 0 | |
5 | local countspeed = 1 | |
6 | local sine = 0 | |
7 | local sinespeed = 1 | |
8 | local angle = nil | |
9 | local global_wait = 0 | |
10 | local showtag = false | |
11 | ||
12 | ||
13 | --dance booleans-- | |
14 | local jerk = false | |
15 | local party = false | |
16 | local canttouch = false | |
17 | local happy = false | |
18 | local spin = false | |
19 | local thriller = false | |
20 | local barrel = false | |
21 | local sax = false | |
22 | local spooky = false | |
23 | local stride = false | |
24 | local shuffle = false | |
25 | local rock = false | |
26 | local gagnam = false | |
27 | local snoop = false | |
28 | local darude = false | |
29 | local taco = false | |
30 | ------------------ | |
31 | --dance accessory-- | |
32 | local barrelbrick = nil | |
33 | local saxtool = nil | |
34 | ------------------- | |
35 | --custom animate-- | |
36 | local walk = false | |
37 | local jump = false | |
38 | local sit = false | |
39 | local run = false | |
40 | ------------------ | |
41 | --walk keys-- | |
42 | local W = false | |
43 | local A = false | |
44 | local S = false | |
45 | local D = false | |
46 | ------------- | |
47 | local m = Instance.new("Model",game.Players.LocalPlayer.Character) m.Name = "ModelParts" | |
48 | local miniweld = nil | |
49 | local rootpart = nil | |
50 | ||
51 | local Mouse = nil | |
52 | local Animate = nil | |
53 | local Music = nil | |
54 | local Asset = "http://www.roblox.com/asset/?id=" | |
55 | local Animating = nil | |
56 | local humanoid = nil | |
57 | local face = nil | |
58 | ||
59 | local head = nil | |
60 | local torso = nil | |
61 | local ra = nil | |
62 | local la = nil | |
63 | local rl = nil | |
64 | local ll = nil | |
65 | local rs = nil | |
66 | local ls = nil | |
67 | local rh = nil | |
68 | local lh = nil | |
69 | local neck = nil | |
70 | local rj = nil | |
71 | ||
72 | local char = nil | |
73 | local Hat1 = nil | |
74 | local Hat2 = nil | |
75 | local a,b = nil | |
76 | ||
77 | ----------musics----------------- | |
78 | local M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16 = nil | |
79 | --------------------------------- | |
80 | ||
81 | local mesh,meshids,textureids,w | |
82 | ||
83 | function fm(parent,meshid,x,y,z,meshtexture) | |
84 | if meshid == "cylinder" then | |
85 | mesh = Instance.new("CylinderMesh",parent) | |
86 | mesh.Scale = Vector3.new(x,y,z) | |
87 | return mesh | |
88 | else | |
89 | mesh = Instance.new("SpecialMesh",parent) | |
90 | if meshid ~= "sphere" then | |
91 | if type(meshid) == "number" then mesh.MeshId = "rbxassetid://"..meshid else | |
92 | mesh.MeshId = "rbxassetid://"..meshids[meshid] | |
93 | end | |
94 | else mesh.MeshType = 3 end | |
95 | mesh.Scale = Vector3.new(x,y,z) | |
96 | if meshtexture ~= nil then | |
97 | if type(meshtexture) == "number" then | |
98 | mesh.TextureId = "rbxassetid://"..meshtexture | |
99 | else | |
100 | mesh.TextureId = "rbxassetid://"..textureids[meshtexture] end | |
101 | end | |
102 | return mesh | |
103 | end | |
104 | end | |
105 | ||
106 | function P(x,y,z,color,transparency,cancollide,anchored,parent,typee) | |
107 | if typee ~= nil then | |
108 | c = Instance.new("WedgePart",m) | |
109 | else | |
110 | c = Instance.new("Part",m) | |
111 | end | |
112 | c.TopSurface,c.BottomSurface = 0,0 | |
113 | c.Locked = true | |
114 | c.formFactor = "Custom" | |
115 | c.Size = Vector3.new(x,y,z) | |
116 | if color ~= "random" then | |
117 | c.BrickColor = BrickColor.new(color) | |
118 | else | |
119 | c.BrickColor = BrickColor:random() | |
120 | end | |
121 | c.Transparency = transparency | |
122 | c.CanCollide = cancollide | |
123 | if anchored ~= nil then | |
124 | c.Anchored = anchored | |
125 | end | |
126 | if parent ~= nil then | |
127 | c.Parent = parent | |
128 | end | |
129 | return c | |
130 | end | |
131 | ||
132 | function We(part0,part1,x,y,z,rx,ry,rz,parent) | |
133 | w = Instance.new("Motor",m) | |
134 | if parent ~= nil then w.Parent = parent end | |
135 | w.Part0,w.Part1 = part0,part1 | |
136 | w.C1 = CFrame.new(x,y,z) * CFrame.Angles(rx,ry,rz) | |
137 | return w | |
138 | end | |
139 | ||
140 | function SetAnimation(id,humanoid) | |
141 | if Animating ~= nil then | |
142 | Animating:Stop() | |
143 | end | |
144 | Animate.AnimationId = Asset .. id | |
145 | Animating = humanoid:LoadAnimation(Animate) | |
146 | Animating:Play() | |
147 | end | |
148 | ||
149 | function AnimationStop() | |
150 | jerk = false | |
151 | party = false | |
152 | canttouch = false | |
153 | happy = false | |
154 | spin = false | |
155 | thriller = false | |
156 | barrel = false | |
157 | sax = false | |
158 | spooky = false | |
159 | stride = false | |
160 | shuffle = false | |
161 | rock = false | |
162 | gagnam = false | |
163 | snoop = false | |
164 | darude = false | |
165 | taco = false | |
166 | if barrelbrick ~= nil then | |
167 | barrelbrick:Remove() | |
168 | barrelbrick = nil | |
169 | end | |
170 | if saxtool ~= nil then | |
171 | saxtool:Remove() | |
172 | saxtool = nil | |
173 | end | |
174 | if sandstorm ~= nil then | |
175 | sandstorm:Remove() | |
176 | sandstorm = nil | |
177 | end | |
178 | end | |
179 | ||
180 | local Musical | |
181 | function SetMusic(id,volume) | |
182 | Musical = Instance.new("Sound",char.Head) | |
183 | if volume == nil then | |
184 | Musical.Volume = 1 | |
185 | else | |
186 | Musical.Volume = volume | |
187 | end | |
188 | Musical.Looped = true | |
189 | Musical.SoundId = Asset .. id | |
190 | return Musical | |
191 | end | |
192 | ||
193 | function GenerateGui() | |
194 | a=Instance.new("ScreenGui") | |
195 | a.Name = "Memer" | |
196 | b=Instance.new("ImageLabel",a) | |
197 | b.BackgroundTransparency = 1 | |
198 | b.Size = UDim2.new(0,250,0,100) | |
199 | b.Position = UDim2.new(0,0,1,0) | |
200 | b.Image = Asset .. "http://www.roblox.com/asset/?id=534247804" | |
201 | b.Name = "Logo" | |
202 | c=Instance.new("Sound",a) | |
203 | c.Name = "Intro" | |
204 | c.Volume = 1 | |
205 | c.SoundId = Asset .. "rbxassetid://533871935" | |
206 | c.Looped = false | |
207 | return a | |
208 | end | |
209 | ||
210 | function Generate(player) | |
211 | char = player.Character | |
212 | Hat1 = P(1,1,1,'Bright violet ',0,false,false) | |
213 | Hat2 = P(1,1,1,'Bright violet ',0,false,false) | |
214 | wait() | |
215 | a=fm(Hat1,0,1,1,1,1577349) a.VertexColor = Vector3.new(1,1,1) | |
216 | b=fm(Hat2,0,1,1,1,18987684) b.VertexColor = Vector3.new(1,1,1) | |
217 | wait() | |
218 | if char:FindFirstChild("Head") then | |
219 | We(Hat1,char.Head,0,0.25,-0.135,0,0,0) | |
220 | We(Hat2,char.Head,0,0.8,0,0,0,0) | |
221 | if char.Head:FindFirstChild("face") ~= nil then | |
222 | face = char.Head:FindFirstChild("face") | |
223 | face.Texture = "rbxasset://textures/face.png" | |
224 | end | |
225 | c=char.Head:clone() | |
226 | c.Name = "FalseHead" | |
227 | c.CanCollide = false | |
228 | c.Parent = char | |
229 | We(c,char.Head,0,0,0,0,0,0) | |
230 | char.Head.Transparency = 1 | |
231 | for i,v in pairs(char:GetChildren()) do | |
232 | if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "Hat" or v.ClassName == "CharacterMesh" or v.ClassName == "Shirt Graphic" then | |
233 | v:Remove() | |
234 | end | |
235 | if v.ClassName == "BodyColors" then | |
236 | v.HeadColor = BrickColor.new("Institutional white") | |
237 | - | v.LeftArmColor = BrickColor.new("Really Black") |
237 | + | v.LeftArmColor = BrickColor.new("Black") |
238 | - | v.LeftLegColor = BrickColor.new("Really Black") |
238 | + | v.LeftLegColor = BrickColor.new("Black") |
239 | - | v.RightArmColor = BrickColor.new("Really Black") |
239 | + | v.RightArmColor = BrickColor.new("Black") |
240 | - | v.RightLegColor = BrickColor.new("Really Black") |
240 | + | v.RightLegColor = BrickColor.new("Black") |
241 | - | v.TorsoColor = BrickColor.new("Really Black") |
241 | + | v.TorsoColor = BrickColor.new("Black") |
242 | end | |
243 | if v.ClassName == "Part" then | |
244 | if v.Name == "Head" or v.Name == "FalseHead" then | |
245 | v.BrickColor = BrickColor.new("Institutional white") | |
246 | else | |
247 | v.BrickColor = BrickColor.new("Institutional white") | |
248 | end | |
249 | end | |
250 | end | |
251 | ----------musics--------------- | |
252 | M1=SetMusic(142524640) | |
253 | M1.Volume = 50 | |
254 | M2=SetMusic(663760008) | |
255 | M2.Volume = 50 | |
256 | M3=SetMusic(148047526) | |
257 | M3.Volume = 50 | |
258 | M4=SetMusic(518673637) | |
259 | M4.Volume = 50 | |
260 | M5=SetMusic(194380361) | |
261 | M5.Volume = 50 | |
262 | M6=SetMusic(540190383) | |
263 | M6.Volume = 50 | |
264 | M7=SetMusic(253827644) | |
265 | M7.Volume = 50 | |
266 | M8=SetMusic(534878097) | |
267 | M8.Volume = 50 | |
268 | M9=SetMusic(178297940) | |
269 | M9.Volume = 50 | |
270 | M10=SetMusic(241814102) | |
271 | M10.Volume = 50 | |
272 | M11=SetMusic(533874013) | |
273 | M11.Volume = 50 | |
274 | M12=SetMusic(316168561) | |
275 | M12.Volume = 50 | |
276 | M13=SetMusic(142300879) | |
277 | M13.Volume = 50 | |
278 | M14=SetMusic(684159363) | |
279 | M14.Volume = 50 | |
280 | M15=SetMusic(787297457) | |
281 | M15.Volume = 50 | |
282 | M16=SetMusic(597084853) | |
283 | M16.Volume = 50 | |
284 | boi=SetMusic(597084853) | |
285 | ------------------------------- | |
286 | ||
287 | if char:FindFirstChild("HumanoidRootPart") ~= nil then | |
288 | rootpart = char:FindFirstChild("HumanoidRootPart") | |
289 | end | |
290 | if showtag == true then | |
291 | local bbg = Instance.new("BillboardGui",c) | |
292 | bbg.Adornee = c | |
293 | bbg.Name = "satuttava" | |
294 | bbg.Size = UDim2.new(6,0,2,0) | |
295 | bbg.StudsOffset = Vector3.new(0,2,0) | |
296 | local box = Instance.new("TextLabel",bbg) | |
297 | box.Size = UDim2.new(1,0,1,0) | |
298 | box.BackgroundColor = BrickColor.new("White") | |
299 | box.TextColor3 = Color3.new(255,0,0) | |
300 | box.TextStrokeTransparency = 0.5 | |
301 | box.Font = "Arcade" | |
302 | box.Text = Player.Name | |
303 | box.BackgroundTransparency = 1 | |
304 | box.Position = UDim2.new(0,0,0,0) | |
305 | box.TextScaled = true | |
306 | end | |
307 | if char:FindFirstChild("Humanoid") ~= nil then | |
308 | char:FindFirstChild("Humanoid").MaxHealth = (100*100*100*100)*100 | |
309 | wait() | |
310 | char:FindFirstChild("Humanoid").Health = char:FindFirstChild("Humanoid").MaxHealth | |
311 | --char:FindFirstChild("Humanoid").Name = game.Players.LocalPlayer.Name | |
312 | humanoid = char:FindFirstChild("Humanoid") | |
313 | if humanoid:FindFirstChild("Animator") ~= nil then | |
314 | humanoid:FindFirstChild("Animator"):Remove() | |
315 | --Instance.new("Animator",humanoid) | |
316 | end | |
317 | if char:FindFirstChild("Animate") ~= nil then | |
318 | char:FindFirstChild("Animate"):Remove() | |
319 | end | |
320 | end | |
321 | Mouse = player:GetMouse() | |
322 | Music = Instance.new("Sound",char.Head) | |
323 | Music.Volume = 1 | |
324 | Music.Looped = true | |
325 | Music.SoundId = Asset | |
326 | Animate = Instance.new("Animation",char.Head) | |
327 | Animate.AnimationId = Asset | |
328 | ||
329 | ||
330 | ||
331 | head = char:FindFirstChild("Head") | |
332 | torso = char:FindFirstChild("Torso") | |
333 | ra = char:findFirstChild("Right Arm") | |
334 | la = char:findFirstChild("Left Arm") | |
335 | rl = char:findFirstChild("Right Leg") | |
336 | ll = char:findFirstChild("Left Leg") | |
337 | rs = torso:findFirstChild("Right Shoulder") | |
338 | ls = torso:findFirstChild("Left Shoulder") | |
339 | rh = torso:findFirstChild("Right Hip") | |
340 | lh = torso:findFirstChild("Left Hip") | |
341 | neck = torso:findFirstChild("Neck") | |
342 | rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint") | |
343 | ||
344 | state = humanoid:GetState() | |
345 | local ca = nil | |
346 | ca=GenerateGui() | |
347 | ca.Parent = player.PlayerGui | |
348 | if ca:FindFirstChild("Logo") ~= nil then | |
349 | ca:FindFirstChild("Logo"):TweenPosition(UDim2.new(0, 0, 1, -100), "Out", "Quad", 3, true) | |
350 | if ca:FindFirstChild("Intro") ~= nil then | |
351 | ca:FindFirstChild("Intro"):Play() | |
352 | coroutine.resume(coroutine.create(function() | |
353 | for i=0,30 do | |
354 | ca:FindFirstChild("Intro").Volume = 1/(i/2) | |
355 | wait(0.5) | |
356 | if i >= 30 then | |
357 | break | |
358 | end | |
359 | end | |
360 | end)) | |
361 | end | |
362 | end | |
363 | ||
364 | if humanoid ~= nil then | |
365 | humanoid.Changed:connect(function(pro) | |
366 | if pro == "MoveDirection" or pro == "Jump" then | |
367 | if Music.IsPlaying == true then | |
368 | AnimationStop() | |
369 | end | |
370 | end | |
371 | end) | |
372 | humanoid.Died:connect(function() | |
373 | AnimationStop() | |
374 | end) | |
375 | ||
376 | Mouse.KeyUp:connect(function(key) | |
377 | if key == "w" then | |
378 | W = false | |
379 | end | |
380 | if key == "a" then | |
381 | A = false | |
382 | end | |
383 | if key == "s" then | |
384 | S = false | |
385 | end | |
386 | if key == "d" then | |
387 | D = false | |
388 | end | |
389 | if string.byte(key) == 48 then | |
390 | run = false | |
391 | end | |
392 | end) | |
393 | ||
394 | Mouse.KeyDown:connect(function(key) | |
395 | if key == "w" then | |
396 | W = true | |
397 | AnimationStop() | |
398 | end | |
399 | if key == "a" then | |
400 | A = true | |
401 | AnimationStop() | |
402 | end | |
403 | if key == "s" then | |
404 | S = true | |
405 | AnimationStop() | |
406 | end | |
407 | if key == "d" then | |
408 | D = true | |
409 | AnimationStop() | |
410 | end | |
411 | end) | |
412 | ||
413 | ||
414 | ||
415 | Mouse.KeyDown:connect(function(key) | |
416 | KeyUsed(key) | |
417 | end) | |
418 | end | |
419 | end | |
420 | print'fuck you!' | |
421 | end | |
422 | ||
423 | function KeyUsed(key) | |
424 | if humanoid ~= nil then | |
425 | if humanoid.Health > 0 then | |
426 | if string.byte(key) == 32 then | |
427 | jump = true | |
428 | AnimationStop() | |
429 | --sit = false | |
430 | end | |
431 | if string.byte(key) == 50 then | |
432 | AnimationStop() | |
433 | if sit == true then | |
434 | sit = false | |
435 | else | |
436 | sit = true | |
437 | end | |
438 | end | |
439 | if string.byte(key) == 48 then | |
440 | run = true | |
441 | end | |
442 | if W == false and A == false and S == false and D == false and jump == false and sit == false then | |
443 | if key == "Q" or key == "q" then | |
444 | AnimationStop() | |
445 | canttouch = true | |
446 | M1:Play() | |
447 | end | |
448 | if key == "E" or key == "e" then | |
449 | AnimationStop() | |
450 | party = true | |
451 | M2:Play() | |
452 | end | |
453 | if key == "R" or key == "r" then | |
454 | AnimationStop() | |
455 | jerk = true | |
456 | M3:Play() | |
457 | end | |
458 | if key == "T" or key == "t" then | |
459 | AnimationStop() | |
460 | happy = true | |
461 | M4:Play() | |
462 | end | |
463 | if key == "Y" or key == "y" then | |
464 | AnimationStop() | |
465 | spin = true | |
466 | M5:Play() | |
467 | end | |
468 | if key == "U" or key == "u" then | |
469 | AnimationStop() | |
470 | thriller = true | |
471 | M6:Play() | |
472 | end | |
473 | if key == "F" or key == "f" then | |
474 | AnimationStop() | |
475 | barrel = true | |
476 | M7:Play() | |
477 | if barrelbrick == nil and barrel == true then | |
478 | barrelbrick = P(2,2,1,'Black',0,false,false) | |
479 | a=fm(barrelbrick,29873142,1.1,0.8,1.1,31082268) a.VertexColor = Vector3.new(1,1,1) | |
480 | We(barrelbrick,char.Torso,0,-0.2,0,0,0,0) | |
481 | end | |
482 | end | |
483 | if key == "P" or key == "p" then | |
484 | AnimationStop() | |
485 | sax = true | |
486 | M8:Play() | |
487 | if saxtool == nil and sax == true then | |
488 | saxtool = P(1,2,2,'Black',0,false,false) | |
489 | a=fm(saxtool,44410178,1.5,1.5,1.5,44410320) a.VertexColor = Vector3.new(1,1,1) | |
490 | b=We(saxtool,char:FindFirstChild("Left Arm"),0,-1,0,0,0,0) | |
491 | b.C1 = CFrame.new(0.5, -0.9, -0.3) * CFrame.Angles(math.pi/1.5, -math.pi/2, -math.pi/8) | |
492 | end | |
493 | end | |
494 | if key == "G" or key == "g" then | |
495 | AnimationStop() | |
496 | spooky = true | |
497 | M9:Play() | |
498 | end | |
499 | if key == "H" or key == "h" then | |
500 | AnimationStop() | |
501 | stride = true | |
502 | M10:Play() | |
503 | end | |
504 | if key == "J" or key == "j" then | |
505 | AnimationStop() | |
506 | shuffle = true | |
507 | M11:Play() | |
508 | end | |
509 | if key == "K" or key == "k" then | |
510 | AnimationStop() | |
511 | rock = true | |
512 | M12:Play() | |
513 | end | |
514 | if key == "L" or key == "l" then | |
515 | AnimationStop() | |
516 | gagnam = true | |
517 | M13:Play() | |
518 | end | |
519 | if key == "Z" or key == "z" then | |
520 | AnimationStop() | |
521 | snoop = true | |
522 | M14:Play() | |
523 | end | |
524 | if key == "X" or key == "x" then | |
525 | AnimationStop() | |
526 | darude = true | |
527 | M15:Play() | |
528 | if sandstorm == nil and darude == true then | |
529 | sandstorm = P(1,1,1,'Black',0,false,false) | |
530 | sandstorm.Transparency = 1 | |
531 | a=Instance.new("Smoke",sandstorm) | |
532 | a.Color = Color3.new(255/255,255/255,175/255) | |
533 | a.Size = 0.4 | |
534 | a.RiseVelocity = 3 | |
535 | a.Opacity = 0.75 | |
536 | b=We(sandstorm,char:FindFirstChild("Torso"),0,0,0,0,0,0) | |
537 | b.C1 = CFrame.new(0, -2, 0) | |
538 | end | |
539 | end | |
540 | if key == "C" or key == "c" then | |
541 | AnimationStop() | |
542 | taco = true | |
543 | M16:Play() | |
544 | boi:Stop() | |
545 | end | |
546 | end | |
547 | end | |
548 | end | |
549 | end | |
550 | ||
551 | Generate(Player) | |
552 | ||
553 | game:service'RunService'.Stepped:connect(function() | |
554 | count = (count % 100) + countspeed | |
555 | angle = math.pi * math.sin(math.pi*2/100*count) | |
556 | countspeed = 1 | |
557 | ||
558 | state = humanoid:GetState() | |
559 | if state ~= Enum.HumanoidStateType.Freefall then | |
560 | jump = false | |
561 | else | |
562 | jump = true | |
563 | sit = false | |
564 | AnimationStop() | |
565 | end | |
566 | ||
567 | local mesh1anan = Instance.new("SpecialMesh") | |
568 | mesh1anan.MeshType = Enum.MeshType.FileMesh | |
569 | mesh1anan.Scale = Vector3.new(0.3,0.3,0.3) | |
570 | mesh1anan.MeshId = "http://www.roblox.com/asset/?id=430210147" | |
571 | mesh1anan.TextureId = "http://www.roblox.com/asset/?id=430210159" | |
572 | mesh1anan.Scale = Vector3.new(0.1,0.1,0.1) | |
573 | ||
574 | if taco == true then | |
575 | if char ~= nil then | |
576 | local locationanan = char:GetModelCFrame() | |
577 | local tacoa = Instance.new("Part") | |
578 | tacoa.CanCollide = false | |
579 | tacoa.RotVelocity = Vector3.new(math.random()*math.pi,math.random()*math.pi,math.random()*math.pi) | |
580 | local meshanananan = mesh1anan:clone() | |
581 | meshanananan.Parent = tacoa | |
582 | tacoa.CFrame = locationanan * CFrame.new(math.random()*500 - 250,math.random(100,200),math.random()*500 - 250) | |
583 | tacoa.Parent = workspace | |
584 | game:GetService("Debris"):AddItem(tacoa,4) | |
585 | end | |
586 | end | |
587 | ||
588 | ||
589 | ||
590 | ||
591 | if canttouch == false then | |
592 | M1:Stop() | |
593 | end | |
594 | if party == false then | |
595 | M2:Stop() | |
596 | end | |
597 | if jerk == false then | |
598 | M3:Stop() | |
599 | end | |
600 | if happy == false then | |
601 | M4:Stop() | |
602 | end | |
603 | if spin == false then | |
604 | M5:Stop() | |
605 | end | |
606 | if thriller == false then | |
607 | M6:Stop() | |
608 | end | |
609 | if barrel == false then | |
610 | M7:Stop() | |
611 | end | |
612 | if sax == false then | |
613 | M8:Stop() | |
614 | end | |
615 | if spooky == false then | |
616 | M9:Stop() | |
617 | end | |
618 | if stride == false then | |
619 | M10:Stop() | |
620 | end | |
621 | if shuffle == false then | |
622 | M11:Stop() | |
623 | end | |
624 | if rock == false then | |
625 | M12:Stop() | |
626 | end | |
627 | if gagnam == false then | |
628 | M13:Stop() | |
629 | end | |
630 | if snoop == false then | |
631 | M14:Stop() | |
632 | end | |
633 | if darude == false then | |
634 | M15:Stop() | |
635 | end | |
636 | if taco == false then | |
637 | M16:Stop() | |
638 | boi:Stop() | |
639 | end | |
640 | ||
641 | if run == true and sit == false then | |
642 | humanoid.WalkSpeed = 25 | |
643 | elseif sit == true then | |
644 | humanoid.WalkSpeed = 0 | |
645 | else | |
646 | humanoid.WalkSpeed = 16 | |
647 | end | |
648 | ||
649 | if global_wait == 380 then global_wait = 0 end | |
650 | ||
651 | if (W == false or A == false or S == false or D == false) and jump == false and sit == false then | |
652 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/75) | |
653 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/75) | |
654 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/75) | |
655 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/75) | |
656 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/75, math.pi, 0) | |
657 | rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2, math.pi, 0) | |
658 | end | |
659 | ||
660 | ||
661 | if (W == false or A == false or S == false or D == false) and jump == false and sit == true then | |
662 | local ray = Ray.new(torso.Position, Vector3.new(0, -3, 0)) | |
663 | local hitz,enz = workspace:FindPartOnRay(ray, char) | |
664 | if hitz then | |
665 | if rootpart:FindFirstChild("Weld") == nil then | |
666 | miniweld = Instance.new("Weld", rootpart) | |
667 | miniweld.C0 = hitz.CFrame:toObjectSpace(rootpart.CFrame) | |
668 | miniweld.Part0 = hitz | |
669 | miniweld.Part1 = rootpart | |
670 | humanoid.PlatformStand = true | |
671 | end | |
672 | end | |
673 | else | |
674 | if rootpart:FindFirstChild("Weld") ~= nil then | |
675 | rootpart:FindFirstChild("Weld"):Destroy() | |
676 | humanoid.PlatformStand = false | |
677 | end | |
678 | end | |
679 | ||
680 | if (W == false or A == false or S == false or D == false) and jump == false and sit == true then | |
681 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - math.pi/15) | |
682 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 + math.pi/15) | |
683 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + math.pi/8, 0, math.pi/2 - math.pi/15) | |
684 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + math.pi/8, 0, -math.pi/2 + math.pi/15) | |
685 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + math.pi/15, math.pi, 0) | |
686 | rj.C0 = CFrame.new(0, -2, 0) * CFrame.Angles(math.pi/2 + math.pi/15, math.pi, 0) | |
687 | end | |
688 | ||
689 | if jump == true and sit == false then | |
690 | countspeed = 2 | |
691 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi + angle/12) | |
692 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi + angle/12) | |
693 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/12) | |
694 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/12) | |
695 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/25, math.pi, 0) | |
696 | rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2+ angle/50, math.pi, 0) | |
697 | end | |
698 | ||
699 | if (W == true or A == true or S == true or D == true) and jump == false and sit == false then | |
700 | if run == true then | |
701 | countspeed = 4 | |
702 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/3) | |
703 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/3) | |
704 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/5) | |
705 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/5) | |
706 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/20, math.pi, 0) | |
707 | rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2 + angle/40, math.pi, 0) | |
708 | else | |
709 | countspeed = 2 | |
710 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/4) | |
711 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/4) | |
712 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/6) | |
713 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/6) | |
714 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/25, math.pi, 0) | |
715 | rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2+ angle/50, math.pi, 0) | |
716 | end | |
717 | end | |
718 | ||
719 | if W == false and A == false and S == false and D == false and jump == false and sit == false then | |
720 | if jerk == true and jump == false and sit == false then | |
721 | countspeed = 2 | |
722 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(angle/5, 0, angle/4) | |
723 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(angle/5, 0, -angle/4) | |
724 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(angle/10, 0, angle/5)-- * CFrame.Angles(angle*0.5, 0, -math.abs(angle*0.15)) | |
725 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(angle/10, 0, angle/5)-- * CFrame.Angles(-angle*0.5, 0, math.abs(angle*0.15)) | |
726 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/5, math.pi, 0) | |
727 | rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2 + angle/5, math.pi, 0) | |
728 | elseif party == true and jump == false and sit == false then | |
729 | countspeed = 4 | |
730 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(angle/15, 0, angle/15) | |
731 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(angle/15, 0, angle/15) | |
732 | ls.C1 = CFrame.new(0.25,0.5 + 1 * angle/10,0.5) * CFrame.Angles(math.pi + angle/10, 0, 0 + angle/10) | |
733 | rs.C1 = CFrame.new(-0.25,0.5 + 1 * angle/10,0.5) * CFrame.Angles(math.pi + angle/10, 0, 0 + angle/10) | |
734 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/10, math.pi, 0) | |
735 | rj.C0 = CFrame.new(0, 0.5 + angle/5, 0) * CFrame.Angles(math.pi/2, math.pi, 0) | |
736 | elseif canttouch == true and jump == false and sit == false then | |
737 | countspeed = 2 | |
738 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0 + angle/8, 0, math.pi/12 + angle/12) | |
739 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0 + angle/8, 0, -math.pi/12 - angle/12) | |
740 | lh.C1 = CFrame.new(0.35,0.7,0.5) * CFrame.Angles(0 + angle/10, 0, -math.pi/8) | |
741 | rh.C1 = CFrame.new(-0.35,0.7,0.5) * CFrame.Angles(0 + angle/10, 0, math.pi/8) | |
742 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/15, math.pi, 0) | |
743 | rj.C0 = CFrame.new(angle/4, -0.3 + angle/20, 0) * CFrame.Angles(math.pi/2, math.pi, 0) | |
744 | elseif happy == true and jump == false and sit == false then | |
745 | countspeed = 4 | |
746 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(math.pi/4, math.pi/8 + angle/8, math.pi/4 + angle/8) | |
747 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(math.pi/4, -math.pi/8 + angle/8, -math.pi/4 + angle/8) | |
748 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/10, 0, 0 + angle/10) | |
749 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/10, 0, 0 + angle/10) | |
750 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/15, math.pi + angle/15, 0 + angle/15) | |
751 | rj.C0 = CFrame.new(0, 0 + angle/20, 0) * CFrame.Angles(math.pi/2, math.pi, 0) | |
752 | elseif spin == true and jump == false and sit == false then | |
753 | global_wait = (global_wait % 360) + 4 | |
754 | countspeed = 4 | |
755 | ls.C1 = CFrame.new(0,1,0) * CFrame.Angles(math.pi/2, 0 + angle/10, 0 + angle/10) | |
756 | rs.C1 = CFrame.new(0,1,0) * CFrame.Angles(math.pi/2, 0 - angle/10, 0 + angle/10) | |
757 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/10, 0 + angle/10, 0 + angle/10) | |
758 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/10, 0 + angle/10, 0 + angle/10) | |
759 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0) | |
760 | rj.C0 = CFrame.new(0 + angle/25, 0, 0 - angle/25) * CFrame.Angles(math.pi/2, math.pi, math.rad(global_wait*4)) | |
761 | elseif thriller == true and jump == false and sit == false then | |
762 | countspeed = 2 | |
763 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi/2 + angle/15) | |
764 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, -math.pi/2 + angle/15) | |
765 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(math.pi/60 - angle/45, 0, 0 + angle/15) | |
766 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(math.pi/60 + angle/45, 0, 0 + angle/15) | |
767 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/15, math.pi + angle/10, 0) | |
768 | rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2 + angle/50 , math.pi + angle/50, 0 + angle/50) | |
769 | elseif barrel == true and jump == false and sit == false then | |
770 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi) | |
771 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi) | |
772 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0) | |
773 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0) | |
774 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0) | |
775 | rj.C0 = CFrame.new(0 + angle, -1.8, 0) * CFrame.Angles(0, math.pi, 0 + angle) | |
776 | elseif sax == true and jump == false and sit == false then | |
777 | countspeed = 2 | |
778 | ls.C1 = CFrame.new(0,0.75,-0.25) * CFrame.Angles(-math.pi/5, 0, math.pi/2 - math.abs(angle/30)) | |
779 | rs.C1 = CFrame.new(0,0.75,-0.25) * CFrame.Angles(-math.pi/5, 0, -math.pi/2 + math.abs(angle/30)) | |
780 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 - math.abs(angle/30)) | |
781 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + math.abs(angle/30)) | |
782 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0) | |
783 | rj.C0 = CFrame.new(0, -math.abs(angle*0.05), math.abs(angle*0.025)) * CFrame.Angles(math.pi/2 + math.abs(angle/20), math.pi, 0) | |
784 | elseif spooky == true and jump == false and sit == false then | |
785 | countspeed = 3 | |
786 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi/2 - angle/1.5) | |
787 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, -math.pi/2 + angle/1.5) | |
788 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 - angle/16) | |
789 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/16) | |
790 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/12, math.pi, 0) | |
791 | rj.C0 = CFrame.new(0, 0 + angle / 35, 0) * CFrame.Angles(math.pi/2 + angle/25, math.pi, 0) | |
792 | elseif stride == true and jump == false and sit == false then | |
793 | countspeed = 2.5 | |
794 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(angle/16, angle/16,math.pi/3.5 + angle/8) | |
795 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(angle/16, -angle/16,-math.pi/1.5 + -angle/8) | |
796 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, angle/16, angle/16) | |
797 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, angle/16, angle/16) | |
798 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0) | |
799 | rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2-angle/16, math.pi, 0) | |
800 | elseif shuffle == true and jump == false and sit == false then | |
801 | countspeed = 2 | |
802 | ls.C1 = CFrame.new(0,0.75,-0.35) * CFrame.Angles(math.pi/8, 0, math.pi/2 + angle/3.5) | |
803 | rs.C1 = CFrame.new(0,0.75,-0.35) * CFrame.Angles(math.pi/8, 0, -math.pi/2 + angle/3.5) | |
804 | lh.C1 = CFrame.new(0 + angle/50,1,0.5) * CFrame.Angles(0, 0 + angle/35, 0 + angle/15) | |
805 | rh.C1 = CFrame.new(0 + angle/50,1,0.5) * CFrame.Angles(0, 0 + angle/35, 0 + angle/15) | |
806 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/15, math.pi, 0) | |
807 | rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2 - angle/35, math.pi - angle/35, 0) | |
808 | elseif rock == true and jump == false and sit == false then | |
809 | countspeed = 4 | |
810 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi/2+angle/2) | |
811 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, -math.pi/2+angle/2) | |
812 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0+angle/32, 0, 0+angle/32) | |
813 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0+angle/32, 0, 0-angle/32) | |
814 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0) | |
815 | rj.C0 = CFrame.new(0, 0 - angle/50, 0) * CFrame.Angles(math.pi/2, math.pi, 0) | |
816 | elseif gagnam == true and jump == false and sit == false then | |
817 | countspeed = 5 | |
818 | ls.C1 = CFrame.new(-0.15,0.75,0) * CFrame.Angles(-math.pi/4, 0, (math.pi/2 + angle/14) - math.pi/20) | |
819 | rs.C1 = CFrame.new(-0.15,0.75,0) * CFrame.Angles(-math.pi/4, 0, (-math.pi/2 - angle/14) + math.pi/20) | |
820 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/16, 0, 0) | |
821 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/16, 0, 0) | |
822 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/20, math.pi, 0) | |
823 | rj.C0 = CFrame.new(0, 0 + angle/40, 0) * CFrame.Angles(math.pi/2, math.pi, 0) | |
824 | elseif snoop == true and jump == false and sit == false then | |
825 | countspeed = 2 | |
826 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(math.pi/12, 0, math.pi/4 + angle/4) | |
827 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(math.pi/12, 0, -math.pi/4 + angle/4) | |
828 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(math.pi/24, 0, 0 + angle/4) | |
829 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(math.pi/24, 0, 0 + angle/4) | |
830 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 - angle/8, math.pi, 0) | |
831 | rj.C0 = CFrame.new(0, 0 + angle/48, 0) * CFrame.Angles(math.pi/2 + angle/24, math.pi, 0) | |
832 | elseif darude == true and jump == false and sit == false then | |
833 | countspeed = 3 | |
834 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 + angle/1.5) | |
835 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 + angle/3) | |
836 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 - angle/3) | |
837 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 - angle/1.5) | |
838 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0) | |
839 | rj.C0 = CFrame.new(0, 0+ angle/45, 0) * CFrame.Angles(math.pi/2 - angle/6, math.pi, 0) | |
840 | elseif taco == true and jump == false and sit == false then | |
841 | countspeed = 20 | |
842 | global_wait = (global_wait % 360) + 4 | |
843 | ls.C1 = CFrame.new(0,1,-0.25) * CFrame.Angles(math.pi/6 + angle/12, 0, math.pi) | |
844 | rs.C1 = CFrame.new(0,1,-0.25) * CFrame.Angles(math.pi/6 + angle/12, 0, math.pi) | |
845 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, math.pi/8 + angle/16) | |
846 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, math.pi/8 + angle/16) | |
847 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 - math.pi/8 + angle/16, math.pi, 0) | |
848 | rj.C0 = CFrame.new(0, 0.25 + angle/12, 0) * CFrame.Angles(math.pi/2, math.pi, math.rad(global_wait*4)) | |
849 | end | |
850 | end | |
851 | end) |