Advertisement
Chxp

Untitled

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