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 = "KrystalDance By KrystalTeam" | |
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 .. "269467798" | |
201 | b.Name = "Logo" | |
202 | c=Instance.new("Sound",a) | |
203 | c.Name = "Intro" | |
204 | c.Volume = 1 | |
205 | c.SoundId = Asset .. "236146895" | |
206 | c.Looped = false | |
207 | return a | |
208 | end | |
209 | ||
210 | function Generate(player) | |
211 | char = player.Character | |
212 | Hat1 = P(1,1,1,'Black',0,false,false) | |
213 | Hat2 = P(1,1,1,'Black',0,false,false) | |
214 | wait() | |
215 | a=fm(Hat1,1577360,1,1,1,1577349) a.VertexColor = Vector3.new(1,1,1) | |
216 | b=fm(Hat2,13640868,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 |
232 | + | if v:IsA'Hat' then |
233 | - | v:Remove() |
233 | + | v:Destroy() |
234 | end | |
235 | - | if v.ClassName == "BodyColors" then |
235 | + | if v:IsA'Shirt' or v:IsA'Pants' then |
236 | - | v.HeadColor = BrickColor.new("White") |
236 | + | v:Destroy() |
237 | - | v.LeftArmColor = BrickColor.new("Really black") |
237 | + | |
238 | - | v.LeftLegColor = BrickColor.new("Really black") |
238 | + | |
239 | - | v.RightArmColor = BrickColor.new("Really black") |
239 | + | |
240 | - | v.RightLegColor = BrickColor.new("Really black") |
240 | + | v.BrickColor = BrickColor.new("Lime green") |
241 | - | v.TorsoColor = BrickColor.new("Really black") |
241 | + | |
242 | v.BrickColor = BrickColor.new("Really black") | |
243 | end | |
244 | end | |
245 | - | v.BrickColor = BrickColor.new("White") |
245 | + | |
246 | ----------musics--------------- | |
247 | M1=SetMusic(168007346) | |
248 | M2=SetMusic(144901116) | |
249 | M3=SetMusic(168570436) | |
250 | M4=SetMusic(142435409) | |
251 | M5=SetMusic(131525189) | |
252 | M6=SetMusic(133196268) | |
253 | M7=SetMusic(130791919) | |
254 | M8=SetMusic(130794684) | |
255 | M9=SetMusic(240378394) | |
256 | M10=SetMusic(239648695) | |
257 | M11=SetMusic(145262991) | |
258 | M12=SetMusic(151430448) | |
259 | M13=SetMusic(130844430) | |
260 | - | M9=SetMusic(155313239) |
260 | + | |
261 | M15=SetMusic(179534184) | |
262 | M16=SetMusic(260584729) | |
263 | ------------------------------- | |
264 | ||
265 | if char:FindFirstChild("HumanoidRootPart") ~= nil then | |
266 | rootpart = char:FindFirstChild("HumanoidRootPart") | |
267 | end | |
268 | if showtag == true then | |
269 | local bbg = Instance.new("BillboardGui",c) | |
270 | bbg.Adornee = c | |
271 | bbg.Name = "satuttava" | |
272 | bbg.Size = UDim2.new(6,0,2,0) | |
273 | bbg.StudsOffset = Vector3.new(0,2,0) | |
274 | local box = Instance.new("TextLabel",bbg) | |
275 | box.Size = UDim2.new(1,0,1,0) | |
276 | box.BackgroundColor = BrickColor.new("White") | |
277 | box.TextColor3 = Color3.new(255,0,0) | |
278 | box.TextStrokeTransparency = 0.5 | |
279 | box.Font = 3 | |
280 | box.Text = Player.Name | |
281 | box.BackgroundTransparency = 1 | |
282 | box.Position = UDim2.new(0,0,0,0) | |
283 | box.TextScaled = true | |
284 | end | |
285 | if char:FindFirstChild("Humanoid") ~= nil then | |
286 | char:FindFirstChild("Humanoid").MaxHealth = (100*100*100*100)*100 | |
287 | wait() | |
288 | char:FindFirstChild("Humanoid").Health = char:FindFirstChild("Humanoid").MaxHealth | |
289 | --char:FindFirstChild("Humanoid").Name = game.Players.LocalPlayer.Name | |
290 | humanoid = char:FindFirstChild("Humanoid") | |
291 | if humanoid:FindFirstChild("Animator") ~= nil then | |
292 | humanoid:FindFirstChild("Animator"):Remove() | |
293 | --Instance.new("Animator",humanoid) | |
294 | end | |
295 | if char:FindFirstChild("Animate") ~= nil then | |
296 | char:FindFirstChild("Animate"):Remove() | |
297 | end | |
298 | end | |
299 | Mouse = player:GetMouse() | |
300 | Music = Instance.new("Sound",char.Head) | |
301 | Music.Volume = 1 | |
302 | Music.Looped = true | |
303 | Music.SoundId = Asset | |
304 | Animate = Instance.new("Animation",char.Head) | |
305 | Animate.AnimationId = Asset | |
306 | ||
307 | ||
308 | ||
309 | head = char:FindFirstChild("Head") | |
310 | torso = char:FindFirstChild("Torso") | |
311 | ra = char:findFirstChild("Right Arm") | |
312 | la = char:findFirstChild("Left Arm") | |
313 | rl = char:findFirstChild("Right Leg") | |
314 | ll = char:findFirstChild("Left Leg") | |
315 | rs = torso:findFirstChild("Right Shoulder") | |
316 | ls = torso:findFirstChild("Left Shoulder") | |
317 | rh = torso:findFirstChild("Right Hip") | |
318 | lh = torso:findFirstChild("Left Hip") | |
319 | neck = torso:findFirstChild("Neck") | |
320 | rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint") | |
321 | ||
322 | state = humanoid:GetState() | |
323 | local ca = nil | |
324 | ca=GenerateGui() | |
325 | ca.Parent = player.PlayerGui | |
326 | if ca:FindFirstChild("Logo") ~= nil then | |
327 | ca:FindFirstChild("Logo"):TweenPosition(UDim2.new(0, 0, 1, -100), "Out", "Quad", 3, true) | |
328 | if ca:FindFirstChild("Intro") ~= nil then | |
329 | ca:FindFirstChild("Intro"):Play() | |
330 | coroutine.resume(coroutine.create(function() | |
331 | for i=0,30 do | |
332 | ca:FindFirstChild("Intro").Volume = 1/(i/2) | |
333 | wait(0.5) | |
334 | if i >= 30 then | |
335 | break | |
336 | end | |
337 | end | |
338 | end)) | |
339 | end | |
340 | end | |
341 | ||
342 | if humanoid ~= nil then | |
343 | humanoid.Changed:connect(function(pro) | |
344 | if pro == "MoveDirection" or pro == "Jump" then | |
345 | if Music.IsPlaying == true then | |
346 | AnimationStop() | |
347 | end | |
348 | end | |
349 | end) | |
350 | humanoid.Died:connect(function() | |
351 | AnimationStop() | |
352 | end) | |
353 | ||
354 | Mouse.KeyUp:connect(function(key) | |
355 | if key == "w" then | |
356 | W = false | |
357 | end | |
358 | if key == "a" then | |
359 | A = false | |
360 | end | |
361 | if key == "s" then | |
362 | S = false | |
363 | end | |
364 | if key == "d" then | |
365 | D = false | |
366 | end | |
367 | if string.byte(key) == 48 then | |
368 | run = false | |
369 | end | |
370 | end) | |
371 | ||
372 | Mouse.KeyDown:connect(function(key) | |
373 | if key == "w" then | |
374 | W = true | |
375 | AnimationStop() | |
376 | end | |
377 | if key == "a" then | |
378 | A = true | |
379 | AnimationStop() | |
380 | end | |
381 | if key == "s" then | |
382 | S = true | |
383 | AnimationStop() | |
384 | end | |
385 | if key == "d" then | |
386 | D = true | |
387 | AnimationStop() | |
388 | end | |
389 | end) | |
390 | ||
391 | ||
392 | ||
393 | Mouse.KeyDown:connect(function(key) | |
394 | KeyUsed(key) | |
395 | end) | |
396 | end | |
397 | end | |
398 | print'KrystalDance By: KrystalTeam as fully Loaded!' | |
399 | end | |
400 | ||
401 | function KeyUsed(key) | |
402 | if humanoid ~= nil then | |
403 | if humanoid.Health > 0 then | |
404 | if string.byte(key) == 32 then | |
405 | jump = true | |
406 | AnimationStop() | |
407 | --sit = false | |
408 | end | |
409 | if string.byte(key) == 50 then | |
410 | AnimationStop() | |
411 | if sit == true then | |
412 | sit = false | |
413 | else | |
414 | sit = true | |
415 | end | |
416 | end | |
417 | if string.byte(key) == 48 then | |
418 | run = true | |
419 | end | |
420 | if W == false and A == false and S == false and D == false and jump == false and sit == false then | |
421 | if key == "Q" or key == "q" then | |
422 | AnimationStop() | |
423 | canttouch = true | |
424 | M1:Play() | |
425 | end | |
426 | if key == "E" or key == "e" then | |
427 | AnimationStop() | |
428 | party = true | |
429 | M2:Play() | |
430 | end | |
431 | if key == "R" or key == "r" then | |
432 | AnimationStop() | |
433 | jerk = true | |
434 | M3:Play() | |
435 | end | |
436 | if key == "T" or key == "t" then | |
437 | AnimationStop() | |
438 | happy = true | |
439 | M4:Play() | |
440 | end | |
441 | if key == "Y" or key == "y" then | |
442 | AnimationStop() | |
443 | spin = true | |
444 | M5:Play() | |
445 | end | |
446 | if key == "U" or key == "u" then | |
447 | AnimationStop() | |
448 | thriller = true | |
449 | M6:Play() | |
450 | end | |
451 | if key == "F" or key == "f" then | |
452 | AnimationStop() | |
453 | barrel = true | |
454 | M7:Play() | |
455 | if barrelbrick == nil and barrel == true then | |
456 | barrelbrick = P(2,2,1,'Black',0,false,false) | |
457 | a=fm(barrelbrick,29873142,1.1,0.8,1.1,31082268) a.VertexColor = Vector3.new(1,1,1) | |
458 | We(barrelbrick,char.Torso,0,-0.2,0,0,0,0) | |
459 | end | |
460 | end | |
461 | if key == "P" or key == "p" then | |
462 | AnimationStop() | |
463 | sax = true | |
464 | M8:Play() | |
465 | if saxtool == nil and sax == true then | |
466 | saxtool = P(1,2,2,'Black',0,false,false) | |
467 | a=fm(saxtool,44410178,1.5,1.5,1.5,44410320) a.VertexColor = Vector3.new(1,1,1) | |
468 | b=We(saxtool,char:FindFirstChild("Left Arm"),0,-1,0,0,0,0) | |
469 | b.C1 = CFrame.new(0.5, -0.9, -0.3) * CFrame.Angles(math.pi/1.5, -math.pi/2, -math.pi/8) | |
470 | end | |
471 | end | |
472 | if key == "G" or key == "g" then | |
473 | AnimationStop() | |
474 | spooky = true | |
475 | M9:Play() | |
476 | end | |
477 | if key == "H" or key == "h" then | |
478 | AnimationStop() | |
479 | stride = true | |
480 | M10:Play() | |
481 | end | |
482 | if key == "J" or key == "j" then | |
483 | AnimationStop() | |
484 | shuffle = true | |
485 | M11:Play() | |
486 | end | |
487 | if key == "K" or key == "k" then | |
488 | AnimationStop() | |
489 | rock = true | |
490 | M12:Play() | |
491 | end | |
492 | if key == "L" or key == "l" then | |
493 | AnimationStop() | |
494 | gagnam = true | |
495 | M13:Play() | |
496 | end | |
497 | if key == "Z" or key == "z" then | |
498 | AnimationStop() | |
499 | snoop = true | |
500 | M14:Play() | |
501 | end | |
502 | if key == "X" or key == "x" then | |
503 | AnimationStop() | |
504 | darude = true | |
505 | M15:Play() | |
506 | if sandstorm == nil and darude == true then | |
507 | sandstorm = P(1,1,1,'Black',0,false,false) | |
508 | sandstorm.Transparency = 1 | |
509 | a=Instance.new("Smoke",sandstorm) | |
510 | a.Color = Color3.new(255/255,255/255,175/255) | |
511 | a.Size = 0.4 | |
512 | a.RiseVelocity = 3 | |
513 | a.Opacity = 0.75 | |
514 | b=We(sandstorm,char:FindFirstChild("Torso"),0,0,0,0,0,0) | |
515 | b.C1 = CFrame.new(0, -2, 0) | |
516 | end | |
517 | end | |
518 | if key == "C" or key == "c" then | |
519 | AnimationStop() | |
520 | taco = true | |
521 | M16:Play() | |
522 | end | |
523 | end | |
524 | end | |
525 | end | |
526 | end | |
527 | ||
528 | Generate(Player) | |
529 | ||
530 | game:service'RunService'.Stepped:connect(function() | |
531 | count = (count % 100) + countspeed | |
532 | angle = math.pi * math.sin(math.pi*2/100*count) | |
533 | countspeed = 1 | |
534 | ||
535 | state = humanoid:GetState() | |
536 | if state ~= Enum.HumanoidStateType.Freefall then | |
537 | jump = false | |
538 | else | |
539 | jump = true | |
540 | sit = false | |
541 | AnimationStop() | |
542 | end | |
543 | ||
544 | local mesh1anan = Instance.new("SpecialMesh") | |
545 | mesh1anan.MeshType = Enum.MeshType.FileMesh | |
546 | mesh1anan.Scale = Vector3.new(3,3,3) | |
547 | mesh1anan.MeshId = "http://www.roblox.com/asset/?id=14846869" | |
548 | mesh1anan.TextureId = "http://www.roblox.com/asset/?id=14846834" | |
549 | if taco == true then | |
550 | if char ~= nil then | |
551 | local locationanan = char:GetModelCFrame() | |
552 | local tacoa = Instance.new("Part") | |
553 | tacoa.CanCollide = false | |
554 | tacoa.RotVelocity = Vector3.new(math.random()*math.pi,math.random()*math.pi,math.random()*math.pi) | |
555 | local meshanananan = mesh1anan:clone() | |
556 | meshanananan.Parent = tacoa | |
557 | meshanananan.Scale = Vector3.new(math.random()*20,math.random()*20,math.random()*20) | |
558 | tacoa.CFrame = locationanan * CFrame.new(math.random()*500 - 250,math.random(100,200),math.random()*500 - 250) | |
559 | tacoa.Parent = workspace | |
560 | game:GetService("Debris"):AddItem(tacoa,4) | |
561 | end | |
562 | end | |
563 | ||
564 | ||
565 | ||
566 | ||
567 | if canttouch == false then | |
568 | M1:Stop() | |
569 | end | |
570 | if party == false then | |
571 | M2:Stop() | |
572 | end | |
573 | if jerk == false then | |
574 | M3:Stop() | |
575 | end | |
576 | if happy == false then | |
577 | M4:Stop() | |
578 | end | |
579 | if spin == false then | |
580 | M5:Stop() | |
581 | end | |
582 | if thriller == false then | |
583 | M6:Stop() | |
584 | end | |
585 | if barrel == false then | |
586 | M7:Stop() | |
587 | end | |
588 | if sax == false then | |
589 | M8:Stop() | |
590 | end | |
591 | if spooky == false then | |
592 | M9:Stop() | |
593 | end | |
594 | if stride == false then | |
595 | M10:Stop() | |
596 | end | |
597 | if shuffle == false then | |
598 | M11:Stop() | |
599 | end | |
600 | if rock == false then | |
601 | M12:Stop() | |
602 | end | |
603 | if gagnam == false then | |
604 | M13:Stop() | |
605 | end | |
606 | if snoop == false then | |
607 | M14:Stop() | |
608 | end | |
609 | if darude == false then | |
610 | M15:Stop() | |
611 | end | |
612 | if taco == false then | |
613 | M16:Stop() | |
614 | end | |
615 | ||
616 | if run == true and sit == false then | |
617 | humanoid.WalkSpeed = 25 | |
618 | elseif sit == true then | |
619 | humanoid.WalkSpeed = 0 | |
620 | else | |
621 | humanoid.WalkSpeed = 16 | |
622 | end | |
623 | ||
624 | if global_wait == 380 then global_wait = 0 end | |
625 | ||
626 | if (W == false or A == false or S == false or D == false) and jump == false and sit == false then | |
627 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/75) | |
628 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/75) | |
629 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/75) | |
630 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/75) | |
631 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/75, math.pi, 0) | |
632 | rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2, math.pi, 0) | |
633 | end | |
634 | ||
635 | ||
636 | if (W == false or A == false or S == false or D == false) and jump == false and sit == true then | |
637 | local ray = Ray.new(torso.Position, Vector3.new(0, -3, 0)) | |
638 | local hitz,enz = workspace:FindPartOnRay(ray, char) | |
639 | if hitz then | |
640 | if rootpart:FindFirstChild("Weld") == nil then | |
641 | miniweld = Instance.new("Weld", rootpart) | |
642 | miniweld.C0 = hitz.CFrame:toObjectSpace(rootpart.CFrame) | |
643 | miniweld.Part0 = hitz | |
644 | miniweld.Part1 = rootpart | |
645 | humanoid.PlatformStand = true | |
646 | end | |
647 | end | |
648 | else | |
649 | if rootpart:FindFirstChild("Weld") ~= nil then | |
650 | rootpart:FindFirstChild("Weld"):Destroy() | |
651 | humanoid.PlatformStand = false | |
652 | end | |
653 | end | |
654 | ||
655 | if (W == false or A == false or S == false or D == false) and jump == false and sit == true then | |
656 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - math.pi/15) | |
657 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 + math.pi/15) | |
658 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + math.pi/8, 0, math.pi/2 - math.pi/15) | |
659 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + math.pi/8, 0, -math.pi/2 + math.pi/15) | |
660 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + math.pi/15, math.pi, 0) | |
661 | rj.C0 = CFrame.new(0, -2, 0) * CFrame.Angles(math.pi/2 + math.pi/15, math.pi, 0) | |
662 | end | |
663 | ||
664 | if jump == true and sit == false then | |
665 | countspeed = 2 | |
666 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi + angle/12) | |
667 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi + angle/12) | |
668 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/12) | |
669 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/12) | |
670 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/25, math.pi, 0) | |
671 | rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2+ angle/50, math.pi, 0) | |
672 | end | |
673 | ||
674 | if (W == true or A == true or S == true or D == true) and jump == false and sit == false then | |
675 | if run == true then | |
676 | countspeed = 4 | |
677 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/3) | |
678 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/3) | |
679 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/5) | |
680 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/5) | |
681 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/20, math.pi, 0) | |
682 | rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2 + angle/40, math.pi, 0) | |
683 | else | |
684 | countspeed = 2 | |
685 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/4) | |
686 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/4) | |
687 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/6) | |
688 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/6) | |
689 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/25, math.pi, 0) | |
690 | rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2+ angle/50, math.pi, 0) | |
691 | end | |
692 | end | |
693 | ||
694 | if W == false and A == false and S == false and D == false and jump == false and sit == false then | |
695 | if jerk == true and jump == false and sit == false then | |
696 | countspeed = 2 | |
697 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(angle/5, 0, angle/5) | |
698 | rs.C1 = CFrame.new(.5,0.5,0.5) * CFrame.Angles(angle/5, 0, -angle/5) | |
699 | lh.C1 = CFrame.new(1,.5,0.5) * CFrame.Angles(angle/5, 0, angle/5)-- * CFrame.Angles(angle*.5, 0, -math.abs(angle*0.20)) | |
700 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(angle/10, 0, angle/5)-- * CFrame.Angles(-angle*.5, 0, math.abs(angle*0.15)) | |
701 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/5, math.pi, 0) | |
702 | rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2 + angle/5, math.pi, 0) | |
703 | elseif party == true and jump == false and sit == false then | |
704 | countspeed = 4 | |
705 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(angle/15, 0, angle/15) | |
706 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(angle/15, 0, angle/15) | |
707 | ls.C1 = CFrame.new(0.25,0.5 + 1 * angle/10,0.5) * CFrame.Angles(math.pi + angle/10, 0, 0 + angle/10) | |
708 | rs.C1 = CFrame.new(-0.25,0.5 + 1 * angle/10,0.5) * CFrame.Angles(math.pi + angle/10, 0, 0 + angle/10) | |
709 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/10, math.pi, 0) | |
710 | rj.C0 = CFrame.new(0, 0.5 + angle/5, 0) * CFrame.Angles(math.pi/2, math.pi, 0) | |
711 | elseif canttouch == true and jump == false and sit == false then | |
712 | countspeed = 2 | |
713 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0 + angle/8, 0, math.pi/12 + angle/12) | |
714 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0 + angle/8, 0, -math.pi/12 - angle/12) | |
715 | lh.C1 = CFrame.new(0.35,0.7,0.5) * CFrame.Angles(0 + angle/10, 0, -math.pi/8) | |
716 | rh.C1 = CFrame.new(-0.35,0.7,0.5) * CFrame.Angles(0 + angle/10, 0, math.pi/8) | |
717 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/15, math.pi, 0) | |
718 | rj.C0 = CFrame.new(angle/4, -0.3 + angle/20, 0) * CFrame.Angles(math.pi/2, math.pi, 0) | |
719 | elseif happy == true and jump == false and sit == false then | |
720 | countspeed = 4 | |
721 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(math.pi/4, math.pi/8 + angle/8, math.pi/4 + angle/8) | |
722 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(math.pi/4, -math.pi/8 + angle/8, -math.pi/4 + angle/8) | |
723 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/10, 0, 0 + angle/10) | |
724 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/10, 0, 0 + angle/10) | |
725 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/15, math.pi + angle/15, 0 + angle/15) | |
726 | rj.C0 = CFrame.new(0, 0 + angle/20, 0) * CFrame.Angles(math.pi/2, math.pi, 0) | |
727 | elseif spin == true and jump == false and sit == false then | |
728 | global_wait = (global_wait % 360) + 4 | |
729 | countspeed = 4 | |
730 | ls.C1 = CFrame.new(0,1,0) * CFrame.Angles(math.pi/2, 0 + angle/10, 0 + angle/10) | |
731 | rs.C1 = CFrame.new(0,1,0) * CFrame.Angles(math.pi/2, 0 - angle/10, 0 + angle/10) | |
732 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/10, 0 + angle/10, 0 + angle/10) | |
733 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/10, 0 + angle/10, 0 + angle/10) | |
734 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0) | |
735 | rj.C0 = CFrame.new(0 + angle/25, 0, 0 - angle/25) * CFrame.Angles(math.pi/2, math.pi, math.rad(global_wait*4)) | |
736 | elseif thriller == true and jump == false and sit == false then | |
737 | countspeed = 2 | |
738 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi/2 + angle/15) | |
739 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, -math.pi/2 + angle/15) | |
740 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(math.pi/60 - angle/45, 0, 0 + angle/15) | |
741 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(math.pi/60 + angle/45, 0, 0 + angle/15) | |
742 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/15, math.pi + angle/10, 0) | |
743 | rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2 + angle/50 , math.pi + angle/50, 0 + angle/50) | |
744 | elseif barrel == true and jump == false and sit == false then | |
745 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi) | |
746 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi) | |
747 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0) | |
748 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0) | |
749 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0) | |
750 | rj.C0 = CFrame.new(0 + angle, -1.8, 0) * CFrame.Angles(0, math.pi, 0 + angle) | |
751 | elseif sax == true and jump == false and sit == false then | |
752 | countspeed = 2 | |
753 | ls.C1 = CFrame.new(0,0.75,-0.25) * CFrame.Angles(-math.pi/5, 0, math.pi/2 - math.abs(angle/30)) | |
754 | rs.C1 = CFrame.new(0,0.75,-0.25) * CFrame.Angles(-math.pi/5, 0, -math.pi/2 + math.abs(angle/30)) | |
755 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 - math.abs(angle/30)) | |
756 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + math.abs(angle/30)) | |
757 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0) | |
758 | 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) | |
759 | elseif spooky == true and jump == false and sit == false then | |
760 | countspeed = 3 | |
761 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi/2 - angle/1.5) | |
762 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, -math.pi/2 + angle/1.5) | |
763 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 - angle/16) | |
764 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/16) | |
765 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/12, math.pi, 0) | |
766 | rj.C0 = CFrame.new(0, 0 + angle / 35, 0) * CFrame.Angles(math.pi/2 + angle/25, math.pi, 0) | |
767 | elseif stride == true and jump == false and sit == false then | |
768 | countspeed = 2.5 | |
769 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(angle/16, angle/16,math.pi/3.5 + angle/8) | |
770 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(angle/16, -angle/16,-math.pi/1.5 + -angle/8) | |
771 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, angle/16, angle/16) | |
772 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, angle/16, angle/16) | |
773 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0) | |
774 | rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2-angle/16, math.pi, 0) | |
775 | elseif shuffle == true and jump == false and sit == false then | |
776 | countspeed = 2 | |
777 | ls.C1 = CFrame.new(0,0.75,-0.35) * CFrame.Angles(math.pi/8, 0, math.pi/2 + angle/3.5) | |
778 | rs.C1 = CFrame.new(0,0.75,-0.35) * CFrame.Angles(math.pi/8, 0, -math.pi/2 + angle/3.5) | |
779 | lh.C1 = CFrame.new(0 + angle/50,1,0.5) * CFrame.Angles(0, 0 + angle/35, 0 + angle/15) | |
780 | rh.C1 = CFrame.new(0 + angle/50,1,0.5) * CFrame.Angles(0, 0 + angle/35, 0 + angle/15) | |
781 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/15, math.pi, 0) | |
782 | rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2 - angle/35, math.pi - angle/35, 0) | |
783 | elseif rock == true and jump == false and sit == false then | |
784 | countspeed = 4 | |
785 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi/2+angle/2) | |
786 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, -math.pi/2+angle/2) | |
787 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0+angle/32, 0, 0+angle/32) | |
788 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0+angle/32, 0, 0-angle/32) | |
789 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0) | |
790 | rj.C0 = CFrame.new(0, 0 - angle/50, 0) * CFrame.Angles(math.pi/2, math.pi, 0) | |
791 | elseif gagnam == true and jump == false and sit == false then | |
792 | countspeed = 4 | |
793 | ls.C1 = CFrame.new(0,0.75,-0.15) * CFrame.Angles(-math.pi/4, 0, (math.pi/2 + angle/14) - math.pi/20) | |
794 | rs.C1 = CFrame.new(0,0.75,-0.15) * CFrame.Angles(-math.pi/4, 0, (-math.pi/2 - angle/14) + math.pi/20) | |
795 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/16, 0, 0) | |
796 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/16, 0, 0) | |
797 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/20, math.pi, 0) | |
798 | rj.C0 = CFrame.new(0, 0 + angle/40, 0) * CFrame.Angles(math.pi/2, math.pi, 0) | |
799 | elseif snoop == true and jump == false and sit == false then | |
800 | countspeed = 2 | |
801 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(math.pi/12, 0, math.pi/4 + angle/4) | |
802 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(math.pi/12, 0, -math.pi/4 + angle/4) | |
803 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(math.pi/24, 0, 0 + angle/4) | |
804 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(math.pi/24, 0, 0 + angle/4) | |
805 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 - angle/8, math.pi, 0) | |
806 | rj.C0 = CFrame.new(0, 0 + angle/48, 0) * CFrame.Angles(math.pi/2 + angle/24, math.pi, 0) | |
807 | elseif darude == true and jump == false and sit == false then | |
808 | countspeed = 3 | |
809 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 + angle/1.5) | |
810 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 + angle/3) | |
811 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 - angle/3) | |
812 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 - angle/1.5) | |
813 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0) | |
814 | rj.C0 = CFrame.new(0, 0+ angle/45, 0) * CFrame.Angles(math.pi/2 - angle/6, math.pi, 0) | |
815 | elseif taco == true and jump == false and sit == false then | |
816 | countspeed = 4 | |
817 | global_wait = (global_wait % 360) + 4 | |
818 | ls.C1 = CFrame.new(0,1,-0.25) * CFrame.Angles(math.pi/6 + angle/12, 0, math.pi) | |
819 | rs.C1 = CFrame.new(0,1,-0.25) * CFrame.Angles(math.pi/6 + angle/12, 0, math.pi) | |
820 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, math.pi/8 + angle/16) | |
821 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, math.pi/8 + angle/16) | |
822 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 - math.pi/8 + angle/16, math.pi, 0) | |
823 | rj.C0 = CFrame.new(0, 0.25 + angle/12, 0) * CFrame.Angles(math.pi/2, math.pi, math.rad(global_wait*4)) | |
824 | end | |
825 | end | |
826 | end) |