SHARE
TWEET

krystal dance v1 fix

a guest Dec 14th, 2019 239 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Player = game.Players.LocalPlayer
  2. fakeguy = Player.Character
  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 ( Edited Version )"
  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 .. "58719064"
  200.     b.Name = "Logo"
  201.     c=Instance.new("Sound",a)
  202.     c.Name = "Intro"
  203.     c.Volume = 1
  204.     c.SoundId = Asset .. "130767819"
  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,60675232,1,1,1,48035412) a.VertexColor = Vector3.new(1,1,1)
  215. b=fm(Hat2,1028713,1,1,1,12301365) b.VertexColor = Vector3.new(1,1,1)
  216. wait()
  217. wait()
  218. if char:FindFirstChild("Head") then
  219.     We(Hat1,char.Head,0,0.25,-0.135,0,0,0)
  220.     We(Hat2,char.Head,0,0.8,0,0,0,0)
  221.     if char.Head:FindFirstChild("face") ~= nil then
  222.         face = char.Head:FindFirstChild("face")
  223.         face.Texture = "rbxassetid://380753459"
  224.     end
  225.     c=char.Head:clone()
  226.     c.Name = "FalseHead"
  227.     c.CanCollide = false
  228.     c.Parent = char
  229.     We(c,char.Head,0,0,0,0,0,0)
  230.     char.Head.Transparency = 1
  231.     for i,v in pairs(char:GetChildren()) do
  232.         if v.ClassName == "Hat" or v.ClassName == "CharacterMesh" or v.ClassName == "Shirt Graphic" then
  233.            
  234.         end
  235.         if v.ClassName == "BodyColors" then
  236.             v.HeadColor = BrickColor.new("White")
  237.             v.LeftArmColor = BrickColor.new("White")
  238.             v.LeftLegColor = BrickColor.new("White")
  239.             v.RightArmColor = BrickColor.new("White")
  240.             v.RightLegColor = BrickColor.new("White")
  241.             v.TorsoColor = BrickColor.new("White")
  242.         end
  243.         if v.ClassName == "Part" then
  244.             if v.Name == "Head" or v.Name == "FalseHead" then
  245.                 v.BrickColor = BrickColor.new("White")
  246.                 else
  247.                 v.BrickColor = BrickColor.new("White")
  248.             end
  249.         end
  250.     end
  251.     Instance.new("Shirt",game.Players.LocalPlayer.Character)
  252.     Instance.new("Pants",game.Players.LocalPlayer.Character)
  253.       game.Players.LocalPlayer.Character.Head.Transparency = 1
  254.     game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 100
  255.     game.Players.LocalPlayer.Character.Humanoid.JumpPower = 100
  256. local ra = game.Players.LocalPlayer.Character["Right Arm"]
  257. local la = game.Players.LocalPlayer.Character["Left Arm"]
  258. ra.Transparency = 0,5; la.Transparency = 0,5
  259.  
  260.  
  261.    
  262. ----------musics---------------
  263.     M1=SetMusic(504822820)
  264.     M2=SetMusic(185694331)
  265.     M3=SetMusic(424631527)
  266.     M4=SetMusic(434000458)
  267.     M5=SetMusic(400415137)
  268.     M6=SetMusic(403178781)
  269.     M7=SetMusic(382170094)
  270.     M8=SetMusic(260597192)
  271.     M9=SetMusic(187056906)
  272.     M10=SetMusic(256729927)  
  273.     M11=SetMusic(424614632)
  274.     M12=SetMusic(294697095)
  275.     M13=SetMusic(290899389)  
  276.     M14=SetMusic(232227682)
  277.     M15=SetMusic(348299758)
  278.     M16=SetMusic(222274242)
  279. -------------------------------
  280.    
  281.     if char:FindFirstChild("HumanoidRootPart") ~= nil then
  282.         rootpart = char:FindFirstChild("HumanoidRootPart")
  283.     end
  284.     if showtag == true then
  285.         local bbg = Instance.new("BillboardGui",c)
  286.         bbg.Adornee = c
  287.         bbg.Name = "satuttava"
  288.         bbg.Size = UDim2.new(6,0,2,0)
  289.         bbg.StudsOffset = Vector3.new(0,2,0)
  290.         local box = Instance.new("TextLabel",bbg)
  291.         box.Size = UDim2.new(1,0,1,0)
  292.         box.BackgroundColor = BrickColor.new("White")
  293.         box.TextColor3 = Color3.new(255,0,0)
  294.         box.TextStrokeTransparency = 0.5
  295.         box.Font = 3
  296.         box.Text = Player.Name
  297.         box.BackgroundTransparency = 1
  298.         box.Position = UDim2.new(0,0,0,0)
  299.         box.TextScaled = true
  300.     end
  301.     if char:FindFirstChild("Humanoid") ~= nil then
  302.         char:FindFirstChild("Humanoid").MaxHealth = (100*100*100*100)*100
  303.         wait()
  304.         char:FindFirstChild("Humanoid").Health = char:FindFirstChild("Humanoid").MaxHealth
  305.         --char:FindFirstChild("Humanoid").Name = game.Players.LocalPlayer.Name
  306.         humanoid = char:FindFirstChild("Humanoid")
  307.         if humanoid:FindFirstChild("Animator") ~= nil then
  308.             humanoid:FindFirstChild("Animator"):Remove()
  309.             --Instance.new("Animator",humanoid)
  310.         end
  311.         if char:FindFirstChild("Animate") ~= nil then
  312.             char:FindFirstChild("Animate"):Remove()
  313.         end
  314.     end
  315.     Mouse = player:GetMouse()
  316.     Music = Instance.new("Sound",char.Head)
  317.     Music.Volume = 1
  318.     Music.Looped = true
  319.     Music.SoundId = Asset
  320.     Animate = Instance.new("Animation",char.Head)
  321.     Animate.AnimationId = Asset
  322.    
  323.    
  324.    
  325.     head = char:FindFirstChild("Head")
  326.     torso = char:FindFirstChild("Torso")
  327.     ra = char:findFirstChild("Right Arm")
  328.     la = char:findFirstChild("Left Arm")
  329.     rl = char:findFirstChild("Right Leg")
  330.     ll = char:findFirstChild("Left Leg")
  331.     rs = fakeguy.Torso:findFirstChild("Right Shoulder")
  332.     ls = fakeguy.Torso:findFirstChild("Left Shoulder")
  333.     rh = fakeguy.Torso:findFirstChild("Right Hip")
  334.     lh = fakeguy.Torso:findFirstChild("Left Hip")
  335.     neck = torso:findFirstChild("Neck")
  336.     rj = fakeguy:findFirstChild("HumanoidRootPart"):FindFirstChild("RootJoint")
  337.    
  338.     state = humanoid:GetState()
  339.     local ca = nil
  340.     ca=GenerateGui()
  341.     ca.Parent = player.PlayerGui
  342.     if ca:FindFirstChild("Logo") ~= nil then
  343.         ca:FindFirstChild("Logo"):TweenPosition(UDim2.new(0, 0, 1, -100), "Out", "Quad", 3, true)
  344.         if ca:FindFirstChild("Intro") ~= nil then
  345.             ca:FindFirstChild("Intro"):Play()
  346.             coroutine.resume(coroutine.create(function()
  347.                 for i=0,30 do
  348.                     ca:FindFirstChild("Intro").Volume = 1/(i/2)
  349.                     wait(0.5)
  350.                     if i >= 30 then
  351.                         break
  352.                     end
  353.                 end
  354.             end))
  355.         end
  356.     end
  357.  
  358.     if humanoid ~= nil then
  359.         humanoid.Changed:connect(function(pro)
  360.             if pro == "MoveDirection" or pro == "Jump" then
  361.                 if Music.IsPlaying == true then
  362.                     AnimationStop()
  363.                 end
  364.             end
  365.         end)
  366.         humanoid.Died:connect(function()
  367.             AnimationStop()
  368.         end)
  369.        
  370.     Mouse.KeyUp:connect(function(key)
  371.         if key == "w" then
  372.             W = false
  373.         end
  374.         if key == "a" then
  375.             A = false
  376.         end
  377.         if key == "s" then
  378.             S = false
  379.         end
  380.         if key == "d" then
  381.             D = false
  382.         end
  383.         if string.byte(key) == 48 then
  384.             run = false
  385.         end
  386.     end)
  387.        
  388.     Mouse.KeyDown:connect(function(key)
  389.         if key == "w" then
  390.             W = true
  391.             AnimationStop()
  392.         end
  393.         if key == "a" then
  394.             A = true
  395.             AnimationStop()
  396.         end
  397.         if key == "s" then
  398.             S = true
  399.             AnimationStop()
  400.         end
  401.         if key == "d" then
  402.             D = true
  403.             AnimationStop()
  404.         end
  405.     end)
  406.    
  407.    
  408.    
  409.     Mouse.KeyDown:connect(function(key)
  410.         KeyUsed(key)
  411.     end)
  412. end
  413. end
  414. print'KrystalDance By: KrystalTeam as fully Loaded!'
  415. end
  416.  
  417. function KeyUsed(key)
  418.         if humanoid ~= nil then
  419.             if humanoid.Health > 0 then
  420.                 if string.byte(key) == 32 then
  421.                     jump = true
  422.                     AnimationStop()
  423.                     --sit = false
  424.                 end
  425.                 if string.byte(key) == 50 then
  426.                     AnimationStop()
  427.                     if sit == true then
  428.                         sit = false
  429.                     else
  430.                         sit = true
  431.                     end
  432.                 end
  433.                 if string.byte(key) == 48 then
  434.                     run = true
  435.                 end
  436.                 if W == false and A == false and S == false and D == false and jump == false and sit == false then
  437.                     if key == "Q" or key == "q" then
  438.                         AnimationStop()
  439.                         canttouch = true
  440.                         M1:Play()
  441.                     end
  442.                     if key == "E" or key == "e" then
  443.                         AnimationStop()
  444.                         party = true
  445.                         M2:Play()
  446.                     end
  447.                     if key == "R" or key == "r" then
  448.                         AnimationStop()
  449.                         jerk = true
  450.                         M3:Play()
  451.                     end
  452.                     if key == "T" or key == "t" then
  453.                         AnimationStop()
  454.                         happy = true
  455.                         M4:Play()
  456.                     end
  457.                     if key == "Y" or key == "y" then
  458.                         AnimationStop()
  459.                         spin = true
  460.                         M5:Play()
  461.                     end
  462.                     if key == "U" or key == "u" then
  463.                         AnimationStop()
  464.                         thriller = true
  465.                         M6:Play()
  466.                     end
  467.                     if key == "F" or key == "f" then
  468.                         AnimationStop()
  469.                         barrel = true
  470.                         M7:Play()
  471.                         if barrelbrick == nil and barrel == true then
  472.                             barrelbrick = P(2,2,1,'Black',0,false,false)
  473.                             a=fm(barrelbrick,10470609,5,5,5.5,10550002) a.VertexColor = Vector3.new(1,1,1)
  474.                             We(barrelbrick,char.Torso,0,-0.2,0,0,0,0)
  475.                         end
  476.                     end
  477.                     if key == "P" or key == "p" then
  478.                         AnimationStop()
  479.                         sax = true
  480.                         M8:Play()
  481.                         if saxtool == nil and sax == true then
  482.                             saxtool = P(1,2,2,'Black',0,false,false)
  483.                             a=fm(saxtool,44410178,10,10,10,252684207) a.VertexColor = Vector3.new(1,1,1)
  484.                             b=We(saxtool,char:FindFirstChild("Left Arm"),0,-1,0,0,0,0)
  485.                             b.C1 = CFrame.new(0.5, -0.9, -0.0) * CFrame.Angles(math.pi/1.5, -math.pi/2, -math.pi/8)
  486.                         end
  487.                     end
  488.                     if key == "G" or key == "g" then
  489.                         AnimationStop()
  490.                         spooky = true
  491.                         M9:Play()
  492.                     end
  493.                     if key == "H" or key == "h" then
  494.                         AnimationStop()
  495.                         stride = true
  496.                         M10:Play()
  497.                     end
  498.                     if key == "J" or key == "j" then
  499.                         AnimationStop()
  500.                         shuffle = true
  501.                         M11:Play()
  502.                     end
  503.                     if key == "K" or key == "k" then
  504.                         AnimationStop()
  505.                         rock = true
  506.                         M12:Play()
  507.                     end
  508.                     if key == "L" or key == "l" then
  509.                         AnimationStop()
  510.                         gagnam = true
  511.                         M13:Play()
  512.                     end
  513.                     if key == "Z" or key == "z" then
  514.                         AnimationStop()
  515.                         snoop = true
  516.                         M14:Play()
  517.                     end
  518.                     if key == "X" or key == "x" then
  519.                         AnimationStop()
  520.                         darude = true
  521.                         M15:Play()
  522.                         if sandstorm == nil and darude == true then
  523.                             sandstorm = P(1,1,1,'Lime green',0,false,false)
  524.                             sandstorm.Transparency = 1
  525.                             a=Instance.new("Smoke",sandstorm)
  526.                             a.Color = Color3.new(math.random()*math.pi,math.random()*math.pi,math.random()*math.pi)
  527.                             a.Size = 20
  528.                             a.RiseVelocity = 10000
  529.                             a.Opacity = 0.75
  530.                             b=We(sandstorm,char:FindFirstChild("Torso"),0,0,0,0,0,0)
  531.                             b.C1 = CFrame.new(0, -2, 0)
  532.                         end
  533.                     end
  534.                     if key == "C" or key == "c" then
  535.                         AnimationStop()
  536.                         taco = true
  537.                         M16:Play()
  538.                     end
  539.                 end
  540.             end
  541.         end
  542. end
  543.  
  544. Generate(Player)
  545.  
  546. game:service'RunService'.Stepped:connect(function()
  547.     count = (count % 100) + countspeed
  548.     angle = math.pi * math.sin(math.pi*2/50*count)
  549.     countspeed = 1
  550.    
  551.     state = humanoid:GetState()
  552.     if state ~= Enum.HumanoidStateType.Freefall then
  553.         jump = false
  554.     else
  555.         jump = true
  556.         sit = false
  557.         AnimationStop()
  558.     end
  559.    
  560.     local mesh1anan = Instance.new("SpecialMesh")
  561.     mesh1anan.MeshType = Enum.MeshType.FileMesh
  562.     mesh1anan.Scale = Vector3.new(2,1,1)
  563.     mesh1anan.MeshId = "http://www.roblox.com/asset/?id=494265290"
  564.     mesh1anan.TextureId = "http://www.roblox.com/asset/?id=511671017"
  565.     if taco == true then
  566.         if char ~= nil then
  567.             local locationanan = char:GetModelCFrame()
  568.             local tacoa = Instance.new("Part")
  569.             tacoa.CanCollide = false
  570.             tacoa.RotVelocity = Vector3.new(math.random()*math.pi,math.random()*math.pi,math.random()*math.pi)
  571.             local meshanananan = mesh1anan:clone()
  572.             meshanananan.Parent = tacoa
  573.             meshanananan.Scale = Vector3.new(5,5,5)
  574.             tacoa.CFrame = locationanan * CFrame.new(math.random()*500 - 250,math.random(100,200),math.random()*500 - 250)
  575.             tacoa.Parent = workspace
  576.             game:GetService("Debris"):AddItem(tacoa,50)
  577.         end
  578.     end
  579.    
  580.    
  581.    
  582.    
  583.     if canttouch == false then 
  584.         M1:Stop()
  585.     end
  586.     if party == false then 
  587.         M2:Stop()
  588.     end
  589.     if jerk == false then  
  590.         M3:Stop()
  591.     end
  592.     if happy == false then 
  593.         M4:Stop()
  594.     end
  595.     if spin == false then  
  596.         M5:Stop()
  597.     end
  598.     if thriller == false then  
  599.         M6:Stop()
  600.     end
  601.     if barrel == false then
  602.         M7:Stop()
  603.     end
  604.     if sax == false then   
  605.         M8:Stop()
  606.     end
  607.     if spooky == false then
  608.         M9:Stop()
  609.     end
  610.     if stride == false then
  611.         M10:Stop()
  612.     end
  613.     if shuffle == false then   
  614.         M11:Stop()
  615.     end
  616.     if rock == false then
  617.         M12:Stop()
  618.     end
  619.     if gagnam == false then
  620.         M13:Stop()
  621.     end
  622.     if snoop == false then
  623.         M14:Stop() 
  624.     end
  625.     if darude == false then
  626.         M15:Stop()
  627.     end
  628.     if taco == false then
  629.         M16:Stop()
  630.     end
  631.    
  632.     if run == true and sit == false then
  633.         humanoid.WalkSpeed = 50
  634.     elseif sit == true then
  635.         humanoid.WalkSpeed = 0
  636.     else
  637.         humanoid.WalkSpeed = 50
  638.     end
  639.    
  640.     if global_wait == 380 then global_wait = 0 end
  641.    
  642.     if (W == false or A == false or S == false or D == false) and jump == false and sit == false then
  643.             ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/75)
  644.             rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/75)
  645.             lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/75)
  646.             rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/75)
  647.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/75, math.pi, 0)
  648.             rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2, math.pi, 0)
  649.     end
  650.    
  651.    
  652.     if (W == false or A == false or S == false or D == false) and jump == false and sit == true then
  653.         local ray = Ray.new(torso.Position, Vector3.new(0, -3, 0))
  654.         local hitz,enz = workspace:FindPartOnRay(ray, char)
  655.         if hitz then
  656.             if rootpart:FindFirstChild("Weld") == nil then
  657.                 miniweld = Instance.new("Weld", rootpart)
  658.                 miniweld.C0 = hitz.CFrame:toObjectSpace(rootpart.CFrame)
  659.                 miniweld.Part0 = hitz
  660.                 miniweld.Part1 = rootpart
  661.                 humanoid.PlatformStand = true
  662.             end
  663.         end
  664.     else
  665.         if rootpart:FindFirstChild("Weld") ~= nil then
  666.             rootpart:FindFirstChild("Weld"):Destroy()
  667.             humanoid.PlatformStand = false
  668.         end
  669.     end
  670.    
  671.     if (W == false or A == false or S == false or D == false) and jump == false and sit == true then
  672.         ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - math.pi/15)
  673.         rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 + math.pi/15)
  674.         lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + math.pi/8, 0, math.pi/2 - math.pi/15)
  675.         rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + math.pi/8, 0, -math.pi/2 + math.pi/15)
  676.         neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + math.pi/15, math.pi, 0)
  677.         rj.C0 = CFrame.new(0, -2, 0) * CFrame.Angles(math.pi/2 + math.pi/15, math.pi, 0)
  678.     end
  679.    
  680.     if jump == true and sit == false then
  681.         countspeed = 2
  682.         ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi + angle/12)
  683.         rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi + angle/12)
  684.         lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/12)
  685.         rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/12)
  686.         neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/25, math.pi, 0)
  687.         rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2+ angle/50, math.pi, 0)
  688.     end
  689.    
  690.     if (W == true or A == true or S == true or D == true) and jump == false and sit == false then
  691.         if run == true then
  692.             countspeed = 4
  693.             ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/3)
  694.             rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/3)
  695.             lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/5)
  696.             rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/5)
  697.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/20, math.pi, 0)
  698.             rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2 + angle/40, math.pi, 0)
  699.         else
  700.             countspeed = 2
  701.             ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/4)
  702.             rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/4)
  703.             lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/6)
  704.             rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/6)
  705.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/25, math.pi, 0)
  706.             rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2+ angle/50, math.pi, 0)
  707.         end
  708.     end
  709.  
  710.     if W == false and A == false and S == false and D == false and jump == false and sit == false then
  711.         if jerk == true and jump == false and sit == false then
  712.             countspeed = 2
  713.             ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(angle/5, 0, angle/4)
  714.             rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(angle/5, 0, -angle/4)
  715.             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))
  716.             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))
  717.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/5, math.pi, 0)
  718.             rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2 + angle/5, math.pi, 0)
  719.         elseif party == true and jump == false and sit == false then
  720.             countspeed = 4
  721.             lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(angle/15, 0, angle/15)
  722.             rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(angle/15, 0, angle/15)
  723.             ls.C1 = CFrame.new(0.25,0.5 + 1 * angle/10,0.5) * CFrame.Angles(math.pi  + angle/10, 0, 0 + angle/10)
  724.             rs.C1 = CFrame.new(-0.25,0.5 + 1 * angle/10,0.5) * CFrame.Angles(math.pi  + angle/10, 0, 0  + angle/10)
  725.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/10, math.pi, 0)
  726.             rj.C0 = CFrame.new(0, 0.5 + angle/5, 0) * CFrame.Angles(math.pi/2, math.pi, 0)
  727.         elseif canttouch == true and jump == false and sit == false then
  728.             countspeed = 2
  729.             ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0 + angle/8, 0, math.pi/12 + angle/12)
  730.             rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0 + angle/8, 0, -math.pi/12 - angle/12)
  731.             lh.C1 = CFrame.new(0.35,0.7,0.5) * CFrame.Angles(0 + angle/10, 0, -math.pi/8)
  732.             rh.C1 = CFrame.new(-0.35,0.7,0.5) * CFrame.Angles(0 + angle/10, 0, math.pi/8)
  733.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/15, math.pi, 0)
  734.             rj.C0 = CFrame.new(angle/4, -0.3 + angle/20, 0) * CFrame.Angles(math.pi/2, math.pi, 0)
  735.         elseif happy == true and jump == false and sit == false then
  736.             countspeed = 4
  737.             ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(math.pi/4, math.pi/8 + angle/8, math.pi/4 + angle/8)
  738.             rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(math.pi/4, -math.pi/8 + angle/8, -math.pi/4 + angle/8)
  739.             lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/10, 0, 0  + angle/10)
  740.             rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/10, 0, 0  + angle/10)
  741.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/15, math.pi + angle/15, 0 + angle/15)
  742.             rj.C0 = CFrame.new(0, 0 + angle/20, 0) * CFrame.Angles(math.pi/2, math.pi, 0)
  743.         elseif spin == true and jump == false and sit == false then
  744.             global_wait = (global_wait % 360) + 4
  745.             countspeed = 4
  746.             ls.C1 = CFrame.new(0,1,0) * CFrame.Angles(math.pi/2, 0 + angle/10, 0 + angle/10)
  747.             rs.C1 = CFrame.new(0,1,0) * CFrame.Angles(math.pi/2, 0 - angle/10, 0 + angle/10)
  748.             lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/10, 0 + angle/10, 0  + angle/10)
  749.             rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/10, 0 + angle/10, 0  + angle/10)
  750.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0)
  751.             rj.C0 = CFrame.new(0 + angle/25, 0, 0 - angle/25) * CFrame.Angles(math.pi/2, math.pi, math.rad(global_wait*4))
  752.         elseif thriller == true and jump == false and sit == false then
  753.             countspeed = 2
  754.             ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi/2 + angle/15)
  755.             rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, -math.pi/2 + angle/15)
  756.             lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(math.pi/60 - angle/45, 0, 0 + angle/15)
  757.             rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(math.pi/60 + angle/45, 0, 0 + angle/15)
  758.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/15, math.pi + angle/10, 0)
  759.             rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2 + angle/50 , math.pi + angle/50, 0 + angle/50)
  760.         elseif barrel == true and jump == false and sit == false then
  761.             ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi)
  762.             rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi)
  763.             lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0)
  764.             rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0)
  765.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0)
  766.             rj.C0 = CFrame.new(0 + angle, -1.8, 0) * CFrame.Angles(0, math.pi, 0 + angle)
  767.         elseif sax == true and jump == false and sit == false then
  768.             countspeed = 2
  769.             ls.C1 = CFrame.new(0,0.75,-0.25) * CFrame.Angles(-math.pi/5, 0, math.pi/2 - math.abs(angle/30))
  770.             rs.C1 = CFrame.new(0,0.75,-0.25) * CFrame.Angles(-math.pi/5, 0, -math.pi/2 + math.abs(angle/30))
  771.             lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 - math.abs(angle/30))
  772.             rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + math.abs(angle/30))
  773.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0)
  774.             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)
  775.         elseif spooky == true and jump == false and sit == false then
  776.             countspeed = 3
  777.             ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi/2 - angle/1.5)
  778.             rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, -math.pi/2 + angle/1.5)
  779.             lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 - angle/16)
  780.             rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/16)
  781.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2  + angle/12, math.pi, 0)
  782.             rj.C0 = CFrame.new(0, 0 + angle / 35, 0) * CFrame.Angles(math.pi/2 + angle/25, math.pi, 0)
  783.         elseif stride == true and jump == false and sit == false then
  784.             countspeed = 2.5
  785.             ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(angle/16, angle/16,math.pi/3.5 + angle/8)
  786.             rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(angle/16, -angle/16,-math.pi/1.5 + -angle/8)
  787.             lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, angle/16, angle/16)
  788.             rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, angle/16, angle/16)
  789.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0)
  790.             rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2-angle/16, math.pi, 0)
  791.         elseif shuffle == true and jump == false and sit == false then
  792.             countspeed = 2
  793.             ls.C1 = CFrame.new(0,0.75,-0.35) * CFrame.Angles(math.pi/8, 0, math.pi/2 + angle/3.5)
  794.             rs.C1 = CFrame.new(0,0.75,-0.35) * CFrame.Angles(math.pi/8, 0, -math.pi/2 + angle/3.5)
  795.             lh.C1 = CFrame.new(0 + angle/50,1,0.5) * CFrame.Angles(0, 0 + angle/35, 0 + angle/15)
  796.             rh.C1 = CFrame.new(0 + angle/50,1,0.5) * CFrame.Angles(0, 0 + angle/35, 0 + angle/15)
  797.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/15, math.pi, 0)
  798.             rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2 - angle/35, math.pi - angle/35, 0)
  799.         elseif rock == true and jump == false and sit == false then
  800.             countspeed = 4
  801.             ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi/2+angle/2)
  802.             rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, -math.pi/2+angle/2)
  803.             lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0+angle/32, 0, 0+angle/32)
  804.             rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0+angle/32, 0, 0-angle/32)
  805.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0)
  806.             rj.C0 = CFrame.new(0, 0 - angle/50, 0) * CFrame.Angles(math.pi/2, math.pi, 0)
  807.         elseif gagnam == true and jump == false and sit == false then
  808.             countspeed = 4
  809.             ls.C1 = CFrame.new(0,0.75,-0.15) * CFrame.Angles(-math.pi/4, 0, (math.pi/2 + angle/14) - math.pi/20)
  810.             rs.C1 = CFrame.new(0,0.75,-0.15) * CFrame.Angles(-math.pi/4, 0, (-math.pi/2 - angle/14) + math.pi/20)
  811.             lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/16, 0, 0)
  812.             rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/16, 0, 0)
  813.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/20, math.pi, 0)
  814.             rj.C0 = CFrame.new(0, 0 + angle/40, 0) * CFrame.Angles(math.pi/2, math.pi, 0)
  815.         elseif snoop == true and jump == false and sit == false then
  816.             countspeed = 2
  817.             ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(math.pi/12, 0, math.pi/4 + angle/4)
  818.             rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(math.pi/12, 0, -math.pi/4 + angle/4)
  819.             lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(math.pi/24, 0, 0 + angle/4)
  820.             rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(math.pi/24, 0, 0 + angle/4)
  821.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 - angle/8, math.pi, 0)
  822.             rj.C0 = CFrame.new(0, 0 + angle/48, 0) * CFrame.Angles(math.pi/2 + angle/24, math.pi, 0)
  823.         elseif darude == true and jump == false and sit == false then
  824.             countspeed = 3
  825.             ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 + angle/1.5)
  826.             rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 + angle/3)
  827.             lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 - angle/3)
  828.             rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 - angle/1.5)
  829.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0)
  830.             rj.C0 = CFrame.new(0, 0+ angle/45, 0) * CFrame.Angles(math.pi/2 - angle/6, math.pi, 0)
  831.         elseif taco == true and jump == false and sit == false then
  832.             countspeed = 4
  833.             global_wait = (global_wait % 360) + 4
  834.             ls.C1 = CFrame.new(0,1,-0.25) * CFrame.Angles(math.pi/6 + angle/12, 0, math.pi)
  835.             rs.C1 = CFrame.new(0,1,-0.25) * CFrame.Angles(math.pi/6 + angle/12, 0, math.pi)
  836.             lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, math.pi/8 + angle/16)
  837.             rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, math.pi/8 + angle/16)
  838.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 - math.pi/8 + angle/16, math.pi, 0)
  839.             rj.C0 = CFrame.new(0, 0.25 + angle/12, 0) * CFrame.Angles(math.pi/2, math.pi, math.rad(global_wait*4))
  840.         end
  841.     end
  842. end)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top