Mythicxl

Creeper FE!? Script (Need Keyboard)

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