Donor2222

Untitled

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