Advertisement
aaaay63746

poop

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