LuaExploitz

joemama dance

Oct 3rd, 2016
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 25.10 KB | None | 0 0
  1.  
  2. music = true
  3. do
  4.         local function QuaternionFromCFrame(cf)
  5.                 local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  6.                 local trace = m00 + m11 + m22
  7.                 if trace > 0 then
  8.                         local s = math.sqrt(1 + trace)
  9.                         local recip = 0.5/s
  10.                         return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  11.                 else
  12.                         local i = 0
  13.                         if m11 > m00 then
  14.                                 i = 1
  15.                         end
  16.                         if m22 > (i == 0 and m00 or m11) then
  17.                                 i = 2
  18.                         end
  19.                         if i == 0 then
  20.                                 local s = math.sqrt(m00-m11-m22+1)
  21.                                 local recip = 0.5/s
  22.                                 return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  23.                         elseif i == 1 then
  24.                                 local s = math.sqrt(m11-m22-m00+1)
  25.                                 local recip = 0.5/s
  26.                                 return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  27.                         elseif i == 2 then
  28.                                 local s = math.sqrt(m22-m00-m11+1)
  29.                                 local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  30.                         end
  31.                 end
  32.         end
  33.         local function QuaternionToCFrame(px, py, pz, x, y, z, w)
  34.                 local xs, ys, zs = x + x, y + y, z + z
  35.                 local wx, wy, wz = w*xs, w*ys, w*zs
  36.                 local xx = x*xs
  37.                 local xy = x*ys
  38.                 local xz = x*zs
  39.                 local yy = y*ys
  40.                 local yz = y*zs
  41.                 local zz = z*zs
  42.                 return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  43.                 end  
  44.         local function QuaternionSlerp(a, b, t)
  45.                 local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  46.                 local startInterp, finishInterp;
  47.                 if cosTheta >= 0.0001 then
  48.                         if (1 - cosTheta) > 0.0001 then
  49.                                 local theta = math.acos(cosTheta)
  50.                                 local invSinTheta = 1/math.sin(theta)
  51.                                 startInterp = math.sin((1-t)*theta)*invSinTheta
  52.                                 finishInterp = math.sin(t*theta)*invSinTheta  
  53.                         else
  54.                                 startInterp = 1-t
  55.                                 finishInterp = t
  56.                         end
  57.                 else
  58.                         if (1+cosTheta) > 0.0001 then
  59.                                 local theta = math.acos(-cosTheta)
  60.                                 local invSinTheta = 1/math.sin(theta)
  61.                                 startInterp = math.sin((t-1)*theta)*invSinTheta
  62.                                 finishInterp = math.sin(t*theta)*invSinTheta
  63.                         else
  64.                                 startInterp = t-1
  65.                                 finishInterp = t
  66.                         end
  67.                 end
  68.                 return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  69.         end  
  70.         function clerp(a,b,t)
  71.                 local qa = {QuaternionFromCFrame(a)}
  72.                 local qb = {QuaternionFromCFrame(b)}
  73.                 local ax, ay, az = a.x, a.y, a.z
  74.                 local bx, by, bz = b.x, b.y, b.z  
  75.                 local _t = 1-t
  76.                 return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  77.         end
  78.  
  79. end
  80. do
  81. plr = game:service'Players'.LocalPlayer
  82. char = plr.Character
  83. mouse = plr:GetMouse()
  84. humanoid = char:findFirstChild("Humanoid")
  85. torso = char:findFirstChild("Torso")
  86. head = char.Head
  87. ra = char:findFirstChild("Right Arm")
  88. la = char:findFirstChild("Left Arm")
  89. rl = char:findFirstChild("Right Leg")
  90. ll = char:findFirstChild("Left Leg")
  91. rs = torso:findFirstChild("Right Shoulder")
  92. ls = torso:findFirstChild("Left Shoulder")
  93. rh = torso:findFirstChild("Right Hip")
  94. lh = torso:findFirstChild("Left Hip")
  95. neck = torso:findFirstChild("Neck")
  96. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  97. anim = char:findFirstChild("Animate")
  98. rootpart = char:findFirstChild("HumanoidRootPart")
  99. camera = workspace.CurrentCamera
  100. if anim then
  101. anim:Destroy()
  102. end
  103.  
  104. local rm = Instance.new("Motor", torso)
  105. rm.C0 = CFrame.new(1.5, 0.5, 0)
  106. rm.C1 = CFrame.new(0, 0.5, 0)
  107. rm.Part0 = torso
  108. rm.Part1 = ra
  109. local lm = Instance.new("Motor", torso)
  110. lm.C0 = CFrame.new(-1.5, 0.5, 0)
  111. lm.C1 = CFrame.new(0, 0.5, 0)
  112. lm.Part0 = torso
  113. lm.Part1 = la
  114.  
  115. local rlegm = Instance.new("Motor", torso)
  116. rlegm.C0 = CFrame.new(0.5, -1, 0)
  117. rlegm.C1 = CFrame.new(0, 1, 0)
  118. rlegm.Part0 = torso
  119. rlegm.Part1 = rl
  120. local llegm = Instance.new("Motor", torso)
  121. llegm.C0 = CFrame.new(-0.5, -1, 0)
  122. llegm.C1 = CFrame.new(0, 1, 0)
  123. llegm.Part0 = torso
  124. llegm.Part1 = ll
  125.  
  126. neck.C0 = CFrame.new(0, 1, 0)
  127. neck.C1 = CFrame.new(0, -0.5, 0)
  128.  
  129.  
  130. rj.C0 = CFrame.new()
  131. rj.C1 = CFrame.new()
  132.  
  133. local sound = Instance.new("Sound", head)
  134. sound.SoundId = "http://www.roblox.com/asset/?id=130797915"
  135. sound.Volume = 0.8
  136. sound.Looped = true
  137.  
  138. for _,v in pairs(char:GetChildren()) do if v.ClassName=="Hat" then v:remove() end end
  139.  
  140. local speed = 0.3
  141. local angle = 0
  142. local humanwalk = true
  143. local anglespeed = 1
  144. rsc0 = rm.C0
  145. lsc0 = lm.C0
  146. llc0 = llegm.C0
  147. rlc0 = rlegm.C0
  148. neckc0 = neck.C0
  149.  
  150. local controllerService = game:GetService("ControllerService")
  151. local controller = controllerService:GetChildren()[1]
  152.  
  153. controller.Parent = nil
  154.  
  155. Instance.new("HumanoidController", game:service'ControllerService')
  156. Instance.new("SkateboardController", game:service'ControllerService')
  157. Instance.new("VehicleController", game:service'ControllerService')
  158. local controller = controllerService:GetChildren()[1]
  159. mouse.KeyDown:connect(function(k)
  160.     if k == "q" then
  161.         if not sound.IsPlaying and  music == true then
  162.             game:service'InsertService':LoadAsset(44114719):children()[1].Parent = char
  163.             sound:stop()
  164.             sound.SoundId = "http://www.roblox.com/asset/?id=157460849"
  165.             wait()
  166.             sound:play()
  167.         end
  168.     end
  169.     if k == "e" then
  170.         if not sound.IsPlaying and music == true then
  171.             game:service'InsertService':LoadAsset(1073690):children()[1].Parent = char
  172.             sound:stop()
  173.             sound.SoundId = "http://www.roblox.com/asset/?id=185941026"
  174.             wait()
  175.             sound:play()
  176.         end
  177.     end
  178.         if k == "r" then
  179.         if not sound.IsPlaying and music == true then
  180.             game:service'InsertService':LoadAsset(47697285):children()[1].Parent = char
  181.             game:service'InsertService':LoadAsset(11748356):children()[1].Parent = char
  182.             sound:stop()
  183.             sound.SoundId = "http://www.roblox.com/asset/?id=149410799"
  184.             wait()
  185.             sound:play()
  186.         end
  187.     end
  188.         if k == "t" then
  189.         if not sound.IsPlaying and music == true then
  190.             game:service'InsertService':LoadAsset(10911990):children()[1].Parent = char
  191.             sound:stop()
  192.             sound.SoundId = "http://www.roblox.com/asset/?id=142305777"
  193.             wait()
  194.             sound:play()
  195.         end
  196.     end
  197.          if k == "y" then
  198.         if not sound.IsPlaying and music == true then
  199.             game:service'InsertService':LoadAsset(128159229):children()[1].Parent = char
  200.             sound:stop()
  201.             sound.SoundId = "http://www.roblox.com/asset/?id=160525520"
  202.             wait()
  203.             sound:play()
  204.         end
  205.     end
  206.          if k == "u" then
  207.         if not sound.IsPlaying and music == true then
  208.             game:service'InsertService':LoadAsset(139618234):children()[1].Parent = char
  209.             sound:stop()
  210.             sound.SoundId = "http://www.roblox.com/asset/?id=188705888"
  211.             wait()
  212.             sound:play()
  213.         end
  214.     end
  215.          if k == "p" then
  216.         if not sound.IsPlaying and music == true then
  217.             game:service'InsertService':LoadAsset(163500995):children()[1].Parent = char
  218.     game:service'InsertService':LoadAsset(164203067):children()[1].Parent = char
  219.             sound:stop()
  220.             sound.SoundId = "http://www.roblox.com/asset/?id=146048136"
  221.             wait()
  222.             sound:play()
  223.         end
  224.     end
  225.         if k == "f" then
  226.         if not sound.IsPlaying and music == true then
  227.             game:service'InsertService':LoadAsset(11453654):children()[1].Parent = char
  228.             sound:stop()
  229.             sound.SoundId = "http://www.roblox.com/asset/?id=133061687"
  230.             wait()
  231.             sound:play()
  232.         end
  233.     end
  234.  if string.byte(k) == 48 then
  235.         humanoid.WalkSpeed = 55
  236. elseif string.byte(k) == 50 then
  237. humanoid.Sit = true
  238.     end
  239.    
  240. end)
  241. mouse.KeyUp:connect(function(k)
  242.    
  243.     if string.byte(k) == 48 then
  244.         humanoid.WalkSpeed = 16
  245.     end
  246.    
  247. end)
  248.  
  249.    
  250.  
  251. while wait() do
  252.     angle = (angle % 100) + anglespeed/10 -- i don't see any function getting called here
  253.         mvmnt = math.pi * math.sin(math.pi*2/100*(angle*10))
  254.         local rscf = rsc0
  255.         local lscf = lsc0
  256.         local rlcf = rlc0
  257.         local llcf = llc0
  258.         local rjcf = CFrame.new()
  259.         local ncf = neckc0
  260.         local rayz = Ray.new(rootpart.Position, Vector3.new(0, -6, 0))
  261.             local hitz, enz = workspace:findPartOnRay(rayz, char)
  262.             if not hitz then
  263.         if sound.IsPlaying then
  264.             sound:stop()
  265.         end
  266. elseif humanoid.Sit then
  267.         if sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=157460849" then
  268.     anglespeed = 1/2
  269.         ncf = neckc0 * CFrame.Angles(math.pi/4, 0,math.sin(angle)*0.08)
  270.         rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, 0, math.sin(angle)*0.01,0,math.pi/2)
  271.         rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.sin(angle),0,math.pi/1)
  272.         lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, -math.sin(angle)*0.09, math.rad(15))
  273.         rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  274.         llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  275.             elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=149069781" then
  276.         elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=149069781" then
  277.         anglespeed = 6
  278.         ncf = neckc0 * CFrame.Angles(math.pi/5-math.sin(angle)*0.1, 0, 0)
  279.         rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, 0, 0)
  280.         rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  281.         lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
  282.         rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  283.         llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  284.         elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=149410799" then
  285.         anglespeed = 6
  286.         ncf = neckc0 * CFrame.Angles(math.pi/5-math.sin(angle)*0.1, 0, 0)
  287.         rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, 0, 0)
  288.         rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  289.         lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
  290.         rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  291.         llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  292.         elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=142305777" then
  293.         anglespeed = 6
  294.         rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(0, math.sin(angle),math.rad(20))
  295.         rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.sin(angle),0,math.pi/1)
  296.         lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.sin(angle),0,math.pi/1)
  297.         elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=160525520" then
  298.         anglespeed = 6
  299.         ncf = neckc0 * CFrame.Angles(math.pi/5-math.sin(angle)*0.1, 0, 0)
  300.         rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, 0, 0)
  301.         rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  302.         lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
  303.         rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  304.         llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  305.         elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=152401544" then
  306.         anglespeed = 6
  307.         ncf = neckc0 * CFrame.Angles(math.pi/5-math.sin(angle)*0.1, 0, 0)
  308.         rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, 0, 0)
  309.         rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  310.         lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
  311.         rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  312.         llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  313.         elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=146048136" then
  314.     anglespeed = 6
  315.         ncf = neckc0 * CFrame.Angles(math.sin(angle)-math.abs(math.sin(angle))*0.9,math.cos(angle)*.3, 0)
  316.             rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.sin(angle)*.2, 0)
  317.             rscf = rsc0 * CFrame.Angles(math.pi/3+math.abs(math.sin(angle)*1), math.rad(anglespeed*angle)*.3,  math.sin(angle*3)*.6)
  318.             lscf = lsc0 * CFrame.Angles(math.pi/3+math.abs(math.sin(angle)*1), math.rad(anglespeed*angle)*.3,  math.sin(angle*3)*.6)
  319.             rlcf = rlc0 * CFrame.Angles(0, math.rad(angle)*math.sin(anglespeed), math.rad(angle)*.5)
  320.             llcf = llc0 * CFrame.Angles(0, math.rad(angle)*math.sin(anglespeed), -math.rad(angle)*.5)
  321.         elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=142305777" then
  322.         anglespeed = 6
  323.         rjcf = CFrame.new(0, math.sin(angle)*2, 0) * CFrame.Angles(0, math.sin(angle),0)
  324.         rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.sin(angle),0,math.pi/1)
  325.         lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.sin(angle),0,math.pi/1)
  326.         else
  327.         anglespeed = 1/2
  328.         ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08)
  329.         rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(math.pi/5, math.sin(angle)*0.01, 0)
  330.         rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  331.         lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
  332.         rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  333.         llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  334.         end
  335.     elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then
  336.             if sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=157460849" then
  337.     anglespeed = 3
  338.         ncf = neckc0 * CFrame.Angles(math.pi/4, 0,math.sin(angle)*0.08)
  339.         rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, 0, math.sin(angle)*0.01,0,math.pi/2)
  340.         rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.sin(angle),0,math.pi/1)
  341.         lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, -math.sin(angle)*0.09, math.rad(15))
  342.         rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  343.         llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  344.             elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=149069781" then
  345.             anglespeed = 2
  346.             ncf = neckc0 * CFrame.Angles(math.pi/10-math.abs(math.sin(angle))*0.3,0, 0)
  347.             rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.sin(angle)*.5, 0)
  348.             rscf = rsc0 * CFrame.Angles(0, 0, math.pi/2+math.abs(math.sin(angle)*1))
  349.             lscf = lsc0 * CFrame.Angles(0, 0, -math.pi/2-math.abs(math.sin(angle)*1))
  350.             rlcf = rlc0 * CFrame.Angles(0, math.sin(angle)*0.08, math.rad(2.5))
  351.             llcf = llc0 * CFrame.Angles(0, -math.sin(angle)*0.08, -math.rad(2.5))
  352.             elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=149410799" then
  353.             anglespeed = 2
  354.             ncf = neckc0 * CFrame.Angles(math.pi/10-math.abs(math.sin(angle))*0.3,0, 0)
  355.             rjcf = CFrame.new(math.sin(angle)*2, 0, 0) * CFrame.Angles(-math.pi/20, math.sin(angle)*.5, 0)
  356.             rscf = rsc0 * CFrame.Angles(math.pi/3+math.abs(math.sin(angle)*.5), math.pi/20,  -math.pi/20)
  357.             lscf = lsc0 * CFrame.Angles(math.pi/3+math.abs(math.sin(angle)*.5), -math.pi/20,  math.pi/20)
  358.             rlcf = rlc0 * CFrame.Angles(math.pi/20+math.sin(angle)*0.2, math.sin(angle)*0.08, math.rad(2.5))
  359.             llcf = llc0 * CFrame.Angles(math.pi/20-math.sin(angle)*0.2, -math.sin(angle)*0.08, -math.rad(2.5))
  360.             elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=142305777" then
  361.             anglespeed = 4
  362.         rjcf = CFrame.new(0, math.sin(angle)*2, 0) * CFrame.Angles(0, math.sin(angle),0)
  363.         rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.sin(angle),0,math.pi/1)
  364.         lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.sin(angle),0,math.pi/1)
  365.             elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=160525520" then
  366.             anglespeed = 2
  367.             ncf = neckc0 * CFrame.Angles(math.pi/10-math.abs(math.sin(angle))*0.5,0, 0)
  368.             rjcf = CFrame.new(0, 0, math.sin(angle)*3) * CFrame.Angles(0, math.sin(angle)*0.1, 0)
  369.             rscf = rsc0 * CFrame.Angles(math.pi/3+math.abs(math.sin(angle)*1), math.pi/20,  -math.pi/20)
  370.             lscf = lsc0 * CFrame.Angles(math.pi/3+math.abs(math.sin(angle)*1), -math.pi/20,  math.pi/20)
  371.             rlcf = rlc0 * CFrame.Angles(math.pi/20+math.sin(angle*2)*.75, 0, 0)
  372.             llcf = llc0 * CFrame.Angles(math.pi/20-math.sin(angle*2)*.75, 0, 0)
  373.             elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=152401544" then
  374.             anglespeed = 2
  375.             ncf = neckc0 * CFrame.Angles(0,0, 0)
  376.             rjcf = CFrame.new(0, -math.abs(math.sin(angle))*1.5, 0) * CFrame.Angles(math.sin(angle)*2, 0, 0)
  377.             rscf = rsc0 * CFrame.Angles(0, 0,  0)
  378.             lscf = lsc0 * CFrame.Angles(0, 0,  0)
  379.             rlcf = rlc0 * CFrame.Angles(0, 0, 0)
  380.             llcf = llc0 * CFrame.Angles(0, 0, 0)
  381.             elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=146048136" then
  382.     anglespeed = 6
  383.         ncf = neckc0 * CFrame.Angles(math.sin(angle)-math.abs(math.sin(angle))*0.9,math.cos(angle)*.3, 0)
  384.             rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.sin(angle)*.2, 0)
  385.             rscf = rsc0 * CFrame.Angles(math.pi/3+math.abs(math.sin(angle)*1), math.rad(anglespeed*angle)*.3,  math.sin(angle*3)*.6)
  386.             lscf = lsc0 * CFrame.Angles(math.pi/3+math.abs(math.sin(angle)*1), math.rad(anglespeed*angle)*.3,  math.sin(angle*3)*.6)
  387.             rlcf = rlc0 * CFrame.Angles(0, math.rad(angle)*math.sin(anglespeed), math.rad(angle)*.5)
  388.             llcf = llc0 * CFrame.Angles(0, math.rad(angle)*math.sin(anglespeed), -math.rad(angle)*.5)
  389.             elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=133061687" then
  390.             anglespeed = 7
  391.             ncf = neckc0 * CFrame.Angles(math.pi/10-math.abs(math.sin(angle))*0.3,0, 0)
  392.             rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.sin(angle)*.5, 0)
  393.             rscf = rsc0 * CFrame.Angles(math.pi/3+math.abs(math.sin(angle)*1), math.pi/20,  -math.pi/20)
  394.             lscf = lsc0 * CFrame.Angles(math.pi/3+math.abs(math.sin(angle)*1), -math.pi/20,  math.pi/20)
  395.             rlcf = rlc0 * CFrame.Angles(0, math.sin(angle)*0.1, math.rad(2.5))
  396.             llcf = llc0 * CFrame.Angles(0, -math.sin(angle)*1, -math.rad(2.5))
  397.             else
  398.             if humanwalk then
  399.                         anglespeed = 1/4
  400.         ncf = neckc0 * CFrame.Angles(-math.sin(angle)*0.07, 0, 0)
  401.         rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.sin(angle)*0.009, 0)
  402.         rscf = rsc0 * CFrame.Angles(math.sin(angle)*0.6, 0, 0)
  403.         lscf = lsc0 * CFrame.Angles(math.sin(-angle)*0.6, 0, 0)
  404.         rlcf = rlc0 * CFrame.Angles(0, math.sin(angle)*0.09, math.rad(2.5))
  405.         llcf = llc0 * CFrame.Angles(0, -math.sin(angle)*0.12, -math.rad(angle)*0.2)
  406.                 else
  407.         anglespeed = 1/2
  408.         ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.5)
  409.         rjcf = CFrame.new(0, -2, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0)
  410.         rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/6, 0, -math.rad(60))
  411.         lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/6, 0, math.rad(60))
  412.         rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  413.         llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  414.             end
  415.         end
  416.     elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 20 then
  417.         if sound.IsPlaying then
  418.             sound:stop()
  419.             for _,v in pairs(char:GetChildren()) do if v.ClassName=="Hat" then v:remove() end end
  420.         end
  421.         if humanwalk then
  422.                                 anglespeed = 4
  423.         ncf = neckc0 * CFrame.Angles(math.pi/24, mvmnt*.02, 0)
  424.         rjcf = CFrame.new(0, math.abs(mvmnt)*0.05, 0) * CFrame.Angles(math.pi/24, -mvmnt*.02, 0)
  425.         rscf = rsc0 * CFrame.Angles(math.sin(angle)*1.25, 0, -math.abs(mvmnt)*0.02)
  426.         lscf = lsc0 * CFrame.Angles(math.sin(-angle)*1.25, 0, math.abs(mvmnt)*0.02)
  427.         rlcf = rlc0 * CFrame.Angles(math.sin(-angle)*1, 0, math.rad(.5))
  428.         llcf = llc0 * CFrame.Angles(math.sin(angle)*1, 0, -math.rad(.5))
  429.                 else
  430.         anglespeed = 4
  431.         ncf = neckc0 * CFrame.new(0, 0, .2) * CFrame.Angles(math.pi/1.9, 0, 0)
  432.         rjcf = CFrame.new(0, -1.5+math.abs(mvmnt)*0.05, 0) * CFrame.Angles(-math.pi/1.9, math.sin(mvmnt/2)*0.05, 0)
  433.         rscf = rsc0 * CFrame.new(-.45, 0.2, -.4+math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2+math.sin(angle)*1, 0, math.rad(5))
  434.         lscf = lsc0 * CFrame.new(.45, 0.2, .1-math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2+math.sin(-angle)*0.4, 0, -math.rad(5))
  435.         rlcf = rlc0 * CFrame.new(0, 0, -.3+math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2.5+math.sin(-angle)*0.8, 0, math.abs(mvmnt)*0.025)
  436.         llcf = llc0 * CFrame.new(0, 0, .3-math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2.5+math.sin(angle)*.6, 0, -math.abs(mvmnt)*0.025)
  437.         end
  438.     elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then
  439.         if sound.IsPlaying then
  440.             sound:stop()
  441.         for _,v in pairs(char:GetChildren()) do if v.ClassName=="Hat" then v:remove() end end
  442.         end
  443.         if humanwalk then
  444.         anglespeed = 5
  445.         ncf = neckc0 * CFrame.Angles(math.rad(30), math.sin(angle)*.5, 0)
  446.         rjcf = CFrame.new(0, -.4 + math.abs(mvmnt)*0.25, 0) * CFrame.Angles(0, -math.sin(angle)*.08, 0)
  447.         rscf = rsc0 * CFrame.new(0, 0, -.3+math.abs(mvmnt)*0.125) *  CFrame.Angles(math.pi/18+math.sin(angle)*1.5, 0, -math.abs(mvmnt)*1.7)
  448.         lscf = lsc0 * CFrame.new(0, 0, .3-math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/18+math.sin(-angle)*1.5, 0, math.abs(mvmnt)*1.7)
  449.         rlcf = rlc0 * CFrame.new(0, 0, -.6+math.abs(mvmnt)*0.125) * CFrame.Angles(-math.pi/18+math.sin(-angle)*1.3, 0, math.rad(.5))
  450.         llcf = llc0 * CFrame.new(0, 0, -math.abs(mvmnt)*0.125) * CFrame.Angles(-math.pi/18+math.sin(angle)*1.3, 0, -math.rad(.5))
  451.         else
  452.         anglespeed = 5.5
  453.         ncf = neckc0 * CFrame.new(0, 0, .2) * CFrame.Angles(math.pi/1.9+math.sin(mvmnt/2)*0.05, 0, 0)
  454.         rjcf = CFrame.new(0, -1.3+math.abs(mvmnt)*0.05, 0) * CFrame.Angles(-math.pi/1.9+math.abs(mvmnt/2)*0.1, 0, 0)
  455.         rscf = rsc0 * CFrame.new(-1, 0.2, -.5) * CFrame.Angles(math.pi/2+math.sin(angle)*1.8, 0, math.rad(5))
  456.         lscf = lsc0 * CFrame.new(1, 0.2, -.5) * CFrame.Angles(math.pi/2+math.sin(angle)*1.8, 0, -math.rad(5))
  457.         rlcf = rlc0 * CFrame.new(0, .3-math.abs(mvmnt)*0.125, -.3+math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2.5+math.sin(-angle)*1.4, 0, math.abs(mvmnt)*0.025)
  458.         llcf = llc0 * CFrame.new(0, .3-math.abs(mvmnt)*0.125, .3-math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2.5+math.sin(-angle)*1.4, 0, -math.abs(mvmnt)*0.025)
  459.         end
  460.     end
  461.        
  462.     rm.C0 = clerp(rm.C0,rscf,speed)
  463.     lm.C0 = clerp(lm.C0,lscf,speed)
  464.     rj.C0 = clerp(rj.C0,rjcf,speed)
  465.     neck.C0 = clerp(neck.C0,ncf,speed)
  466.     rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  467.     llegm.C0 = clerp(llegm.C0,llcf,speed)
  468. end
  469.  
  470.  
  471. end
  472.  
  473. game.Players.LocalPlayer.Chatted:connect(function(k)
  474. if k:lower() == "musicon" then
  475. music = true
  476. elseif k:lower() == "musicoff" then
  477. music = false
  478. end
  479. end)
Add Comment
Please, Sign In to add comment