Advertisement
xjaffie

Dog (creaated by xJaffie)

Aug 1st, 2015
590
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.38 KB | None | 0 0
  1. local function QuaternionFromCFrame(cf)
  2. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  3. local trace = m00 + m11 + m22
  4. if trace > 0 then
  5. local s = math.sqrt(1 + trace)
  6. local recip = 0.5/s
  7. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  8. else
  9. local i = 0
  10. if m11 > m00 then
  11. i = 1
  12. end
  13. if m22 > (i == 0 and m00 or m11) then
  14. i = 2
  15. end
  16. if i == 0 then
  17. local s = math.sqrt(m00-m11-m22+1)
  18. local recip = 0.5/s
  19. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  20. elseif i == 1 then
  21. local s = math.sqrt(m11-m22-m00+1)
  22. local recip = 0.5/s
  23. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  24. elseif i == 2 then
  25. local s = math.sqrt(m22-m00-m11+1)
  26. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  27. end
  28. end
  29. end
  30. local function QuaternionToCFrame(px, py, pz, x, y, z, w)
  31. local xs, ys, zs = x + x, y + y, z + z
  32. local wx, wy, wz = w*xs, w*ys, w*zs
  33. local xx = x*xs
  34. local xy = x*ys
  35. local xz = x*zs
  36. local yy = y*ys
  37. local yz = y*zs
  38. local zz = z*zs
  39. 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))
  40. end
  41. local function QuaternionSlerp(a, b, t)
  42. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  43. local startInterp, finishInterp;
  44. if cosTheta >= 0.0001 then
  45. if (1 - cosTheta) > 0.0001 then
  46. local theta = math.acos(cosTheta)
  47. local invSinTheta = 1/math.sin(theta)
  48. startInterp = math.sin((1-t)*theta)*invSinTheta
  49. finishInterp = math.sin(t*theta)*invSinTheta
  50. else
  51. startInterp = 1-t
  52. finishInterp = t
  53. end
  54. else
  55. if (1+cosTheta) > 0.0001 then
  56. local theta = math.acos(-cosTheta)
  57. local invSinTheta = 1/math.sin(theta)
  58. startInterp = math.sin((t-1)*theta)*invSinTheta
  59. finishInterp = math.sin(t*theta)*invSinTheta
  60. else
  61. startInterp = t-1
  62. finishInterp = t
  63. end
  64. end
  65. 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
  66. end
  67. function clerp(a,b,t)
  68. local qa = {QuaternionFromCFrame(a)}
  69. local qb = {QuaternionFromCFrame(b)}
  70. local ax, ay, az = a.x, a.y, a.z
  71. local bx, by, bz = b.x, b.y, b.z
  72. local _t = 1-t
  73. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  74. end
  75.  
  76. do --the animating
  77. plr = game:service'Players'.LocalPlayer
  78. char = plr.Character
  79. mouse = plr:GetMouse()
  80. humanoid = char:findFirstChild("Humanoid")
  81. torso = char:findFirstChild("Torso")
  82. head = char.Head
  83. head.Transparency = 1
  84. if char:FindFirstChild("Pants") then
  85. char:FindFirstChild("Pants"):Remove()
  86. aba=Instance.new("Pants",char)
  87. aba.Name = "DogePants"
  88. aba.PantsTemplate = "http://www.roblox.com/asset/?id=152197220"
  89. else
  90. aba=Instance.new("Pants",char)
  91. aba.Name = "DogePants"
  92. aba.PantsTemplate = "http://www.roblox.com/asset/?id=152197220"
  93. end
  94.  
  95. if char:FindFirstChild("Shirt") then
  96. char:FindFirstChild("Shirt"):Remove()
  97. aba2=Instance.new("Shirt",char)
  98. aba2.Name = "DogeShirt"
  99. aba2.ShirtTemplate = "http://www.roblox.com/asset/?id=152196635"
  100. else
  101. aba2=Instance.new("Shirt",char)
  102. aba2.Name = "DogeShirt"
  103. aba2.ShirtTemplate = "http://www.roblox.com/asset/?id=152196635"
  104. end
  105.  
  106. ra = char:findFirstChild("Right Arm")
  107. la = char:findFirstChild("Left Arm")
  108. rl = char:findFirstChild("Right Leg")
  109. ll = char:findFirstChild("Left Leg")
  110. rs = torso:findFirstChild("Right Shoulder")
  111. ls = torso:findFirstChild("Left Shoulder")
  112. rh = torso:findFirstChild("Right Hip")
  113. lh = torso:findFirstChild("Left Hip")
  114. neck = torso:findFirstChild("Neck")
  115. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  116. anim = char:findFirstChild("Animate")
  117. rootpart = char:findFirstChild("HumanoidRootPart")
  118. camera = workspace.CurrentCamera
  119. if anim then
  120. anim:Destroy()
  121. end
  122.  
  123.  
  124. local rm = Instance.new("Motor", torso)
  125. rm.C0 = CFrame.new(1.5, 0.5, 0)
  126. rm.C1 = CFrame.new(0, 0.5, 0)
  127. rm.Part0 = torso
  128. rm.Part1 = ra
  129. local lm = Instance.new("Motor", torso)
  130. lm.C0 = CFrame.new(-1.5, 0.5, 0)
  131. lm.C1 = CFrame.new(0, 0.5, 0)
  132. lm.Part0 = torso
  133. lm.Part1 = la
  134.  
  135. local rlegm = Instance.new("Motor", torso)
  136. rlegm.C0 = CFrame.new(0.5, -1, 0)
  137. rlegm.C1 = CFrame.new(0, 1, 0)
  138. rlegm.Part0 = torso
  139. rlegm.Part1 = rl
  140. local llegm = Instance.new("Motor", torso)
  141. llegm.C0 = CFrame.new(-0.5, -1, 0)
  142. llegm.C1 = CFrame.new(0, 1, 0)
  143. llegm.Part0 = torso
  144. llegm.Part1 = ll
  145.  
  146. neck.C0 = CFrame.new(0, 1, 0)
  147. neck.C1 = CFrame.new(0, -0.5, 0)
  148.  
  149.  
  150. rj.C0 = CFrame.new()
  151. rj.C1 = CFrame.new()
  152.  
  153.  
  154. local sound = Instance.new("Sound", head)
  155. sound.SoundId = "http://www.roblox.com/asset/?id=130797915"
  156. sound.Volume = 0.8
  157. sound.Looped = true
  158.  
  159. for i,v in pairs(char:children()) do
  160. if v:IsA("Hat") then
  161. v:Destroy()
  162. end
  163. end
  164.  
  165.  
  166. --look of the fox here
  167. game:service'InsertService':LoadAsset(151784320):children()[1].Parent = char
  168. Instance.new("PointLight", head).Range = 10
  169.  
  170.  
  171. local speed = 0.3
  172. local angle = 0
  173. local sitting = false
  174. local humanwalk = false
  175. local anglespeed = 1
  176. rsc0 = rm.C0
  177. lsc0 = lm.C0
  178. llc0 = llegm.C0
  179. rlc0 = rlegm.C0
  180. neckc0 = neck.C0
  181.  
  182. local controllerService = game:GetService("ControllerService")
  183. local controller = controllerService:GetChildren()[1]
  184.  
  185. controller.Parent = nil
  186.  
  187. Instance.new("HumanoidController", game:service'ControllerService')
  188. Instance.new("SkateboardController", game:service'ControllerService')
  189. Instance.new("VehicleController", game:service'ControllerService')
  190. local controller = controllerService:GetChildren()[1]
  191. mouse.KeyDown:connect(function(k)
  192. if k == "q" then
  193. humanwalk = not humanwalk
  194. end
  195. if k == "z" then
  196. if not sound.IsPlaying then
  197. sound:stop()
  198. sound.SoundId = "http://www.roblox.com/asset/?id=130802245"
  199. wait()
  200. sound:play()
  201. end
  202. end
  203. if k == "x" then
  204. if not sound.IsPlaying then
  205. sound:stop()
  206. sound.SoundId = "http://www.roblox.com/asset/?id=130797915"
  207. wait()
  208. sound:play()
  209. end
  210. end
  211. if k == "c" then
  212. if not sound.IsPlaying then
  213. sound:stop()
  214. sound.SoundId = "http://www.roblox.com/asset/?id=149713968"
  215. wait()
  216. sound:play()
  217. end
  218. end
  219. if string.byte(k) == 48 then
  220. humanoid.WalkSpeed = 34
  221. end
  222.  
  223. end)
  224. mouse.KeyUp:connect(function(k)
  225.  
  226. if string.byte(k) == 48 then
  227. humanoid.WalkSpeed = 16
  228. end
  229.  
  230. end)
  231.  
  232.  
  233.  
  234. while wait() do
  235. angle = (angle % 100) + anglespeed/10
  236. mvmnt = math.pi * math.sin(math.pi*2/100*(angle*10))
  237. local rscf = rsc0
  238. local lscf = lsc0
  239. local rlcf = rlc0
  240. local llcf = llc0
  241. local rjcf = CFrame.new()
  242. local ncf = neckc0
  243. local rayz = Ray.new(rootpart.Position, Vector3.new(0, -6, 0))
  244. local hitz, enz = workspace:findPartOnRay(rayz, char)
  245. if not hitz then
  246. if sound.IsPlaying then
  247. sound:stop()
  248. end
  249.  
  250. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 then
  251.  
  252. ncf = neckc0 * CFrame.Angles(math.pi/5, 0, 0)
  253. rjcf = CFrame.new() * CFrame.Angles(-math.pi/5, math.sin(angle)*0.05, 0)
  254. rscf = rsc0 * CFrame.Angles(math.pi/1.7+math.sin(angle)*0.1, 0, 0)
  255. lscf = lsc0 * CFrame.Angles(math.pi/1.7+math.sin(-angle)*0.1, 0, 0)
  256. rlcf = rlc0 * CFrame.Angles(-math.pi/10+math.sin(-angle)*0.3, 0, 0)
  257. llcf = llc0 * CFrame.Angles(-math.pi/10+math.sin(angle)*0.3, 0, 0)
  258.  
  259. else
  260.  
  261. ncf = neckc0 * CFrame.Angles(math.pi/14, 0, 0)
  262. rjcf = CFrame.new() * CFrame.Angles(-math.pi/18, math.sin(angle)*0.05, 0)
  263. rscf = rsc0 * CFrame.Angles(-math.pi/10+math.sin(angle)*0.2, 0, 0)
  264. lscf = lsc0 * CFrame.Angles(-math.pi/10+math.sin(-angle)*0.2, 0, 0)
  265. rlcf = rlc0 * CFrame.new(0, 0.7, -0.5) CFrame.Angles(-math.pi/14, 0, 0)
  266. llcf = llc0 * CFrame.Angles(-math.pi/20, 0, 0)
  267.  
  268. end
  269. elseif humanoid.Sit then
  270. if sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=130797915" then
  271. anglespeed = 6
  272. ncf = neckc0 * CFrame.Angles(math.pi/5-math.sin(angle)*0.1, 0, 0)
  273. rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, 0, 0)
  274. rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  275. lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
  276. rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  277. llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  278. elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=135570347" then
  279. anglespeed = 4
  280. ncf = neckc0 * CFrame.Angles(math.pi/5-math.abs(math.sin(angle))*0.3, 0, 0)
  281. rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, 0, 0)
  282. rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  283. lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, 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=149713968" then
  287. anglespeed = 2
  288. ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08)
  289. rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0)
  290. rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  291. lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
  292. rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  293. llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  294. else
  295. anglespeed = 1/2
  296. ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08)
  297. rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0)
  298. rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  299. lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
  300. rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  301. llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  302. end
  303. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then
  304. if sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=130797915" then
  305. anglespeed = 6
  306. ncf = neckc0 * CFrame.Angles(math.pi/10-math.sin(angle)*0.07, 0, 0)
  307. rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi/10, math.sin(angle)*0.001, 0)
  308. rscf = rsc0 * CFrame.Angles(math.pi/1+math.sin(angle)*0.5, 0, 0)
  309. lscf = lsc0 * CFrame.Angles(math.pi/1+math.sin(angle)*0.5, 0, 0)
  310. rlcf = rlc0 * CFrame.Angles(math.pi/10, math.sin(angle)*0.08, math.rad(6.5))
  311. llcf = llc0 * CFrame.Angles(math.pi/10, -math.sin(angle)*0.08, -math.rad(6.5))
  312. elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=149713968" then
  313. anglespeed = 2
  314. ncf = neckc0 * CFrame.Angles(math.pi/10-math.abs(math.sin(angle))*0.3, 0, 0)
  315. rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi/20, math.sin(angle)*0.001, 0)
  316. rscf = rsc0 * CFrame.Angles(math.pi/2+math.abs(math.sin(angle)*1), 0, 0)
  317. lscf = lsc0 * CFrame.Angles(math.pi/2+math.abs(math.sin(angle)*1), 0, 0)
  318. rlcf = rlc0 * CFrame.Angles(math.pi/20, math.sin(angle)*0.08, math.rad(2.5))
  319. llcf = llc0 * CFrame.Angles(math.pi/20, -math.sin(angle)*0.08, -math.rad(2.5))
  320. elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=130802245" then
  321. anglespeed = 3
  322. ncf = neckc0 * CFrame.Angles(math.sin(angle)*0.07, math.rad(30), 0)
  323. rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.sin(angle)*0.001, 0)
  324. rscf = rsc0 * CFrame.Angles(math.sin(angle)*0.05, 0, 0)
  325. lscf = lsc0 * CFrame.Angles(math.sin(-angle)*0.05, 0, 0)
  326. rlcf = rlc0 * CFrame.new(0, -0.1 + math.abs(mvmnt)*0.1, -0.1) * CFrame.Angles(0, math.rad(5), math.rad(5))
  327. llcf = llc0 * CFrame.Angles(0, math.rad(2.5), math.rad(1))
  328. else
  329. if humanwalk then
  330. anglespeed = 1/4
  331. ncf = neckc0 * CFrame.Angles(-math.sin(angle)*0.07, 0, 0)
  332. rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.sin(angle)*0.001, 0)
  333. rscf = rsc0 * CFrame.Angles(math.sin(angle)*0.1, 0, 0)
  334. lscf = lsc0 * CFrame.Angles(math.sin(-angle)*0.1, 0, 0)
  335. rlcf = rlc0 * CFrame.Angles(0, math.sin(angle)*0.08, math.rad(2.5))
  336. llcf = llc0 * CFrame.Angles(0, -math.sin(angle)*0.08, -math.rad(2.5))
  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, -2, 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. end
  347. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 20 then
  348. if sound.IsPlaying then
  349. sound:stop()
  350. end
  351. if humanwalk then
  352. anglespeed = 4
  353. ncf = neckc0 * CFrame.Angles(math.pi/24, mvmnt*.02, 0)
  354. rjcf = CFrame.new(0, math.abs(mvmnt)*0.05, 0) * CFrame.Angles(-math.pi/24, -mvmnt*.02, 0)
  355. rscf = rsc0 * CFrame.Angles(math.sin(angle)*1.25, 0, -math.abs(mvmnt)*0.02)
  356. lscf = lsc0 * CFrame.Angles(math.sin(-angle)*1.25, 0, math.abs(mvmnt)*0.02)
  357. rlcf = rlc0 * CFrame.Angles(math.sin(-angle)*1, 0, math.rad(.5))
  358. llcf = llc0 * CFrame.Angles(math.sin(angle)*1, 0, -math.rad(.5))
  359. else
  360. anglespeed = 4
  361. ncf = neckc0 * CFrame.new(0, 0, .2) * CFrame.Angles(math.pi/1.9, 0, 0)
  362. 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)
  363. 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))
  364. 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))
  365. 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)
  366. 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)
  367. end
  368. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then
  369. if sound.IsPlaying then
  370. sound:stop()
  371. end
  372. if humanwalk then
  373. anglespeed = 5
  374. ncf = neckc0 * CFrame.Angles(math.pi/20, math.sin(angle)*.04, 0)
  375. rjcf = CFrame.new(0, -.4 + math.abs(mvmnt)*0.25, 0) * CFrame.Angles(-math.pi/20, -math.sin(angle)*.08, 0)
  376. 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)
  377. 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)
  378. 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))
  379. 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))
  380. else
  381. anglespeed = 5.5
  382. ncf = neckc0 * CFrame.new(0, 0, .2) * CFrame.Angles(math.pi/1.9+math.sin(mvmnt/2)*0.05, 0, 0)
  383. 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)
  384. rscf = rsc0 * CFrame.new(-1, 0.2, -.5) * CFrame.Angles(math.pi/2+math.sin(angle)*1.8, 0, math.rad(5))
  385. lscf = lsc0 * CFrame.new(1, 0.2, -.5) * CFrame.Angles(math.pi/2+math.sin(angle)*1.8, 0, -math.rad(5))
  386. 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)
  387. 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)
  388. end
  389. end
  390.  
  391. rm.C0 = clerp(rm.C0,rscf,speed)
  392. lm.C0 = clerp(lm.C0,lscf,speed)
  393. rj.C0 = clerp(rj.C0,rjcf,speed)
  394. neck.C0 = clerp(neck.C0,ncf,speed)
  395. rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  396. llegm.C0 = clerp(llegm.C0,llcf,speed)
  397. end
  398.  
  399.  
  400. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement