1. game.Players.LocalPlayer.Character.Head.face:Remove()
  2. plr = game.Players.LocalPlayer
  3. char=game.Players.LocalPlayer.Character
  4. ct={}
  5. te=table.insert
  6. HumanDied=false
  7. for i,v in next, game:GetService("Players").LocalPlayer.Character:GetDescendants() do
  8. if v:IsA("BasePart") then
  9. te(ct,game:GetService("RunService").Heartbeat:connect(function()
  10. pcall(function()
  11. v.Velocity = Vector3.new(0,-30,0)
  12. sethiddenproperty(game.Players.LocalPlayer,"MaximumSimulationRadius",math.huge)
  13. sethiddenproperty(game.Players.LocalPlayer,"SimulationRadius",999999999)
  14. game.Players.LocalPlayer.ReplicationFocus = workspace
  15. end)
  16. end))
  17. end
  18. end
  19. function notify(t,tex,dur)
  20. game.StarterGui:SetCore("SendNotification", {
  21. Title = t;
  22. Text = tex;
  23. Duration = dur or 5;
  24. })
  25. end
  26. local srv= game:GetService("RunService")
  27. fl=Instance.new('Folder',char);fl.Name='CWExtra'
  28. char.Archivable = true
  29. local reanim = char:Clone()
  30. reanim.Name='NexoPD'
  31. for i,v in next, reanim:GetDescendants() do
  32. if v:IsA('BasePart') or v:IsA('Decal') then
  33. v.Transparency = 1
  34. end
  35. end
  36. --flinge = false
  37. penis=5.65
  38. plr.Character=nil
  39. plr.Character=char
  40. char.Humanoid.AutoRotate=false
  41. char.Humanoid.WalkSpeed=0
  42. char.Humanoid.JumpPower=0
  43. char.Torso.Anchored = true
  44. notify('Nexo','Reanimating...Please wait '..penis..' seconds.')
  45. wait(penis)
  46. char.Torso.Anchored=false
  47. notify('Nexo','Reanimated..')
  48. char.Humanoid.Health=0
  49. --reanim.Humanoid.AutoRotate=false
  50. reanim.Animate.Disabled = true
  51. reanim.Parent = fl
  52. reanim.HumanoidRootPart.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,5,0)
  53. function create(part, parent, p, r)
  54. Instance.new("Attachment",part)
  55. Instance.new("AlignPosition",part)
  56. Instance.new("AlignOrientation",part)
  57. Instance.new("Attachment",parent)
  58. part.Attachment.Name = part.Name
  59. parent.Attachment.Name = part.Name
  60. part.AlignPosition.Attachment0 = part[part.Name]
  61. part.AlignOrientation.Attachment0 = part[part.Name]
  62. part.AlignPosition.Attachment1 = parent[part.Name]
  63. part.AlignOrientation.Attachment1 = parent[part.Name]
  64. parent[part.Name].Position = p or Vector3.new()
  65. part[part.Name].Orientation = r or Vector3.new()
  66. part.AlignPosition.MaxForce = 999999999
  67. part.AlignPosition.MaxVelocity = math.huge
  68. part.AlignPosition.ReactionForceEnabled = false
  69. part.AlignPosition.Responsiveness = math.huge
  70. part.AlignOrientation.Responsiveness = math.huge
  71. part.AlignPosition.RigidityEnabled = false
  72. part.AlignOrientation.MaxTorque = 999999999
  73. part.Massless=true
  74. end
  75. function Pos(part, parent, p)
  76. Instance.new("Attachment",part)
  77. Instance.new("AlignPosition",part)
  78. Instance.new("Attachment",parent)
  79. part.Attachment.Name = part.Name
  80. parent.Attachment.Name = part.Name
  81. part.AlignPosition.Attachment0 = part[part.Name]
  82. --part.AlignOrientation.Attachment0 = part[part.Name]
  83. part.AlignPosition.Attachment1 = parent[part.Name]
  84. --part.AlignOrientation.Attachment1 = parent[part.Name]
  85. parent[part.Name].Position = p or Vector3.new()
  86. part.AlignPosition.MaxForce = 999999999
  87. part.AlignPosition.MaxVelocity = math.huge
  88. part.AlignPosition.ReactionForceEnabled = false
  89. part.AlignPosition.Responsiveness = math.huge
  90. --part.AlignOrientation.Responsiveness = math.huge
  91. --part.AlignPosition.RigidityEnabled = false
  92. --part.AlignOrientation.MaxTorque = 999999999
  93. part.Massless=true
  94. end
  95. for i,part in next, char:GetDescendants() do
  96. if part:IsA('BasePart') then
  97. te(ct,srv.RenderStepped:Connect(function()
  98. part.CanCollide=false
  99. end))
  100. end
  101. end
  102. for i,part in next, char:GetDescendants() do
  103. if part:IsA('BasePart') then
  104. te(ct,srv.Stepped:Connect(function()
  105. part.CanCollide=false
  106. end))
  107. end
  108. end
  109. for i,part in next, reanim:GetDescendants() do
  110. if part:IsA('BasePart') then
  111. te(ct,srv.RenderStepped:Connect(function()
  112. part.CanCollide=false
  113. end))
  114. end
  115. end
  116. for i,part in next, reanim:GetDescendants() do
  117. if part:IsA('BasePart') then
  118. te(ct,srv.Stepped:Connect(function()
  119. part.CanCollide=false
  120. end))
  121. end
  122. end
  123. for i,v in next, char:GetDescendants() do
  124. if v:IsA('Accessory') then
  125. create(v.Handle,reanim[v.Name].Handle)
  126. end
  127. end
  128. --Pos(fhrp,reanim['Torso'])
  129. create(char['Head'],reanim['Head'])
  130. create(char['Torso'],reanim['Torso'])
  131. Pos(char['HumanoidRootPart'],reanim['Torso'],Vector3.new(0,0,0))
  132. create(char['Right Arm'],reanim['Right Arm'])
  133. create(char['Left Arm'],reanim['Left Arm'])
  134. create(char['Right Leg'],reanim['Right Leg'])
  135. create(char['Left Leg'],reanim['Left Leg'])
  136. m = plr:GetMouse()
  137. local LVecPart = Instance.new("Part", fl) LVecPart.CanCollide = false LVecPart.Transparency = 1
  138. te(ct,srv.RenderStepped:Connect(function()
  139. local lookVec = workspace.CurrentCamera.CFrame.lookVector
  140. local Root = reanim["HumanoidRootPart"]
  141. LVecPart.Position = Root.Position
  142. LVecPart.CFrame = CFrame.new(LVecPart.Position, Vector3.new(lookVec.X * 10000, lookVec.Y, lookVec.Z * 10000))
  143. end))
  144. wdown=false
  145. sdown=false
  146. adown=false
  147. ddown=false
  148. spacedown=false
  149. te(ct,m.Button1Down:Connect(function()
  150. click=true
  151. end))
  152. te(ct,m.Button1Up:Connect(function()
  153. click=false
  154. end))
  155. te(ct,m.KeyDown:Connect(function(e)
  156. if e ==' ' then
  157. spacedown=true end
  158. if e =='w' then
  159. wdown=true end
  160. if e =='s' then
  161. sdown=true end
  162. if e =='a' then
  163. adown=true end
  164. if e =='d' then
  165. ddown=true
  166. end
  167. end))
  168. te(ct,m.KeyUp:Connect(function(e)
  169. if e ==' ' then
  170. spacedown=false end
  171. if e =='w' then
  172. wdown=false end
  173. if e =='s' then
  174. sdown=false end
  175. if e =='a' then
  176. adown=false end
  177. if e =='d' then
  178. ddown=false
  179. end
  180. end))
  181. local function MoveClone(X,Y,Z)
  182. LVecPart.CFrame = LVecPart.CFrame * CFrame.new(-X,Y,-Z)
  183. reanim.Humanoid.WalkToPoint = LVecPart.Position
  184. end
  185. te(ct,srv.RenderStepped:Connect(function()
  186. if wdown==true then
  187. MoveClone(0,0,1e4) end
  188. if sdown==true then
  189. MoveClone(0,0,-1e4) end
  190. if adown==true then
  191. MoveClone(1e4,0,0) end
  192. if ddown==true then
  193. MoveClone(-1e4,0,0)
  194. end
  195. if spacedown==true then
  196. reanim.Humanoid.Jump=true end
  197. if wdown ~= true and adown ~= true and sdown ~= true and ddown ~= true then
  198. reanim.Humanoid.WalkToPoint = reanim.HumanoidRootPart.Position end
  199. end))
  200. --reanim.HumanoidRootPart.RootJoint.Part1=nil
  201. workspace.CurrentCamera.CameraSubject = reanim.Humanoid
  202. reset=Instance.new('BindableEvent')
  203. te(ct,reset.Event:Connect(function()
  204. reanim:Destroy()
  205. HumanDied=true
  206. reanimated=false
  207. for i,v in next, char:GetDescendants() do if v:IsA('BasePart') then v.Anchored=true end end
  208. hc=char.Humanoid:Clone()
  209. char.Humanoid:Destroy()
  210. hc.Parent=char
  211. game.Players:Chat('-re')
  212. for i,v in pairs(ct) do v:Disconnect() end
  213. game:GetService("StarterGui"):SetCore("ResetButtonCallback", true)
  214. reset:Remove()
  215. end))
  216. game:GetService("StarterGui"):SetCore("ResetButtonCallback", reset)
  217. IT = Instance.new
  218. CF = CFrame.new
  219. VT = Vector3.new
  220. RAD = math.rad
  221. C3 = Color3.new
  222. UD2 = UDim2.new
  223. BRICKC = BrickColor.new
  224. ANGLES = CFrame.Angles
  225. EULER = CFrame.fromEulerAnglesXYZ
  226. COS = math.cos
  227. ACOS = math.acos
  228. SIN = math.sin
  229. ASIN = math.asin
  230. ABS = math.abs
  231. MRANDOM = math.random
  232. FLOOR = math.floor
  233. speed = 1
  234. sine = 1
  235. srv = game:GetService('RunService')
  236. function hatset(yes,part,c1,c0,nm)
  237. reanim[yes].Handle.AccessoryWeld.Part1=reanim[part]
  238. reanim[yes].Handle.AccessoryWeld.C1=c1 or CFrame.new()
  239. reanim[yes].Handle.AccessoryWeld.C0=c0 or CFrame.new()--3bbb322dad5929d0d4f25adcebf30aa5
  240. if nm==true then
  241. noplsmesh(yes)
  242. end
  243. end
  244. --put the hat script converted below
  245. reanim = game.Players.LocalPlayer.Character.CWExtra.NexoPD
  246. RJ = reanim.HumanoidRootPart.RootJoint
  247. RS = reanim.Torso['Right Shoulder']
  248. LS = reanim.Torso['Left Shoulder']
  249. RH = reanim.Torso['Right Hip']
  250. LH = reanim.Torso['Left Hip']
  251. Root = reanim.HumanoidRootPart
  252. NECK = reanim.Torso.Neck
  253. NECK.C0 = CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  254. NECK.C1 = CF(0,-0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  255. RJ.C1 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  256. RJ.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  257. RS.C1 = CF(-0.5,0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  258. LS.C1 = CF(0.5,0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  259. RH.C1 = CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  260. LH.C1 = CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  261. RH.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  262. LH.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  263. RS.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  264. LS.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  265. Mode='1'
  266. mousechanger=game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(k)
  267. if k == '1' then-- first mode
  268. Mode='1'
  269. elseif k == '2' then-- second mode
  270. Mode='2'
  271. end
  272. end)
  273. coroutine.wrap(function()
  274. while true do -- anim changer
  275. if HumanDied then mousechanger:Disconnect() break end
  276. sine = sine + speed
  277. local rlegray = Ray.new(reanim["Right Leg"].Position + Vector3.new(0, 0.5, 0), Vector3.new(0, -2, 0))
  278. local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char)
  279. local llegray = Ray.new(reanim["Left Leg"].Position + Vector3.new(0, 0.5, 0), Vector3.new(0, -2, 0))
  280. local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char)
  281. local rightvector = (Root.Velocity * Root.CFrame.rightVector).X + (Root.Velocity * Root.CFrame.rightVector).Z
  282. local lookvector = (Root.Velocity * Root.CFrame.lookVector).X + (Root.Velocity * Root.CFrame.lookVector).Z
  283. if lookvector > reanim.Humanoid.WalkSpeed then
  284. lookvector = reanim.Humanoid.WalkSpeed
  285. end
  286. if lookvector < -reanim.Humanoid.WalkSpeed then
  287. lookvector = -reanim.Humanoid.WalkSpeed
  288. end
  289. if rightvector > reanim.Humanoid.WalkSpeed then
  290. rightvector = reanim.Humanoid.WalkSpeed
  291. end
  292. if rightvector < -reanim.Humanoid.WalkSpeed then
  293. rightvector = -reanim.Humanoid.WalkSpeed
  294. end
  295. local lookvel = lookvector / reanim.Humanoid.WalkSpeed
  296. local rightvel = rightvector / reanim.Humanoid.WalkSpeed
  297. if Mode == '1' then
  298. if Root.Velocity.Magnitude < 2 then -- idle
  299. NECK.C0 = NECK.C0:Lerp(CF(0+0*math.cos(sine/13),0+0*math.cos(sine/13),0+0*math.cos(sine/13))*ANGLES(RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
  300. RJ.C0 = RJ.C0:Lerp(CF(0+0*math.cos(sine/20),0+0.05*math.cos(sine/20),0+0*math.cos(sine/20))*ANGLES(RAD(0+0*math.cos(sine/20)),RAD(0+0*math.cos(sine/20)),RAD(0+0*math.cos(sine/20))),.3)
  301. RS.C0 = RS.C0:Lerp(CF(0.4+0*math.cos(sine/13),-1.5+0*math.cos(sine/13),0.4+0*math.cos(sine/13))*ANGLES(RAD(0+0*math.cos(sine/13)),RAD(-35+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
  302. LS.C0 = LS.C0:Lerp(CF(-0.4+0*math.cos(sine/13),-1.5+0*math.cos(sine/13),0.4+0*math.cos(sine/13))*ANGLES(RAD(0+0*math.cos(sine/13)),RAD(35+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
  303. RH.C0 = RH.C0:Lerp(CF(0.8+0*math.cos(sine/13),-1+0*math.cos(sine/13),-0.7+0*math.cos(sine/13))*ANGLES(RAD(0+0*math.cos(sine/13)),RAD(-35+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
  304. LH.C0 = LH.C0:Lerp(CF(-0.8+0*math.cos(sine/13),-1+0*math.cos(sine/13),-0.7+0*math.cos(sine/13))*ANGLES(RAD(0+0*math.cos(sine/13)),RAD(35+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
  305. --idle clerp here
  306. elseif Root.Velocity.Magnitude < 20 then -- walk
  307. NECK.C0 = NECK.C0:Lerp(CF(0+0*math.cos(sine/13),0+0*math.cos(sine/13),0+0*math.cos(sine/13))*ANGLES(RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
  308. RJ.C0 = RJ.C0:Lerp(CF(0+0*math.cos(sine/20),0+0.05*math.cos(sine/20),0+0*math.cos(sine/20))*ANGLES(RAD(0+0*math.cos(sine/20)),RAD(0+0*math.cos(sine/20)),RAD(0+0*math.cos(sine/20))),.3)
  309. RS.C0 = RS.C0:Lerp(CF(0.4+0*math.cos(sine/13),-1.5+0*math.cos(sine/13),0.4+0*math.cos(sine/13))*ANGLES(RAD(0+-15*math.cos(sine/13)),RAD(-35+0*math.cos(sine/13)),RAD(0+5*math.cos(sine/13))),.3)
  310. LS.C0 = LS.C0:Lerp(CF(-0.4+0*math.cos(sine/13),-1.5+0*math.cos(sine/13),0.4+0*math.cos(sine/13))*ANGLES(RAD(0+15*math.cos(sine/13)),RAD(35+0*math.cos(sine/13)),RAD(0+-5*math.cos(sine/13))),.3)
  311. RH.C0 = RH.C0:Lerp(CF(0.8+0*math.cos(sine/13),-1+0*math.cos(sine/13),-0.7+0*math.cos(sine/13))*ANGLES(RAD(0+15*math.cos(sine/13)),RAD(-35+0*math.cos(sine/13)),RAD(0+-5*math.cos(sine/13))),.3)
  312. LH.C0 = LH.C0:Lerp(CF(-0.8+0*math.cos(sine/13),-1+0*math.cos(sine/13),-0.7+0*math.cos(sine/13))*ANGLES(RAD(0+-15*math.cos(sine/13)),RAD(35+0*math.cos(sine/13)),RAD(0+5*math.cos(sine/13))),.3)
  313. --walk clerp here
  314. elseif Root.Velocity.Magnitude > 20 then -- run
  315. NECK.C0 = NECK.C0:Lerp(CF(0+0*math.cos(sine/13),0+0*math.cos(sine/13),0+0*math.cos(sine/13))*ANGLES(RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
  316. RJ.C0 = RJ.C0:Lerp(CF(0+0*math.cos(sine/20),0+0.05*math.cos(sine/20),0+0*math.cos(sine/20))*ANGLES(RAD(0+0*math.cos(sine/20)),RAD(0+0*math.cos(sine/20)),RAD(0+0*math.cos(sine/20))),.3)
  317. RS.C0 = RS.C0:Lerp(CF(0.4+0*math.cos(sine/13),-1.5+0*math.cos(sine/13),0.4+0*math.cos(sine/13))*ANGLES(RAD(0+-15*math.cos(sine/13)),RAD(-35+0*math.cos(sine/13)),RAD(0+5*math.cos(sine/13))),.3)
  318. LS.C0 = LS.C0:Lerp(CF(-0.4+0*math.cos(sine/13),-1.5+0*math.cos(sine/13),0.4+0*math.cos(sine/13))*ANGLES(RAD(0+15*math.cos(sine/13)),RAD(35+0*math.cos(sine/13)),RAD(0+-5*math.cos(sine/13))),.3)
  319. RH.C0 = RH.C0:Lerp(CF(0.8+0*math.cos(sine/13),-1+0*math.cos(sine/13),-0.7+0*math.cos(sine/13))*ANGLES(RAD(0+15*math.cos(sine/13)),RAD(-35+0*math.cos(sine/13)),RAD(0+-5*math.cos(sine/13))),.3)
  320. LH.C0 = LH.C0:Lerp(CF(-0.8+0*math.cos(sine/13),-1+0*math.cos(sine/13),-0.7+0*math.cos(sine/13))*ANGLES(RAD(0+-15*math.cos(sine/13)),RAD(35+0*math.cos(sine/13)),RAD(0+5*math.cos(sine/13))),.3)
  321. --run clerp here
  322. end
  323. elseif Mode == '2' then
  324. if Root.Velocity.y > 1 then -- jump
  325. NECK.C0 = NECK.C0:Lerp(CF(0+0*math.cos(sine/13),0+0*math.cos(sine/13),0+0*math.cos(sine/13))*ANGLES(RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
  326. RJ.C0 = RJ.C0:Lerp(CF(0+0*math.cos(sine/20),0+0.05*math.cos(sine/20),0+0*math.cos(sine/20))*ANGLES(RAD(0+0*math.cos(sine/20)),RAD(0+0*math.cos(sine/20)),RAD(0+0*math.cos(sine/20))),.3)
  327. RS.C0 = RS.C0:Lerp(CF(1+0*math.cos(sine/13),0+0*math.cos(sine/13),0+0*math.cos(sine/13))*ANGLES(RAD(150+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(25+0*math.cos(sine/13))),.3)
  328. LS.C0 = LS.C0:Lerp(CF(-1+0*math.cos(sine/13),0+0*math.cos(sine/13),0+0*math.cos(sine/13))*ANGLES(RAD(150+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(-25+0*math.cos(sine/13))),.3)
  329. RH.C0 = RH.C0:Lerp(CF(2+0*math.cos(sine/13),1+0*math.cos(sine/13),-0.6+0*math.cos(sine/13))*ANGLES(RAD(150+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
  330. LH.C0 = LH.C0:Lerp(CF(-2+0*math.cos(sine/13),1+0*math.cos(sine/13),-0.6+0*math.cos(sine/13))*ANGLES(RAD(150+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
  331. --jump clerp here
  332. elseif Root.Velocity.y < -1 then -- fall
  333. NECK.C0 = NECK.C0:Lerp(CF(0+0*math.cos(sine/13),0+0*math.cos(sine/13),0+0*math.cos(sine/13))*ANGLES(RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
  334. RJ.C0 = RJ.C0:Lerp(CF(0+0*math.cos(sine/20),0+0.05*math.cos(sine/20),0+0*math.cos(sine/20))*ANGLES(RAD(0+0*math.cos(sine/20)),RAD(0+0*math.cos(sine/20)),RAD(0+0*math.cos(sine/20))),.3)
  335. RS.C0 = RS.C0:Lerp(CF(1+0*math.cos(sine/13),0+0*math.cos(sine/13),0+0*math.cos(sine/13))*ANGLES(RAD(150+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(25+0*math.cos(sine/13))),.3)
  336. LS.C0 = LS.C0:Lerp(CF(-1+0*math.cos(sine/13),0+0*math.cos(sine/13),0+0*math.cos(sine/13))*ANGLES(RAD(150+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(-25+0*math.cos(sine/13))),.3)
  337. RH.C0 = RH.C0:Lerp(CF(2+0*math.cos(sine/13),1+0*math.cos(sine/13),-0.6+0*math.cos(sine/13))*ANGLES(RAD(150+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
  338. LH.C0 = LH.C0:Lerp(CF(-2+0*math.cos(sine/13),1+0*math.cos(sine/13),-0.6+0*math.cos(sine/13))*ANGLES(RAD(150+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
  339. --fall clerp here
  340. elseif Root.Velocity.Magnitude < 2 then -- idle
  341. NECK.C0 = NECK.C0:Lerp(CF(0+0*math.cos(sine/13),0+0*math.cos(sine/13),0+0*math.cos(sine/13))*ANGLES(RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
  342. RJ.C0 = RJ.C0:Lerp(CF(0+0*math.cos(sine/20),0+0.05*math.cos(sine/20),0+0*math.cos(sine/20))*ANGLES(RAD(0+0*math.cos(sine/20)),RAD(0+0*math.cos(sine/20)),RAD(0+0*math.cos(sine/20))),.3)
  343. RS.C0 = RS.C0:Lerp(CF(1+0*math.cos(sine/13),0+0*math.cos(sine/13),0+0*math.cos(sine/13))*ANGLES(RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(25+0*math.cos(sine/13))),.3)
  344. LS.C0 = LS.C0:Lerp(CF(-1+0*math.cos(sine/13),0+0*math.cos(sine/13),0+0*math.cos(sine/13))*ANGLES(RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(-25+0*math.cos(sine/13))),.3)
  345. RH.C0 = RH.C0:Lerp(CF(2+0*math.cos(sine/13),-1+0*math.cos(sine/13),0+0*math.cos(sine/13))*ANGLES(RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
  346. LH.C0 = LH.C0:Lerp(CF(-2+0*math.cos(sine/13),-1+0*math.cos(sine/13),0+0*math.cos(sine/13))*ANGLES(RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
  347. --idle clerp here
  348. elseif Root.Velocity.Magnitude < 20 then -- walk
  349. NECK.C0 = NECK.C0:Lerp(CF(0+0*math.cos(sine/13),0+0*math.cos(sine/13),0+0*math.cos(sine/13))*ANGLES(RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
  350. RJ.C0 = RJ.C0:Lerp(CF(0+0*math.cos(sine/20),0+0.05*math.cos(sine/20),0+0*math.cos(sine/20))*ANGLES(RAD(0+0*math.cos(sine/20)),RAD(0+0*math.cos(sine/20)),RAD(0+0*math.cos(sine/20))),.3)
  351. RS.C0 = RS.C0:Lerp(CF(1+0*math.cos(sine/13),0+0*math.cos(sine/13),0+0*math.cos(sine/13))*ANGLES(RAD(0+25*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(25+0*math.cos(sine/13))),.3)
  352. LS.C0 = LS.C0:Lerp(CF(-1+0*math.cos(sine/13),0+0*math.cos(sine/13),0+0*math.cos(sine/13))*ANGLES(RAD(0+-25*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(-25+0*math.cos(sine/13))),.3)
  353. RH.C0 = RH.C0:Lerp(CF(2+0*math.cos(sine/13),-1+0*math.cos(sine/13),0+-0.5*math.cos(sine/13))*ANGLES(RAD(0+25*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
  354. LH.C0 = LH.C0:Lerp(CF(-2+0*math.cos(sine/13),-1+0*math.cos(sine/13),0+0.5*math.cos(sine/13))*ANGLES(RAD(0+-25*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
  355. --walk clerp here
  356. elseif Root.Velocity.Magnitude > 20 then -- run
  357. NECK.C0 = NECK.C0:Lerp(CF(0+0*math.cos(sine/13),0+0*math.cos(sine/13),0+0*math.cos(sine/13))*ANGLES(RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
  358. RJ.C0 = RJ.C0:Lerp(CF(0+0*math.cos(sine/20),0+0.05*math.cos(sine/20),0+0*math.cos(sine/20))*ANGLES(RAD(0+0*math.cos(sine/20)),RAD(0+0*math.cos(sine/20)),RAD(0+0*math.cos(sine/20))),.3)
  359. RS.C0 = RS.C0:Lerp(CF(1+0*math.cos(sine/13),0+0*math.cos(sine/13),0+0*math.cos(sine/13))*ANGLES(RAD(0+25*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(25+0*math.cos(sine/13))),.3)
  360. LS.C0 = LS.C0:Lerp(CF(-1+0*math.cos(sine/13),0+0*math.cos(sine/13),0+0*math.cos(sine/13))*ANGLES(RAD(0+-25*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(-25+0*math.cos(sine/13))),.3)
  361. RH.C0 = RH.C0:Lerp(CF(2+0*math.cos(sine/13),-1+0*math.cos(sine/13),0+-0.5*math.cos(sine/13))*ANGLES(RAD(0+25*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
  362. LH.C0 = LH.C0:Lerp(CF(-2+0*math.cos(sine/13),-1+0*math.cos(sine/13),0+0.5*math.cos(sine/13))*ANGLES(RAD(0+-25*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
  363. --run clerp here
  364. end
  365. end
  366. srv.RenderStepped:Wait()
  367. end
  368. end)()
  369. --Created using Nexo Animator