NightGolden

Untitled

Mar 12th, 2023
14,989
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 62.52 KB | None | 0 0
  1. --[[
  2. fe nameless animations v3
  3. made by MyWorld#4430
  4. discord.gg/pYVHtSJmEY
  5. no hats needed, r15 supported
  6. ]]
  7.  
  8. if "myworld reanimate again" then
  9. --reanimate by MyWorld#4430 discord.gg/pYVHtSJmEY
  10. local Vector3_101 = Vector3.new(1, 0, 1)
  11. local netless_Y = Vector3.new(0, 25.1, 0)
  12. local function getNetlessVelocity(realPartVelocity) --change this if you have a better method
  13. local mag = realPartVelocity.Magnitude
  14. if (mag > 1) and (mag < 100) then
  15. local unit = realPartVelocity.Unit
  16. if (unit.Y > 0.25) or (unit.Y < -0.75) then
  17. return realPartVelocity * (25.1 / realPartVelocity.Y)
  18. end
  19. realPartVelocity = unit * 100
  20. end
  21. return (realPartVelocity * Vector3_101) + netless_Y
  22. end
  23. local simradius = "shp" --simulation radius (net bypass) method
  24. --"shp" - sethiddenproperty
  25. --"ssr" - setsimulationradius
  26. --false - disable
  27. local noclipAllParts = false --set it to true if you want noclip
  28. local antiragdoll = true --removes hingeConstraints and ballSocketConstraints from your character
  29. local newanimate = true --disables the animate script and enables after reanimation
  30. local discharscripts = true --disables all localScripts parented to your character before reanimation
  31. local R15toR6 = true --tries to convert your character to r6 if its r15
  32. local hatcollide = false --makes hats cancollide (credit to ShownApe) (works only with reanimate method 0)
  33. local humState16 = true --enables collisions for limbs before the humanoid dies (using hum:ChangeState)
  34. local addtools = false --puts all tools from backpack to character and lets you hold them after reanimation
  35. local hedafterneck = true --disable aligns for head and enable after neck or torso is removed
  36. local loadtime = game:GetService("Players").RespawnTime + 0.5 --anti respawn delay
  37. local method = 3 --reanimation method
  38. --methods:
  39. --0 - breakJoints (takes [loadtime] seconds to laod)
  40. --1 - limbs
  41. --2 - limbs + anti respawn
  42. --3 - limbs + breakJoints after [loadtime] seconds
  43. --4 - remove humanoid + breakJoints
  44. --5 - remove humanoid + limbs
  45. local alignmode = 2 --AlignPosition mode
  46. --modes:
  47. --1 - AlignPosition rigidity enabled true
  48. --2 - 2 AlignPositions rigidity enabled both true and false
  49. --3 - AlignPosition rigidity enabled false
  50. local flingpart = "HumanoidRootPart" --name of the part or the hat used for flinging
  51. --the fling function
  52. --usage: fling(target, duration, velocity)
  53. --target can be set to: basePart, CFrame, Vector3, character model or humanoid (flings at mouse.Hit if argument not provided))
  54. --duration (fling time in seconds) can be set to: a number or a string convertable to the number (0.5s if not provided),
  55. --velocity (fling part rotation velocity) can be set to a vector3 value (Vector3.new(20000, 20000, 20000) if not provided)
  56.  
  57. local lp = game:GetService("Players").LocalPlayer
  58. local rs = game:GetService("RunService")
  59. local stepped = rs.Stepped
  60. local heartbeat = rs.Heartbeat
  61. local renderstepped = rs.RenderStepped
  62. local sg = game:GetService("StarterGui")
  63. local ws = game:GetService("Workspace")
  64. local cf = CFrame.new
  65. local v3 = Vector3.new
  66. local v3_0 = Vector3.zero
  67. local inf = math.huge
  68.  
  69. local c = lp.Character
  70.  
  71. if not (c and c.Parent) then
  72. return
  73. end
  74.  
  75. c:GetPropertyChangedSignal("Parent"):Connect(function()
  76. if not (c and c.Parent) then
  77. c = nil
  78. end
  79. end)
  80.  
  81. local function gp(parent, name, className)
  82. if typeof(parent) == "Instance" then
  83. for i, v in pairs(parent:GetChildren()) do
  84. if (v.Name == name) and v:IsA(className) then
  85. return v
  86. end
  87. end
  88. end
  89. return nil
  90. end
  91.  
  92. if type(getNetlessVelocity) ~= "function" then
  93. getNetlessVelocity = nil
  94. end
  95.  
  96. local function align(Part0, Part1)
  97. Part0.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  98.  
  99. local att0 = Instance.new("Attachment")
  100. att0.Orientation = v3_0
  101. att0.Position = v3_0
  102. att0.Name = "att0_" .. Part0.Name
  103. local att1 = Instance.new("Attachment")
  104. att1.Orientation = v3_0
  105. att1.Position = v3_0
  106. att1.Name = "att1_" .. Part1.Name
  107.  
  108. if (alignmode == 1) or (alignmode == 2) then
  109. local ape = Instance.new("AlignPosition", att0)
  110. ape.ApplyAtCenterOfMass = false
  111. ape.MaxForce = inf
  112. ape.MaxVelocity = inf
  113. ape.ReactionForceEnabled = false
  114. ape.Responsiveness = 200
  115. ape.Attachment1 = att1
  116. ape.Attachment0 = att0
  117. ape.Name = "AlignPositionRtrue"
  118. ape.RigidityEnabled = true
  119. end
  120.  
  121. if (alignmode == 2) or (alignmode == 3) then
  122. local apd = Instance.new("AlignPosition", att0)
  123. apd.ApplyAtCenterOfMass = false
  124. apd.MaxForce = inf
  125. apd.MaxVelocity = inf
  126. apd.ReactionForceEnabled = false
  127. apd.Responsiveness = 200
  128. apd.Attachment1 = att1
  129. apd.Attachment0 = att0
  130. apd.Name = "AlignPositionRfalse"
  131. apd.RigidityEnabled = false
  132. end
  133.  
  134. local ao = Instance.new("AlignOrientation", att0)
  135. ao.MaxAngularVelocity = inf
  136. ao.MaxTorque = inf
  137. ao.PrimaryAxisOnly = false
  138. ao.ReactionTorqueEnabled = false
  139. ao.Responsiveness = 200
  140. ao.Attachment1 = att1
  141. ao.Attachment0 = att0
  142. ao.RigidityEnabled = false
  143.  
  144. if getNetlessVelocity then
  145. local vel = Part0.Velocity
  146. local velpart = Part1
  147. local rsteppedcon = renderstepped:Connect(function()
  148. Part0.Velocity = vel
  149. end)
  150. local heartbeatcon = heartbeat:Connect(function()
  151. vel = Part0.Velocity
  152. Part0.Velocity = getNetlessVelocity(velpart.Velocity)
  153. end)
  154. local attcon = nil
  155. Part0:GetPropertyChangedSignal("Parent"):Connect(function()
  156. if not (Part0 and Part0.Parent) then
  157. rsteppedcon:Disconnect()
  158. heartbeatcon:Disconnect()
  159. attcon:Disconnect()
  160. end
  161. end)
  162. attcon = att1:GetPropertyChangedSignal("Parent"):Connect(function()
  163. if not (att1 and att1.Parent) then
  164. attcon:Disconnect()
  165. velpart = Part0
  166. else
  167. velpart = att1.Parent
  168. if not velpart:IsA("BasePart") then
  169. velpart = Part0
  170. end
  171. end
  172. end)
  173. end
  174.  
  175. att0.Parent = Part0
  176. att1.Parent = Part1
  177. end
  178.  
  179. local function respawnrequest()
  180. local ccfr = ws.CurrentCamera.CFrame
  181. local c = lp.Character
  182. lp.Character = nil
  183. lp.Character = c
  184. local con = nil
  185. con = ws.CurrentCamera.Changed:Connect(function(prop)
  186. if (prop ~= "Parent") and (prop ~= "CFrame") then
  187. return
  188. end
  189. ws.CurrentCamera.CFrame = ccfr
  190. con:Disconnect()
  191. end)
  192. end
  193.  
  194. local destroyhum = (method == 4) or (method == 5)
  195. local breakjoints = (method == 0) or (method == 4)
  196. local antirespawn = (method == 0) or (method == 2) or (method == 3)
  197.  
  198. hatcollide = hatcollide and (method == 0)
  199.  
  200. addtools = addtools and gp(lp, "Backpack", "Backpack")
  201.  
  202. local fenv = getfenv()
  203. local shp = fenv.sethiddenproperty or fenv.set_hidden_property or fenv.set_hidden_prop or fenv.sethiddenprop
  204. local ssr = fenv.setsimulationradius or fenv.set_simulation_radius or fenv.set_sim_radius or fenv.setsimradius or fenv.set_simulation_rad or fenv.setsimulationrad
  205.  
  206. if shp and (simradius == "shp") then
  207. spawn(function()
  208. while c and heartbeat:Wait() do
  209. shp(lp, "SimulationRadius", inf)
  210. end
  211. end)
  212. elseif ssr and (simradius == "ssr") then
  213. spawn(function()
  214. while c and heartbeat:Wait() do
  215. ssr(inf)
  216. end
  217. end)
  218. end
  219.  
  220. antiragdoll = antiragdoll and function(v)
  221. if v:IsA("HingeConstraint") or v:IsA("BallSocketConstraint") then
  222. v.Parent = nil
  223. end
  224. end
  225.  
  226. if antiragdoll then
  227. for i, v in pairs(c:GetDescendants()) do
  228. antiragdoll(v)
  229. end
  230. c.DescendantAdded:Connect(antiragdoll)
  231. end
  232.  
  233. if antirespawn then
  234. respawnrequest()
  235. end
  236.  
  237. if method == 0 then
  238. wait(loadtime)
  239. if not c then
  240. return
  241. end
  242. end
  243.  
  244. if discharscripts then
  245. for i, v in pairs(c:GetChildren()) do
  246. if v:IsA("LocalScript") then
  247. v.Disabled = true
  248. end
  249. end
  250. elseif newanimate then
  251. local animate = gp(c, "Animate", "LocalScript")
  252. if animate and (not animate.Disabled) then
  253. animate.Disabled = true
  254. else
  255. newanimate = false
  256. end
  257. end
  258.  
  259. if addtools then
  260. for i, v in pairs(addtools:GetChildren()) do
  261. if v:IsA("Tool") then
  262. v.Parent = c
  263. end
  264. end
  265. end
  266.  
  267. pcall(function()
  268. settings().Physics.AllowSleep = false
  269. settings().Physics.PhysicsEnvironmentalThrottle = Enum.EnviromentalPhysicsThrottle.Disabled
  270. end)
  271.  
  272. local OLDscripts = {}
  273.  
  274. for i, v in pairs(c:GetDescendants()) do
  275. if v.ClassName == "Script" then
  276. table.insert(OLDscripts, v)
  277. end
  278. end
  279.  
  280. local scriptNames = {}
  281.  
  282. for i, v in pairs(c:GetDescendants()) do
  283. if v:IsA("BasePart") then
  284. local newName = tostring(i)
  285. local exists = true
  286. while exists do
  287. exists = false
  288. for i, v in pairs(OLDscripts) do
  289. if v.Name == newName then
  290. exists = true
  291. end
  292. end
  293. if exists then
  294. newName = newName .. "_"
  295. end
  296. end
  297. table.insert(scriptNames, newName)
  298. Instance.new("Script", v).Name = newName
  299. end
  300. end
  301.  
  302. c.Archivable = true
  303. local hum = c:FindFirstChildOfClass("Humanoid")
  304. if hum then
  305. for i, v in pairs(hum:GetPlayingAnimationTracks()) do
  306. v:Stop()
  307. end
  308. end
  309. local cl = c:Clone()
  310. if hum and humState16 then
  311. hum:ChangeState(Enum.HumanoidStateType.Physics)
  312. if destroyhum then
  313. wait(1.6)
  314. end
  315. end
  316. if hum and hum.Parent and destroyhum then
  317. hum:Destroy()
  318. end
  319.  
  320. if not c then
  321. return
  322. end
  323.  
  324. local head = gp(c, "Head", "BasePart")
  325. local torso = gp(c, "Torso", "BasePart") or gp(c, "UpperTorso", "BasePart")
  326. local root = gp(c, "HumanoidRootPart", "BasePart")
  327. if hatcollide and c:FindFirstChildOfClass("Accessory") then
  328. local anything = c:FindFirstChildOfClass("BodyColors") or gp(c, "Health", "Script")
  329. if not (torso and root and anything) then
  330. return
  331. end
  332. torso:Destroy()
  333. root:Destroy()
  334. if shp then
  335. for i,v in pairs(c:GetChildren()) do
  336. if v:IsA("Accessory") then
  337. shp(v, "BackendAccoutrementState", 0)
  338. end
  339. end
  340. end
  341. anything:Destroy()
  342. end
  343.  
  344. local model = Instance.new("Model", c)
  345. model.Name = model.ClassName
  346.  
  347. model:GetPropertyChangedSignal("Parent"):Connect(function()
  348. if not (model and model.Parent) then
  349. model = nil
  350. end
  351. end)
  352.  
  353. for i, v in pairs(c:GetChildren()) do
  354. if v ~= model then
  355. if addtools and v:IsA("Tool") then
  356. for i1, v1 in pairs(v:GetDescendants()) do
  357. if v1 and v1.Parent and v1:IsA("BasePart") then
  358. local bv = Instance.new("BodyVelocity", v1)
  359. bv.Velocity = v3_0
  360. bv.MaxForce = v3(1000, 1000, 1000)
  361. bv.P = 1250
  362. bv.Name = "bv_" .. v.Name
  363. end
  364. end
  365. end
  366. v.Parent = model
  367. end
  368. end
  369.  
  370. if breakjoints then
  371. model:BreakJoints()
  372. else
  373. if head and torso then
  374. for i, v in pairs(model:GetDescendants()) do
  375. if v:IsA("Weld") or v:IsA("Snap") or v:IsA("Glue") or v:IsA("Motor") or v:IsA("Motor6D") then
  376. local save = false
  377. if (v.Part0 == torso) and (v.Part1 == head) then
  378. save = true
  379. end
  380. if (v.Part0 == head) and (v.Part1 == torso) then
  381. save = true
  382. end
  383. if save then
  384. if hedafterneck then
  385. hedafterneck = v
  386. end
  387. else
  388. v:Destroy()
  389. end
  390. end
  391. end
  392. end
  393. if method == 3 then
  394. spawn(function()
  395. wait(loadtime)
  396. if model then
  397. model:BreakJoints()
  398. end
  399. end)
  400. end
  401. end
  402.  
  403. cl.Parent = c
  404. for i, v in pairs(cl:GetChildren()) do
  405. v.Parent = c
  406. end
  407. cl:Destroy()
  408.  
  409. local noclipmodel = (noclipAllParts and c) or model
  410. local noclipcon = nil
  411. local function uncollide()
  412. if noclipmodel then
  413. for i, v in pairs(noclipmodel:GetDescendants()) do
  414. if v:IsA("BasePart") then
  415. v.CanCollide = false
  416. end
  417. end
  418. else
  419. noclipcon:Disconnect()
  420. end
  421. end
  422. noclipcon = stepped:Connect(uncollide)
  423. uncollide()
  424.  
  425. for i, scr in pairs(model:GetDescendants()) do
  426. if (scr.ClassName == "Script") and table.find(scriptNames, scr.Name) then
  427. local Part0 = scr.Parent
  428. if Part0:IsA("BasePart") then
  429. for i1, scr1 in pairs(c:GetDescendants()) do
  430. if (scr1.ClassName == "Script") and (scr1.Name == scr.Name) and (not scr1:IsDescendantOf(model)) then
  431. local Part1 = scr1.Parent
  432. if (Part1.ClassName == Part0.ClassName) and (Part1.Name == Part0.Name) then
  433. align(Part0, Part1)
  434. scr:Destroy()
  435. scr1:Destroy()
  436. break
  437. end
  438. end
  439. end
  440. end
  441. end
  442. end
  443.  
  444. for i, v in pairs(c:GetDescendants()) do
  445. if v and v.Parent and (not v:IsDescendantOf(model)) then
  446. if v:IsA("Decal") then
  447. v.Transparency = 1
  448. elseif v:IsA("BasePart") then
  449. v.Transparency = 1
  450. v.Anchored = false
  451. elseif v:IsA("ForceField") then
  452. v.Visible = false
  453. elseif v:IsA("Sound") then
  454. v.Playing = false
  455. elseif v:IsA("BillboardGui") or v:IsA("SurfaceGui") or v:IsA("ParticleEmitter") or v:IsA("Fire") or v:IsA("Smoke") or v:IsA("Sparkles") then
  456. v.Enabled = false
  457. end
  458. end
  459. end
  460.  
  461. if newanimate then
  462. local animate = gp(c, "Animate", "LocalScript")
  463. if animate then
  464. animate.Disabled = false
  465. end
  466. end
  467.  
  468. if addtools then
  469. for i, v in pairs(c:GetChildren()) do
  470. if v:IsA("Tool") then
  471. v.Parent = addtools
  472. end
  473. end
  474. end
  475.  
  476. local hum0 = model:FindFirstChildOfClass("Humanoid")
  477. if hum0 then
  478. hum0:GetPropertyChangedSignal("Parent"):Connect(function()
  479. if not (hum0 and hum0.Parent) then
  480. hum0 = nil
  481. end
  482. end)
  483. end
  484.  
  485. local hum1 = c:FindFirstChildOfClass("Humanoid")
  486. if hum1 then
  487. hum1:GetPropertyChangedSignal("Parent"):Connect(function()
  488. if not (hum1 and hum1.Parent) then
  489. hum1 = nil
  490. end
  491. end)
  492.  
  493. ws.CurrentCamera.CameraSubject = hum1
  494. local camSubCon = nil
  495. local function camSubFunc()
  496. camSubCon:Disconnect()
  497. if c and hum1 then
  498. ws.CurrentCamera.CameraSubject = hum1
  499. end
  500. end
  501. camSubCon = renderstepped:Connect(camSubFunc)
  502. if hum0 then
  503. hum0:GetPropertyChangedSignal("Jump"):Connect(function()
  504. if hum1 then
  505. hum1.Jump = hum0.Jump
  506. end
  507. end)
  508. else
  509. respawnrequest()
  510. end
  511. end
  512.  
  513. local rb = Instance.new("BindableEvent", c)
  514. rb.Event:Connect(function()
  515. rb:Destroy()
  516. sg:SetCore("ResetButtonCallback", true)
  517. if destroyhum then
  518. c:BreakJoints()
  519. return
  520. end
  521. if hum0 and (hum0.Health > 0) then
  522. model:BreakJoints()
  523. hum0.Health = 0
  524. end
  525. if antirespawn then
  526. respawnrequest()
  527. end
  528. end)
  529. sg:SetCore("ResetButtonCallback", rb)
  530.  
  531. spawn(function()
  532. while c do
  533. if hum0 and hum1 then
  534. hum1.Jump = hum0.Jump
  535. end
  536. wait()
  537. end
  538. sg:SetCore("ResetButtonCallback", true)
  539. end)
  540.  
  541. R15toR6 = R15toR6 and hum1 and (hum1.RigType == Enum.HumanoidRigType.R15)
  542. if R15toR6 then
  543. local part = gp(c, "HumanoidRootPart", "BasePart") or gp(c, "UpperTorso", "BasePart") or gp(c, "LowerTorso", "BasePart") or gp(c, "Head", "BasePart") or c:FindFirstChildWhichIsA("BasePart")
  544. if part then
  545. local cfr = part.CFrame
  546. local R6parts = {
  547. head = {
  548. Name = "Head",
  549. Size = v3(2, 1, 1),
  550. R15 = {
  551. Head = 0
  552. }
  553. },
  554. torso = {
  555. Name = "Torso",
  556. Size = v3(2, 2, 1),
  557. R15 = {
  558. UpperTorso = 0.2,
  559. LowerTorso = -0.8
  560. }
  561. },
  562. root = {
  563. Name = "HumanoidRootPart",
  564. Size = v3(2, 2, 1),
  565. R15 = {
  566. HumanoidRootPart = 0
  567. }
  568. },
  569. leftArm = {
  570. Name = "Left Arm",
  571. Size = v3(1, 2, 1),
  572. R15 = {
  573. LeftHand = -0.849,
  574. LeftLowerArm = -0.174,
  575. LeftUpperArm = 0.415
  576. }
  577. },
  578. rightArm = {
  579. Name = "Right Arm",
  580. Size = v3(1, 2, 1),
  581. R15 = {
  582. RightHand = -0.849,
  583. RightLowerArm = -0.174,
  584. RightUpperArm = 0.415
  585. }
  586. },
  587. leftLeg = {
  588. Name = "Left Leg",
  589. Size = v3(1, 2, 1),
  590. R15 = {
  591. LeftFoot = -0.85,
  592. LeftLowerLeg = -0.29,
  593. LeftUpperLeg = 0.49
  594. }
  595. },
  596. rightLeg = {
  597. Name = "Right Leg",
  598. Size = v3(1, 2, 1),
  599. R15 = {
  600. RightFoot = -0.85,
  601. RightLowerLeg = -0.29,
  602. RightUpperLeg = 0.49
  603. }
  604. }
  605. }
  606. for i, v in pairs(c:GetChildren()) do
  607. if v:IsA("BasePart") then
  608. for i1, v1 in pairs(v:GetChildren()) do
  609. if v1:IsA("Motor6D") then
  610. v1.Part0 = nil
  611. end
  612. end
  613. end
  614. end
  615. part.Archivable = true
  616. for i, v in pairs(R6parts) do
  617. local part = part:Clone()
  618. part:ClearAllChildren()
  619. part.Name = v.Name
  620. part.Size = v.Size
  621. part.CFrame = cfr
  622. part.Anchored = false
  623. part.Transparency = 1
  624. part.CanCollide = false
  625. for i1, v1 in pairs(v.R15) do
  626. local R15part = gp(c, i1, "BasePart")
  627. local att = gp(R15part, "att1_" .. i1, "Attachment")
  628. if R15part then
  629. local weld = Instance.new("Weld", R15part)
  630. weld.Name = "Weld_" .. i1
  631. weld.Part0 = part
  632. weld.Part1 = R15part
  633. weld.C0 = cf(0, v1, 0)
  634. weld.C1 = cf(0, 0, 0)
  635. R15part.Massless = true
  636. R15part.Name = "R15_" .. i1
  637. R15part.Parent = part
  638. if att then
  639. att.Parent = part
  640. att.Position = v3(0, v1, 0)
  641. end
  642. end
  643. end
  644. part.Parent = c
  645. R6parts[i] = part
  646. end
  647. local R6joints = {
  648. neck = {
  649. Parent = R6parts.torso,
  650. Name = "Neck",
  651. Part0 = R6parts.torso,
  652. Part1 = R6parts.head,
  653. C0 = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0),
  654. C1 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  655. },
  656. rootJoint = {
  657. Parent = R6parts.root,
  658. Name = "RootJoint" ,
  659. Part0 = R6parts.root,
  660. Part1 = R6parts.torso,
  661. C0 = cf(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0),
  662. C1 = cf(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  663. },
  664. rightShoulder = {
  665. Parent = R6parts.torso,
  666. Name = "Right Shoulder",
  667. Part0 = R6parts.torso,
  668. Part1 = R6parts.rightArm,
  669. C0 = cf(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),
  670. C1 = cf(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  671. },
  672. leftShoulder = {
  673. Parent = R6parts.torso,
  674. Name = "Left Shoulder",
  675. Part0 = R6parts.torso,
  676. Part1 = R6parts.leftArm,
  677. C0 = cf(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),
  678. C1 = cf(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  679. },
  680. rightHip = {
  681. Parent = R6parts.torso,
  682. Name = "Right Hip",
  683. Part0 = R6parts.torso,
  684. Part1 = R6parts.rightLeg,
  685. C0 = cf(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),
  686. C1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  687. },
  688. leftHip = {
  689. Parent = R6parts.torso,
  690. Name = "Left Hip" ,
  691. Part0 = R6parts.torso,
  692. Part1 = R6parts.leftLeg,
  693. C0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),
  694. C1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  695. }
  696. }
  697. for i, v in pairs(R6joints) do
  698. local joint = Instance.new("Motor6D")
  699. for prop, val in pairs(v) do
  700. joint[prop] = val
  701. end
  702. R6joints[i] = joint
  703. end
  704. if hum1 then
  705. hum1.RigType = Enum.HumanoidRigType.R6
  706. hum1.HipHeight = 0
  707. end
  708. end
  709. end
  710.  
  711. local torso1 = torso
  712. torso = gp(c, "Torso", "BasePart") or ((not R15toR6) and gp(c, torso.Name, "BasePart"))
  713. if (typeof(hedafterneck) == "Instance") and head and torso and torso1 then
  714. local conNeck = nil
  715. local conTorso = nil
  716. local contorso1 = nil
  717. local aligns = {}
  718. local function enableAligns()
  719. conNeck:Disconnect()
  720. conTorso:Disconnect()
  721. conTorso1:Disconnect()
  722. for i, v in pairs(aligns) do
  723. v.Enabled = true
  724. end
  725. end
  726. conNeck = hedafterneck.Changed:Connect(function(prop)
  727. if table.find({"Part0", "Part1", "Parent"}, prop) then
  728. enableAligns()
  729. end
  730. end)
  731. conTorso = torso:GetPropertyChangedSignal("Parent"):Connect(enableAligns)
  732. conTorso1 = torso1:GetPropertyChangedSignal("Parent"):Connect(enableAligns)
  733. for i, v in pairs(head:GetDescendants()) do
  734. if v:IsA("AlignPosition") or v:IsA("AlignOrientation") then
  735. i = tostring(i)
  736. aligns[i] = v
  737. v:GetPropertyChangedSignal("Parent"):Connect(function()
  738. aligns[i] = nil
  739. end)
  740. v.Enabled = false
  741. end
  742. end
  743. end
  744.  
  745. local flingpart0 = gp(model, flingpart, "BasePart") or gp(gp(model, flingpart, "Accessory"), "Handle", "BasePart")
  746. local flingpart1 = gp(c, flingpart, "BasePart") or gp(gp(c, flingpart, "Accessory"), "Handle", "BasePart")
  747.  
  748. local fling = function() end
  749. if flingpart0 and flingpart1 then
  750. flingpart0:GetPropertyChangedSignal("Parent"):Connect(function()
  751. if not (flingpart0 and flingpart0.Parent) then
  752. flingpart0 = nil
  753. fling = function() end
  754. end
  755. end)
  756. flingpart0.Archivable = true
  757. flingpart1:GetPropertyChangedSignal("Parent"):Connect(function()
  758. if not (flingpart1 and flingpart1.Parent) then
  759. flingpart1 = nil
  760. fling = function() end
  761. end
  762. end)
  763. local att0 = gp(flingpart0, "att0_" .. flingpart0.Name, "Attachment")
  764. local att1 = gp(flingpart1, "att1_" .. flingpart1.Name, "Attachment")
  765. if att0 and att1 then
  766. att0:GetPropertyChangedSignal("Parent"):Connect(function()
  767. if not (att0 and att0.Parent) then
  768. att0 = nil
  769. fling = function() end
  770. end
  771. end)
  772. att1:GetPropertyChangedSignal("Parent"):Connect(function()
  773. if not (att1 and att1.Parent) then
  774. att1 = nil
  775. fling = function() end
  776. end
  777. end)
  778. local lastfling = nil
  779. local mouse = lp:GetMouse()
  780. fling = function(target, duration, rotVelocity)
  781. if typeof(target) == "Instance" then
  782. if target:IsA("BasePart") then
  783. target = target.Position
  784. elseif target:IsA("Model") then
  785. target = gp(target, "HumanoidRootPart", "BasePart") or gp(target, "Torso", "BasePart") or gp(target, "UpperTorso", "BasePart") or target:FindFirstChildWhichIsA("BasePart")
  786. if target then
  787. target = target.Position
  788. else
  789. return
  790. end
  791. elseif target:IsA("Humanoid") then
  792. local parent = target.Parent
  793. if not (parent and parent:IsA("Model")) then
  794. return
  795. end
  796. target = gp(target, "HumanoidRootPart", "BasePart") or gp(target, "Torso", "BasePart") or gp(target, "UpperTorso", "BasePart") or target:FindFirstChildWhichIsA("BasePart")
  797. if target then
  798. target = target.Position
  799. else
  800. return
  801. end
  802. else
  803. return
  804. end
  805. elseif typeof(target) == "CFrame" then
  806. target = target.Position
  807. elseif typeof(target) ~= "Vector3" then
  808. target = mouse.Hit
  809. if target then
  810. target = target.Position
  811. else
  812. return
  813. end
  814. end
  815. lastfling = target
  816. if type(duration) ~= "number" then
  817. duration = tonumber(duration) or 0.5
  818. end
  819. if typeof(rotVelocity) ~= "Vector3" then
  820. rotVelocity = v3(20000, 20000, 20000)
  821. end
  822. if not (target and flingpart0 and flingpart1 and att0 and att1) then
  823. return
  824. end
  825. local flingpart = flingpart0:Clone()
  826. flingpart.Transparency = 1
  827. flingpart.Size = v3(0.01, 0.01, 0.01)
  828. flingpart.CanCollide = false
  829. flingpart.Name = "flingpart_" .. flingpart0.Name
  830. flingpart.Anchored = true
  831. flingpart.Velocity = v3_0
  832. flingpart.RotVelocity = v3_0
  833. flingpart:GetPropertyChangedSignal("Parent"):Connect(function()
  834. if not (flingpart and flingpart.Parent) then
  835. flingpart = nil
  836. end
  837. end)
  838. flingpart.Parent = flingpart1
  839. if flingpart0.Transparency > 0.5 then
  840. flingpart0.Transparency = 0.5
  841. end
  842. att1.Parent = flingpart
  843. for i, v in pairs(att0:GetChildren()) do
  844. if v:IsA("AlignOrientation") then
  845. v.Enabled = false
  846. end
  847. end
  848. local con = nil
  849. con = heartbeat:Connect(function()
  850. if target and (lastfling == target) and flingpart and flingpart0 and flingpart1 and att0 and att1 then
  851. flingpart0.RotVelocity = rotVelocity
  852. flingpart.Position = target
  853. else
  854. con:Disconnect()
  855. end
  856. end)
  857. local rsteppedRotVel = v3(
  858. ((rotVelocity.X > 0) and -1) or 1,
  859. ((rotVelocity.Y > 0) and -1) or 1,
  860. ((rotVelocity.Z > 0) and -1) or 1
  861. )
  862. local con = nil
  863. con = renderstepped:Connect(function()
  864. if target and (lastfling == target) and flingpart and flingpart0 and flingpart1 and att0 and att1 then
  865. flingpart0.RotVelocity = rsteppedRotVel
  866. flingpart.Position = target
  867. else
  868. con:Disconnect()
  869. end
  870. end)
  871. wait(duration)
  872. if lastfling ~= target then
  873. if flingpart then
  874. if att1 and (att1.Parent == flingpart) then
  875. att1.Parent = flingpart1
  876. end
  877. flingpart:Destroy()
  878. end
  879. return
  880. end
  881. target = nil
  882. if not (flingpart and flingpart0 and flingpart1 and att0 and att1) then
  883. return
  884. end
  885. flingpart0.RotVelocity = v3_0
  886. att1.Parent = flingpart1
  887. for i, v in pairs(att0:GetChildren()) do
  888. if v:IsA("AlignOrientation") then
  889. v.Enabled = true
  890. end
  891. end
  892. if flingpart then
  893. flingpart:Destroy()
  894. end
  895. end
  896. end
  897. end
  898. end
  899.  
  900. local lp = game:GetService("Players").LocalPlayer
  901.  
  902. local c = lp.Character
  903. if not (c and c.Parent) then
  904. return print("character not found")
  905. end
  906. c:GetPropertyChangedSignal("Parent"):Connect(function()
  907. if not (c and c.Parent) then
  908. c = nil
  909. end
  910. end)
  911.  
  912. --getPart function
  913.  
  914. local function gp(parent, name, className)
  915. local ret = nil
  916. pcall(function()
  917. for i, v in pairs(parent:GetChildren()) do
  918. if (v.Name == name) and v:IsA(className) then
  919. ret = v
  920. break
  921. end
  922. end
  923. end)
  924. return ret
  925. end
  926.  
  927. --check if reanimate loaded
  928.  
  929. local model = gp(c, "Model", "Model")
  930. if not model then return print("model not found") end
  931.  
  932. --find body parts
  933.  
  934. local head = gp(c, "Head", "BasePart")
  935. if not head then return print("head not found") end
  936.  
  937. local torso = gp(c, "Torso", "BasePart")
  938. if not torso then return print("torso not found") end
  939.  
  940. local humanoidRootPart = gp(c, "HumanoidRootPart", "BasePart")
  941. if not humanoidRootPart then return print("humanoid root part not found") end
  942.  
  943. local leftArm = gp(c, "Left Arm", "BasePart")
  944. if not leftArm then return print("left arm not found") end
  945.  
  946. local rightArm = gp(c, "Right Arm", "BasePart")
  947. if not rightArm then return print("right arm not found") end
  948.  
  949. local leftLeg = gp(c, "Left Leg", "BasePart")
  950. if not leftLeg then return print("left leg not found") end
  951.  
  952. local rightLeg = gp(c, "Right Leg", "BasePart")
  953. if not rightLeg then return print("right leg not found") end
  954.  
  955. --find rig joints
  956.  
  957. local neck = gp(torso, "Neck", "Motor6D")
  958. if not neck then return print("neck not found") end
  959.  
  960. local rootJoint = gp(humanoidRootPart, "RootJoint", "Motor6D")
  961. if not rootJoint then return print("root joint not found") end
  962.  
  963. local leftShoulder = gp(torso, "Left Shoulder", "Motor6D")
  964. if not leftShoulder then return print("left shoulder not found") end
  965.  
  966. local rightShoulder = gp(torso, "Right Shoulder", "Motor6D")
  967. if not rightShoulder then return print("right shoulder not found") end
  968.  
  969. local leftHip = gp(torso, "Left Hip", "Motor6D")
  970. if not leftHip then return print("left hip not found") end
  971.  
  972. local rightHip = gp(torso, "Right Hip", "Motor6D")
  973. if not rightHip then return print("right hip not found") end
  974.  
  975. --humanoid
  976.  
  977. local hum = c:FindFirstChildOfClass("Humanoid")
  978. if not hum then return print("humanoid not found") end
  979.  
  980. local animate = gp(c, "Animate", "LocalScript")
  981. if animate then
  982. animate.Disabled = true
  983. end
  984.  
  985. for i, v in pairs(hum:GetPlayingAnimationTracks()) do
  986. v:Stop()
  987. end
  988.  
  989. local function stopIfRemoved(instance)
  990. if not (instance and instance.Parent) then
  991. c = nil
  992. return
  993. end
  994. instance:GetPropertyChangedSignal("Parent"):Connect(function()
  995. if not (instance and instance.Parent) then
  996. c = nil
  997. end
  998. end)
  999. end
  1000. stopIfRemoved(c)
  1001. stopIfRemoved(hum)
  1002. for i, v in pairs({head, torso, leftArm, rightArm, leftLeg, rightLeg, humanoidRootPart}) do
  1003. stopIfRemoved(v)
  1004. end
  1005. for i, v in pairs({neck, rootJoint, leftShoulder, rightShoulder, leftHip, rightHip}) do
  1006. stopIfRemoved(v)
  1007. end
  1008. if not c then
  1009. return
  1010. end
  1011. local mode = false
  1012. uis = game:GetService("UserInputService")
  1013. local modes = {
  1014. [Enum.KeyCode.Q] = "lay",
  1015. [Enum.KeyCode.E] = "sit",
  1016. [Enum.KeyCode.K] = "kazotsky",
  1017. [Enum.KeyCode.T] = "wave",
  1018. [Enum.KeyCode.Y] = "dab",
  1019. [Enum.KeyCode.U] = "dance",
  1020. [Enum.KeyCode.L] = "L",
  1021. [Enum.KeyCode.F] = "fly",
  1022. [Enum.KeyCode.G] = "floss",
  1023. [Enum.KeyCode.R] = "rickroll"
  1024. }
  1025. uis.InputBegan:Connect(function(keycode)
  1026. if uis:GetFocusedTextBox() then
  1027. return
  1028. end
  1029. keycode = keycode.KeyCode
  1030. if modes[keycode] ~= nil then
  1031. if mode == modes[keycode] then
  1032. mode = nil
  1033. else
  1034. mode = modes[keycode]
  1035. end
  1036. end
  1037. end)
  1038.  
  1039. local cf, v3, euler, sin, sine, abs = CFrame.new, Vector3.new, CFrame.fromEulerAnglesXYZ, math.sin, 0, math.abs
  1040. local con = nil
  1041. con = game:GetService("RunService").RenderStepped:Connect(function(deltaTime)
  1042. if not c then
  1043. con:Disconnect()
  1044. return
  1045. end
  1046. deltaTime = deltaTime * 10
  1047. hum.CameraOffset = hum.CameraOffset:Lerp(v3(0, head.Position.Y - humanoidRootPart.Position.Y - 1.5, 0), deltaTime / 4)
  1048. sine = sine + deltaTime * 3
  1049. local vel = humanoidRootPart.Velocity
  1050. if vel.Magnitude > 2 then
  1051. if abs(vel.X) + abs(vel.Z) > abs(vel.Y) then -- walk
  1052.  
  1053. neck.C0 = neck.C0:Lerp(cf(0, 1, 0) * euler(-1.5707963267948966 - 0.08726646259971647 * sin((sine - 2.5) * 0.4), -0.08726646259971647 * sin((sine - 7.5) * 0.2), -3.1590459461097367 - 0.17453292519943295 * sin((sine + 5) * 0.2)), deltaTime)
  1054. rootJoint.C0 = rootJoint.C0:Lerp(cf(-0.1 * sin((sine + 5) * 0.2), 0.1 + 0.125 * sin((sine + 10) * 0.4), 0) * euler(-1.6580627893946132, 0.08726646259971647 * sin((sine - 10) * 0.2), -3.141592653589793 + 0.17453292519943295 * sin((sine + 2.5) * 0.2)), deltaTime)
  1055. leftShoulder.C0 = leftShoulder.C0:Lerp(cf(-1, 0.5 - 0.1 * sin((sine - 15) * 0.2), 0) * euler(1.5707963267948966 - 0.4363323129985824 * sin((sine + 5) * 0.2), -1.6580627893946132 + 0.08726646259971647 * sin((sine - 10) * 0.2), 1.5707963267948966), deltaTime)
  1056. rightShoulder.C0 = rightShoulder.C0:Lerp(cf(1, 0.5 + 0.1 * sin((sine - 15) * 0.2), 0) * euler(1.5707963267948966 + 0.4363323129985824 * sin((sine + 5) * 0.2), 1.6580627893946132 + 0.08726646259971647 * sin((sine - 10) * 0.2), -1.5707963267948966), deltaTime)
  1057. leftHip.C0 = leftHip.C0:Lerp(cf(-1, -1 - 0.15 * sin((sine + 5) * 0.2), 0) * euler(1.5707963267948966, -1.6057029118347832 + 0.08726646259971647 * sin((sine - 10) * 0.2), 1.5707963267948966 + 0.8726646259971648 * sin(sine * 0.2)), deltaTime)
  1058. rightHip.C0 = rightHip.C0:Lerp(cf(1, -1 + 0.15 * sin((sine + 5) * 0.2), 0) * euler(1.5707963267948966, 1.6057029118347832 + 0.08726646259971647 * sin((sine - 10) * 0.2), -1.5707963267948966 + 0.8726646259971648 * sin(sine * 0.2)), deltaTime)
  1059. --local MW_animator_progressSave = "0, 0, 0, 0.1, -90, -5, -2.5, 0.4, 1, 0, 0, 0.1, 0, -5, -7.5, 0.2, 0, 0, 0, 0.1, -181, -10, 5, 0.2, 0, -0.1, 5, 0.2, -95, 0, 0, 0.1, 0.1, 0.125, 10, 0.4, 0, 5, -10, 0.2, 0, 0, 0, 0.1, -180, 10, 2.5, 0.2, -1, 0, 0, 0.1, 90, -25, 5, 0.2, 0.5, -0.1, -15, 0.2, -95, 5, -10, 0.2, 0, 0, 0, 0.1, 90, 0, 0, 0.1, 1, 0, 0, 0.1, 90, 25, 5, 0.2, 0.5, 0.1, -15, 0.2, 95, 5, -10, 0.2, 0, 0, 0, 0.1, -90, 0, 0, 0.1, -1, 0, 0, 0.1, 90, 0, 0, 0.1, -1, -0.15, 5, 0.2, -92, 5, -10, 0.2, 0, 0, 0, 0.1, 90, 50, 0, 0.2, 1, 0, 0, 0.1, 90, 0, 0, 0.1, -1, 0.15, 5, 0.2, 92, 5, -10, 0.2, 0, 0, 0, 0.1, -90, 50, 0, 0.2"
  1060.  
  1061. elseif vel.Y > 0 then -- jump
  1062.  
  1063. neck.C0 = neck.C0:Lerp(cf(0, 1, 0) * euler(-1.3962634015954636 + 0.08726646259971647 * sin((sine + 45) * 0.1), 0, -3.1590459461097367), deltaTime)
  1064. rootJoint.C0 = rootJoint.C0:Lerp(cf(0, 0, 0) * euler(-1.4835298641951802 - 0.08726646259971647 * sin((sine + 30) * 0.1), 0, -3.1590459461097367), deltaTime)
  1065. leftShoulder.C0 = leftShoulder.C0:Lerp(cf(-1, 0.5, 0) * euler(-1.5707963267948966 - 0.17453292519943295 * sin((sine + 15) * 0.1), -1.9198621771937625 + 0.17453292519943295 * sin(sine * 0.1), 2.6179938779914944), deltaTime)
  1066. rightShoulder.C0 = rightShoulder.C0:Lerp(cf(1, 0.5, 0) * euler(-2.6179938779914944 - 0.17453292519943295 * sin((sine + 15) * 0.1), 1.9198621771937625 - 0.17453292519943295 * sin(sine * 0.1), -1.5707963267948966), deltaTime)
  1067. leftHip.C0 = leftHip.C0:Lerp(cf(-1, -0.8, 0) * euler(-0.4363323129985824 + 0.17453292519943295 * sin((sine - 25) * 0.1), -1.5882496193148399, 0), deltaTime)
  1068. rightHip.C0 = rightHip.C0:Lerp(cf(1, -0.5, -1) * euler(-0.4363323129985824 + 0.17453292519943295 * sin((sine - 15) * 0.1), 1.5707963267948966, 0), deltaTime)
  1069. --local MW_animator_progressSave = "0, 0, 0, 0.1, -80, 5, 45, 0.1, 1, 0, 0, 0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, -181, 0, 0, 0.1, 0, 0, 0, 0.1, -85, -5, 30, 0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, -181, 0, 0, 0.1, -1, 0, 0, 0.1, -90, -10, 15, 0.1, 0.5, 0, 0, 0.1, -110, 10, 0, 0.1, 0, 0, 0, 0.1, 150, 0, 0, 0.1, 1, 0, 0, 0.1, -150, -10, 15, 0.1, 0.5, 0, 0, 0.1, 110, -10, 0, 0.1, 0, 0, 0, 0.1, -90, 0, 0, 0.1, -1, 0, 0, 0.1, -25, 10, -25, 0.1, -0.8, 0, 0, 0.1, -91, 0, 0, 0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 1, 0, 0, 0.1, -25, 10, -15, 0.1, -0.5, 0, 0, 0.1, 90, 0, 0, 0.1, -1, 0, 0, 0.1, 0, 0, 0, 0.1"
  1070.  
  1071. else -- fall
  1072.  
  1073. neck.C0 = neck.C0:Lerp(cf(0, 1, 0) * euler(-1.7453292519943295 + 0.08726646259971647 * sin((sine + 45) * 0.1), 0, -3.1590459461097367), deltaTime)
  1074. rootJoint.C0 = rootJoint.C0:Lerp(cf(0, 0, 0) * euler(-1.6580627893946132 - 0.08726646259971647 * sin((sine + 30) * 0.1), 0, -3.1590459461097367), deltaTime)
  1075. leftShoulder.C0 = leftShoulder.C0:Lerp(cf(-1, 0.5, 0) * euler(-1.5707963267948966 - 0.17453292519943295 * sin((sine + 15) * 0.1), -1.0471975511965976 + 0.17453292519943295 * sin(sine * 0.1), -2.0943951023931953), deltaTime)
  1076. rightShoulder.C0 = rightShoulder.C0:Lerp(cf(1, 0.5, 0) * euler(2.0943951023931953 - 0.17453292519943295 * sin((sine + 15) * 0.1), 2.2689280275926285 + 0.17453292519943295 * sin(sine * 0.1), -1.5707963267948966), deltaTime)
  1077. leftHip.C0 = leftHip.C0:Lerp(cf(-1, -0.8, 0) * euler(-0.4363323129985824 + 0.17453292519943295 * sin((sine - 25) * 0.1), -1.5882496193148399, 0), deltaTime)
  1078. rightHip.C0 = rightHip.C0:Lerp(cf(1, -0.5, -1) * euler(-0.4363323129985824 + 0.17453292519943295 * sin((sine - 15) * 0.1), 1.5707963267948966, 0), deltaTime)
  1079. --local MW_animator_progressSave = "0, 0, 0, 0.1, -100, 5, 45, 0.1, 1, 0, 0, 0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, -181, 0, 0, 0.1, 0, 0, 0, 0.1, -95, -5, 30, 0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, -181, 0, 0, 0.1, -1, 0, 0, 0.1, -90, -10, 15, 0.1, 0.5, 0, 0, 0.1, -60, 10, 0, 0.1, 0, 0, 0, 0.1, -120, 0, 0, 0.1, 1, 0, 0, 0.1, 120, -10, 15, 0.1, 0.5, 0, 0, 0.1, 130, 10, 0, 0.1, 0, 0, 0, 0.1, -90, 0, 0, 0.1, -1, 0, 0, 0.1, -25, 10, -25, 0.1, -0.8, 0, 0, 0.1, -91, 0, 0, 0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 1, 0, 0, 0.1, -25, 10, -15, 0.1, -0.5, 0, 0, 0.1, 90, 0, 0, 0.1, -1, 0, 0, 0.1, 0, 0, 0, 0.1"
  1080.  
  1081. end
  1082.  
  1083. else -- idle
  1084.  
  1085. if not mode then
  1086.  
  1087. neck.C0 = neck.C0:Lerp(cf(0, 1, 0) * euler(-1.5707963267948966 + 0.08726646259971647 * sin((sine - 60) * 0.05), 0, -3.490658503988659 + 0.5235987755982988 * sin(sine * 0.0125)), deltaTime)
  1088. rootJoint.C0 = rootJoint.C0:Lerp(cf(0, 0.1 * sin(sine * 0.05), 0) * euler(-1.5707963267948966 + 0.08726646259971647 * sin((sine - 30) * 0.05), 0, -2.792526803190927), deltaTime)
  1089. leftShoulder.C0 = leftShoulder.C0:Lerp(cf(-1, 0.5 - 0.1 * sin((sine + 40) * 0.05), 0) * euler(1.5707963267948966, -1.3962634015954636 + 0.17453292519943295 * sin((sine + 30) * 0.05), 1.2217304763960306), deltaTime)
  1090. rightShoulder.C0 = rightShoulder.C0:Lerp(cf(1, 0.5 - 0.1 * sin((sine + 40) * 0.05), 0) * euler(1.5707963267948966, 1.7453292519943295 - 0.08726646259971647 * sin((sine + 30) * 0.05), -1.5707963267948966), deltaTime)
  1091. leftHip.C0 = leftHip.C0:Lerp(cf(-1 + 0.06 * sin((sine + 30) * 0.05), -1.1 - 0.1 * sin(sine * 0.05), -0.11 * sin((sine + 30) * 0.05)) * euler(1.3962634015954636 - 0.08726646259971647 * sin((sine - 20) * 0.05), -1.7453292519943295, 1.7453292519943295), deltaTime)
  1092. rightHip.C0 = rightHip.C0:Lerp(cf(1 + 0.06 * sin((sine + 30) * 0.05), -1.1 - 0.1 * sin(sine * 0.05), -0.11 * sin((sine + 30) * 0.05)) * euler(2.0943951023931953 + 0.08726646259971647 * sin((sine + 40) * 0.05), 1.7453292519943295, -1.7453292519943295), deltaTime)
  1093. --local MW_animator_progressSave = "0, 0, 0, 0.1, -90, 5, -60, 0.05, 1, 0, 0, 0.1, 0, 0, 0, 0.025, 0, 0, 0, 0.1, -200, 30, 0, 0.0125, 0, 0, 0, 0.1, -90, 5, -30, 0.05, 0, 0.1, 0, 0.05, 0, 0, 0, 0.1, 0, 0, 0, 0.1, -160, 0, 0, 0.1, -1, 0, 0, 0.1, 90, 0, 0, 0.1, 0.5, -0.1, 40, 0.05, -80, 10, 30, 0.05, 0, 0, 0, 0.1, 70, 0, 0, 0.1, 1, 0, 0, 0.1, 90, 0, 0, 0.05, 0.5, -0.1, 40, 0.05, 100, -5, 30, 0.05, 0, 0, 0, 0.1, -90, 0, 0, 0.1, -1, 0.06, 30, 0.05, 80, -5, -20, 0.05, -1.1, -0.1, 0, 0.05, -100, 0, 0, 0.1, 0, -0.11, 30, 0.05, 100, 0, 0, 0.1, 1, 0.06, 30, 0.05, 120, 5, 40, 0.05, -1.1, -0.1, 0, 0.05, 100, 0, 0, 0.1, 0, -0.11, 30, 0.05, -100, 0, 0, 0.1"
  1094.  
  1095. elseif mode == "kazotsky" then
  1096.  
  1097. neck.C0 = neck.C0:Lerp(cf(0, 1, 0) * euler(-1.6580627893946132 - 0.04363323129985824 * sin(sine * 0.4), -0.12217304763960307 * sin((sine + 2.5) * 0.2), -3.1590459461097367 - 0.20943951023931956 * sin(sine * 0.2)), deltaTime)
  1098. rootJoint.C0 = rootJoint.C0:Lerp(cf(0, 0.2 + 0.25 * sin((sine + 2.5) * 0.4), 0) * euler(-1.4835298641951802 + 0.08726646259971647 * sin(sine * 0.4), 0.08726646259971647 * sin(sine * 0.2), -3.1590459461097367 + 0.17453292519943295 * sin(sine * 0.2)), deltaTime)
  1099. leftShoulder.C0 = leftShoulder.C0:Lerp(cf(-0.7 - 0.07 * sin((sine - 2.5) * 0.2), 0.2 + 0.05 * sin(sine * 0.2), -0.2 + 0.1 * sin(sine * 0.2)) * euler(0.08726646259971647 * sin(sine * 0.4), 3.2288591161895095 + 0.17453292519943295 * sin(sine * 0.2), -1.4835298641951802 - 0.03490658503988659 * sin((sine - 15) * 0.4)), deltaTime)
  1100. rightShoulder.C0 = rightShoulder.C0:Lerp(cf(0.7 - 0.07 * sin((sine - 2.5) * 0.2), 0.2 - 0.05 * sin(sine * 0.2), -0.2 - 0.1 * sin(sine * 0.2)) * euler(0.08726646259971647 * sin(sine * 0.4), 3.0543261909900767 + 0.17453292519943295 * sin(sine * 0.2), 1.4835298641951802 + 0.03490658503988659 * sin((sine - 15) * 0.4)), deltaTime)
  1101. leftHip.C0 = leftHip.C0:Lerp(cf(-1, -1, 0) * euler(1.3089969389957472 + 0.8726646259971648 * sin(sine * 0.2), -1.6580627893946132 + 0.08726646259971647 * sin(sine * 0.2), 0.8726646259971648), deltaTime)
  1102. rightHip.C0 = rightHip.C0:Lerp(cf(1, -1, 0) * euler(1.3089969389957472 - 0.8726646259971648 * sin(sine * 0.2), 1.6580627893946132 + 0.08726646259971647 * sin(sine * 0.2), -0.8726646259971648), deltaTime)
  1103. --local MW_animator_progressSave = "0, 0, 0, 0.1, -95, -2.5, 0, 0.4, 1, 0, 0, 0.1, 0, -7, 2.5, 0.2, 0, 0, 0, 0.1, -181, -12, 0, 0.2, 0, 0, 0, 0.1, -85, 5, 0, 0.4, 0.2, 0.25, 2.5, 0.4, 0, 5, 0, 0.2, 0, 0, 0, 0.1, -181, 10, 0, 0.2, -0.7, -0.07, -2.5, 0.2, 0, 5, 0, 0.4, 0.2, 0.05, 0, 0.2, 185, 10, 0, 0.2, -0.2, 0.1, 0, 0.2, -85, -2, -15, 0.4, 0.7, -0.07, -2.5, 0.2, 0, 5, 0, 0.4, 0.2, -0.05, 0, 0.2, 175, 10, 0, 0.2, -0.2, -0.1, 0, 0.2, 85, 2, -15, 0.4, -1, 0, 0, 0.1, 75, 50, 0, 0.2, -1, 0, 0, 0.1, -95, 5, 0, 0.2, 0, 0, 0, 0.1, 50, 0, 0, 0.1, 1, 0, 0, 0.1, 75, -50, 0, 0.2, -1, 0, 0, 0.1, 95, 5, 0, 0.2, 0, 0, 0, 0.1, -50, 0, 0, 0.1"
  1104.  
  1105. elseif mode == "sit" then
  1106.  
  1107. neck.C0 = neck.C0:Lerp(cf(0, 1, 0) * euler(-1.5882496193148399 - 0.04363323129985824 * sin((sine - 35) * 0.05), 0, -3.1590459461097367 + 0.5235987755982988 * sin(sine * 0.0125)), deltaTime)
  1108. rootJoint.C0 = rootJoint.C0:Lerp(cf(0, -1.75 + 0.1 * sin(sine * 0.05), 0.0375 * sin((sine + 5) * 0.05)) * euler(-1.3962634015954636 + 0.04363323129985824 * sin((sine + 5) * 0.05), 0, -3.1590459461097367), deltaTime)
  1109. leftShoulder.C0 = leftShoulder.C0:Lerp(cf(-1, 0.25 - 0.1 * sin(sine * 0.05), 0) * euler(0, -1.3962634015954636 + 0.08726646259971647 * sin((sine + 10) * 0.05), 0.17453292519943295 - 0.04363323129985824 * sin((sine + 5) * 0.05)), deltaTime)
  1110. rightShoulder.C0 = rightShoulder.C0:Lerp(cf(1, 0.25 - 0.1 * sin(sine * 0.05), 0) * euler(0, 1.3962634015954636 - 0.08726646259971647 * sin((sine + 10) * 0.05), -0.17453292519943295 + 0.04363323129985824 * sin((sine + 5) * 0.05)), deltaTime)
  1111. leftHip.C0 = leftHip.C0:Lerp(cf(-1, -0.75 - 0.05 * sin(sine * 0.05), -0.5) * euler(1.3089969389957472 - 0.08726646259971647 * sin((sine + 5) * 0.05), -1.5882496193148399, 0), deltaTime)
  1112. rightHip.C0 = rightHip.C0:Lerp(cf(1, 0.25 - 0.15 * sin(sine * 0.05), -1 - 0.17 * sin((sine + 7.5) * 0.05)) * euler(0, 1.5707963267948966, -0.12217304763960307 * sin((sine + 5) * 0.05)), deltaTime)
  1113. --local MW_animator_progressSave = "0, 0, 0, 0.1, -91, -2.5, -35, 0.05, 1, 0, 0, 0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, -181, 30, 0, 0.0125, 0, 0, 0, 0.1, -80, 2.5, 5, 0.05, -1.75, 0.1, 0, 0.05, 0, 0, 0, 0.1, 0, 0.0375, 5, 0.05, -181, 0, 0, 0.1, -1, 0, 0, 0.1, -0, 0, 0, 0.1, 0.25, -0.1, 0, 0.05, -80, 5, 10, 0.05, 0, 0, 0, 0.1, 10, -2.5, 5, 0.05, 1, 0, 0, 0.1, 0, 0, 0, 0.1, 0.25, -0.1, 0, 0.05, 80, -5, 10, 0.05, 0, 0, 0, 0.1, -10, 2.5, 5, 0.05, -1, 0, 0, 0.1, 75, -5, 5, 0.05, -0.75, -0.05, 0, 0.05, -91, 0, 0, 0.1, -0.5, 0, 0, 0.1, 0, 0, 0, 0.1, 1, 0, 0, 0.1, 0, 0, 5, 0.05, 0.25, -0.15, 0, 0.05, 90, 0, 0, 0.1, -1, -0.17, 7.5, 0.05, 0, -7, 5, 0.05"
  1114.  
  1115. elseif mode == "wave" then
  1116.  
  1117. neck.C0 = neck.C0:Lerp(cf(0, 1, 0) * euler(-1.5882496193148399, -0.17453292519943295 * sin((sine - 6) * 0.1), -3.1590459461097367), deltaTime)
  1118. rootJoint.C0 = rootJoint.C0:Lerp(cf(0.2 * sin((sine - 10) * 0.1), 0, 0) * euler(-1.5707963267948966, 0.17453292519943295 * sin((sine - 10) * 0.1), -3.1590459461097367), deltaTime)
  1119. leftShoulder.C0 = leftShoulder.C0:Lerp(cf(-1 + 0.025 * sin((sine - 20) * 0.1), 0.5, 0) * euler(1.5707963267948966, -1.631882850614698 + 0.061086523819801536 * sin((sine - 20) * 0.1), 1.5707963267948966), deltaTime)
  1120. rightShoulder.C0 = rightShoulder.C0:Lerp(cf(1 - 0.15 * sin(sine * 0.1), 1.4, 0) * euler(1.5707963267948966, 1.3962634015954636 + 0.3490658503988659 * sin(sine * 0.1), 1.5707963267948966), deltaTime)
  1121. leftHip.C0 = leftHip.C0:Lerp(cf(-1 - 0.025 * sin((sine - 10) * 0.1), -0.95 - 0.175 * sin((sine - 10) * 0.1), 0) * euler(1.5707963267948966, -1.7453292519943295 + 0.17453292519943295 * sin((sine - 10) * 0.1), 1.5707963267948966), deltaTime)
  1122. rightHip.C0 = rightHip.C0:Lerp(cf(1 - 0.025 * sin((sine - 10) * 0.1), -0.95 + 0.175 * sin((sine - 10) * 0.1), 0) * euler(1.5707963267948966, 1.7453292519943295 + 0.17453292519943295 * sin((sine - 10) * 0.1), -1.5707963267948966), deltaTime)
  1123. --local MW_animator_progressSave = "0, 0, 0, 0.1, -91, 0, 0, 0.1, 1, 0, 0, 0.1, 0, -10, -6, 0.1, 0, 0, 0, 0.1, -181, 0, 0, 0.1, 0, 0.2, -10, 0.1, -90, 0, 0, 0.1, 0, 0, 0, 0.1, 0, 10, -10, 0.1, 0, 0, 0, 0.1, -181, 0, 0, 0.1, -1, 0.025, -20, 0.1, 90, 0, 0, 0.1, 0.5, 0, 0, 0.1, -93.5, 3.5, -20, 0.1, 0, 0, 0, 0.1, 90, 0, 0, 0.1, 1, -0.15, 0, 0.1, 90, 0, 0, 0.1, 1.4, 0, 0, 0.1, 80, 20, 0, 0.1, 0, 0, 0, 0.1, 90, 0, 0, 0.1, -1, -0.025, -10, 0.1, 90, 0, 0, 0.1, -0.95, -0.175, -10, 0.1, -100, 10, -10, 0.1, 0, 0, 0, 0.1, 90, 0, 0, 0.1, 1, -0.025, -10, 0.1, 90, 0, 0, 0.1, -0.95, 0.175, -10, 0.1, 100, 10, -10, 0.1, 0, 0, 0, 0.1, -90, 0, 0, 0.1"
  1124.  
  1125. elseif mode == "lay" then
  1126.  
  1127. neck.C0 = neck.C0:Lerp(cf(0, 1, 0) * euler(-2.007128639793479 - 0.08726646259971647 * sin(sine * 0.05), 0, -3.1590459461097367 + 0.04363323129985824 * sin(sine * 0.05)), deltaTime)
  1128. rootJoint.C0 = rootJoint.C0:Lerp(cf(0, -2.4 - 0.05 * sin(sine * 0.05), 0) * euler(-0.04363323129985824 + 0.04363323129985824 * sin(sine * 0.05), 0, -3.1590459461097367), deltaTime)
  1129. leftShoulder.C0 = leftShoulder.C0:Lerp(cf(-0.6, 1.2, 0) * euler(1.9198621771937625 - 0.1308996938995747 * sin(sine * 0.05), -2.2689280275926285, -1.5707963267948966), deltaTime)
  1130. rightShoulder.C0 = rightShoulder.C0:Lerp(cf(1, 0.5, -0.3) * euler(1.2217304763960306, 0.17453292519943295, -1.0471975511965976 - 0.04363323129985824 * sin(sine * 0.05)), deltaTime)
  1131. leftHip.C0 = leftHip.C0:Lerp(cf(-1, -1 - 0.04 * sin(sine * 0.05), -1) * euler(-0.04363323129985824 * sin(sine * 0.05), -1.5707963267948966, 0.8726646259971648), deltaTime)
  1132. rightHip.C0 = rightHip.C0:Lerp(cf(0, -1, 0) * euler(1.5707963267948966 - 0.04363323129985824 * sin(sine * 0.05), -1.4835298641951802, 1.5707963267948966), deltaTime)
  1133. --local MW_animator_progressSave = "0, 0, 0, 0.1, -115, -5, 0, 0.05, 1, 0, 0, 0.1, 0, 0, 0, 0.1, 0, , 0, 0.05, -181, 2.5, 0, 0.05, 0, 0, 0, 0.1, -2.5, 2.5, 0, 0.05, -2.4, -0.05, 0, 0.05, 0, 0, 0, 0.1, 0, 0, 0, 0.1, -181, 0, 0, 0.1, -0.6, 0, 0, 0.1, 110, -7.5, 0, 0.05, 1.2, 0, 0, 0.1, -130, 0, 0, 0.1, 0, 0, 0, 0.1, -90, 0, 0, 0.1, 1, 0, 0, 0.1, 70, 0, 0, 0.1, 0.5, 0, 0, 0.1, 10, 0, 0, 0.1, -0.3, 0, 0, 0.1, -60, -2.5, 0, 0.05, -1, 0, 0, 0.1, 0, -2.5, 0, 0.05, -1, -0.04, 0, 0.05, -90, 0, 0, 0.1, -1, 0, 0, 0.1, 50, 0, 0, 0.1, -, 0, 0, 0.1, 90, -2.5, 0, 0.05, -1, 0, 0, 0.1, -85, 0, 0, 0.1, -, 0, 0, 0.1, 90, 0, 0, 0.1"
  1134.  
  1135. elseif mode == "dab" then
  1136.  
  1137. neck.C0 = neck.C0:Lerp(cf(0, 1, 0) * euler(-2.0943951023931953 - 0.08726646259971647 * sin((sine + 10) * 0.05), -0.08726646259971647, -3.490658503988659), deltaTime)
  1138. rootJoint.C0 = rootJoint.C0:Lerp(cf(0, 0.1 * sin(sine * 0.05), 0) * euler(-1.6580627893946132, 0.08726646259971647, -3.2288591161895095), deltaTime)
  1139. leftShoulder.C0 = leftShoulder.C0:Lerp(cf(-1.5, 0.5, 0) * euler(-1.7453292519943295, 0.17453292519943295 - 0.05235987755982989 * sin((sine + 30) * 0.05), -1.4835298641951802 + 0.08726646259971647 * sin((sine - 5) * 0.05)), deltaTime)
  1140. rightShoulder.C0 = rightShoulder.C0:Lerp(cf(1, 1.2, 0) * euler(-0.5235987755982988 - 0.08726646259971647 * sin((sine + 15) * 0.05), 2.443460952792061, 1.7453292519943295), deltaTime)
  1141. leftHip.C0 = leftHip.C0:Lerp(cf(-1, -1 - 0.1 * sin(sine * 0.05), 0) * euler(1.5707963267948966, -1.7453292519943295, 1.5707963267948966), deltaTime)
  1142. rightHip.C0 = rightHip.C0:Lerp(cf(1, -0.9 - 0.1 * sin(sine * 0.05), 0) * euler(1.7453292519943295, 1.7453292519943295, -1.5707963267948966), deltaTime)
  1143. --local MW_animator_progressSave = "0, 0, 0, 0.1, -120, -5, 10, 0.05, 1, 0, 0, 0.1, -5, 0, 0, 0.1, 0, 0, 0, 0.1, -200, 0, 0, 0.1, 0, 0, 0, 0.1, -95, 0, 0, 0.1, 0, 0.1, 0, 0.05, 5, 0, 0, 0.1, 0, 0, 0, 0.1, -185, 0, 0, 0.1, -1.5, 0, 0, 0.1, -100, 0, 0, 0.1, 0.5, -0., 30, 0.05, 10, -3, 30, 0.05, 0, 0, 0, 0.1, -85, 5, -5, 0.05, 1, 0, 0, 0.1, -30, -5, 15, 0.05, 1.2, 0, 0, 0.1, 140, 0, 0, 0.1, 0, 0, 0, 0.1, 100, 0, 0, 0.1, -1, 0, 0, 0.1, 90, 0, 0, 0.1, -1, -0.1, 0, 0.05, -100, 0, 0, 0.1, 0, 0, 0, 0.1, 90, 0, 0, 0.1, 1, 0, 0, 0.1, 100, 0, 0, 0.1, -0.9, -0.1, 0, 0.05, 100, 0, 0, 0.1, 0, 0, 0, 0.1, -90, 0, 0, 0.1"
  1144.  
  1145. elseif mode == "dance" then
  1146.  
  1147. neck.C0 = neck.C0:Lerp(cf(0, 1, 0) * euler(-1.5882496193148399 + 0.08726646259971647 * sin((sine + 15) * 0.1), 0.08726646259971647 * sin(sine * 0.1), -2.9670597283903604 + 0.2617993877991494 * sin((sine + 15) * 0.1)), deltaTime)
  1148. rootJoint.C0 = rootJoint.C0:Lerp(cf(-0.1 * sin(sine * 0.1), 0.1 * sin(sine * 0.1), 0) * euler(-1.5882496193148399 + 0.17453292519943295 * sin((sine + 5) * 0.1), 0, -3.1590459461097367 + 0.2617993877991494 * sin(sine * 0.1)), deltaTime)
  1149. leftShoulder.C0 = leftShoulder.C0:Lerp(cf(-1, 0.75 + 0.25 * sin(sine * 0.1), -0.5) * euler(2.792526803190927, -1.5707963267948966 - 1.2217304763960306 * sin((sine + 10) * 0.1), 1.5707963267948966 - 0.6981317007977318 * sin((sine + 10) * 0.1)), deltaTime)
  1150. rightShoulder.C0 = rightShoulder.C0:Lerp(cf(0.7, 0.5, 0) * euler(1.9198621771937625, 0.5235987755982988 + 0.08726646259971647 * sin((sine + 5) * 0.1), -1.5707963267948966), deltaTime)
  1151. leftHip.C0 = leftHip.C0:Lerp(cf(-1, -1, 0) * euler(1.5707963267948966 - 0.17453292519943295 * sin((sine + 5) * 0.1), -1.7453292519943295 + 0.08726646259971647 * sin(sine * 0.1), 1.5707963267948966), deltaTime)
  1152. rightHip.C0 = rightHip.C0:Lerp(cf(1, -1, 0) * euler(1.5707963267948966, 1.7453292519943295 + 0.08726646259971647 * sin(sine * 0.1), -1.5707963267948966 - 0.3490658503988659 * sin((sine + 5) * 0.1)), deltaTime)
  1153. --local MW_animator_progressSave = "0, 0, 0, 0.1, -91, 5, 15, 0.1, 1, 0, 0, 0.1, 0, 5, 0, 0.1, 0, 0, 0, 0.1, -170, 15, 15, 0.1, 0, -0.1, 0, 0.1, -91, 10, 5, 0.1, 0, 0.1, 0, 0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, -181, 15, 0, 0.1, -1, 0, 0, 0.1, 160, 0, 0, 0.1, 0.75, 0.25, 0, 0.1, -90, -70, 10, 0.1, -0.5, 0, 0, 0.1, 90, -40, 10, 0.1, 0.7, 0, 0, 0.1, 110, 0, 0, 0.1, 0.5, 0, 0, 0.1, 30, 5, 5, 0.1, 0, 0, 0, 0.1, -90, 0, 0, 0.1, -1, 0, 0, 0.1, 90, -10, 5, 0.1, -1, 0, 0, 0.1, -100, 5, 0, 0.1, 0, 0, 0, 0.1, 90, 0, 0, 0.1, 1, 0, 0, 0.1, 90, 0, 0, 0.1, -1, 0, 0, 0.1, 100, 5, 0, 0.1, 0, 0, 0, 0.1, -90, -20, 5, 0.1"
  1154.  
  1155. elseif mode == "L" then
  1156.  
  1157. neck.C0 = neck.C0:Lerp(cf(0, 1, 0) * euler(-1.5882496193148399 + 0.08726646259971647 * sin((sine - 1.75) * 0.4), 0.08726646259971647 * sin((sine + 2.5) * 0.2), 3.141592653589793), 0.2)
  1158. rootJoint.C0 = rootJoint.C0:Lerp(cf(0, 0.1 + 0.2 * sin((sine + 3.75) * 0.4), 0) * euler(-1.4835298641951802 + 0.04363323129985824 * sin((sine + 3.75) * 0.4), -0.08726646259971647 * sin(sine * 0.2), 3.141592653589793), 0.2)
  1159. leftShoulder.C0 = leftShoulder.C0:Lerp(cf(-0.7, 0.42, -0.2) * euler(-0.8726646259971648, -2.2689280275926285 + 0.17453292519943295 * sin(sine * 0.2), -1.3962634015954636), 0.2)
  1160. rightShoulder.C0 = rightShoulder.C0:Lerp(cf(1, 1, 0) * euler(0.7853981633974483, 2.443460952792061, 1.5707963267948966 + 0.08726646259971647 * sin((sine - 1.75) * 0.4)), 0.2)
  1161. leftHip.C0 = leftHip.C0:Lerp(cf(-1, -0.8 - 0.1 * sin((sine - 1.75) * 0.2), 0) * euler(1.3962634015954636, -2.0943951023931953 + 0.5235987755982988 * sin(sine * 0.2), 1.2217304763960306 + 0.5235987755982988 * sin(sine * 0.2)), 0.2)
  1162. rightHip.C0 = rightHip.C0:Lerp(cf(1, -0.8 + 0.1 * sin((sine - 1.75) * 0.2), 0) * euler(1.3962634015954636, 2.0943951023931953 + 0.5235987755982988 * sin(sine * 0.2), -1.2217304763960306 + 0.5235987755982988 * sin(sine * 0.2)), 0.2)
  1163. --local MW_animator_progressSave = "0, 0, 0, 0.1, -91, 5, -1.75, 0.4, 1, 0, 0, 0.1, -0, 5, 2.5, 0.2, 0, 0, 0, 0.1, 180, 0, 0, 0.1, 0, 0, 0, 0.1, -85, 2.5, 3.75, 0.4, 0.1, 0.2, 3.75, 0.4, -0, -5, 0, 0.2, 0, 0, 0, 0.1, 180, 0, 0, 0.1, -0.7, 0, 0, 0.1, -50, 0, 0, 0.1, 0.42, 0, 0, 0.1, -130, 10, 0, 0.2, -0.2, 0, 0, 0.1, -80, 0, -10, 0.1, 1, 0, 0, 0.1, 45, 0, -5, 0.1, 1, 0, 0, 0.1, 140, -7, 3.75, 0., 0, 0, 0, 0.1, 90, 5, -1.75, 0.4, -1, 0, 0, 0.1, 80, 0, 0, 0.1, -0.8, -0.1, -1.75, 0.2, -120, 30, 0, 0.2, 0, 0, 0, 0.1, 70, 30, 0, 0.2, 1, 0, 0, 0.1, 80, 0, 0, 0.1, -0.8, 0.1, -1.75, 0.2, 120, 30, 0, 0.2, 0, 0, 0, 0.1, -70, 30, 0, 0.2"
  1164.  
  1165. elseif mode == "fly" then
  1166.  
  1167. neck.C0 = neck.C0:Lerp(cf(0, 1, 0) * euler(-1.9198621771937625 + -0.08726646259971647 * sin((sine + 15) * 0.05), 0.5235987755982988 + 0.08726646259971647 * sin((sine + 10) * 0.05), -3.1590459461097367), deltaTime)
  1168. rootJoint.C0 = rootJoint.C0:Lerp(cf(0, 5 + 1 * sin(sine * 0.05), 0) * euler(-1.9198621771937625 + -0.17453292519943295 * sin((sine + 30) * 0.05), 0.3490658503988659 + 0.08726646259971647 * sin((sine + 30) * 0.05), 2.9670597283903604), deltaTime)
  1169. leftShoulder.C0 = leftShoulder.C0:Lerp(cf(-0.7, 0.1 + 0.1 * sin(sine * 0.05), -0.5) * euler(-0.08726646259971647 * sin((sine + 15) * 0.05), 2.9670597283903604, -1.7453292519943295 + 0.05235987755982989 * sin((sine + 10) * 0.05)), deltaTime)
  1170. rightShoulder.C0 = rightShoulder.C0:Lerp(cf(1, 0.1 + -0.15 * sin((sine + 10) * 0.05), -1.1) * euler(2.0943951023931953, 1.9198621771937625 + -0.03490658503988659 * sin((sine + 30) * 0.05), 1.5707963267948966), deltaTime)
  1171. leftHip.C0 = leftHip.C0:Lerp(cf(-1, -1, 0) * euler(1.5707963267948966, -1.3089969389957472 + 0.17453292519943295 * sin((sine + 20) * 0.05), 1.1344640137963142 + -0.17453292519943295 * sin((sine + 55) * 0.05)), deltaTime)
  1172. rightHip.C0 = rightHip.C0:Lerp(cf(1, -1, 0) * euler(1.5707963267948966, 2.007128639793479 + -0.08726646259971647 * sin((sine + 10) * 0.05), -1.1344640137963142 + 0.17453292519943295 * sin((sine + 55) * 0.05)), deltaTime)
  1173. --[[MW_animator progress save: 0, 0, 0, 0.1, -110, -5, 15, 0.05, 1, 0, 0, 0.1, 30, 5, 10, 0.05, 0, 0, 0, 0.1, -181, 0, 30, 0.025, 0, 0, 0, 0.025, -110, -10, 30, 0.05, 5, 1, 0, 0.05, 20, 5, 30, 0.05, 0, 0, 0, 0.0125, 170, 0, 0, 0.025, -0.7, 0, 0, 0.1, 0, -5, 15, 0.05, 0.1, 0.1, 0, 0.05, 170, 0, 0, 0.1, -0.5, 0, 0, 0.1, -100, 3, 10, 0.05, 1, 0, 0, 0.1, 120, 0, 0, 0.1, 0.1, -0.15, 10, 0.05, 110, -2, 30, 0.05, -1.1, 0, 0, 0.1, 90, 0, 0, 0.1, -1, 0, 0, 0.1, 90, 0, 0, 0.1, -1, 0, 0, 0.1, -75, 10, 20, 0.05, 0, 0, 0, 0.1, 65, -10, 55, 0.05, 1, 0, 0, 0.1, 90, 0, 30, 0.05, -1, 0, 0, 0.1, 115, -5, 10, 0.05, 0, 0, 0, 0.1, -65, 10, 55, 0.05]]
  1174.  
  1175. elseif mode == "floss" then
  1176.  
  1177. neck.C0 = neck.C0:Lerp(cf(0, 1, 0) * euler(-1.5882496193148399 + 0.08726646259971647 * sin((sine - 3.75) * 0.15), -0.1308996938995747 * sin(sine * 0.2), -3.1590459461097367 + 0.5235987755982988 * sin(sine * 0.0125)), deltaTime)
  1178. rootJoint.C0 = rootJoint.C0:Lerp(cf(-0.2 * sin(sine * 0.2), 0, 0) * euler(-1.5882496193148399, 0.17453292519943295 * sin(sine * 0.2), -3.1590459461097367), deltaTime)
  1179. leftShoulder.C0 = leftShoulder.C0:Lerp(cf(-1 + 0.2 * sin(sine * 0.2), 0.5 + 0.2 * sin(sine * 0.2), 0) * euler(1.5707963267948966 + 0.6981317007977318 * sin((sine + 7.5) * 0.1), -1.5882496193148399 + 0.7853981633974483 * sin(sine * 0.2), 1.5707963267948966), deltaTime)
  1180. rightShoulder.C0 = rightShoulder.C0:Lerp(cf(1 + 0.2 * sin(sine * 0.2), 0.4 - 0.2 * sin(sine * 0.2), 0) * euler(1.5707963267948966 + 0.6981317007977318 * sin((sine + 25) * 0.1), 1.5707963267948966 + 0.7853981633974483 * sin(sine * 0.2), -1.5707963267948966), deltaTime)
  1181. leftHip.C0 = leftHip.C0:Lerp(cf(-1, -1 - 0.2 * sin(sine * 0.2), 0) * euler(1.5707963267948966, -1.7453292519943295 + 0.3490658503988659 * sin(sine * 0.2), 1.5707963267948966), deltaTime)
  1182. rightHip.C0 = rightHip.C0:Lerp(cf(1, -1 + 0.2 * sin(sine * 0.2), 0) * euler(1.5707963267948966, 1.7453292519943295 + 0.3490658503988659 * sin(sine * 0.2), -1.5707963267948966), deltaTime)
  1183. --local MW_animator_progressSave = "0, 0, 0, 0.1, -91, 5, -3.75, 0.15, 1, 0, 0, 0.1, 0, -7.5, 0, 0.2, 0, 0, 0, 0.1, -181, 30, 0, 0.0125, 0, -0.2, 0, 0.2, -91, 0, 15, 0, 0, 0, 0, 0, 0, 10, 0, 0.2, 0, 0, 0, 0.1, -181, 0, 0, 0.1, -1, 0.2, 0, 0.2, 90, 40, 7.5, 0.1, 0.5, 0.2, 0, 0.2, -91, 45, 0, 0.2, 0, 0, 0, 0.1, 90, 0, 0, 0.1, 1, 0.2, 0, 0.2, 90, 40, 25, 0.1, 0.4, -0.2, 0, 0.2, 90, 45, 0, 0.2, 0, 0, 0, 0.1, -90, 0, 0, 0.1, -1, 0, 0, 0.1, 90, 0, 0, 0.1, -1, -0.2, 0, 0.2, -100, 20, 0, 0.2, 0, 0, 0, 0.1, 90, 0, 0, 0.1, 1, 0, 0, 0.1, 90, 0, 0, 0.1, -1, 0.2, 0, 0.2, 100, 20, 0, 0.2, 0, 0, 0, 0.1, -90, 0, 0, 0.1"
  1184.  
  1185. elseif mode == "rickroll" then
  1186.  
  1187. neck.C0 = neck.C0:Lerp(cf(0, 1, 0) * euler(-1.6580627893946132 + 0.03490658503988659 * sin((sine - 10) * 0.075), -0.08726646259971647 * sin((sine + 10) * 0.0375), -3.141592653589793 - 0.17453292519943295 * sin((sine + 20) * 0.0375)), deltaTime)
  1188. rootJoint.C0 = rootJoint.C0:Lerp(cf(0.1 * sin((sine + 5) * 0.0375), -0.4 + 0.3 * sin(sine * 0.075), 0) * euler(-1.3962634015954636, 0.12217304763960307 * sin((sine + 10) * 0.0375), -3.141592653589793 + 0.17453292519943295 * sin((sine + 15) * 0.0375)), deltaTime)
  1189. leftShoulder.C0 = leftShoulder.C0:Lerp(cf(-1, -0.2, 0.1) * euler(3.3161255787892263 - 0.08726646259971647 * sin(sine * 0.2), -1.5707963267948966 - 0.2617993877991494 * sin(sine * 0.2), 1.5707963267948966), deltaTime)
  1190. rightShoulder.C0 = rightShoulder.C0:Lerp(cf(1, -0.2, 0.1) * euler(3.3161255787892263 + 0.08726646259971647 * sin(sine * 0.2), 1.5707963267948966 - 0.2617993877991494 * sin(sine * 0.2), -1.5707963267948966), deltaTime)
  1191. leftHip.C0 = leftHip.C0:Lerp(cf(-1, -0.75 - 0.25 * sin(sine * 0.075), -0.2) * euler(1.2217304763960306, -1.5707963267948966 + 0.1308996938995747 * sin((sine + 10) * 0.0375), 1.5707963267948966), deltaTime)
  1192. rightHip.C0 = rightHip.C0:Lerp(cf(1, -0.75 - 0.3 * sin(sine * 0.075), -0.2) * euler(1.2217304763960306, 1.5707963267948966 + 0.1308996938995747 * sin((sine + 10) * 0.0375), -1.5707963267948966), deltaTime)
  1193. --local MW_animator_progressSave = "0, 0, 0, 0.1, -95, 2, -10, 0.075, 1, 0, 0, 0.1, 0, -5, 10, 0.0375, 0, 0, 0, 0.1, -180, -10, 20, 0.0375, 0, 0.1, 5, 0.0375, -80, 0, 0, 0.1, -0.4, 0.3, 0, 0.075, 0, 7, 10, 0.0375, 0, 0, 0, 0.1, -180, 10, 15, 0.0375, -1, 0, 0, 0.1, 190, -5, 0, 0.2, -0.2, 0, 0, 0.1, -90, -15, 0, 0.2, 0.1, 0, 0, 0.1, 90, 0, 0, 0.1, 1, 0, 0, 0.1, 190, 5, 0, 0.2, -0.2, 0, 0, 0.1, 90, -15, 0, 0.2, 0.1, 0, 0, 0.1, -90, 0, 0, 0.1, -1, 0, 0, 0.1, 70, 0, 0, 0.1, -0.75, -0.25, 0, 0.075, -90, 7.5, 10, 0.0375, -0.2, 0, 0, 0.1, 90, 0, 0, 0.1, 1, 0, 0, 0.1, 70, 0, 0, 0.1, -0.75, -0.3, 0, 0.075, 90, 7.5, 10, 0.0375, -0.2, 0, 0, 0.1, -90, 0, 0, 0.1"
  1194.  
  1195. end
  1196. end
  1197. end)
Add Comment
Please, Sign In to add comment