artucox7

Dog Pooping

Feb 24th, 2018
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.68 KB | None | 0 0
  1.  
  2. local p = game.Players.LocalPlayer
  3. local char = p.Character
  4. local mouse = p:GetMouse()
  5. local larm = char["Left Arm"]
  6. local rarm = char["Right Arm"]
  7. local lleg = char["Left Leg"]
  8. local rleg = char["Right Leg"]
  9. local hed = char.Head
  10. local torso = char.Torso
  11. local hum = char.Humanoid
  12. local cam = game.Workspace.CurrentCamera
  13. local root = char.HumanoidRootPart
  14. local deb = false
  15. local shot = 0
  16. local debris=game:service"Debris"
  17. local l = game:GetService("Lighting")
  18. local rs = game:GetService("RunService").RenderStepped
  19. ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  20. math.randomseed(os.time())
  21. ----------------------------------------------------
  22. Debounces = {
  23. CanAttack = true;
  24. NoIdl = false;
  25. Slashing = false;
  26. Slashed = false;
  27. RPunch = false;
  28. RPunched = false;
  29. LPunch = false;
  30. LPunched = false;
  31. }
  32. local Touche = {char.Name, }
  33. ----------------------------------------------------
  34. hed.face.Texture = "rbxassetid://227969918"
  35. char["Body Colors"].HeadColor = BrickColor.new("Pastel brown")
  36. char["Body Colors"].TorsoColor = BrickColor.new("Pastel brown")
  37. char["Body Colors"].LeftArmColor = BrickColor.new("Pastel brown")
  38. char["Body Colors"].RightArmColor = BrickColor.new("Pastel brown")
  39. char["Body Colors"].LeftLegColor = BrickColor.new("Pastel brown")
  40. char["Body Colors"].RightLegColor = BrickColor.new("Pastel brown")
  41. ----------------------------------------------------
  42. ypcall(function()
  43. char.Shirt:Destroy()
  44. char.Pants:Destroy()
  45. shirt = Instance.new("Shirt", char)
  46. shirt.Name = "Shirt"
  47. pants = Instance.new("Pants", char)
  48. pants.Name = "Pants"
  49. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=0"
  50. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=0"
  51. end)
  52. ----------------------------------------------------
  53. --------------nico
  54. local fartids={251309043,251309043}
  55. local timer=false
  56. local debris=game:GetService("Debris")
  57. local char=game.Players.LocalPlayer.Character
  58. for i = 1,3,2 do
  59. local asdf=Instance.new("Part",char)
  60. asdf.Shape="Ball"
  61. asdf.Locked=true
  62. asdf.FormFactor="Custom"
  63. asdf.Material="SmoothPlastic"
  64. asdf.BrickColor=BrickColor.new(1030)
  65. asdf.Size=Vector3.new(.4,.4,.4)
  66. local weld=Instance.new("Weld",char)
  67. weld.Part0=char.Torso
  68. weld.Part1=asdf
  69. weld.C0=CFrame.new((i-2)/2.5,-.9,.4)
  70. end
  71. function crap()
  72. if timer==false then
  73. timer=true
  74. local char=game.Players.LocalPlayer.Character
  75. local crap=Instance.new("Part",Workspace)
  76. crap.FormFactor="Custom"
  77. crap.BrickColor=BrickColor.new(25)
  78. crap.Material="Grass"
  79. crap.Size=Vector3.new(1.2,0.4,0.4)
  80. local snd=Instance.new("Sound",char)
  81. snd.SoundId="rbxassetid://" .. tostring(fartids[math.random(1,#fartids)])
  82. snd.Volume=2
  83. snd:Play()
  84. debris:AddItem(snd,snd.TimeLength)
  85. local smk=Instance.new("Smoke",crap)
  86. smk.Color=BrickColor.new(25).Color
  87. debris:AddItem(smk,2.5)
  88. for i = 0.15,1.3,.02 do
  89. local weld=Instance.new("Weld",crap)
  90. weld.Part0=char.Torso
  91. weld.Part1=crap
  92. weld.C0=CFrame.new(0,-.9,i)*CFrame.Angles(0,math.rad(90),0)
  93. wait()
  94. end
  95. local crapCFrame=crap.CFrame
  96. crap:Destroy()
  97.  
  98. for i = 0,1.2,0.4 do
  99. local newCrap=Instance.new("Part",Workspace)
  100. newCrap.FormFactor="Custom"
  101. newCrap.BrickColor=BrickColor.new(25)
  102. newCrap.Material="Grass"
  103. newCrap.Size=Vector3.new(.4,.4,.4)
  104. newCrap.CFrame=crapCFrame*CFrame.new(i-1,0,0)
  105. end
  106. timer=false
  107. end
  108. end
  109. game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key)
  110. if string.lower(key)=="x" then
  111. crap()
  112. end
  113. end)
  114.  
  115. do --CFrame lerp
  116. local function QuaternionFromCFrame(cf)
  117. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  118. local trace = m00 + m11 + m22
  119. if trace > 0 then
  120. local s = math.sqrt(1 + trace)
  121. local recip = 0.5/s
  122. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  123. else
  124. local i = 0
  125. if m11 > m00 then
  126. i = 1
  127. end
  128. if m22 > (i == 0 and m00 or m11) then
  129. i = 2
  130. end
  131. if i == 0 then
  132. local s = math.sqrt(m00-m11-m22+1)
  133. local recip = 0.5/s
  134. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  135. elseif i == 1 then
  136. local s = math.sqrt(m11-m22-m00+1)
  137. local recip = 0.5/s
  138. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  139. elseif i == 2 then
  140. local s = math.sqrt(m22-m00-m11+1)
  141. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  142. end
  143. end
  144. end
  145. local function QuaternionToCFrame(px, py, pz, x, y, z, w)
  146. local xs, ys, zs = x + x, y + y, z + z
  147. local wx, wy, wz = w*xs, w*ys, w*zs
  148. local xx = x*xs
  149. local xy = x*ys
  150. local xz = x*zs
  151. local yy = y*ys
  152. local yz = y*zs
  153. local zz = z*zs
  154. 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))
  155. end
  156. local function QuaternionSlerp(a, b, t)
  157. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  158. local startInterp, finishInterp;
  159. if cosTheta >= 0.0001 then
  160. if (1 - cosTheta) > 0.0001 then
  161. local theta = math.acos(cosTheta)
  162. local invSinTheta = 1/math.sin(theta)
  163. startInterp = math.sin((1-t)*theta)*invSinTheta
  164. finishInterp = math.sin(t*theta)*invSinTheta
  165. else
  166. startInterp = 1-t
  167. finishInterp = t
  168. end
  169. else
  170. if (1+cosTheta) > 0.0001 then
  171. local theta = math.acos(-cosTheta)
  172. local invSinTheta = 1/math.sin(theta)
  173. startInterp = math.sin((t-1)*theta)*invSinTheta
  174. finishInterp = math.sin(t*theta)*invSinTheta
  175. else
  176. startInterp = t-1
  177. finishInterp = t
  178. end
  179. end
  180. 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
  181. end
  182. function clerp(a,b,t)
  183. local qa = {QuaternionFromCFrame(a)}
  184. local qb = {QuaternionFromCFrame(b)}
  185. local ax, ay, az = a.x, a.y, a.z
  186. local bx, by, bz = b.x, b.y, b.z
  187. local _t = 1-t
  188. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  189. end
  190.  
  191. end
  192. do --the animating
  193. plr = game:service'Players'.LocalPlayer
  194. char = plr.Character
  195. mouse = plr:GetMouse()
  196. humanoid = char:findFirstChild("Humanoid")
  197. torso = char:findFirstChild("Torso")
  198. head = char.Head
  199. ra = char:findFirstChild("Right Arm")
  200. la = char:findFirstChild("Left Arm")
  201. rl = char:findFirstChild("Right Leg")
  202. ll = char:findFirstChild("Left Leg")
  203. rs = torso:findFirstChild("Right Shoulder")
  204. ls = torso:findFirstChild("Left Shoulder")
  205. rh = torso:findFirstChild("Right Hip")
  206. lh = torso:findFirstChild("Left Hip")
  207. neck = torso:findFirstChild("Neck")
  208. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  209. anim = char:findFirstChild("Animate")
  210. rootpart = char:findFirstChild("HumanoidRootPart")
  211. camera = workspace.CurrentCamera
  212. if anim then
  213. anim:Destroy()
  214. end
  215.  
  216.  
  217. local rm = Instance.new("Motor", torso)
  218. rm.C0 = CFrame.new(1.5, 0.5, 0)
  219. rm.C1 = CFrame.new(0, 0.5, 0)
  220. rm.Part0 = torso
  221. rm.Part1 = ra
  222. local lm = Instance.new("Motor", torso)
  223. lm.C0 = CFrame.new(-1.5, 0.5, 0)
  224. lm.C1 = CFrame.new(0, 0.5, 0)
  225. lm.Part0 = torso
  226. lm.Part1 = la
  227.  
  228. local rlegm = Instance.new("Motor", torso)
  229. rlegm.C0 = CFrame.new(0.5, -1, 0)
  230. rlegm.C1 = CFrame.new(0, 1, 0)
  231. rlegm.Part0 = torso
  232. rlegm.Part1 = rl
  233. local llegm = Instance.new("Motor", torso)
  234. llegm.C0 = CFrame.new(-0.5, -1, 0)
  235. llegm.C1 = CFrame.new(0, 1, 0)
  236. llegm.Part0 = torso
  237. llegm.Part1 = ll
  238.  
  239. neck.C0 = CFrame.new(0, 1, 0)
  240. neck.C1 = CFrame.new(0, -0.5, 0)
  241.  
  242.  
  243. rj.C0 = CFrame.new()
  244. rj.C1 = CFrame.new()
  245.  
  246.  
  247. local sound = Instance.new("Sound", head)
  248. sound.SoundId = "http://www.roblox.com/asset/?id=130797915"
  249. sound.Volume = 0.8
  250. sound.Looped = true
  251.  
  252. local speed = 0.3
  253. local angle = 0
  254. local sitting = false
  255. local humanwalk = false
  256. local anglespeed = 1
  257. rsc0 = rm.C0
  258. lsc0 = lm.C0
  259. llc0 = llegm.C0
  260. rlc0 = rlegm.C0
  261. neckc0 = neck.C0
  262.  
  263. local controllerService = game:GetService("ControllerService")
  264. local controller = controllerService:GetChildren()[1]
  265.  
  266. controller.Parent = nil
  267.  
  268. while wait() do
  269. angle = (angle % 100) + anglespeed/10
  270. mvmnt = math.pi * math.sin(math.pi*2/100*(angle*10))
  271. local rscf = rsc0
  272. local lscf = lsc0
  273. local rlcf = rlc0
  274. local llcf = llc0
  275. local rjcf = CFrame.new()
  276. local ncf = neckc0
  277. local rayz = Ray.new(rootpart.Position, Vector3.new(0, -6, 0))
  278. local hitz, enz = workspace:findPartOnRay(rayz, char)
  279. if not hitz then
  280. if sound.IsPlaying then
  281. sound:stop()
  282. end
  283.  
  284. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 then
  285.  
  286. ncf = neckc0 * CFrame.Angles(math.pi/5, 0, 0)
  287. rjcf = CFrame.new() * CFrame.Angles(-math.pi/5, math.sin(angle)*0.05, 0)
  288. rscf = rsc0 * CFrame.Angles(math.pi/1.7+math.sin(angle)*0.1, 0, 0)
  289. lscf = lsc0 * CFrame.Angles(math.pi/1.7+math.sin(-angle)*0.1, 0, 0)
  290. rlcf = rlc0 * CFrame.Angles(-math.pi/10+math.sin(-angle)*0.3, 0, 0)
  291. llcf = llc0 * CFrame.Angles(-math.pi/10+math.sin(angle)*0.3, 0, 0)
  292.  
  293. else
  294.  
  295. ncf = neckc0 * CFrame.Angles(math.pi/14, 0, 0)
  296. rjcf = CFrame.new() * CFrame.Angles(-math.pi/18, math.sin(angle)*0.05, 0)
  297. rscf = rsc0 * CFrame.Angles(-math.pi/10+math.sin(angle)*0.2, 0, 0)
  298. lscf = lsc0 * CFrame.Angles(-math.pi/10+math.sin(-angle)*0.2, 0, 0)
  299. rlcf = rlc0 * CFrame.new(0, 0.7, -0.5) CFrame.Angles(-math.pi/14, 0, 0)
  300. llcf = llc0 * CFrame.Angles(-math.pi/20, 0, 0)
  301.  
  302. end
  303. elseif humanoid.Sit then
  304. if sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=150794704" then
  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=135570347" then
  313. anglespeed = 4
  314. ncf = neckc0 * CFrame.Angles(math.pi/5-math.abs(math.sin(angle))*0.3, 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=149713968" then
  321. anglespeed = 2
  322. ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08)
  323. rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0)
  324. rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  325. lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
  326. rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  327. llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  328. else
  329. anglespeed = 1/2
  330. ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08)
  331. rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0)
  332. rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  333. lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
  334. rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  335. llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  336. end
  337. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then
  338. if sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=130797915" then
  339. anglespeed = 6
  340. ncf = neckc0 * CFrame.Angles(math.pi/10-math.sin(angle)*0.07, 0, 0)
  341. rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi/10, math.sin(angle)*0.001, 0)
  342. rscf = rsc0 * CFrame.Angles(math.pi/1+math.sin(angle)*0.5, 0, 0)
  343. lscf = lsc0 * CFrame.Angles(math.pi/1+math.sin(angle)*0.5, 0, 0)
  344. rlcf = rlc0 * CFrame.Angles(math.pi/10, math.sin(angle)*0.08, math.rad(6.5))
  345. llcf = llc0 * CFrame.Angles(math.pi/10, -math.sin(angle)*0.08, -math.rad(6.5))
  346. elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=149713968" then
  347. anglespeed = 2
  348. ncf = neckc0 * CFrame.Angles(math.pi/10-math.abs(math.sin(angle))*0.3, 0, 0)
  349. rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi/20, math.sin(angle)*0.001, 0)
  350. rscf = rsc0 * CFrame.Angles(math.pi/2+math.abs(math.sin(angle)*1), 0, 0)
  351. lscf = lsc0 * CFrame.Angles(math.pi/2+math.abs(math.sin(angle)*1), 0, 0)
  352. rlcf = rlc0 * CFrame.Angles(math.pi/20, math.sin(angle)*0.08, math.rad(2.5))
  353. llcf = llc0 * CFrame.Angles(math.pi/20, -math.sin(angle)*0.08, -math.rad(2.5))
  354. elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=130802245" then
  355. anglespeed = 3
  356. ncf = neckc0 * CFrame.Angles(math.sin(angle)*0.07, math.rad(30), 0)
  357. rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.sin(angle)*0.001, 0)
  358. rscf = rsc0 * CFrame.Angles(math.sin(angle)*0.05, 0, 0)
  359. lscf = lsc0 * CFrame.Angles(math.sin(-angle)*0.05, 0, 0)
  360. rlcf = rlc0 * CFrame.new(0, -0.1 + math.abs(mvmnt)*0.1, -0.1) * CFrame.Angles(0, math.rad(5), math.rad(5))
  361. llcf = llc0 * CFrame.Angles(0, math.rad(2.5), math.rad(1))
  362. else
  363. if humanwalk then
  364. anglespeed = 1/4
  365. ncf = neckc0 * CFrame.Angles(-math.sin(angle)*0.07, 0, 0)
  366. rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.sin(angle)*0.001, 0)
  367. rscf = rsc0 * CFrame.Angles(math.sin(angle)*0.1, 0, 0)
  368. lscf = lsc0 * CFrame.Angles(math.sin(-angle)*0.1, 0, 0)
  369. rlcf = rlc0 * CFrame.Angles(0, math.sin(angle)*0.08, math.rad(2.5))
  370. llcf = llc0 * CFrame.Angles(0, -math.sin(angle)*0.08, -math.rad(2.5))
  371. else
  372. anglespeed = 1/2
  373. ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08)
  374. rjcf = CFrame.new(0, -2, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0)
  375. rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  376. lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
  377. rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  378. llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  379. end
  380. end
  381. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 20 then
  382. if sound.IsPlaying then
  383. sound:stop()
  384. end
  385. if humanwalk then
  386. anglespeed = 4
  387. ncf = neckc0 * CFrame.Angles(math.pi/24, mvmnt*.02, 0)
  388. rjcf = CFrame.new(0, math.abs(mvmnt)*0.05, 0) * CFrame.Angles(-math.pi/24, -mvmnt*.02, 0)
  389. rscf = rsc0 * CFrame.Angles(math.sin(angle)*1.25, 0, -math.abs(mvmnt)*0.02)
  390. lscf = lsc0 * CFrame.Angles(math.sin(-angle)*1.25, 0, math.abs(mvmnt)*0.02)
  391. rlcf = rlc0 * CFrame.Angles(math.sin(-angle)*1, 0, math.rad(.5))
  392. llcf = llc0 * CFrame.Angles(math.sin(angle)*1, 0, -math.rad(.5))
  393. else
  394. anglespeed = 4
  395. ncf = neckc0 * CFrame.new(0, 0, .2) * CFrame.Angles(math.pi/1.9, 0, 0)
  396. 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)
  397. rscf = rsc0 * CFrame.new(-.45, 0.2, -.4+math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2+math.sin(angle)*0.7, 0, math.rad(5))
  398. lscf = lsc0 * CFrame.new(.45, 0.2, .1-math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2+math.sin(-angle)*0.7, 0, -math.rad(5))
  399. rlcf = rlc0 * CFrame.new(0, 0, -.3+math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2.5+math.sin(-angle)*0.6, 0, math.abs(mvmnt)*0.025)
  400. 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)
  401. end
  402. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then
  403. if sound.IsPlaying then
  404. sound:stop()
  405. end
  406. if humanwalk then
  407. anglespeed = 5
  408. ncf = neckc0 * CFrame.Angles(math.pi/20, math.sin(angle)*.04, 0)
  409. rjcf = CFrame.new(0, -.4 + math.abs(mvmnt)*0.25, 0) * CFrame.Angles(-math.pi/20, -math.sin(angle)*.08, 0)
  410. 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)*0.02)
  411. 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)*0.02)
  412. 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))
  413. 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))
  414. else
  415. anglespeed = 5.5
  416. ncf = neckc0 * CFrame.new(0, 0, .2) * CFrame.Angles(math.pi/1.9+math.sin(mvmnt/2)*0.05, 0, 0)
  417. 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)
  418. rscf = rsc0 * CFrame.new(-1, 0.2, -.5) * CFrame.Angles(math.pi/2+math.sin(angle)*1.8, 0, math.rad(5))
  419. lscf = lsc0 * CFrame.new(1, 0.2, -.5) * CFrame.Angles(math.pi/2+math.sin(angle)*1.8, 0, -math.rad(5))
  420. 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)
  421. 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)
  422. end
  423. end
  424.  
  425. rm.C0 = clerp(rm.C0,rscf,speed)
  426. lm.C0 = clerp(lm.C0,lscf,speed)
  427. rj.C0 = clerp(rj.C0,rjcf,speed)
  428. neck.C0 = clerp(neck.C0,ncf,speed)
  429. rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  430. llegm.C0 = clerp(llegm.C0,llcf,speed)
  431. end
  432.  
  433.  
  434. end
Add Comment
Please, Sign In to add comment