Advertisement
NextFlamePB

ROBLOX KrystalDance Fixed

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