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