Advertisement
BabyGoatz

Untitled

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