Bruno972

dance

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