Advertisement
OnePunchMan

Untitled

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