Advertisement
ForkFullFight

Uhh Reanimation method test

Jun 11th, 2023
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 65.53 KB | None | 0 0
  1. --[[
  2. fe nameless animations v4
  3. made by MyWorld#4430
  4. discord.gg/pYVHtSJmEY
  5. no hats needed, r15 supported
  6. ]]
  7.  
  8. if "wanna use myworld reanimate" 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 = 1 --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 c = game:GetService("Players").LocalPlayer.Character
  901. if not c then return end
  902. local ws = game:GetService("Workspace")
  903. c.AncestryChanged:Connect(function()
  904. if not c:IsDescendantOf(ws) then
  905. c = nil
  906. end
  907. end)
  908. local rs = game:GetService("RunService")
  909. local stepped, renderstepped, heartbeat = rs.Stepped, rs.RenderStepped, rs.Heartbeat
  910. local function gp(parent, name, classname)
  911. if typeof(parent) == "Instance" then
  912. for i, v in pairs(parent:GetChildren()) do
  913. if (v.Name == name) and v:IsA(classname) then
  914. return v
  915. end
  916. end
  917. end
  918. return nil
  919. end
  920.  
  921. local function joint(name, parent, Part0, Part1, fakejoint)
  922. fakejoint.C0 = CFrame.new()
  923. fakejoint.C1 = CFrame.new()
  924. local joint = gp(parent, name, "Motor6D")
  925. if joint then
  926. fakejoint.C0 = joint.C0
  927. fakejoint.C1 = joint.C1
  928. end
  929. local con = nil
  930. con = stepped:Connect(function()
  931. if not c then
  932. return con:Disconnect()
  933. end
  934. local fix = nil
  935. fix = function()
  936. if not joint then
  937. joint = Instance.new("Motor6D")
  938. joint.Changed:Connect(fix)
  939. joint.Destroying:Connect(function() joint = nil end)
  940. end
  941. joint.Part0 = Part0
  942. joint.Part1 = Part1
  943. joint.C0 = fakejoint.C0
  944. joint.C1 = fakejoint.C1
  945. joint.Parent = parent
  946. end
  947. fix()
  948. end)
  949. end
  950.  
  951. local function part(name)
  952. local part = gp(c, name, "BasePart")
  953. if not part then
  954. part = Instance.new("Part")
  955. part.Name = name
  956. part.Transparency = 1
  957. part.CanCollide = false
  958. part.Massless = true
  959. part.Size = Vector3.new(1, 1, 1)
  960. part.Parent = c
  961. end
  962. local size = part.Size
  963. part.Destroying:Connect(function()
  964. part = nil
  965. c = nil
  966. end)
  967. local con = nil
  968. con = stepped:Connect(function()
  969. if not part then
  970. return con:Disconnect()
  971. end
  972. part.Anchored = false
  973. part.Name = name
  974. part.Size = size
  975. part.CanQuery = false
  976. part.CanTouch = false
  977. part.Parent = c
  978. end)
  979. return part
  980. end
  981.  
  982. local Torso = part("Torso")
  983. local RightArm = part("Right Arm")
  984. local LeftArm = part("Left Arm")
  985. local LeftLeg = part("Left Leg")
  986. local RightLeg = part("Right Leg")
  987. local Head = part("Head")
  988. local HumanoidRootPart = part("HumanoidRootPart")
  989.  
  990. local RootJoint = {}
  991. local RightShoulder = {}
  992. local LeftShoulder = {}
  993. local RightHip = {}
  994. local LeftHip = {}
  995. local Neck = {}
  996.  
  997. joint("Neck", Torso, Torso, Head, Neck)
  998. joint("RootJoint", HumanoidRootPart, HumanoidRootPart, Torso, RootJoint)
  999. joint("Right Shoulder", Torso, Torso, RightArm, RightShoulder)
  1000. joint("Left Shoulder", Torso, Torso, LeftArm, LeftShoulder)
  1001. joint("Right Hip", Torso, Torso, RightLeg, RightHip)
  1002. joint("Left Hip", Torso, Torso, LeftLeg, LeftHip)
  1003.  
  1004. local animate = gp(c, "Animate", "LocalScript")
  1005. if animate then
  1006. animate.Disabled = true
  1007. end
  1008.  
  1009. local hum = c:FindFirstChildOfClass("Humanoid") or Instance.new("Humanoid", c)
  1010. local states = {
  1011. [0]=false,[8]=true,
  1012. [10]=false,[12]=false,
  1013. [11]=false,[1]=false,
  1014. [2]=true,[3]=true,
  1015. [7]=true,[6]=false,
  1016. [5]=true,[13]=false,
  1017. [14]=false,[15]=false,
  1018. [4]=false,[16]=false
  1019. }
  1020. for i, v in pairs(states) do
  1021. hum:SetStateEnabled(i, v)
  1022. end
  1023. for i, v in pairs(hum:GetPlayingAnimationTracks()) do
  1024. v:Stop()
  1025. end
  1026. hum.RigType = Enum.HumanoidRigType.R6
  1027. hum.BreakJointsOnDeath = false
  1028. hum.RequiresNeck = false
  1029. hum.MaxHealth = 0
  1030. hum.Health = 0
  1031. hum:ChangeState(8)
  1032.  
  1033. local modes = {
  1034. q = "lay",
  1035. e = "sit",
  1036. r = "rickroll",
  1037. t = "wave",
  1038. y = "dab",
  1039. u = "dance",
  1040. p = "T",
  1041. f = "float",
  1042. g = "floss",
  1043. h = "emote",
  1044. j = "pushups",
  1045. k = "kazotsky",
  1046. l = "L"
  1047. }
  1048. for i, v in pairs(modes) do
  1049. if type(i) == "string" then
  1050. modes[Enum.KeyCode[i:upper()]] = v
  1051. end
  1052. end
  1053. local uis, mode = game:GetService("UserInputService"), ""
  1054. uis.InputBegan:Connect(function(key)
  1055. if uis:GetFocusedTextBox() then return end
  1056. key = key.KeyCode
  1057. if mode == modes[key] then
  1058. mode = ""
  1059. else
  1060. mode = modes[key] or mode
  1061. end
  1062. end)
  1063.  
  1064. local cf, v3, euler, sin, sine, abs = CFrame.new, Vector3.new, CFrame.fromEulerAnglesXYZ, math.sin, 0, math.abs
  1065. local con = nil
  1066. con = renderstepped:Connect(function(deltaTime)
  1067. if not c then
  1068. return con:Disconnect()
  1069. end
  1070. local vel = HumanoidRootPart.Velocity
  1071. sine += deltaTime
  1072. deltaTime *= 10
  1073. if vel.Magnitude > 2 then
  1074. if abs(vel.X) + abs(vel.Z) > abs(vel.Y) then -- walk
  1075.  
  1076. RightShoulder.C0 = RightShoulder.C0:Lerp(cf(1, 0.5, 0) * euler(-0.6108652381980153 * sin(sine * 8), 1.5707963267948966 + 0.17453292519943295 * sin(sine * 8), 0), deltaTime)
  1077. RootJoint.C0 = RootJoint.C0:Lerp(cf(0, 0.2 * sin(sine * 16), 0) * euler(-1.6580627893946132 + 0.04363323129985824 * sin(sine * 16), 0.03490658503988659 * sin(sine * 8), -3.141592653589793 - 0.08726646259971647 * sin((sine + 0.25) * 8)), deltaTime)
  1078. LeftShoulder.C0 = LeftShoulder.C0:Lerp(cf(-1, 0.5, 0) * euler(0.6108652381980153 * sin(sine * 8), -1.5707963267948966 + 0.17453292519943295 * sin(sine * 8), 0), deltaTime)
  1079. Neck.C0 = Neck.C0:Lerp(cf(0, 1, 0) * euler(-1.5707963267948966 - 0.08726646259971647 * sin((sine + 0.1) * 16), -0.03490658503988659 * sin((sine + 0.05) * 8), -3.141592653589793 + 0.08726646259971647 * sin((sine + 0.25) * 8)), deltaTime)
  1080. RightHip.C0 = RightHip.C0:Lerp(cf(1, -1 + 0.2 * sin((sine + 0.125) * 8), 0) * euler(1.5707963267948966 + 0.6981317007977318 * sin(sine * 8), 1.5707963267948966 + 0.08726646259971647 * sin(sine * 8), -1.5707963267948966), deltaTime)
  1081. LeftHip.C0 = LeftHip.C0:Lerp(cf(-1, -1 - 0.2 * sin((sine + 0.125) * 8), 0) * euler(1.5707963267948966 - 0.6981317007977318 * sin(sine * 8), -1.5707963267948966 + 0.08726646259971647 * sin(sine * 8), 1.5707963267948966), deltaTime)
  1082. --RightArm,1,0,0,8,0,-35,0,8,0.5,0,0,8,90,10,0,8,0,0,0,8,0,0,0,8,Torso,0,0,0,8,-95,2.5,0,16,0,0.2,0,16,0,2,0,8,0,0,0,8,-180,-5,0.25,8,Fedora_Handle,8.657480066176504e-09,0,0,8,-6,0,0,8,-0.15052366256713867,0,0,8,0,0,0,8,-0.010221302509307861,0,0,8,0,0,0,8,LeftArm,-1,0,0,8,-0,35,0,8,0.5,0,0,8,-90,10,0,8,0,0,0,8,0,0,0,8,Head,0,0,0,8,-90,-5,0.1,16,1,0,0,8,0,-2,0.05,8,0,0,0,8,-180,5,0.25,8,RightLeg,1,0,0,8,90,40,0,8,-1,0.2,0.125,8,90,5,0,8,0,0,0,8,-90,0,0,8,LeftLeg,-1,0,0,8,90,-40,0,8,-1,-0.2,0.125,8,-90,5,0,8,0,0,0,8,90,0,0,8
  1083.  
  1084. elseif vel.Y > 0 then -- jump
  1085.  
  1086. RootJoint.C0 = RootJoint.C0:Lerp(cf(0, 0, 0) * euler(-1.5707963267948966 + 0.08726646259971647 * sin((sine + 0.25) * 4), 0.08726646259971647 * sin(sine * 4), -3.141592653589793), deltaTime)
  1087. Neck.C0 = Neck.C0:Lerp(cf(0, 1, 0) * euler(-1.3962634015954636 - 0.08726646259971647 * sin((sine + 0.5) * 4), -0.08726646259971647 * sin((sine + 0.25) * 4), -3.141592653589793), deltaTime)
  1088. LeftShoulder.C0 = LeftShoulder.C0:Lerp(cf(-1, 0.5, 0) * euler(4.014257279586958 - 0.08726646259971647 * sin((sine + 0.5) * 4), -1.7453292519943295 - 0.08726646259971647 * sin((sine + 0.25) * 4), 1.5707963267948966), deltaTime)
  1089. RightHip.C0 = RightHip.C0:Lerp(cf(1, -1, 0) * euler(1.5707963267948966 - 0.08726646259971647 * sin((sine + 0.5) * 4), 1.6580627893946132 + 0.08726646259971647 * sin((sine + 0.25) * 4), -1.5707963267948966), deltaTime)
  1090. RightShoulder.C0 = RightShoulder.C0:Lerp(cf(1, 0.5, 0) * euler(4.014257279586958 - 0.08726646259971647 * sin((sine + 0.5) * 4), 1.7453292519943295 - 0.08726646259971647 * sin((sine + 0.25) * 4), -1.5707963267948966), deltaTime)
  1091. LeftHip.C0 = LeftHip.C0:Lerp(cf(-1, -1, 0) * euler(1.5707963267948966 - 0.08726646259971647 * sin((sine + 0.5) * 4), -1.6580627893946132 + 0.08726646259971647 * sin((sine + 0.25) * 4), 1.5707963267948966), deltaTime)
  1092. --Fedora_Handle,8.657480066176504e-09,0,0,4,-6,0,0,4,-0.15052366256713867,0,0,4,0,0,0,4,-0.010221302509307861,0,0,4,0,0,0,4,Torso,0,0,0,4,-90,5,0.25,4,0,0,0,4,0,5,0,4,0,0,0,4,-180,0,0,4,Head,0,0,0,4,-80,-5,0.5,4,1,0,0,4,0,-5,0.25,4,0,0,0,4,-180,0,0,4,LeftArm,-1,0,0,4,230,-5,0.5,4,0.5,0,0,4,-100,-5,0.25,4,0,0,0,4,90,0,0,4,RightLeg,1,0,0,4,90,-5,0.5,4,-1,0,0,4,95,5,0.25,4,0,0,0,4,-90,0,0,4,RightArm,1,0,0,4,230,-5,0.5,4,0.5,0,0,4,100,-5,0.25,4,0,0,0,4,-90,0,0,4,LeftLeg,-1,0,0,4,90,-5,0.5,4,-1,0,0,4,-95,5,0.25,4,0,0,0,4,90,0,0,4
  1093.  
  1094. else -- fall
  1095.  
  1096. RootJoint.C0 = RootJoint.C0:Lerp(cf(0, 0, 0) * euler(-1.6580627893946132 + 0.08726646259971647 * sin((sine + 0.25) * 4), 0.08726646259971647 * sin(sine * 4), -3.141592653589793), deltaTime)
  1097. Neck.C0 = Neck.C0:Lerp(cf(0, 1, 0) * euler(-1.7453292519943295 - 0.08726646259971647 * sin((sine + 0.5) * 4), -0.08726646259971647 * sin((sine + 0.25) * 4), -3.141592653589793), deltaTime)
  1098. LeftShoulder.C0 = LeftShoulder.C0:Lerp(cf(-1, 0.5, 0) * euler(3.839724354387525 - 0.08726646259971647 * sin((sine + 0.5) * 4), -1.7453292519943295 - 0.08726646259971647 * sin((sine + 0.25) * 4), 1.5707963267948966), deltaTime)
  1099. RightHip.C0 = RightHip.C0:Lerp(cf(1, -1, 0) * euler(1.7453292519943295, 1.6580627893946132 + 0.08726646259971647 * sin((sine + 0.25) * 4), -1.5707963267948966), deltaTime)
  1100. RightShoulder.C0 = RightShoulder.C0:Lerp(cf(1, 0.5, 0) * euler(3.839724354387525 - 0.08726646259971647 * sin((sine + 0.5) * 4), 1.7453292519943295 - 0.08726646259971647 * sin((sine + 0.25) * 4), -1.5707963267948966), deltaTime)
  1101. LeftHip.C0 = LeftHip.C0:Lerp(cf(-1, -1, 0) * euler(1.7453292519943295, -1.6580627893946132 + 0.08726646259971647 * sin((sine + 0.25) * 4), 1.5707963267948966), deltaTime)
  1102. --Fedora_Handle,8.657480066176504e-09,0,0,4,-6,0,0,4,-0.15052366256713867,0,0,4,0,0,0,4,-0.010221302509307861,0,0,4,0,0,0,4,Torso,0,0,0,4,-95,5,0.25,4,0,0,0,4,0,5,0,4,0,0,0,4,-180,0,0,4,Head,0,0,0,4,-100,-5,0.5,4,1,0,0,4,0,-5,0.25,4,0,0,0,4,-180,0,0,4,LeftArm,-1,0,0,4,220,-5,0.5,4,0.5,0,0,4,-100,-5,0.25,4,0,0,0,4,90,0,0,4,RightLeg,1,0,0,4,100,0,0,4,-1,0,0,4,95,5,0.25,4,0,0,0,4,-90,0,0,4,RightArm,1,0,0,4,220,-5,0.5,4,0.5,0,0,4,100,-5,0.25,4,0,0,0,4,-90,0,0,4,LeftLeg,-1,0,0,4,100,0,0,4,-1,0,0,4,-95,5,0.25,4,0,0,0,4,90,0,0,4
  1103.  
  1104. end
  1105. else --idle
  1106.  
  1107. if mode == "" then
  1108.  
  1109. RightShoulder.C0 = RightShoulder.C0:Lerp(cf(0.9999998807907104, 0.4999999403953552, -2.765073337516225e-32) * euler(-1.5707963267948966, 1.3962634015954636 + 0.08726646259971647 * sin((sine + 1) * 2), 1.5707963267948966), deltaTime)
  1110. RootJoint.C0 = RootJoint.C0:Lerp(cf(0, 1.1739236345820182e-24 + 0.1 * sin((sine + 0.35) * 2), 0.1 * sin(sine * 2)) * euler(-1.5707963267948966 + 0.08726646259971647 * sin(sine * 2), 0.017453292519943295 * sin(sine * 2), -2.792526803190927), deltaTime)
  1111. LeftShoulder.C0 = LeftShoulder.C0:Lerp(cf(-0.9999998807907104, 0.4999999403953552, -1.2568507556530796e-32) * euler(1.5707963267948966, -1.3962634015954636 + 0.08726646259971647 * sin((sine + 1) * 2), 1.2217304763960306), deltaTime)
  1112. Neck.C0 = Neck.C0:Lerp(cf(0, 1, 0) * euler(-1.5707963267948966 + 0.08726646259971647 * sin((sine - 0.375) * 2), 0, 2.792526803190927 + 0.5235987755982988 * sin(sine * 0.6)), deltaTime)
  1113. RightHip.C0 = RightHip.C0:Lerp(cf(0.9999998807907104, -1.100000023841858 - 0.1 * sin((sine + 0.35) * 2), 0) * euler(-1.0471975511965976 - 0.08726646259971647 * sin(sine * 2), 1.3962634015954636, 1.3962634015954636), deltaTime)
  1114. LeftHip.C0 = LeftHip.C0:Lerp(cf(-1, -1.100000023841858 - 0.1 * sin((sine + 0.35) * 2), 0) * euler(-1.7453292519943295 - 0.08726646259971647 * sin(sine * 2), -1.3962634015954636, -1.3962634015954636), deltaTime)
  1115. --RightArm,0.9999998807907104,0,0,2,-90,0,0,2,0.4999999403953552,0,0,2,80,5,1,2,-2.765073337516225e-32,0,0,2,90,0,0,2,Torso,0,0,0,2,-90,5,0,2,1.1739236345820182e-24,0.1,0.35,2,0,1,0,2,0,0.1,0,2,-160,0,0,2,Fedora_Handle,8.657480066176504e-09,0,0,2,-6,0,0,2,-0.15052366256713867,0,0,2,0,0,0,2,-0.010221302509307861,0,0,2,0,0,0,2,LeftArm,-0.9999998807907104,0,0,2,90,0,0,2,0.4999999403953552,0,0,2,-80,5,1,2,-1.2568507556530796e-32,0,0,2,70,0,0,2,Head,0,0,0,2,-90,5,-0.375,2,1,0,0,2,0,0,0,2,0,0,0,2,160,30,0,0.6,RightLeg,0.9999998807907104,0,0,2,-60,-5,0,2,-1.100000023841858,-0.1,0.35,2,80,0,0,2,0,0,0,2,80,0,0,2,LeftLeg,-1,0,0,2,-100,-5,0,2,-1.100000023841858,-0.1,0.35,2,-80,0,0,2,0,0,0,2,-80,0,0,2
  1116.  
  1117. elseif mode == "lay" then
  1118.  
  1119. RootJoint.C0 = RootJoint.C0:Lerp(cf(0, -2.4 - 0.1 * sin(sine), 0) * euler(-0.04363323129985824 + 0.08726646259971647 * sin(sine), 0, -3.141592653589793), deltaTime)
  1120. RightHip.C0 = RightHip.C0:Lerp(cf(1.25, -1.25, 0) * euler(1.5707963267948966 - 0.08726646259971647 * sin(sine), 1.0471975511965976, -1.5707963267948966), deltaTime)
  1121. LeftHip.C0 = LeftHip.C0:Lerp(cf(-1, -1, 0) * euler(1.5707963267948966 - 0.08726646259971647 * sin(sine), -1.2217304763960306, 1.2217304763960306), deltaTime)
  1122. LeftShoulder.C0 = LeftShoulder.C0:Lerp(cf(-1 + 0.05 * sin(sine - 0.5), 0.7 + 0.05 * sin(sine), 0) * euler(1.5707963267948966 - 0.08726646259971647 * sin(sine + 1), -0.3490658503988659, 0.8726646259971648), deltaTime)
  1123. Neck.C0 = Neck.C0:Lerp(cf(0, 1, -0.075 * sin(sine)) * euler(-1.5707963267948966 - 0.17453292519943295 * sin(sine), 0, -3.141592653589793), deltaTime)
  1124. RightShoulder.C0 = RightShoulder.C0:Lerp(cf(0.7 - 0.1 * sin(sine), 0.5, -0.2) * euler(1.3962634015954636, 1.0471975511965976 + 0.08726646259971647 * sin(sine + 0.5), -1.0471975511965976), deltaTime)
  1125. --Torso,0,0,0,1,-2.5,5,0,1,-2.4,-0.1,0,1,0,0,0,1,0,0,0,1,-180,0,0,1,RightLeg,1.25,0,0,1,90,-5,0,1,-1.25,0,0,1,60,0,0,1,0,0,0,1,-90,0,0,1,LeftLeg,-1,0,0,1,90,-5,0,1,-1,0,0,1,-70,0,0,1,0,0,0,1,70,0,0,1,Fedora_Handle,8.657480066176504e-09,0,0,1,-6,0,0,1,-0.15052366256713867,0,0,1,0,0,0,1,-0.010221302509307861,0,0,1,0,0,0,1,LeftArm,-1,0.05,-0.5,1,90,-5,1,1,0.7,0.05,0,1,-20,0,0,1,0,0,0,1,50,0,0,1,Head,0,0,0,1,-90,-10,0,1,1,0,0,1,0,0,0,1,0,-0.075,0,1,-180,0,0,1,RightArm,0.7,-0.1,0,1,80,0,0,1,0.5,0,0,1,60,5,0.5,1,-0.2,0,0,1,-60,0,0,1
  1126.  
  1127. elseif mode == "sit" then
  1128.  
  1129. LeftShoulder.C0 = LeftShoulder.C0:Lerp(cf(-0.9 + 0.1 * sin(sine), 0.25 + 0.1 * sin(sine), 0) * euler(1.3089969389957472, -1.6580627893946132 - 0.08726646259971647 * sin(sine), 1.5707963267948966), deltaTime)
  1130. LeftHip.C0 = LeftHip.C0:Lerp(cf(-0.7, 0.25, -0.7 - 0.3 * sin(sine)) * euler(1.5707963267948966 - 0.17453292519943295 * sin(sine), -1.7453292519943295, 1.5707963267948966), deltaTime)
  1131. RootJoint.C0 = RootJoint.C0:Lerp(cf(0, -1.8 - 0.1 * sin(sine), 0) * euler(-1.3962634015954636, 0, -3.141592653589793), deltaTime)
  1132. Neck.C0 = Neck.C0:Lerp(cf(0, 1, 0) * euler(-1.6580627893946132 + 0.17453292519943295 * sin(sine + 1.25), 0, -3.141592653589793 + 0.5235987755982988 * sin(sine * 0.25)), deltaTime)
  1133. RightHip.C0 = RightHip.C0:Lerp(cf(1, -0.7, 0) * euler(2.9670597283903604 + 0.04363323129985824 * sin(sine), 1.6580627893946132, -1.5707963267948966), deltaTime)
  1134. RightShoulder.C0 = RightShoulder.C0:Lerp(cf(0.9 - 0.1 * sin(sine), 0.25 + 0.1 * sin(sine), 0) * euler(1.3089969389957472, 1.6580627893946132 + 0.08726646259971647 * sin(sine), -1.5707963267948966), deltaTime)
  1135. --LeftArm,-0.9,0.1,0,1,75,0,0,1,0.25,0.1,0,1,-95,-5,0,1,0,0,0,1,90,0,0,1,LeftLeg,-0.7,0,0,1,90,-10,0,1,0.25,0,0,1,-100,0,0,1,-0.7,-0.3,0,1,90,0,0,1,Torso,0,0,0,1,-80,0,0,1,-1.8,-0.1,0,1,0,0,0,1,0,0,0,1,-180,0,0,1,Head,0,0,0,1,-95,10,1.25,1,1,0,0,1,0,0,0,1,0,0,0,1,-180,30,0,0.25,RightLeg,1,0,0,1,170,2.5,0,1,-0.7,0,0,1,95,0,0,1,0,0,0,1,-90,0,0,1,Fedora_Handle,8.657480066176504e-09,4,0,0.5,-6,0,0,1,-0.15052366256713867,0,0,0.5,0,360,0,0.5,-0.010221302509307861,0,0,1,0,0,0,1,RightArm,0.9,-0.1,0,1,75,0,0,1,0.25,0.1,0,1,95,5,0,1,0,0,0,1,-90,0,0,1
  1136.  
  1137. elseif mode == "rickroll" then
  1138.  
  1139. RightHip.C0 = RightHip.C0:Lerp(cf(1, -0.9 - 0.2 * sin(sine * 2), 0) * euler(1.5707963267948966, 1.6580627893946132 - 0.17453292519943295 * sin(sine + 0.8), -1.5707963267948966), deltaTime)
  1140. RootJoint.C0 = RootJoint.C0:Lerp(cf(0.3 * sin(sine + 0.8), -0.1 + 0.2 * sin(sine * 2), 0) * euler(-1.5707963267948966, 0, -3.141592653589793), deltaTime)
  1141. Neck.C0 = Neck.C0:Lerp(cf(0, 1, 0) * euler(-1.5707963267948966 + 0.08726646259971647 * sin((sine - 0.5) * 2), 0.08726646259971647 * sin(sine - 1), -3.141592653589793 + 0.2617993877991494 * sin(sine * 5)), deltaTime)
  1142. LeftShoulder.C0 = LeftShoulder.C0:Lerp(cf(-1 + 0.1 * sin(sine * 7), 0.2 - 0.1 * sin(sine + 0.8), -0.25) * euler(1.5707963267948966 + 0.5235987755982988 * sin(sine * 7), -0.6981317007977318, 0.3490658503988659 * sin(sine * 7)), deltaTime)
  1143. LeftHip.C0 = LeftHip.C0:Lerp(cf(-1, -0.9 - 0.2 * sin(sine * 2), 0) * euler(1.5707963267948966, -1.6580627893946132 - 0.17453292519943295 * sin(sine + 0.8), 1.5707963267948966), deltaTime)
  1144. RightShoulder.C0 = RightShoulder.C0:Lerp(cf(1 + 0.1 * sin(sine * 7), 0.2 + 0.1 * sin(sine + 0.8), -0.25) * euler(1.5707963267948966 - 0.5235987755982988 * sin(sine * 7), 0.6981317007977318, 0.3490658503988659 * sin(sine * 7)), deltaTime)
  1145. --RightLeg,1,0,0,1,90,0,0,1,-0.9,-0.2,0,2,95,-10,0.8,1,0,0,0,1,-90,0,0,1,Torso,0,0.3,0.8,1,-90,0,0,1,-0.1,0.2,0,2,0,0,0,1,0,0,0,1,-180,0,0,1,Head,0,0,0,1,-90,5,-0.5,2,1,0,0,1,0,5,-1,1,0,0,0,1,-180,15,0,5,Fedora_Handle,8.657480066176504e-09,0,0,1,-6,0,0,1,-0.15052366256713867,0,0,1,0,0,0,1,-0.010221302509307861,0,0,1,0,0,0,1,LeftArm,-1,0.1,0,7,90,30,0,7,0.2,-0.1,0.8,1,-40,0,0,1,-0.25,0,0,1,0,20,0,7,LeftLeg,-1,0,0,1,90,0,0,1,-0.9,-0.2,0,2,-95,-10,0.8,1,0,0,0,1,90,0,0,1,RightArm,1,0.1,0,7,90,-30,0,7,0.2,0.1,0.8,1,40,0,0,1,-0.25,0,0,1,-0,20,0,7
  1146.  
  1147. elseif mode == "wave" then
  1148.  
  1149. RootJoint.C0 = RootJoint.C0:Lerp(cf(0.1 * sin(sine * 4), 0, 0) * euler(-1.5707963267948966, -0.08726646259971647 + 0.08726646259971647 * sin(sine * 4), -3.141592653589793), deltaTime)
  1150. LeftShoulder.C0 = LeftShoulder.C0:Lerp(cf(-1, 0.5, 0) * euler(1.5707963267948966, -1.6580627893946132 + 0.08726646259971647 * sin((sine - 0.2) * 4), 1.5707963267948966), deltaTime)
  1151. Neck.C0 = Neck.C0:Lerp(cf(0, 1, 0) * euler(-1.5707963267948966, 0.04363323129985824 - 0.08726646259971647 * sin((sine + 0.1) * 4), -3.141592653589793), deltaTime)
  1152. RightHip.C0 = RightHip.C0:Lerp(cf(1, -1.1 + 0.1 * sin(sine * 4), 0) * euler(1.5707963267948966, 1.5707963267948966 + 0.08726646259971647 * sin(sine * 4), -1.5707963267948966), deltaTime)
  1153. LeftHip.C0 = LeftHip.C0:Lerp(cf(-1, -0.925 - 0.07 * sin(sine * 4), 0) * euler(1.5707963267948966, -1.7453292519943295 + 0.06981317007977318 * sin(sine * 4), 1.5707963267948966), deltaTime)
  1154. RightShoulder.C0 = RightShoulder.C0:Lerp(cf(1 + 0.1 * sin((sine + 0.3) * 4), 1.4, 0) * euler(1.5707963267948966, 1.4835298641951802 - 0.2617993877991494 * sin((sine + 0.3) * 4), 1.5707963267948966), deltaTime)
  1155. --Fedora_Handle,8.657480066176504e-09,0,0,4,-6,0,0,4,-0.15052366256713867,0,0,4,0,0,0,4,-0.010221302509307861,0,0,4,0,0,0,4,Torso,0,0.1,0,4,-90,0,0,4,0,0,0,4,-5,5,0,4,0,0,0,4,-180,0,0,4,LeftArm,-1,0,0,4,90,0,0,4,0.5,0,0,4,-95,5,-0.2,4,0,0,0,4,90,0,0,4,Head,0,0,0,4,-90,0,0,4,1,0,0,4,2.5,-5,0.1,4,0,0,0,4,-180,0,0,4,RightLeg,1,0,0,4,90,0,0,4,-1.1,0.1,0,4,90,5,0,4,0,0,0,4,-90,0,0,4,LeftLeg,-1,0,0,4,90,0,0,4,-0.925,-0.07,0,4,-100,4,0,4,0,0,0,4,90,0,0,4,RightArm,1,0.1,0.3,4,90,0,0,4,1.4,0,0,4,85,-15,0.3,4,0,0,0,4,90,0,0,4
  1156.  
  1157. elseif mode == "dab" then
  1158.  
  1159. LeftShoulder.C0 = LeftShoulder.C0:Lerp(cf(-1.5, 0.5, 0) * euler(-1.7453292519943295, 0.17453292519943295 - 0.04363323129985824 * sin(sine * 2), -1.4835298641951802), deltaTime)
  1160. RightHip.C0 = RightHip.C0:Lerp(cf(1, -0.9000000953674316 - 0.1 * sin(sine * 2), 0) * euler(-1.3962634015954636, 1.3962634015954636, 1.5707963267948966), deltaTime)
  1161. LeftHip.C0 = LeftHip.C0:Lerp(cf(-1, -1.0000001192092896 - 0.1 * sin(sine * 2), 0) * euler(-1.5707963267948966, -1.3962634015954636, -1.5707963267948966), deltaTime)
  1162. Neck.C0 = Neck.C0:Lerp(cf(0, 1, 0) * euler(-2.0943951023931953 + 0.08726646259971647 * sin((sine - 1) * 2), -0.08726646259971647, 2.792526803190927), deltaTime)
  1163. RightShoulder.C0 = RightShoulder.C0:Lerp(cf(1, 1.2000000476837158, 0) * euler(2.6179938779914944 + 0.08726646259971647 * sin((sine - 1) * 2), 0.6981317007977318, -1.3962634015954636), deltaTime)
  1164. RootJoint.C0 = RootJoint.C0:Lerp(cf(0, 0.1 * sin(sine * 2), 0) * euler(-1.6580627893946132, 0.08726646259971647, 3.0543261909900767), deltaTime)
  1165. --LeftArm,-1.5,0,0,2,-100,0,0,2,0.5,0,0,2,10,-2.5,0,2,0,0,0,2,-85,0,0,2,RightLeg,1,0,0,2,-80,0,0,2,-0.9000000953674316,-0.1,0,2,80,0,0,2,0,0,0,2,90,0,0,2,LeftLeg,-1,0,0,2,-90,0,0,2,-1.0000001192092896,-0.1,0,2,-80,0,0,2,0,0,0,2,-90,0,0,2,Fedora_Handle,8.657480066176504e-09,0,0,2,-6,0,0,2,-0.15052366256713867,0,0,2,0,0,0,2,-0.010221302509307861,0,0,2,0,0,0,2,Head,0,0,0,2,-120,5,-1,2,1,0,0,2,-5,0,0,2,0,0,0,2,160,0,0,2,RightArm,1,0,0,2,150,5,-1,2,1.2000000476837158,0,0,2,40,0,0,2,0,0,0,2,-80,0,0,2,Torso,0,0,0,2,-95,0,0,2,0,0.1,0,2,5,0,0,2,0,0,0,2,175,0,0,2
  1166.  
  1167. elseif mode == "dance" then
  1168.  
  1169. LeftShoulder.C0 = LeftShoulder.C0:Lerp(cf(-1, 1 + 0.5 * sin((sine + 0.078125) * 6.4), -0.5) * euler(-0.3490658503988659 + 1.0471975511965976 * sin((sine + 0.078125) * 6.4), -1.6580627893946132 + 0.6108652381980153 * sin((sine + 0.078125) * 6.4), -1.5707963267948966), deltaTime)
  1170. RightHip.C0 = RightHip.C0:Lerp(cf(1, -1, 0) * euler(1.5707963267948966 - 0.17453292519943295 * sin((sine + 0.078125) * 6.4), 1.8325957145940461 + 0.2617993877991494 * sin(sine * 6.4), -1.5707963267948966), deltaTime)
  1171. Neck.C0 = Neck.C0:Lerp(cf(0, 1, 0) * euler(-1.5882496193148399 + 0.17453292519943295 * sin((sine - 0.078125) * 6.4), 0.08726646259971647 + 0.17453292519943295 * sin((sine + 0.078125) * 6.4), 3.141592653589793), deltaTime)
  1172. RightShoulder.C0 = RightShoulder.C0:Lerp(cf(1, 0.5 + 0.15 * sin((sine + 0.546875) * 12.8), 0) * euler(1.9198621771937625 + 0.2617993877991494 * sin((sine + 0.546875) * 12.8), 1.6580627893946132 - 0.2617993877991494 * sin(sine * 6.4), -1.5707963267948966), deltaTime)
  1173. LeftHip.C0 = LeftHip.C0:Lerp(cf(-1, -1, 0) * euler(1.5707963267948966 - 0.12217304763960307 * sin((sine + 0.078125) * 6.4), -1.8325957145940461 + 0.2617993877991494 * sin(sine * 6.4), 1.5707963267948966), deltaTime)
  1174. RootJoint.C0 = RootJoint.C0:Lerp(cf(-0.6 * sin(sine * 6.4), 0, 0) * euler(-1.5882496193148399 + 0.08726646259971647 * sin((sine + 0.078125) * 6.4), -0.08726646259971647 * sin(sine * 6.4), 3.141592653589793 + 0.08726646259971647 * sin(sine * 6.4)), deltaTime)
  1175. --LeftArm,-1,0,0,6.4,-20,60,0.078125,6.4,1,0.5,0.078125,6.4,-95,35,0.078125,6.4,-0.5,0,0,6.4,-90,0,0,6.4,RightLeg,1,0,0,6.4,90,-10,0.078125,6.4,-1,0,0,6.4,105,15,0,6.4,0,0,0,6.4,-90,0,0,6.4,Head,0,0,0,6.4,-91,10,-0.078125,6.4,1,0,0,6.4,5,10,0.078125,6.4,0,0,0,6.4,180,0,0,6.4,RightArm,1,0,0,6.4,110,15,0.546875,12.8,0.5,0.15,0.546875,12.8,95,-15,0,6.4,0,0,0,6.4,-90,0,0,6.4,LeftLeg,-1,0,0,6.4,90,-7,0.078125,6.4,-1,0,0,6.4,-105,15,0,6.4,0,0,0,6.4,90,0,0,6.4,Fedora_Handle,8.657480066176504e-09,0,0,6.4,-6,0,0,6.4,-0.15052366256713867,0,0,6.4,0,0,0,6.4,-0.010221302509307861,0,0,6.4,-1,0,0,6.4,Torso,0,-0.6,0,6.4,-91,5,0.078125,6.4,0,0,0,6.4,-0,-5,0,6.4,0,0,0,6.4,180,5,0,6.4
  1176.  
  1177. elseif mode == "T" then
  1178.  
  1179. RightShoulder.C0 = RightShoulder.C0:Lerp(cf(1.5, 0.5, 0) * euler(1.5707963267948966, 3.141592653589793, -1.5707963267948966), deltaTime)
  1180. RightHip.C0 = RightHip.C0:Lerp(cf(1, -1, 0) * euler(0, 1.5707963267948966, 0), deltaTime)
  1181. LeftShoulder.C0 = LeftShoulder.C0:Lerp(cf(-1.5, 0.5, 0) * euler(1.5707963267948966, 3.141592653589793, 1.5707963267948966), deltaTime)
  1182. LeftHip.C0 = LeftHip.C0:Lerp(cf(-1, -1, 0) * euler(0, -1.5707963267948966, 0), deltaTime)
  1183. Neck.C0 = Neck.C0:Lerp(cf(0, 1, 0) * euler(-1.5707963267948966, 0, -3.141592653589793), deltaTime)
  1184. RootJoint.C0 = RootJoint.C0:Lerp(cf(0, 0, 0) * euler(-1.5707963267948966, 0, -3.141592653589793), deltaTime)
  1185. --RightArm,1.5,0,0,1,90,0,0,1,0.5,0,0,1,180,0,0,1,0,0,0,1,-90,0,0,1,RightLeg,1,0,0,1,0,0,0,1,-1,0,0,1,90,0,0,1,0,0,0,1,0,0,0,1,Fedora_Handle,8.657480066176504e-09,0,0,1,-6,0,0,1,-0.15052366256713867,0,0,1,0,0,0,1,-0.010221302509307861,0,0,1,0,0,0,1,LeftArm,-1.5,0,0,1,90,0,0,1,0.5,0,0,1,180,0,0,1,0,0,0,1,90,0,0,1,LeftLeg,-1,0,0,1,-0,0,0,1,-1,0,0,1,-90,0,0,1,0,0,0,1,0,0,0,1,Head,0,0,0,1,-90,0,0,1,1,0,0,1,0,0,0,1,0,0,0,1,-180,0,0,1,Torso,0,0,0,1,-90,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,-180,0,0,1
  1186.  
  1187. elseif mode == "float" then
  1188.  
  1189. RightShoulder.C0 = RightShoulder.C0:Lerp(cf(1.5 - 0.5 * sin((sine + 0.1) * 2), 0.5 + 0.5 * sin((sine - 0.5) * 2), 0) * euler(1.5707963267948966, 3.141592653589793 + 0.5235987755982988 * sin((sine - 1) * 2), -1.5707963267948966 - 0.2617993877991494 * sin(sine * 0.5)), deltaTime)
  1190. RightHip.C0 = RightHip.C0:Lerp(cf(1, -1, 0) * euler(1.5707963267948966 - 0.17453292519943295 * sin(sine * 2), 1.5707963267948966 - 0.08726646259971647 * sin((sine + 0.7) * 2), -1.5707963267948966), deltaTime)
  1191. RootJoint.C0 = RootJoint.C0:Lerp(cf(0, 3 + 0.7 * sin((sine + 0.15) * 2), 0) * euler(-1.5707963267948966 + 0.08726646259971647 * sin((sine - 0.5) * 2), 0, -3.141592653589793 + 0.2617993877991494 * sin(sine * 0.5)), deltaTime)
  1192. LeftHip.C0 = LeftHip.C0:Lerp(cf(-1, -1, 0) * euler(1.5707963267948966 - 0.08726646259971647 * sin(sine * 2), -1.5707963267948966 + 0.08726646259971647 * sin((sine + 0.7) * 2), 1.5707963267948966), deltaTime)
  1193. LeftShoulder.C0 = LeftShoulder.C0:Lerp(cf(-1.5 + 0.5 * sin((sine + 0.1) * 2), 0.5 + 0.5 * sin((sine - 0.5) * 2), 0) * euler(1.5707963267948966, 3.141592653589793 - 0.5235987755982988 * sin((sine - 1) * 2), 1.5707963267948966 - 0.2617993877991494 * sin(sine * 0.5)), deltaTime)
  1194. Neck.C0 = Neck.C0:Lerp(cf(0, 1, 0) * euler(-1.5707963267948966 - 0.17453292519943295 * sin((sine + 0.5) * 2), 0.17453292519943295 * sin(sine * 1), -3.141592653589793 + 0.5235987755982988 * sin(sine * 0.3)), deltaTime)
  1195. --RightArm,1.5,-0.5,0.1,2,90,0,0,2,0.5,0.5,-0.5,2,180,30,-1,2,0,0,0,2,-90,-15,0,0.5,Fedora_Handle,8.657480066176504e-09,0,0,2,-6,0,0,2,-0.15052366256713867,0,0,2,0,0,0,2,-0.010221302509307861,0,0,2,0,0,0,2,RightLeg,1,0,0,2,90,-10,0,2,-1,0,0,2,90,-5,0.7,2,0,0,0,2,-90,0,0,2,Torso,0,0,0,2,-90,5,-0.5,2,3,0.7,0.15,2,0,0,0,1,0,0,0,2,-180,15,0,0.5,LeftLeg,-1,0,0,2,90,-5,0,2,-1,0,0,2,-90,5,0.7,2,0,0,0,2,90,0,0,2,LeftArm,-1.5,0.5,0.1,2,90,0,0,2,0.5,0.5,-0.5,2,180,-30,-1,2,0,0,0,2,90,-15,0,0.5,Head,0,0,0,2,-90,-10,0.5,2,1,0,0,2,0,10,0,1,0,0,0,2,-180,30,0,0.3
  1196.  
  1197. elseif mode == "floss" then
  1198.  
  1199. Neck.C0 = Neck.C0:Lerp(cf(0, 1, 0) * euler(-1.5707963267948966 + 0.04363323129985824 * sin((sine + 0.125) * 16), -0.2617993877991494 * sin((sine + 0.05) * 8), -3.141592653589793 + 0.5235987755982988 * sin(sine * 1.1)), deltaTime)
  1200. RightShoulder.C0 = RightShoulder.C0:Lerp(cf(0.9 + 0.4 * sin(sine * 8), 0.5, -0.5 * sin((sine - 0.35) * 4)) * euler(1.5707963267948966 + 0.6981317007977318 * sin(sine * 4), 1.5707963267948966 + 0.8726646259971648 * sin(sine * 8), -1.5707963267948966 + 0.17453292519943295 * sin((sine - 0.35) * 4)), deltaTime)
  1201. RootJoint.C0 = RootJoint.C0:Lerp(cf(-0.1 * sin((sine + 0.4) * 8), 0, 0) * euler(-1.5707963267948966, 0.3490658503988659 * sin(sine * 8), -3.141592653589793), deltaTime)
  1202. LeftHip.C0 = LeftHip.C0:Lerp(cf(-1, -1 - 0.4 * sin((sine - 0.01) * 8), 0) * euler(1.5707963267948966, -1.7453292519943295 + 0.5235987755982988 * sin(sine * 8), 1.5707963267948966), deltaTime)
  1203. RightHip.C0 = RightHip.C0:Lerp(cf(1, -1 + 0.4 * sin((sine - 0.01) * 8), 0) * euler(1.5707963267948966, 1.7453292519943295 + 0.5235987755982988 * sin(sine * 8), -1.5707963267948966), deltaTime)
  1204. LeftShoulder.C0 = LeftShoulder.C0:Lerp(cf(-0.9 + 0.4 * sin(sine * 8), 0.5, 0.5 * sin((sine + 0.25) * 4)) * euler(1.5707963267948966, -1.5707963267948966 + 0.8726646259971648 * sin(sine * 8), 1.5707963267948966 + 0.6981317007977318 * sin((sine + 0.25) * 4)), deltaTime)
  1205. --Head,0,0,0,8,-90,2.5,0.125,16,1,0,0,8,0,-15,0.05,8,0,0,0,8,-180,30,0,1.1,RightArm,0.9,0.4,0,8,90,40,0,4,0.5,0,0,8,90,50,0,8,0,-0.5,-0.35,4,-90,10,-0.35,4,Fedora_Handle,8.657480066176504e-09,0,0,8,-6,0,0,8,-0.15052366256713867,0,0,8,0,0,0,8,-0.010221302509307861,0,0,8,0,0,0,8,Torso,0,-0.1,0.4,8,-90,0,0,8,0,0,0,4,0,20,0,8,0,0,0,8,-180,0,0,8,LeftLeg,-1,0,0,8,90,0,0,8,-1,-0.4,-0.01,8,-100,30,0,8,0,0,0,8,90,0,0,8,RightLeg,1,0,0,8,90,0,0,8,-1,0.4,-0.01,8,100,30,0,8,0,0,0,8,-90,0,0,8,LeftArm,-0.9,0.4,0,8,90,0,0.25,4,0.5,0,0,8,-90,50,0,8,0,0.5,0.25,4,90,40,0.25,4
  1206.  
  1207. elseif mode == "emote" then
  1208.  
  1209. Neck.C0 = Neck.C0:Lerp(cf(0, 1, 0) * euler(-1.5707963267948966, -0.4363323129985824 * sin(sine * 8), -3.141592653589793), deltaTime)
  1210. RightHip.C0 = RightHip.C0:Lerp(cf(1, -1 + 0.3 * sin(sine * 8), 0) * euler(1.5707963267948966, 1.5707963267948966 + 0.5235987755982988 * sin(sine * 8), -1.5707963267948966), deltaTime)
  1211. LeftShoulder.C0 = LeftShoulder.C0:Lerp(cf(-0.5, 1, 0) * euler(-0.5235987755982988, -1.5707963267948966 - 0.5235987755982988 * sin(sine * 8), 3.141592653589793), deltaTime)
  1212. RightShoulder.C0 = RightShoulder.C0:Lerp(cf(0.5, 1, 0) * euler(-0.5235987755982988, 1.5707963267948966 - 0.5235987755982988 * sin(sine * 8), 3.141592653589793), deltaTime)
  1213. RootJoint.C0 = RootJoint.C0:Lerp(cf(-0.1 * sin(sine * 8), 0.2 * sin((sine + 0.1) * 16), 0) * euler(-1.5707963267948966, 0.2617993877991494 * sin(sine * 8), -3.141592653589793), deltaTime)
  1214. LeftHip.C0 = LeftHip.C0:Lerp(cf(-1, -1 - 0.3 * sin(sine * 8), 0) * euler(1.5707963267948966, -1.5707963267948966 + 0.5235987755982988 * sin(sine * 8), 1.5707963267948966), deltaTime)
  1215. --Head,0,0,0,8,-90,0,0,8,1,0,0,8,0,-25,0,8,0,0,0,8,-180,0,0,8,RightLeg,1,0,0,8,90,0,0,8,-1,0.3,0,8,90,30,0,8,0,0,0,8,-90,0,0,8,LeftArm,-0.5,0,0,8,-30,0,0,8,1,0,0,8,-90,-30,0,8,0,0,0,8,180,0,0,8,RightArm,0.5,0,0,8,-30,0,0,8,1,0,0,16,90,-30,0,8,0,0,0,8,180,0,0,8,Torso,0,-0.1,0,8,-90,0,0,8,0,0.2,0.1,16,0,15,0,8,0,0,0,8,-180,0,0,8,LeftLeg,-1,0,0,8,90,0,0,8,-1,-0.3,0,8,-90,30,0,8,0,0,0,8,90,0,0,8,Fedora_Handle,8.657480066176504e-09,0,0,8,-6,0,0,8,-0.15052366256713867,0,0,8,0,0,0,8,-0.010221302509307861,0,0,8,0,0,0,8
  1216.  
  1217. elseif mode == "pushups" then
  1218.  
  1219. RootJoint.C0 = RootJoint.C0:Lerp(cf(0, -1.7 + 0.5 * sin(sine * 3.2), 0.3 * sin(sine * 3.2)) * euler(3.4033920413889427 + 0.17453292519943295 * sin(sine * 3.2), 0, 3.141592653589793), deltaTime)
  1220. RightShoulder.C0 = RightShoulder.C0:Lerp(cf(1 - 0.25 * sin(sine * 3.2), 0.5 + 0.2 * sin(sine * 3.2), -0.75 * sin(sine * 3.2)) * euler(3.0543261909900767 - 0.17453292519943295 * sin(sine * 3.2), 1.3962634015954636 + 0.17453292519943295 * sin(sine * 3.2), -1.5707963267948966), deltaTime)
  1221. LeftShoulder.C0 = LeftShoulder.C0:Lerp(cf(-1 + 0.25 * sin(sine * 3.2), 0.5 + 0.2 * sin(sine * 3.2), -0.75 * sin(sine * 3.2)) * euler(3.0543261909900767 - 0.17453292519943295 * sin(sine * 3.2), -1.3962634015954636 - 0.17453292519943295 * sin(sine * 3.2), 1.5707963267948966), deltaTime)
  1222. Neck.C0 = Neck.C0:Lerp(cf(0, 1, 0) * euler(-1.6580627893946132 + 0.17453292519943295 * sin((sine - 0.3125) * 3.2), 0, 3.141592653589793), deltaTime)
  1223. LeftHip.C0 = LeftHip.C0:Lerp(cf(-1, -1, 0) * euler(-1.5707963267948966, -1.7453292519943295, -1.5707963267948966), deltaTime)
  1224. RightHip.C0 = RightHip.C0:Lerp(cf(1, -1, 0) * euler(1.5707963267948966, 1.3962634015954636, -1.5707963267948966), deltaTime)
  1225. --Torso,0,0,0,3.2,195,10,0,3.2,-1.7,0.5,0,3.2,-0,0,0,3.2,0,0.3,0,3.2,180,0,0,3.2,RightArm,1,-0.25,0,3.2,175,-10,0,3.2,0.5,0.2,0,3.2,80,10,0,3.2,0,-0.75,0,3.2,-90,0,0,0,LeftArm,-1,0.25,0,3.2,175,-10,0,3.2,0.5,0.2,0,3.2,-80,-10,0,3.2,0,-0.75,0,3.2,90,0,0,3.2,Head,0,0,0,3.2,-95,10,-0.3125,3.2,1,0,0,3.2,-0,0,0,3.2,0,0,0,3.2,180,0,0,3.2,LeftLeg,-1,0,0,3.2,-90,0,0,3.2,-1,0,0,3.2,-100,0,0,3.2,0,0,0,3.2,-90,0,0,3.2,RightLeg,1,0,0,3.2,90,0,0,3.2,-1,0,0,3.2,80,0,0,3.2,0,0,0,3.2,-90,0,0,3.2,Fedora_Handle,8.657480066176504e-09,0,0,3.2,-6,0,0,3.2,-0.15052366256713867,0,0,3.2,0,0,0,3.2,-0.010221302509307861,0,0,3.2,-1,0,0,3.2
  1226.  
  1227. elseif mode == "kazotsky" then
  1228.  
  1229. LeftShoulder.C0 = LeftShoulder.C0:Lerp(cf(-0.5 - 0.15 * sin(sine * 6.4), 0.3, 0) * euler(2.792526803190927 + 0.08726646259971647 * sin(sine * 12.8), -0.17453292519943295 - 0.08726646259971647 * sin(sine * 6.4), 1.4835298641951802 - 0.08726646259971647 * sin(sine * 12.8)), deltaTime)
  1230. RightHip.C0 = RightHip.C0:Lerp(cf(1, -1, 0) * euler(2.0943951023931953 - 0.8726646259971648 * sin(sine * 6.4), 1.6580627893946132 - 0.08726646259971647 * sin(sine * 6.4), -1.5707963267948966), deltaTime)
  1231. RootJoint.C0 = RootJoint.C0:Lerp(cf(0, 0.2 + 0.3 * sin((sine + 0.171875) * 12.8), 0) * euler(-1.4835298641951802 + 0.08726646259971647 * sin((sine + 0.15625) * 12.8), 0.08726646259971647 * sin(sine * 6.4), 3.141592653589793 + 0.17453292519943295 * sin(sine * 6.4)), deltaTime)
  1232. RightShoulder.C0 = RightShoulder.C0:Lerp(cf(0.5 - 0.15 * sin(sine * 6.4), 0.3, 0) * euler(2.792526803190927 + 0.08726646259971647 * sin(sine * 12.8), 0.17453292519943295 - 0.08726646259971647 * sin(sine * 6.4), -1.4835298641951802 + 0.08726646259971647 * sin(sine * 12.8)), deltaTime)
  1233. Neck.C0 = Neck.C0:Lerp(cf(0, 1, 0) * euler(-1.5882496193148399 + 0.08726646259971647 * sin(sine * 12.8), -0.08726646259971647 * sin((sine + 0.15625) * 6.4), 3.141592653589793), deltaTime)
  1234. LeftHip.C0 = LeftHip.C0:Lerp(cf(-1, -1, 0) * euler(2.0943951023931953 + 0.8726646259971648 * sin(sine * 6.4), -1.6580627893946132 - 0.08726646259971647 * sin(sine * 6.4), 1.5707963267948966), deltaTime)
  1235. --LeftArm,-0.5,-0.15,0,6.4,160,5,0,12.8,0.3,0,0,6.4,-10,-5,0,6.4,0,0,0,6.4,85,-5,0,12.8,RightLeg,1,0,0,6.4,120,-50,0,6.4,-1,0,0,6.4,95,-5,0,6.4,0,0,0,6.4,-90,0,0,6.4,Fedora_Handle,8.657480066176504e-09,0,0,6.4,-6,0,0,6.4,-0.15052366256713867,0,0,6.4,0,0,0,6.4,-0.010221302509307861,0,0,6.4,-1,0,0,6.4,Torso,0,0,0,6.4,-85,5,0.15625,12.8,0.2,0.3,0.171875,12.8,-0,5,0,6.4,0,0,0,6.4,180,10,0,6.4,RightArm,0.5,-0.15,0,6.4,160,5,0,12.8,0.3,0,0,6.4,10,-5,0,6.4,0,0,0,6.4,-85,5,0,12.8,Head,0,0,0,6.4,-91,5,0,12.8,1,0,0,6.4,-0,-5,0.15625,6.4,0,0,0,6.4,180,0,0,6.4,LeftLeg,-1,0,0,6.4,120,50,0,6.4,-1,0,0,6.4,-95,-5,0,6.4,0,0,0,6.4,90,0,0,6.4
  1236.  
  1237. elseif mode == "L" then
  1238.  
  1239. RootJoint.C0 = RootJoint.C0:Lerp(cf(0, 0.25 + 0.25 * sin((sine + 0.25) * 8), 0) * euler(-1.5707963267948966, 0.17453292519943295 * sin(sine * 4), -3.141592653589793), deltaTime)
  1240. LeftShoulder.C0 = LeftShoulder.C0:Lerp(cf(-0.7, 0.5, -0.3) * euler(1.7453292519943295, -0.8726646259971648, 1.5707963267948966), deltaTime)
  1241. Neck.C0 = Neck.C0:Lerp(cf(0, 1, 0) * euler(-1.5707963267948966 + 0.04363323129985824 * sin((sine + 0.1) * 8), -0.17453292519943295 * sin((sine + 0.1) * 4), -3.141592653589793), deltaTime)
  1242. RightShoulder.C0 = RightShoulder.C0:Lerp(cf(0.7, 0.8, 0) * euler(1.0471975511965976 + 0.03490658503988659 * sin(sine * 8), 2.0943951023931953 + 0.10471975511965978 * sin((sine + 0.1) * 4), 1.5707963267948966), deltaTime)
  1243. RightHip.C0 = RightHip.C0:Lerp(cf(1, -1, 0) * euler(2.2689280275926285 - 0.8726646259971648 * sin(sine * 4), 1.9198621771937625 - 0.3490658503988659 * sin(sine * 4), -1.5707963267948966), deltaTime)
  1244. LeftHip.C0 = LeftHip.C0:Lerp(cf(-1, -1, 0) * euler(2.2689280275926285 + 0.8726646259971648 * sin(sine * 4), -1.9198621771937625 - 0.3490658503988659 * sin(sine * 4), 1.5707963267948966), deltaTime)
  1245. --Torso,0,0,0,4,-90,0,0,4,0.25,0.25,0.25,8,0,10,0,4,0,0,0,4,-180,0,0,4,LeftArm,-0.7,0,0,4,100,0,0,4,0.5,0,0,4,-50,0,0,4,-0.3,0,0,4,90,0,0,4,Fedora_Handle,8.657480066176504e-09,0,0,4,-6,0,0,4,-0.15052366256713867,0,0,4,0,0,0,4,-0.010221302509307861,0,0,4,0,0,0,4,Head,0,0,0,4,-90,2.5,0.1,8,1,0,0,4,0,-10,0.1,4,0,0,0,4,-180,0,0,4,RightArm,0.7,0,0,4,60,2,0,8,0.8,0,0,4,120,6,0.1,4,0,0,0,4,90,0,0,4,RightLeg,1,0,0,4,130,-50,0,4,-1,0,0,4,110,-20,0,4,0,0,0,4,-90,0,0,4,LeftLeg,-1,0,0,4,130,50,0,4,-1,0,0,4,-110,-20,0,4,0,0,0,4,90,0,0,4
  1246.  
  1247. end
  1248.  
  1249. end
  1250. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement