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