Advertisement
aaaay63746

POOP

Mar 29th, 2020
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.99 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("Vebley made the FE version cause no one else did.")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83.  
  84.  
  85. local p = game.Players.LocalPlayer
  86. local char = p.Character
  87. local mouse = p:GetMouse()
  88. local larm = char["Left Arm"]
  89. local rarm = char["Right Arm"]
  90. local lleg = char["Left Leg"]
  91. local rleg = char["Right Leg"]
  92. local hed = char.Head
  93. local torso = char.Torso
  94. local hum = char.Humanoid
  95. local cam = game.Workspace.CurrentCamera
  96. local root = char.HumanoidRootPart
  97. local deb = false
  98. local shot = 0
  99. local debris=game:service"Debris"
  100. local l = game:GetService("Lighting")
  101. local rs = game:GetService("RunService").RenderStepped
  102. ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  103. math.randomseed(os.time())
  104. ----------------------------------------------------
  105. Debounces = {
  106. CanAttack = true;
  107. NoIdl = false;
  108. Slashing = false;
  109. Slashed = false;
  110. RPunch = false;
  111. RPunched = false;
  112. LPunch = false;
  113. LPunched = false;
  114. }
  115. local Touche = {char.Name, }
  116. ----------------------------------------------------
  117. hed.face.Texture = "rbxassetid://227969918"
  118. char["Body Colors"].HeadColor = BrickColor.new("Pastel brown")
  119. char["Body Colors"].TorsoColor = BrickColor.new("Pastel brown")
  120. char["Body Colors"].LeftArmColor = BrickColor.new("Pastel brown")
  121. char["Body Colors"].RightArmColor = BrickColor.new("Pastel brown")
  122. char["Body Colors"].LeftLegColor = BrickColor.new("Pastel brown")
  123. char["Body Colors"].RightLegColor = BrickColor.new("Pastel brown")
  124. ----------------------------------------------------
  125. ypcall(function()
  126. char.Shirt:Destroy()
  127. char.Pants:Destroy()
  128. shirt = Instance.new("Shirt", char)
  129. shirt.Name = "Shirt"
  130. pants = Instance.new("Pants", char)
  131. pants.Name = "Pants"
  132. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=0"
  133. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=0"
  134. end)
  135. ----------------------------------------------------
  136. --------------nico
  137. local fartids={251309043,251309043}
  138. local timer=false
  139. local debris=game:GetService("Debris")
  140. local char=game.Players.LocalPlayer.Character
  141. for i = 1,3,2 do
  142. local asdf=Instance.new("Part",char)
  143. asdf.Shape="Ball"
  144. asdf.Locked=true
  145. asdf.FormFactor="Custom"
  146. asdf.Material="SmoothPlastic"
  147. asdf.BrickColor=BrickColor.new(1030)
  148. asdf.Size=Vector3.new(.4,.4,.4)
  149. local weld=Instance.new("Weld",char)
  150. weld.Part0=char.Torso
  151. weld.Part1=asdf
  152. weld.C0=CFrame.new((i-2)/2.5,-.9,.4)
  153. end
  154. function crap()
  155. if timer==false then
  156. timer=true
  157. local char=game.Players.LocalPlayer.Character
  158. local crap=Instance.new("Part",Workspace)
  159. crap.FormFactor="Custom"
  160. crap.BrickColor=BrickColor.new(25)
  161. crap.Material="Grass"
  162. crap.Size=Vector3.new(1.2,0.4,0.4)
  163. local snd=Instance.new("Sound",char)
  164. snd.SoundId="rbxassetid://" .. tostring(fartids[math.random(1,#fartids)])
  165. snd.Volume=2
  166. snd:Play()
  167. debris:AddItem(snd,snd.TimeLength)
  168. local smk=Instance.new("Smoke",crap)
  169. smk.Color=BrickColor.new(25).Color
  170. debris:AddItem(smk,2.5)
  171. for i = 0.15,1.3,.02 do
  172. local weld=Instance.new("Weld",crap)
  173. weld.Part0=char.Torso
  174. weld.Part1=crap
  175. weld.C0=CFrame.new(0,-.9,i)*CFrame.Angles(0,math.rad(90),0)
  176. wait()
  177. end
  178. local crapCFrame=crap.CFrame
  179. crap:Destroy()
  180.  
  181. for i = 0,1.2,0.4 do
  182. local newCrap=Instance.new("Part",Workspace)
  183. newCrap.FormFactor="Custom"
  184. newCrap.BrickColor=BrickColor.new(25)
  185. newCrap.Material="Grass"
  186. newCrap.Size=Vector3.new(.4,.4,.4)
  187. newCrap.CFrame=crapCFrame*CFrame.new(i-1,0,0)
  188. end
  189. timer=false
  190. end
  191. end
  192. game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key)
  193. if string.lower(key)=="x" then
  194. crap()
  195. end
  196. end)
  197.  
  198. do --CFrame lerp
  199. local function QuaternionFromCFrame(cf)
  200. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  201. local trace = m00 + m11 + m22
  202. if trace > 0 then
  203. local s = math.sqrt(1 + trace)
  204. local recip = 0.5/s
  205. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  206. else
  207. local i = 0
  208. if m11 > m00 then
  209. i = 1
  210. end
  211. if m22 > (i == 0 and m00 or m11) then
  212. i = 2
  213. end
  214. if i == 0 then
  215. local s = math.sqrt(m00-m11-m22+1)
  216. local recip = 0.5/s
  217. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  218. elseif i == 1 then
  219. local s = math.sqrt(m11-m22-m00+1)
  220. local recip = 0.5/s
  221. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  222. elseif i == 2 then
  223. local s = math.sqrt(m22-m00-m11+1)
  224. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  225. end
  226. end
  227. end
  228. local function QuaternionToCFrame(px, py, pz, x, y, z, w)
  229. local xs, ys, zs = x + x, y + y, z + z
  230. local wx, wy, wz = w*xs, w*ys, w*zs
  231. local xx = x*xs
  232. local xy = x*ys
  233. local xz = x*zs
  234. local yy = y*ys
  235. local yz = y*zs
  236. local zz = z*zs
  237. 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))
  238. end
  239. local function QuaternionSlerp(a, b, t)
  240. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  241. local startInterp, finishInterp;
  242. if cosTheta >= 0.0001 then
  243. if (1 - cosTheta) > 0.0001 then
  244. local theta = math.acos(cosTheta)
  245. local invSinTheta = 1/math.sin(theta)
  246. startInterp = math.sin((1-t)*theta)*invSinTheta
  247. finishInterp = math.sin(t*theta)*invSinTheta
  248. else
  249. startInterp = 1-t
  250. finishInterp = t
  251. end
  252. else
  253. if (1+cosTheta) > 0.0001 then
  254. local theta = math.acos(-cosTheta)
  255. local invSinTheta = 1/math.sin(theta)
  256. startInterp = math.sin((t-1)*theta)*invSinTheta
  257. finishInterp = math.sin(t*theta)*invSinTheta
  258. else
  259. startInterp = t-1
  260. finishInterp = t
  261. end
  262. end
  263. 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
  264. end
  265. function clerp(a,b,t)
  266. local qa = {QuaternionFromCFrame(a)}
  267. local qb = {QuaternionFromCFrame(b)}
  268. local ax, ay, az = a.x, a.y, a.z
  269. local bx, by, bz = b.x, b.y, b.z
  270. local _t = 1-t
  271. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  272. end
  273.  
  274. end
  275. do --the animating
  276. plr = game:service'Players'.LocalPlayer
  277. char = plr.Character
  278. mouse = plr:GetMouse()
  279. humanoid = char:findFirstChild("Humanoid")
  280. torso = char:findFirstChild("Torso")
  281. head = char.Head
  282. ra = char:findFirstChild("Right Arm")
  283. la = char:findFirstChild("Left Arm")
  284. rl = char:findFirstChild("Right Leg")
  285. ll = char:findFirstChild("Left Leg")
  286. rs = torso:findFirstChild("Right Shoulder")
  287. ls = torso:findFirstChild("Left Shoulder")
  288. rh = torso:findFirstChild("Right Hip")
  289. lh = torso:findFirstChild("Left Hip")
  290. neck = torso:findFirstChild("Neck")
  291. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  292. anim = char:findFirstChild("Animate")
  293. rootpart = char:findFirstChild("HumanoidRootPart")
  294. camera = workspace.CurrentCamera
  295. if anim then
  296. anim:Destroy()
  297. end
  298.  
  299.  
  300. local rm = Instance.new("Motor", torso)
  301. rm.C0 = CFrame.new(1.5, 0.5, 0)
  302. rm.C1 = CFrame.new(0, 0.5, 0)
  303. rm.Part0 = torso
  304. rm.Part1 = ra
  305. local lm = Instance.new("Motor", torso)
  306. lm.C0 = CFrame.new(-1.5, 0.5, 0)
  307. lm.C1 = CFrame.new(0, 0.5, 0)
  308. lm.Part0 = torso
  309. lm.Part1 = la
  310.  
  311. local rlegm = Instance.new("Motor", torso)
  312. rlegm.C0 = CFrame.new(0.5, -1, 0)
  313. rlegm.C1 = CFrame.new(0, 1, 0)
  314. rlegm.Part0 = torso
  315. rlegm.Part1 = rl
  316. local llegm = Instance.new("Motor", torso)
  317. llegm.C0 = CFrame.new(-0.5, -1, 0)
  318. llegm.C1 = CFrame.new(0, 1, 0)
  319. llegm.Part0 = torso
  320. llegm.Part1 = ll
  321.  
  322. neck.C0 = CFrame.new(0, 1, 0)
  323. neck.C1 = CFrame.new(0, -0.5, 0)
  324.  
  325.  
  326. rj.C0 = CFrame.new()
  327. rj.C1 = CFrame.new()
  328.  
  329.  
  330. local sound = Instance.new("Sound", head)
  331. sound.SoundId = "http://www.roblox.com/asset/?id=130797915"
  332. sound.Volume = 0.8
  333. sound.Looped = true
  334.  
  335. local speed = 0.3
  336. local angle = 0
  337. local sitting = false
  338. local humanwalk = false
  339. local anglespeed = 1
  340. rsc0 = rm.C0
  341. lsc0 = lm.C0
  342. llc0 = llegm.C0
  343. rlc0 = rlegm.C0
  344. neckc0 = neck.C0
  345.  
  346. local controllerService = game:GetService("ControllerService")
  347. local controller = controllerService:GetChildren()[1]
  348.  
  349. controller.Parent = nil
  350.  
  351. while wait() do
  352. angle = (angle % 100) + anglespeed/10
  353. mvmnt = math.pi * math.sin(math.pi*2/100*(angle*10))
  354. local rscf = rsc0
  355. local lscf = lsc0
  356. local rlcf = rlc0
  357. local llcf = llc0
  358. local rjcf = CFrame.new()
  359. local ncf = neckc0
  360. local rayz = Ray.new(rootpart.Position, Vector3.new(0, -6, 0))
  361. local hitz, enz = workspace:findPartOnRay(rayz, char)
  362. if not hitz then
  363. if sound.IsPlaying then
  364. sound:stop()
  365. end
  366.  
  367. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 then
  368.  
  369. ncf = neckc0 * CFrame.Angles(math.pi/5, 0, 0)
  370. rjcf = CFrame.new() * CFrame.Angles(-math.pi/5, math.sin(angle)*0.05, 0)
  371. rscf = rsc0 * CFrame.Angles(math.pi/1.7+math.sin(angle)*0.1, 0, 0)
  372. lscf = lsc0 * CFrame.Angles(math.pi/1.7+math.sin(-angle)*0.1, 0, 0)
  373. rlcf = rlc0 * CFrame.Angles(-math.pi/10+math.sin(-angle)*0.3, 0, 0)
  374. llcf = llc0 * CFrame.Angles(-math.pi/10+math.sin(angle)*0.3, 0, 0)
  375.  
  376. else
  377.  
  378. ncf = neckc0 * CFrame.Angles(math.pi/14, 0, 0)
  379. rjcf = CFrame.new() * CFrame.Angles(-math.pi/18, math.sin(angle)*0.05, 0)
  380. rscf = rsc0 * CFrame.Angles(-math.pi/10+math.sin(angle)*0.2, 0, 0)
  381. lscf = lsc0 * CFrame.Angles(-math.pi/10+math.sin(-angle)*0.2, 0, 0)
  382. rlcf = rlc0 * CFrame.new(0, 0.7, -0.5) CFrame.Angles(-math.pi/14, 0, 0)
  383. llcf = llc0 * CFrame.Angles(-math.pi/20, 0, 0)
  384.  
  385. end
  386. elseif humanoid.Sit then
  387. if sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=150794704" then
  388. anglespeed = 6
  389. ncf = neckc0 * CFrame.Angles(math.pi/5-math.sin(angle)*0.1, 0, 0)
  390. rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, 0, 0)
  391. rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  392. lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
  393. rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  394. llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  395. elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=135570347" then
  396. anglespeed = 4
  397. ncf = neckc0 * CFrame.Angles(math.pi/5-math.abs(math.sin(angle))*0.3, 0, 0)
  398. rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, 0, 0)
  399. rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  400. lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
  401. rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  402. llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  403. elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=149713968" then
  404. anglespeed = 2
  405. ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08)
  406. rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0)
  407. rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  408. lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
  409. rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  410. llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  411. else
  412. anglespeed = 1/2
  413. ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08)
  414. rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0)
  415. rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  416. lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
  417. rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  418. llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  419. end
  420. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then
  421. if sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=130797915" then
  422. anglespeed = 6
  423. ncf = neckc0 * CFrame.Angles(math.pi/10-math.sin(angle)*0.07, 0, 0)
  424. rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi/10, math.sin(angle)*0.001, 0)
  425. rscf = rsc0 * CFrame.Angles(math.pi/1+math.sin(angle)*0.5, 0, 0)
  426. lscf = lsc0 * CFrame.Angles(math.pi/1+math.sin(angle)*0.5, 0, 0)
  427. rlcf = rlc0 * CFrame.Angles(math.pi/10, math.sin(angle)*0.08, math.rad(6.5))
  428. llcf = llc0 * CFrame.Angles(math.pi/10, -math.sin(angle)*0.08, -math.rad(6.5))
  429. elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=149713968" then
  430. anglespeed = 2
  431. ncf = neckc0 * CFrame.Angles(math.pi/10-math.abs(math.sin(angle))*0.3, 0, 0)
  432. rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi/20, math.sin(angle)*0.001, 0)
  433. rscf = rsc0 * CFrame.Angles(math.pi/2+math.abs(math.sin(angle)*1), 0, 0)
  434. lscf = lsc0 * CFrame.Angles(math.pi/2+math.abs(math.sin(angle)*1), 0, 0)
  435. rlcf = rlc0 * CFrame.Angles(math.pi/20, math.sin(angle)*0.08, math.rad(2.5))
  436. llcf = llc0 * CFrame.Angles(math.pi/20, -math.sin(angle)*0.08, -math.rad(2.5))
  437. elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=130802245" then
  438. anglespeed = 3
  439. ncf = neckc0 * CFrame.Angles(math.sin(angle)*0.07, math.rad(30), 0)
  440. rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.sin(angle)*0.001, 0)
  441. rscf = rsc0 * CFrame.Angles(math.sin(angle)*0.05, 0, 0)
  442. lscf = lsc0 * CFrame.Angles(math.sin(-angle)*0.05, 0, 0)
  443. rlcf = rlc0 * CFrame.new(0, -0.1 + math.abs(mvmnt)*0.1, -0.1) * CFrame.Angles(0, math.rad(5), math.rad(5))
  444. llcf = llc0 * CFrame.Angles(0, math.rad(2.5), math.rad(1))
  445. else
  446. if humanwalk then
  447. anglespeed = 1/4
  448. ncf = neckc0 * CFrame.Angles(-math.sin(angle)*0.07, 0, 0)
  449. rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.sin(angle)*0.001, 0)
  450. rscf = rsc0 * CFrame.Angles(math.sin(angle)*0.1, 0, 0)
  451. lscf = lsc0 * CFrame.Angles(math.sin(-angle)*0.1, 0, 0)
  452. rlcf = rlc0 * CFrame.Angles(0, math.sin(angle)*0.08, math.rad(2.5))
  453. llcf = llc0 * CFrame.Angles(0, -math.sin(angle)*0.08, -math.rad(2.5))
  454. else
  455. anglespeed = 1/2
  456. ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08)
  457. rjcf = CFrame.new(0, -2, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0)
  458. rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  459. lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
  460. rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  461. llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  462. end
  463. end
  464. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 20 then
  465. if sound.IsPlaying then
  466. sound:stop()
  467. end
  468. if humanwalk then
  469. anglespeed = 4
  470. ncf = neckc0 * CFrame.Angles(math.pi/24, mvmnt*.02, 0)
  471. rjcf = CFrame.new(0, math.abs(mvmnt)*0.05, 0) * CFrame.Angles(-math.pi/24, -mvmnt*.02, 0)
  472. rscf = rsc0 * CFrame.Angles(math.sin(angle)*1.25, 0, -math.abs(mvmnt)*0.02)
  473. lscf = lsc0 * CFrame.Angles(math.sin(-angle)*1.25, 0, math.abs(mvmnt)*0.02)
  474. rlcf = rlc0 * CFrame.Angles(math.sin(-angle)*1, 0, math.rad(.5))
  475. llcf = llc0 * CFrame.Angles(math.sin(angle)*1, 0, -math.rad(.5))
  476. else
  477. anglespeed = 4
  478. ncf = neckc0 * CFrame.new(0, 0, .2) * CFrame.Angles(math.pi/1.9, 0, 0)
  479. 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)
  480. 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))
  481. 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))
  482. 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)
  483. 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)
  484. end
  485. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then
  486. if sound.IsPlaying then
  487. sound:stop()
  488. end
  489. if humanwalk then
  490. anglespeed = 5
  491. ncf = neckc0 * CFrame.Angles(math.pi/20, math.sin(angle)*.04, 0)
  492. rjcf = CFrame.new(0, -.4 + math.abs(mvmnt)*0.25, 0) * CFrame.Angles(-math.pi/20, -math.sin(angle)*.08, 0)
  493. 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)
  494. 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)
  495. 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))
  496. 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))
  497. else
  498. anglespeed = 5.5
  499. ncf = neckc0 * CFrame.new(0, 0, .2) * CFrame.Angles(math.pi/1.9+math.sin(mvmnt/2)*0.05, 0, 0)
  500. 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)
  501. rscf = rsc0 * CFrame.new(-1, 0.2, -.5) * CFrame.Angles(math.pi/2+math.sin(angle)*1.8, 0, math.rad(5))
  502. lscf = lsc0 * CFrame.new(1, 0.2, -.5) * CFrame.Angles(math.pi/2+math.sin(angle)*1.8, 0, -math.rad(5))
  503. 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)
  504. 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)
  505. end
  506. end
  507.  
  508. rm.C0 = clerp(rm.C0,rscf,speed)
  509. lm.C0 = clerp(lm.C0,lscf,speed)
  510. rj.C0 = clerp(rj.C0,rjcf,speed)
  511. neck.C0 = clerp(neck.C0,ncf,speed)
  512. rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  513. llegm.C0 = clerp(llegm.C0,llcf,speed)
  514. end
  515.  
  516.  
  517. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement