Advertisement
ohhhhhhshdhashdahsd

KrystalDANCE

Jun 28th, 2016
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.92 KB | None | 0 0
  1. Player = game.Players.LocalPlayer
  2.  
  3. local count = 0
  4. local countspeed = 1
  5. local sine = 0
  6. local sinespeed = 1
  7. local angle = nil
  8. local global_wait = 0
  9. local showtag = false
  10.  
  11.  
  12. --dance booleans--
  13. local jerk = false
  14. local party = false
  15. local canttouch = false
  16. local happy = false
  17. local spin = false
  18. local thriller = false
  19. local barrel = false
  20. local sax = false
  21. local spooky = false
  22. local stride = false
  23. local shuffle = false
  24. local rock = false
  25. local gagnam = false
  26. local snoop = false
  27. local darude = false
  28. local taco = false
  29. ------------------
  30. --dance accessory--
  31. local barrelbrick = nil
  32. local saxtool = nil
  33. -------------------
  34. --custom animate--
  35. local walk = false
  36. local jump = false
  37. local sit = false
  38. local run = false
  39. ------------------
  40. --walk keys--
  41. local W = false
  42. local A = false
  43. local S = false
  44. local D = false
  45. -------------
  46. local m = Instance.new("Model",game.Players.LocalPlayer.Character) m.Name = "ModelParts"
  47. local miniweld = nil
  48. local rootpart = nil
  49.  
  50. local Mouse = nil
  51. local Animate = nil
  52. local Music = nil
  53. local Asset = "http://www.roblox.com/asset/?id="
  54. local Animating = nil
  55. local humanoid = nil
  56. local face = nil
  57.  
  58. local head = nil
  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 = 1
  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 = 1
  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(168570436)
  254. M4=SetMusic(142435409)
  255. M5=SetMusic(142544487)
  256. M6=SetMusic(133196268)
  257. M7=SetMusic(130791919)
  258. M8=SetMusic(130794684)
  259. M9=SetMusic(155313239)
  260. M10=SetMusic(158036870)
  261. M11=SetMusic(145262991)
  262. M12=SetMusic(151430448)
  263. M13=SetMusic(288066781)
  264. M14=SetMusic(477127063)
  265. M15=SetMusic(385290279)
  266. M16=SetMusic(142295308)
  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 = 1
  306. Music.Looped = true
  307. Music.SoundId = Asset
  308. Animate = Instance.new("Animation",char.Head)
  309. Animate.AnimationId = Asset
  310.  
  311.  
  312.  
  313. head = char:FindFirstChild("Head")
  314. torso = char:FindFirstChild("Torso")
  315. ra = char:findFirstChild("Right Arm")
  316. la = char:findFirstChild("Left Arm")
  317. rl = char:findFirstChild("Right Leg")
  318. ll = char:findFirstChild("Left Leg")
  319. rs = torso:findFirstChild("Right Shoulder")
  320. ls = torso:findFirstChild("Left Shoulder")
  321. rh = torso:findFirstChild("Right Hip")
  322. lh = torso:findFirstChild("Left Hip")
  323. neck = torso:findFirstChild("Neck")
  324. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  325.  
  326. state = humanoid:GetState()
  327. local ca = nil
  328. ca=GenerateGui()
  329. ca.Parent = player.PlayerGui
  330. if ca:FindFirstChild("Logo") ~= nil then
  331. ca:FindFirstChild("Logo"):TweenPosition(UDim2.new(0, 0, 1, -100), "Out", "Quad", 3, true)
  332. if ca:FindFirstChild("Intro") ~= nil then
  333. ca:FindFirstChild("Intro"):Play()
  334. coroutine.resume(coroutine.create(function()
  335. for i=0,30 do
  336. ca:FindFirstChild("Intro").Volume = 1/(i/2)
  337. wait(0.5)
  338. if i >= 30 then
  339. break
  340. end
  341. end
  342. end))
  343. end
  344. end
  345.  
  346. if humanoid ~= nil then
  347. humanoid.Changed:connect(function(pro)
  348. if pro == "MoveDirection" or pro == "Jump" then
  349. if Music.IsPlaying == true then
  350. AnimationStop()
  351. end
  352. end
  353. end)
  354. humanoid.Died:connect(function()
  355. AnimationStop()
  356. end)
  357.  
  358. Mouse.KeyUp:connect(function(key)
  359. if key == "w" then
  360. W = false
  361. end
  362. if key == "a" then
  363. A = false
  364. end
  365. if key == "s" then
  366. S = false
  367. end
  368. if key == "d" then
  369. D = false
  370. end
  371. if string.byte(key) == 48 then
  372. run = false
  373. end
  374. end)
  375.  
  376. Mouse.KeyDown:connect(function(key)
  377. if key == "w" then
  378. W = true
  379. AnimationStop()
  380. end
  381. if key == "a" then
  382. A = true
  383. AnimationStop()
  384. end
  385. if key == "s" then
  386. S = true
  387. AnimationStop()
  388. end
  389. if key == "d" then
  390. D = true
  391. AnimationStop()
  392. end
  393. end)
  394.  
  395.  
  396.  
  397. Mouse.KeyDown:connect(function(key)
  398. KeyUsed(key)
  399. end)
  400. end
  401. end
  402. print'KrystalDance By: KrystalTeam as fully Loaded!'
  403. end
  404.  
  405. function KeyUsed(key)
  406. if humanoid ~= nil then
  407. if humanoid.Health > 0 then
  408. if string.byte(key) == 32 then
  409. jump = true
  410. AnimationStop()
  411. --sit = false
  412. end
  413. if string.byte(key) == 50 then
  414. AnimationStop()
  415. if sit == true then
  416. sit = false
  417. else
  418. sit = true
  419. end
  420. end
  421. if string.byte(key) == 48 then
  422. run = true
  423. end
  424. if W == false and A == false and S == false and D == false and jump == false and sit == false then
  425. if key == "Q" or key == "q" then
  426. AnimationStop()
  427. canttouch = true
  428. M1:Play()
  429. end
  430. if key == "E" or key == "e" then
  431. AnimationStop()
  432. party = true
  433. M2:Play()
  434. end
  435. if key == "R" or key == "r" then
  436. AnimationStop()
  437. jerk = true
  438. M3:Play()
  439. end
  440. if key == "T" or key == "t" then
  441. AnimationStop()
  442. happy = true
  443. M4:Play()
  444. end
  445. if key == "Y" or key == "y" then
  446. AnimationStop()
  447. spin = true
  448. M5:Play()
  449. end
  450. if key == "U" or key == "u" then
  451. AnimationStop()
  452. thriller = true
  453. M6:Play()
  454. end
  455. if key == "F" or key == "f" then
  456. AnimationStop()
  457. barrel = true
  458. M7:Play()
  459. if barrelbrick == nil and barrel == true then
  460. barrelbrick = P(2,2,1,'Black',0,false,false)
  461. a=fm(barrelbrick,29873142,1.1,0.8,1.1,31082268) a.VertexColor = Vector3.new(1,1,1)
  462. We(barrelbrick,char.Torso,0,-0.2,0,0,0,0)
  463. end
  464. end
  465. if key == "P" or key == "p" then
  466. AnimationStop()
  467. sax = true
  468. M8:Play()
  469. if saxtool == nil and sax == true then
  470. saxtool = P(1,2,2,'Black',0,false,false)
  471. a=fm(saxtool,44410178,1.5,1.5,1.5,44410320) a.VertexColor = Vector3.new(1,1,1)
  472. b=We(saxtool,char:FindFirstChild("Left Arm"),0,-1,0,0,0,0)
  473. b.C1 = CFrame.new(0.5, -0.9, -0.3) * CFrame.Angles(math.pi/1.5, -math.pi/2, -math.pi/8)
  474. end
  475. end
  476. if key == "G" or key == "g" then
  477. AnimationStop()
  478. spooky = true
  479. M9:Play()
  480. end
  481. if key == "H" or key == "h" then
  482. AnimationStop()
  483. stride = true
  484. M10:Play()
  485. end
  486. if key == "J" or key == "j" then
  487. AnimationStop()
  488. shuffle = true
  489. M11:Play()
  490. end
  491. if key == "K" or key == "k" then
  492. AnimationStop()
  493. rock = true
  494. M12:Play()
  495. end
  496. if key == "L" or key == "l" then
  497. AnimationStop()
  498. gagnam = true
  499. M13:Play()
  500. end
  501. if key == "Z" or key == "z" then
  502. AnimationStop()
  503. snoop = true
  504. M14:Play()
  505. end
  506. if key == "X" or key == "x" then
  507. AnimationStop()
  508. darude = true
  509. M15:Play()
  510. if sandstorm == nil and darude == true then
  511. sandstorm = P(1,1,1,'Black',0,false,false)
  512. sandstorm.Transparency = 1
  513. a=Instance.new("Smoke",sandstorm)
  514. a.Color = Color3.new(255/255,255/255,175/255)
  515. a.Size = 0.4
  516. a.RiseVelocity = 3
  517. a.Opacity = 0.75
  518. b=We(sandstorm,char:FindFirstChild("Torso"),0,0,0,0,0,0)
  519. b.C1 = CFrame.new(0, -2, 0)
  520. end
  521. end
  522. if key == "C" or key == "c" then
  523. AnimationStop()
  524. taco = true
  525. M16:Play()
  526. end
  527. end
  528. end
  529. end
  530. end
  531.  
  532. Generate(Player)
  533.  
  534. game:service'RunService'.Stepped:connect(function()
  535. count = (count % 100) + countspeed
  536. angle = math.pi * math.sin(math.pi*2/100*count)
  537. countspeed = 1
  538.  
  539. state = humanoid:GetState()
  540. if state ~= Enum.HumanoidStateType.Freefall then
  541. jump = false
  542. else
  543. jump = true
  544. sit = false
  545. AnimationStop()
  546. end
  547.  
  548. local mesh1anan = Instance.new("SpecialMesh")
  549. mesh1anan.MeshType = Enum.MeshType.FileMesh
  550. mesh1anan.Scale = Vector3.new(3,3,3)
  551. mesh1anan.MeshId = "http://www.roblox.com/asset/?id=14846869"
  552. mesh1anan.TextureId = "http://www.roblox.com/asset/?id=14846834"
  553. if taco == true then
  554. if char ~= nil then
  555. local locationanan = char:GetModelCFrame()
  556. local tacoa = Instance.new("Part")
  557. tacoa.CanCollide = false
  558. tacoa.RotVelocity = Vector3.new(math.random()*math.pi,math.random()*math.pi,math.random()*math.pi)
  559. local meshanananan = mesh1anan:clone()
  560. meshanananan.Parent = tacoa
  561. meshanananan.Scale = Vector3.new(math.random()*20,math.random()*20,math.random()*20)
  562. tacoa.CFrame = locationanan * CFrame.new(math.random()*500 - 250,math.random(100,200),math.random()*500 - 250)
  563. tacoa.Parent = workspace
  564. game:GetService("Debris"):AddItem(tacoa,4)
  565. end
  566. end
  567.  
  568.  
  569.  
  570.  
  571. if canttouch == false then
  572. M1:Stop()
  573. end
  574. if party == false then
  575. M2:Stop()
  576. end
  577. if jerk == false then
  578. M3:Stop()
  579. end
  580. if happy == false then
  581. M4:Stop()
  582. end
  583. if spin == false then
  584. M5:Stop()
  585. end
  586. if thriller == false then
  587. M6:Stop()
  588. end
  589. if barrel == false then
  590. M7:Stop()
  591. end
  592. if sax == false then
  593. M8:Stop()
  594. end
  595. if spooky == false then
  596. M9:Stop()
  597. end
  598. if stride == false then
  599. M10:Stop()
  600. end
  601. if shuffle == false then
  602. M11:Stop()
  603. end
  604. if rock == false then
  605. M12:Stop()
  606. end
  607. if gagnam == false then
  608. M13:Stop()
  609. end
  610. if snoop == false then
  611. M14:Stop()
  612. end
  613. if darude == false then
  614. M15:Stop()
  615. end
  616. if taco == false then
  617. M16:Stop()
  618. end
  619.  
  620. if run == true and sit == false then
  621. humanoid.WalkSpeed = 25
  622. elseif sit == true then
  623. humanoid.WalkSpeed = 0
  624. else
  625. humanoid.WalkSpeed = 16
  626. end
  627.  
  628. if global_wait == 380 then global_wait = 0 end
  629.  
  630. if (W == false or A == false or S == false or D == false) and jump == false and sit == false then
  631. ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/75)
  632. rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/75)
  633. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/75)
  634. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/75)
  635. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/75, math.pi, 0)
  636. rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2, math.pi, 0)
  637. end
  638.  
  639.  
  640. if (W == false or A == false or S == false or D == false) and jump == false and sit == true then
  641. local ray = Ray.new(torso.Position, Vector3.new(0, -3, 0))
  642. local hitz,enz = workspace:FindPartOnRay(ray, char)
  643. if hitz then
  644. if rootpart:FindFirstChild("Weld") == nil then
  645. miniweld = Instance.new("Weld", rootpart)
  646. miniweld.C0 = hitz.CFrame:toObjectSpace(rootpart.CFrame)
  647. miniweld.Part0 = hitz
  648. miniweld.Part1 = rootpart
  649. humanoid.PlatformStand = true
  650. end
  651. end
  652. else
  653. if rootpart:FindFirstChild("Weld") ~= nil then
  654. rootpart:FindFirstChild("Weld"):Destroy()
  655. humanoid.PlatformStand = false
  656. end
  657. end
  658.  
  659. if (W == false or A == false or S == false or D == false) and jump == false and sit == true then
  660. ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - math.pi/15)
  661. rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 + math.pi/15)
  662. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + math.pi/8, 0, math.pi/2 - math.pi/15)
  663. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + math.pi/8, 0, -math.pi/2 + math.pi/15)
  664. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + math.pi/15, math.pi, 0)
  665. rj.C0 = CFrame.new(0, -2, 0) * CFrame.Angles(math.pi/2 + math.pi/15, math.pi, 0)
  666. end
  667.  
  668. if jump == true and sit == false then
  669. countspeed = 2
  670. ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi + angle/12)
  671. rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi + angle/12)
  672. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/12)
  673. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/12)
  674. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/25, math.pi, 0)
  675. rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2+ angle/50, math.pi, 0)
  676. end
  677.  
  678. if (W == true or A == true or S == true or D == true) and jump == false and sit == false then
  679. if run == true then
  680. countspeed = 4
  681. ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/3)
  682. rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/3)
  683. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/5)
  684. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/5)
  685. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/20, math.pi, 0)
  686. rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2 + angle/40, math.pi, 0)
  687. else
  688. countspeed = 2
  689. ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/4)
  690. rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/4)
  691. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/6)
  692. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/6)
  693. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/25, math.pi, 0)
  694. rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2+ angle/50, math.pi, 0)
  695. end
  696. end
  697.  
  698. if W == false and A == false and S == false and D == false and jump == false and sit == false then
  699. if jerk == true and jump == false and sit == false then
  700. countspeed = 2
  701. ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(angle/5, 0, angle/4)
  702. rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(angle/5, 0, -angle/4)
  703. 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))
  704. 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))
  705. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/5, math.pi, 0)
  706. rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2 + angle/5, math.pi, 0)
  707. elseif party == true and jump == false and sit == false then
  708. countspeed = 4
  709. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(angle/15, 0, angle/15)
  710. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(angle/15, 0, angle/15)
  711. ls.C1 = CFrame.new(0.25,0.5 + 1 * angle/10,0.5) * CFrame.Angles(math.pi + angle/10, 0, 0 + angle/10)
  712. rs.C1 = CFrame.new(-0.25,0.5 + 1 * angle/10,0.5) * CFrame.Angles(math.pi + angle/10, 0, 0 + angle/10)
  713. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/10, math.pi, 0)
  714. rj.C0 = CFrame.new(0, 0.5 + angle/5, 0) * CFrame.Angles(math.pi/2, math.pi, 0)
  715. elseif canttouch == true and jump == false and sit == false then
  716. countspeed = 2
  717. ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0 + angle/8, 0, math.pi/12 + angle/12)
  718. rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0 + angle/8, 0, -math.pi/12 - angle/12)
  719. lh.C1 = CFrame.new(0.35,0.7,0.5) * CFrame.Angles(0 + angle/10, 0, -math.pi/8)
  720. rh.C1 = CFrame.new(-0.35,0.7,0.5) * CFrame.Angles(0 + angle/10, 0, math.pi/8)
  721. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/15, math.pi, 0)
  722. rj.C0 = CFrame.new(angle/4, -0.3 + angle/20, 0) * CFrame.Angles(math.pi/2, math.pi, 0)
  723. elseif happy == true and jump == false and sit == false then
  724. countspeed = 4
  725. ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(math.pi/4, math.pi/8 + angle/8, math.pi/4 + angle/8)
  726. rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(math.pi/4, -math.pi/8 + angle/8, -math.pi/4 + angle/8)
  727. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/10, 0, 0 + angle/10)
  728. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/10, 0, 0 + angle/10)
  729. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/15, math.pi + angle/15, 0 + angle/15)
  730. rj.C0 = CFrame.new(0, 0 + angle/20, 0) * CFrame.Angles(math.pi/2, math.pi, 0)
  731. elseif spin == true and jump == false and sit == false then
  732. global_wait = (global_wait % 360) + 4
  733. countspeed = 4
  734. ls.C1 = CFrame.new(0,1,0) * CFrame.Angles(math.pi/2, 0 + angle/10, 0 + angle/10)
  735. rs.C1 = CFrame.new(0,1,0) * CFrame.Angles(math.pi/2, 0 - angle/10, 0 + angle/10)
  736. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/10, 0 + angle/10, 0 + angle/10)
  737. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/10, 0 + angle/10, 0 + angle/10)
  738. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0)
  739. rj.C0 = CFrame.new(0 + angle/25, 0, 0 - angle/25) * CFrame.Angles(math.pi/2, math.pi, math.rad(global_wait*4))
  740. elseif thriller == true and jump == false and sit == false then
  741. countspeed = 2
  742. ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi/2 + angle/15)
  743. rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, -math.pi/2 + angle/15)
  744. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(math.pi/60 - angle/45, 0, 0 + angle/15)
  745. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(math.pi/60 + angle/45, 0, 0 + angle/15)
  746. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/15, math.pi + angle/10, 0)
  747. rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2 + angle/50 , math.pi + angle/50, 0 + angle/50)
  748. elseif barrel == true and jump == false and sit == false then
  749. ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi)
  750. rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi)
  751. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0)
  752. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0)
  753. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0)
  754. rj.C0 = CFrame.new(0 + angle, -1.8, 0) * CFrame.Angles(0, math.pi, 0 + angle)
  755. elseif sax == true and jump == false and sit == false then
  756. countspeed = 2
  757. ls.C1 = CFrame.new(0,0.75,-0.25) * CFrame.Angles(-math.pi/5, 0, math.pi/2 - math.abs(angle/30))
  758. rs.C1 = CFrame.new(0,0.75,-0.25) * CFrame.Angles(-math.pi/5, 0, -math.pi/2 + math.abs(angle/30))
  759. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 - math.abs(angle/30))
  760. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + math.abs(angle/30))
  761. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0)
  762. 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)
  763. elseif spooky == true and jump == false and sit == false then
  764. countspeed = 3
  765. ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi/2 - angle/1.5)
  766. rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, -math.pi/2 + angle/1.5)
  767. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 - angle/16)
  768. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/16)
  769. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/12, math.pi, 0)
  770. rj.C0 = CFrame.new(0, 0 + angle / 35, 0) * CFrame.Angles(math.pi/2 + angle/25, math.pi, 0)
  771. elseif stride == true and jump == false and sit == false then
  772. countspeed = 2.5
  773. ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(angle/16, angle/16,math.pi/3.5 + angle/8)
  774. rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(angle/16, -angle/16,-math.pi/1.5 + -angle/8)
  775. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, angle/16, angle/16)
  776. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, angle/16, angle/16)
  777. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0)
  778. rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2-angle/16, math.pi, 0)
  779. elseif shuffle == true and jump == false and sit == false then
  780. countspeed = 2
  781. ls.C1 = CFrame.new(0,0.75,-0.35) * CFrame.Angles(math.pi/8, 0, math.pi/2 + angle/3.5)
  782. rs.C1 = CFrame.new(0,0.75,-0.35) * CFrame.Angles(math.pi/8, 0, -math.pi/2 + angle/3.5)
  783. lh.C1 = CFrame.new(0 + angle/50,1,0.5) * CFrame.Angles(0, 0 + angle/35, 0 + angle/15)
  784. rh.C1 = CFrame.new(0 + angle/50,1,0.5) * CFrame.Angles(0, 0 + angle/35, 0 + angle/15)
  785. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/15, math.pi, 0)
  786. rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2 - angle/35, math.pi - angle/35, 0)
  787. elseif rock == true and jump == false and sit == false then
  788. countspeed = 4
  789. ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi/2+angle/2)
  790. rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, -math.pi/2+angle/2)
  791. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0+angle/32, 0, 0+angle/32)
  792. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0+angle/32, 0, 0-angle/32)
  793. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0)
  794. rj.C0 = CFrame.new(0, 0 - angle/50, 0) * CFrame.Angles(math.pi/2, math.pi, 0)
  795. elseif gagnam == true and jump == false and sit == false then
  796. countspeed = 4
  797. ls.C1 = CFrame.new(0,0.75,-0.15) * CFrame.Angles(-math.pi/4, 0, (math.pi/2 + angle/14) - math.pi/20)
  798. rs.C1 = CFrame.new(0,0.75,-0.15) * CFrame.Angles(-math.pi/4, 0, (-math.pi/2 - angle/14) + math.pi/20)
  799. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/16, 0, 0)
  800. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/16, 0, 0)
  801. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/20, math.pi, 0)
  802. rj.C0 = CFrame.new(0, 0 + angle/40, 0) * CFrame.Angles(math.pi/2, math.pi, 0)
  803. elseif snoop == true and jump == false and sit == false then
  804. countspeed = 2
  805. ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(math.pi/12, 0, math.pi/4 + angle/4)
  806. rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(math.pi/12, 0, -math.pi/4 + angle/4)
  807. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(math.pi/24, 0, 0 + angle/4)
  808. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(math.pi/24, 0, 0 + angle/4)
  809. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 - angle/8, math.pi, 0)
  810. rj.C0 = CFrame.new(0, 0 + angle/48, 0) * CFrame.Angles(math.pi/2 + angle/24, math.pi, 0)
  811. elseif darude == true and jump == false and sit == false then
  812. countspeed = 3
  813. ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 + angle/1.5)
  814. rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 + angle/3)
  815. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 - angle/3)
  816. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 - angle/1.5)
  817. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0)
  818. rj.C0 = CFrame.new(0, 0+ angle/45, 0) * CFrame.Angles(math.pi/2 - angle/6, math.pi, 0)
  819. elseif taco == true and jump == false and sit == false then
  820. countspeed = 4
  821. global_wait = (global_wait % 360) + 4
  822. ls.C1 = CFrame.new(0,1,-0.25) * CFrame.Angles(math.pi/6 + angle/12, 0, math.pi)
  823. rs.C1 = CFrame.new(0,1,-0.25) * CFrame.Angles(math.pi/6 + angle/12, 0, math.pi)
  824. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, math.pi/8 + angle/16)
  825. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, math.pi/8 + angle/16)
  826. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 - math.pi/8 + angle/16, math.pi, 0)
  827. rj.C0 = CFrame.new(0, 0.25 + angle/12, 0) * CFrame.Angles(math.pi/2, math.pi, math.rad(global_wait*4))
  828. end
  829. end
  830. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement