Advertisement
BabyGoatz

Untitled

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