TheProNoob2004

Krystal Dance Script

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