Advertisement
Dark_Agent

PatchmaHub-v46

Mar 9th, 2025 (edited)
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 235.68 KB | Gaming | 0 0
  1. -- PatchmaHub V46 script by Myworld.
  2. --loadstring(game:HttpGet("https://pastebin.com/raw/6LuKfqHc"))()
  3.  
  4. --[[
  5.     patchma hub by MyWorld
  6.     lets get the party started
  7.  
  8.     IDs of paid accessories:
  9.  
  10.     -for arms 11159410305,11263254795 or 14255556501,14255554762 or 12344545199,12344591101 or 13839976999,13831200263
  11.  
  12.     -for legs 14768693948,14768701869 or 11159483910,12652786974 or 17401151565,17387616772
  13.  
  14.     -for torso 14255528083 or 13421786478 or 14768678294
  15.  
  16.     or anything else that covers ur torso. examples:
  17.     14532301415,13423624885,11502853991,14053485259,13779879140,14443132226,17163407577,16297156693,17180496303,17171230401
  18.     can be same stuff but different colors
  19.  
  20.     there are 156 ways to make a rig with the ids above
  21.  
  22.     IDs of free accessories:
  23.     3033910400,3409612660,3438342658,3398308134,4324158403,3822880197,4154538250,3443038622,4819740796
  24.  
  25.     accessories for Immortality Lord:
  26.     head: 17375337078 or 17270164442 or 105058659622112
  27.     body: 121668589285446,80629770394501,127671621543010,76687571475377,120230112701079
  28.     or 132908702618809,122975605535029,115313441748457,127208207296576,131203955709755
  29.     or 17270178857,17270001635,17269952801,17269983359,17269998373
  30.     wings: 17270231731,17270225913
  31.     sword: 17326812233,17326800544
  32. ]]
  33.  
  34. --no need to get and index the library tables with function names every time the script uses them
  35. local osclock=os.clock
  36. local tspawn=task.spawn
  37. local twait=task.wait
  38. local schar=string.char
  39. local ssub=string.sub
  40. local sfind=string.find
  41. local supper=string.upper
  42. local mrandom=math.random
  43. local sin=math.sin
  44. local cos=math.cos
  45. local abs=math.abs
  46. local min=math.min
  47. local clamp=math.clamp
  48. local tinsert=table.insert
  49. local tclear=table.clear
  50. local tclone=table.clone
  51. local tfind=table.find
  52.  
  53. --the script doesnt have to read global varaibles every time to get them
  54. --why not have them saved in local varaibles for faster access times
  55. local next=next
  56. local pcall=pcall
  57. local xpcall=xpcall
  58. local type=type
  59. local typeof=typeof
  60. local game=game
  61. local replicatesignal=replicatesignal
  62.  
  63. local i=Instance.new
  64. local v2=Vector2.new
  65. local v3=Vector3.new
  66. local c3=Color3.new
  67. local cf=CFrame.new
  68. local cfl=CFrame.lookAt
  69. local angles=CFrame.fromEulerAngles --faster than .Angles
  70. local u2=UDim2.new
  71. local e=Enum
  72. local rp=RaycastParams.new
  73. local cs=ColorSequence.new
  74. local csk=ColorSequenceKeypoint.new
  75.  
  76. local sine=osclock()
  77. local deltaTime=0
  78. local v3_0=v3()
  79. local v3_101=v3(1,0,1)
  80. local v3_010=v3(0,1,0)
  81. local cf_0=cf()
  82. local v3_xz=v3_101*10
  83. local v3_xzL=v3_101*250.1
  84. local v3_net=v3_010*25.01
  85. local pdloadedtime=nil
  86.  
  87. --not "local function rs" to not assign debug names
  88. local rs=function()
  89.     local s=""
  90.     for i=1,mrandom(8,15) do
  91.         if mrandom(2)==2 then
  92.             s=s..schar(mrandom(65,90))
  93.         else
  94.             s=s..schar(mrandom(97,122))
  95.         end
  96.     end
  97.     return s
  98. end
  99.  
  100. --it runs even faster if u call __index and __newindex metamethods directly
  101. local getMetamethodFromErrorStack=function(userdata,f,test)
  102.     local ret=nil
  103.     xpcall(f,function()
  104.         ret=debug.info(2,"f")
  105.     end,userdata,nil,0)
  106.     if (type(ret)~="function") or not test(ret) then
  107.         return f
  108.     end
  109.     return ret
  110. end
  111. local insSet=getMetamethodFromErrorStack(game,function(a,b,c) a[b]=c end,function(f) local a=i("Folder") local b=rs() f(a,"Name",b) return a.Name==b end)
  112. local insGet=getMetamethodFromErrorStack(game,function(a,b) return a[b] end,function(f) local a=i("Folder") local b=rs() a.Name=b return f(a,"Name")==b end)
  113. local cfGet=getMetamethodFromErrorStack(cf_0,function(a,b) return a[b] end,function(f) return f(cf(1,2,3),"Position")==v3(1,2,3) end)
  114. local cfMul=getMetamethodFromErrorStack(cf_0,function(a,b) return a*b end,function(f) return angles(1,2,3)*angles(1,2,3)==f(angles(1,2,3),angles(1,2,3)) end)
  115. local cfAdd=getMetamethodFromErrorStack(cf_0,function(a,b) return a+b end,function(f) return cf(1,2,3)+v3(1,2,3)==f(cf(1,2,3),v3(1,2,3)) end)
  116. local v3Get=getMetamethodFromErrorStack(v3_0,function(a,b) return a[b] end,function(f) return v3(1,2,3).Unit==f(v3(1,2,3),"Unit") end)
  117. --multiplying and adding vector3 is faster if you use the * and + operators
  118.  
  119. --no need to index instances every time to call their functions
  120. local Clone=insGet(game,"Clone")
  121. local ClearAllChildren=insGet(game,"ClearAllChildren")
  122. local Destroy=insGet(game,"Destroy")
  123. local IsA=insGet(game,"IsA")
  124. local FindFirstChildOfClass=insGet(game,"FindFirstChildOfClass")
  125. local FindFirstChildWhichIsA=insGet(game,"FindFirstChildWhichIsA")
  126. local GetChildren=insGet(game,"GetChildren")
  127. local GetDescendants=insGet(game,"GetDescendants")
  128. local IsDescendantOf=insGet(game,"IsDescendantOf")
  129. local GetPropertyChangedSignal=insGet(game,"GetPropertyChangedSignal")
  130.  
  131. --findfirstchildofclass faster than getservice
  132. local plrs=FindFirstChildOfClass(game,"Players")
  133. local rus=FindFirstChildOfClass(game,"RunService")
  134. local ws=FindFirstChildOfClass(game,"Workspace")
  135. local uis=FindFirstChildOfClass(game,"UserInputService")
  136. local gs=FindFirstChildOfClass(game,"GuiService")
  137. local sg=FindFirstChildOfClass(game,"StarterGui")
  138. local lp=insGet(plrs,"LocalPlayer")
  139. local pg=FindFirstChildOfClass(lp,"PlayerGui")
  140. local mouse=insGet(lp,"GetMouse")(lp)
  141. local cdsb=insGet(lp,"ConnectDiedSignalBackend")
  142. local rst=insGet(plrs,"RespawnTime")+0.07 --1/15
  143. local preanimation=insGet(rus,"PreAnimation")
  144. local heartbeat=insGet(rus,"Heartbeat")
  145. local renderstepped=insGet(rus,"RenderStepped")
  146.  
  147. local GetPlayers=insGet(plrs,"GetPlayers")
  148. local SetCoreGuiEnabled=insGet(sg,"SetCoreGuiEnabled")
  149. local GetCoreGuiEnabled=insGet(sg,"GetCoreGuiEnabled")
  150. local Raycast=insGet(ws,"Raycast")
  151. local Connect=heartbeat.Connect
  152. local Disconnect=Connect(GetPropertyChangedSignal(game,"CreatorId"),type).Disconnect
  153. local Wait=heartbeat.Wait
  154. local GetMouseLocation=insGet(uis,"GetMouseLocation")
  155. local GetFocusedTextBox=insGet(uis,"GetFocusedTextBox")
  156. local GetMouseDelta=insGet(uis,"GetMouseDelta")
  157. local IsMouseButtonPressed=insGet(uis,"IsMouseButtonPressed")
  158. local IsKeyDown=insGet(uis,"IsKeyDown")
  159.  
  160. local Inverse=cfGet(cf_0,"Inverse")
  161. local Lerp=cfGet(cf_0,"Lerp")
  162.  
  163. local guiTheme={
  164.     guiTitle="patchma hub",
  165.     windowTitleColor=c3(0,0,1),
  166.     windowTopColor=c3(0,0,0),
  167.     windowBottomColor=c3(0,0,0.584314),
  168.     windowMinimizedSize={X=220,Y=22},
  169.     windowRegularSize={X=220,Y=290},
  170.     buttonsTextColor=c3(0.0941177,0.317647,0.878431),
  171.     labelsTextColor=c3(0.560784,0.560784,0.560784),
  172.     listTopColor=c3(0,0,0),
  173.     listBottomColor=c3(0.0705882,0.0705882,0.0705882)
  174. }
  175.  
  176. local accessorylimbs={
  177.     {meshid="117287001096396",textureid="",C0=cf_0,Name="Left Arm"},
  178.     {meshid="117287001096396",textureid="",C0=cf_0,Name="Right Arm"},
  179.  
  180.     {meshid="90736849096372",textureid="",C0=angles(0,0,1.5707963267948966),Name="Left Arm"}, --arms
  181.     {meshid="105141400603933",textureid="",C0=angles(0,0,1.5707963267948966),Name="Right Arm"}, --arms
  182.  
  183.     {meshid="11263221350",textureid="11263219250",C0=angles(1.5707963267948966,0,1.5707963267948966),Name="Left Arm"},
  184.     {meshid="11159370334",textureid="11159284657",C0=angles(-1.5707963267948966,0,1.5707963267948966),Name="Right Arm"},
  185.  
  186.     {meshid="14255522247",textureid="14255543546",C0=angles(1.5707963267948966,0,1.5707963267948966),Name="Left Leg"}, --alt legs
  187.     {meshid="14255522247",textureid="14255543546",C0=angles(-1.5707963267948966,0,1.5707963267948966),Name="Right Leg"}, --alt legs
  188.  
  189.     {meshid="14255522247",textureid="",C0=angles(1.5707963267948966,0,1.5707963267948966),Name="Left Arm"},
  190.     {meshid="14255522247",textureid="",C0=angles(-1.5707963267948966,0,1.5707963267948966),Name="Right Arm"},
  191.  
  192.     {meshid="17374767929",textureid="",C0=angles(1.5707963267948966,0,1.5707963267948966),Name="Left Arm"},
  193.     {meshid="17374767929",textureid="",C0=angles(-1.5707963267948966,0,1.5707963267948966),Name="Right Arm"},
  194.  
  195.     {meshid="12344207333",textureid="",C0=angles(2,0,0),Name="Left Arm"},
  196.     {meshid="12344206657",textureid="",C0=angles(2,0,0),Name="Right Arm"},
  197.  
  198.     {meshid="13831073174",textureid="",C0=cf(0.017,0,-0.23)*angles(-1.4835298641951802,-0.15707963267948966,2.199114857512855),Name="Left Arm"},
  199.     {meshid="13839903766",textureid="",C0=cf(0,-0.62,-0.01)*angles(1.6580627893946132,0.15707963267948966,-2.199114857512855),Name="Right Arm"},
  200.  
  201.     {meshid="121304376791439",textureid="",C0=cf_0,Name="Left Leg"},
  202.     {meshid="121304376791439",textureid="",C0=cf_0,Name="Right Leg"},
  203.  
  204.     {meshid="11159370334",textureid="11159285454",C0=angles(1.5707963267948966,0,1.5707963267948966),Name="Left Leg"},
  205.     {meshid="12652772399",textureid="12652775021",C0=cf(0,-0.125,0),Name="Right Leg"},
  206.  
  207.     {meshid="14768684979",textureid="",C0=angles(0,0,1.5707963267948966),Name="Left Leg"},
  208.     {meshid="14768684979",textureid="",C0=angles(0,0,1.5707963267948966),Name="Right Leg"},
  209.  
  210.     {meshid="17387586286",textureid="",C0=angles(1.5707963267948966,0,1.5707963267948966),Name="Left Leg"},
  211.     {meshid="17387586286",textureid="",C0=angles(-1.5707963267948966,0,1.5707963267948966),Name="Right Leg"},
  212.  
  213.     {meshid="14768666349",textureid="",C0=cf_0,Name="Torso"},
  214.     {meshid="14241018198",textureid="",C0=cf_0,Name="Torso"},
  215.     {meshid="13421774668",textureid="",C0=cf_0,Name="Torso"},
  216.     {meshid="110684113028749",textureid="",C0=cf_0,Name="Torso"},
  217.     {meshid="127552124837034",textureid="",C0=angles(0,0,1.5707963267948966),Name="Torso"},
  218.  
  219.     {meshid="4324138105",textureid="4324138210",C0=angles(-1.6144295580947547,1.5707963267948966,0)*cf(-0.125,0.3,0),Name="Left Arm"},
  220.     {meshid="4154474745",textureid="4154474807",C0=angles(1.5271630954950384,-1.5707963267948966,0)*cf(-0.125,-0.3,0),Name="Left Arm"},
  221.     {meshid="3030546036",textureid="3650191503",C0=angles(1.5271630954950384,1.5707963267948966,0)*cf(0.125,-0.3,0),Name="Right Arm"},
  222.     {meshid="3030546036",textureid="3443321249",C0=angles(-1.6144295580947547,-1.5707963267948966,0)*cf(0.125,0.3,0),Name="Right Arm"},
  223.     {meshid="3030546036",textureid="3360974849",C0=angles(1.5271630954950384,1.5707963267948966,0)*cf(-0.125,-0.35,0),Name="Left Leg"},
  224.     {meshid="3030546036",textureid="3360978739",C0=angles(-1.6144295580947547,-1.5707963267948966,0)*cf(-0.125,0.3,0),Name="Left Leg"},
  225.     {meshid="3030546036",textureid="3033898741",C0=angles(1.5271630954950384,-1.5707963267948966,0)*cf(0.125,-0.35,0),Name="Right Leg"},
  226.     {meshid="3030546036",textureid="3409604993",C0=angles(-1.6144295580947547,1.5707963267948966,0)*cf(0.125,0.3,0),Name="Right Leg"},
  227.     {meshid="4819720316",textureid="4819722776",C0=angles(0,0,0.2617993877991494),Name="Torso"}
  228. }
  229.  
  230. local gp=function(p,n,cl)
  231.     for i,v in next,GetChildren(p) do
  232.         if IsA(v,cl) and (insGet(v,"Name")==n) then
  233.             return v
  234.         end
  235.     end
  236.     return nil
  237. end
  238. local timegp=function(p,n,c,t)
  239.     t=osclock()+t
  240.     while t>osclock() do
  241.         for i,v in next,GetChildren(p) do
  242.             if IsA(v,c) and (insGet(v,"Name")==n) then
  243.                 return v
  244.             end
  245.         end
  246.         Wait(preanimation)
  247.     end
  248.     return nil
  249. end
  250. local makeplaceholder=function(v)
  251.     if not insGet(v,"Archivable") then
  252.         insSet(v,"Archivable",true)
  253.     end
  254.     v=Clone(v)
  255.     for i,v in next,GetChildren(v) do
  256.         if IsA(v,"SpecialMesh") then
  257.             insSet(v,"Name",rs())
  258.             ClearAllChildren(v)
  259.         else
  260.             Destroy(v)
  261.         end
  262.     end
  263.     insSet(v,"Name",rs())
  264.     insSet(v,"Anchored",true)
  265.     insSet(v,"CanCollide",false)
  266.     insSet(v,"Transparency",0.25)
  267.     return v
  268. end
  269. local emptyfunction=function() end
  270.  
  271. local i1=i("Frame")
  272. local i2=i("Frame")
  273. local i3=i("Frame")
  274. local i4=i("ScrollingFrame")
  275. local i5=i("UIListLayout")
  276. local i6=i("UIGradient")
  277. local i7=i("TextBox")
  278. local i8=i("TextButton")
  279. local i9=i("UIGradient")
  280. local i10=i("ScreenGui")
  281. insSet(i1,"AnchorPoint",v2(0.5,0))
  282. insSet(i1,"Active",true)
  283. insSet(i1,"BorderSizePixel",0)
  284. insSet(i1,"ClipsDescendants",true)
  285. insSet(i1,"Position",u2(0.5,0,0.5,guiTheme.windowRegularSize.Y/-2))
  286. insSet(i1,"Size",u2(0,guiTheme.windowRegularSize.X,0,guiTheme.windowRegularSize.Y))
  287. insSet(i1,"Name",rs())
  288. insSet(i1,"Parent",i10)
  289. insSet(i2,"BackgroundColor3",c3(1,1,1))
  290. insSet(i2,"BorderSizePixel",0)
  291. insSet(i2,"Size",u2(0,guiTheme.windowRegularSize.X,0,guiTheme.windowRegularSize.Y))
  292. insSet(i2,"Name",rs())
  293. insSet(i2,"Parent",i1)
  294. insSet(i3,"BackgroundColor3",c3(1,1,1))
  295. insSet(i3,"BorderSizePixel",0)
  296. insSet(i3,"Position",u2(0,5,0,guiTheme.windowMinimizedSize.Y-2))
  297. insSet(i3,"Size",u2(1,-10,0,guiTheme.windowRegularSize.Y-guiTheme.windowMinimizedSize.Y-3))
  298. insSet(i3,"Name",rs())
  299. insSet(i3,"Parent",i2)
  300. insSet(i4,"Active",true)
  301. insSet(i4,"BackgroundTransparency",1)
  302. insSet(i4,"BorderSizePixel",0)
  303. insSet(i4,"Size",u2(1,-3,1,0))
  304. insSet(i4,"AutomaticCanvasSize",e.AutomaticSize.Y)
  305. insSet(i4,"CanvasSize",u2(0,0,0,0))
  306. insSet(i4,"ScrollBarThickness",7)
  307. insSet(i4,"Name",rs())
  308. insSet(i4,"Parent",i3)
  309. insSet(i5,"Name",rs())
  310. insSet(i5,"Parent",i4)
  311. insSet(i5,"SortOrder",e.SortOrder.LayoutOrder)
  312. insSet(i6,"Name",rs())
  313. insSet(i6,"Parent",i3)
  314. insSet(i6,"Color",cs({csk(0,guiTheme.listTopColor),csk(1,guiTheme.listBottomColor)}))
  315. insSet(i6,"Rotation",90)
  316. insSet(i7,"Font",e.Font.SourceSans)
  317. insSet(i7,"FontSize",e.FontSize.Size18)
  318. insSet(i7,"ClearTextOnFocus",false)
  319. insSet(i7,"Text",guiTheme.guiTitle)
  320. insSet(i7,"TextColor3",guiTheme.windowTitleColor)
  321. insSet(i7,"TextSize",16)
  322. insSet(i7,"AnchorPoint",v2(0.5,0))
  323. insSet(i7,"BackgroundTransparency",1)
  324. insSet(i7,"Position",u2(0.5,0,0,guiTheme.windowMinimizedSize.Y/2))
  325. insSet(i7,"Name",rs())
  326. insSet(i7,"Parent",i2)
  327. insSet(i8,"AnchorPoint",v2(1,0))
  328. insSet(i8,"BackgroundTransparency",1)
  329. insSet(i8,"Position",u2(1,0,0,0))
  330. insSet(i8,"Size",u2(0,40,0,guiTheme.windowMinimizedSize.Y))
  331. insSet(i8,"Name",rs())
  332. insSet(i8,"Parent",i2)
  333. insSet(i8,"Font",e.Font.SourceSans)
  334. insSet(i8,"FontSize",e.FontSize.Size18)
  335. insSet(i8,"Text","-")
  336. insSet(i8,"TextColor3",c3(1,1,1))
  337. insSet(i8,"TextSize",16)
  338. insSet(i9,"Name",rs())
  339. insSet(i9,"Parent",i2)
  340. insSet(i9,"Color",cs({csk(0,guiTheme.windowTopColor),csk(1,guiTheme.windowBottomColor)}))
  341. insSet(i9,"Rotation",90)
  342. insSet(i10,"ZIndexBehavior",e.ZIndexBehavior.Sibling)
  343. insSet(i10,"IgnoreGuiInset",true)
  344. insSet(i10,"ResetOnSpawn",false)
  345. insSet(i10,"DisplayOrder",2147483647)
  346. insSet(i10,"Name",rs())
  347. local guimin=false
  348. local minloop=false
  349. local i1X=guiTheme.windowRegularSize.X
  350. local i1Y=guiTheme.windowRegularSize.Y
  351. local i1Xdest=i1X
  352. local i1Ydest=i1Y
  353. Connect(insGet(i8,"MouseButton1Click"),function()
  354.     guimin = not guimin
  355.     if guimin then
  356.         i1Xdest=guiTheme.windowMinimizedSize.X
  357.         i1Ydest=guiTheme.windowMinimizedSize.Y
  358.     else
  359.         i1Xdest=guiTheme.windowRegularSize.X
  360.         i1Ydest=guiTheme.windowRegularSize.Y
  361.     end
  362.     if minloop then
  363.         return
  364.     end
  365.     minloop=true
  366.     insSet(i3,"Visible",true)
  367.     sine=osclock()
  368.     local lastsine=sine
  369.     while true do
  370.         sine=osclock()
  371.         local deltaTime=(sine-lastsine)*10
  372.         lastsine=sine
  373.         local difX=i1Xdest-i1X
  374.         local difY=i1Ydest-i1Y
  375.         if (abs(difY)<=1) and (abs(difX)<=1) then
  376.             i1X=i1Xdest
  377.             i1Y=i1Ydest
  378.             insSet(i1,"Size",u2(0,i1X,0,i1Y))
  379.             break
  380.         end
  381.         i1X=i1X+difX*deltaTime
  382.         i1Y=i1Y+difY*deltaTime
  383.         insSet(i1,"Size",u2(0,i1X,0,i1Y))
  384.         twait()
  385.     end
  386.     insSet(i3,"Visible",not guimin)
  387.     minloop=false
  388. end)
  389. local Draggable=function(window,obj)
  390.     local MB1enum = e.UserInputType.MouseButton1
  391.     local TOUCHenum = e.UserInputType.Touch
  392.     obj = obj or window
  393.     local activeEntered = 0
  394.     local mouseStart = nil
  395.     local dragStart = nil
  396.     local inputbegancon = nil
  397.     local rendersteppedcon = nil
  398.     local inputendedcon = nil
  399.     local inputendedf=function(a)
  400.         a=insGet(a,"UserInputType")
  401.         if (a==MB1enum) or (a==TOUCHenum) then
  402.             Disconnect(rendersteppedcon)
  403.             Disconnect(inputendedcon)
  404.         end
  405.     end
  406.     local rendersteppedf=function()
  407.         local off = GetMouseLocation(uis)-mouseStart
  408.         insSet(window,"Position",dragStart+u2(0,off.X,0,off.Y))
  409.     end
  410.     local inputbeganf=function(a)
  411.         a=insGet(a,"UserInputType")
  412.         if ((a==MB1enum) or (a==TOUCHenum)) and (activeEntered==0) and not GetFocusedTextBox(uis) then
  413.             mouseStart=GetMouseLocation(uis)
  414.             dragStart=insGet(window,"Position")
  415.             if rendersteppedcon then Disconnect(rendersteppedcon) end
  416.             rendersteppedcon = Connect(renderstepped,rendersteppedf)
  417.             if inputendedcon then Disconnect(inputendedcon) end
  418.             inputendedcon = Connect(insGet(uis,"InputEnded"),inputendedf)
  419.         end
  420.     end
  421.     Connect(insGet(obj,"MouseEnter"),function()
  422.         if inputbegancon then Disconnect(inputbegancon) end
  423.         inputbegancon = Connect(insGet(uis,"InputBegan"),inputbeganf)
  424.     end)
  425.     Connect(insGet(obj,"MouseLeave"),function()
  426.         Disconnect(inputbegancon)
  427.     end)
  428.     local ondes=function(d)
  429.         if IsA(d,"GuiObject") then
  430.             local thisEntered = false
  431.             local thisAdded = false
  432.             local con0 = Connect(insGet(d,"MouseEnter"),function()
  433.                 thisEntered = true
  434.                 if (not thisAdded) and insGet(d,"Active") then
  435.                     activeEntered = activeEntered + 1
  436.                     thisAdded = true
  437.                 end
  438.             end)
  439.             local con1 = Connect(insGet(d,"MouseLeave"),function()
  440.                 thisEntered = false
  441.                 if thisAdded then
  442.                     activeEntered = activeEntered - 1
  443.                     thisAdded = false
  444.                 end
  445.             end)
  446.             local con2 = Connect(GetPropertyChangedSignal(d,"Active"),function()
  447.                 if thisEntered then
  448.                     if thisAdded and not insGet(d,"Active") then
  449.                         activeEntered = activeEntered - 1
  450.                         thisAdded = false
  451.                     elseif insGet(d,"Active") and not thisAdded then
  452.                         activeEntered = activeEntered + 1
  453.                         thisAdded = true
  454.                     end
  455.                 end
  456.             end)
  457.             local con3 = nil
  458.             con3 = Connect(insGet(d,"AncestryChanged"),function()
  459.                 if not IsDescendantOf(d,window) then
  460.                     if thisAdded then
  461.                         activeEntered = activeEntered - 1
  462.                     end
  463.                     Disconnect(con0)
  464.                     Disconnect(con1)
  465.                     Disconnect(con2)
  466.                     Disconnect(con3)
  467.                 end
  468.             end)
  469.         end
  470.     end
  471.     Connect(insGet(window,"DescendantAdded"),ondes)
  472.     for i,v in next,GetDescendants(window) do
  473.         ondes(v)
  474.     end
  475. end
  476. local btn=function(txt, f)
  477.     local i1=i("TextBox")
  478.     local i2=i("TextButton")
  479.     insSet(i1,"Font",e.Font.SourceSans)
  480.     insSet(i1,"FontSize",e.FontSize.Size14)
  481.     insSet(i1,"Text",txt)
  482.     insSet(i1,"ClearTextOnFocus",false)
  483.     insSet(i1,"Position",u2(0.5,0,0.5,0))
  484.     insSet(i1,"TextColor3",guiTheme.buttonsTextColor)
  485.     insSet(i1,"Name",rs())
  486.     insSet(i1,"Parent",i2)
  487.     insSet(i2,"BackgroundTransparency",1)
  488.     insSet(i2,"TextTransparency",1)
  489.     insSet(i2,"Size",u2(1,0,0,14))
  490.     insSet(i2,"Name",rs())
  491.     if f then
  492.         Connect(insGet(i2,"MouseButton1Click"),f)
  493.     end
  494.     insSet(i2,"Parent",i4)
  495.     return i1
  496. end
  497. local lbl=function(txt)
  498.     local i1=i("TextBox")
  499.     local i2=i("Frame")
  500.     insSet(i1,"Font",e.Font.SourceSans)
  501.     insSet(i1,"FontSize",e.FontSize.Size14)
  502.     insSet(i1,"Text",txt)
  503.     insSet(i1,"ClearTextOnFocus",false)
  504.     insSet(i1,"TextColor3",guiTheme.labelsTextColor)
  505.     insSet(i1,"Position",u2(0.5,0,0.5))
  506.     insSet(i1,"BackgroundTransparency",1)
  507.     insSet(i1,"Name",rs())
  508.     insSet(i1,"Parent",i2)
  509.     insSet(i2,"Size",u2(1,0,0,14))
  510.     insSet(i2,"BackgroundTransparency",1)
  511.     insSet(i2,"Name",rs())
  512.     insSet(i2,"Parent",i4)
  513.     return i1
  514. end
  515.  
  516. Draggable(i1)
  517.  
  518. lbl("by MyWorld")
  519. lbl("discord.gg/QMy5f6DrbH")
  520.  
  521. local allowshiftlock=nil
  522. local ctrltp=nil
  523. local placeholders=nil
  524. local clickfling=nil
  525. local highlightflingtargets=nil
  526. local discharscripts=nil
  527. local flingchangestate=nil
  528. local respawntp=nil
  529. local breakjointsmethod=nil
  530. local simrad=false
  531. local hidedeatheffect=nil
  532.  
  533. local c=nil
  534. local stopreanimate=function()
  535.     if c then
  536.         c=nil
  537.         if replicatesignal then
  538.             replicatesignal(cdsb)
  539.         end
  540.         return true
  541.     end
  542.     return false
  543. end
  544. local reanimate=function()
  545.     --[[
  546.         FDless reanimate by MyWorld
  547.         optimize the optimized
  548.     ]]
  549.  
  550.     local novoid = true --prevents parts from going under workspace.FallenPartsDestroyHeight if you control them
  551.     local speedlimit = 3000 --makes your parts move slower if the magnitude of their velocity is higher than this
  552.     local retVelTime = 0.51 --time that claimed parts have velocity to reclaim in case u lose them
  553.     local walkSpeed = 16 --your walkspeed (can be changed at runtime)
  554.     local jumpPower = 50 --your jump power (can be changed at runtime)
  555.     local gravity = 196.2 --how fast the characters velocity decreases while falling (can be changed at runtime)
  556.     local ctrlclicktp = ctrltp --makes you teleport where u point ur mouse cursor at when click and hold ctrl down
  557.     local clickfling = clickfling --makes you fling the person you clicked when its available to do so
  558.     local flingvel = v3(15000,16000,15000) --the rotation velocity that ur character will have while flinging
  559.  
  560.     if stopreanimate() then return end
  561.     c=insGet(lp,"Character")
  562.     if not (c and IsDescendantOf(c,ws)) then return end
  563.  
  564.     local rootpart=gp(c,"HumanoidRootPart","BasePart") or gp(c,"Torso","BasePart") or gp(c,"UpperTorso","BasePart") or timegp(c,"HumanoidRootPart","BasePart",0.5) or FindFirstChildWhichIsA(c,"BasePart")
  565.     if not rootpart then return end
  566.  
  567.     local cam=nil
  568.     --theres a way to have ws.currentcamera nil on heartbeat and still have the game run normally
  569.     local refcam=function()
  570.         local newcam=insGet(ws,"CurrentCamera")
  571.         while not newcam do
  572.             Wait(GetPropertyChangedSignal(ws,"CurrentCamera"))
  573.             newcam=insGet(ws,"CurrentCamera")
  574.         end
  575.         cam=newcam
  576.     end
  577.     refcam()
  578.     local camcf=insGet(cam,"CFrame")
  579.     local enumCamS=e.CameraType.Scriptable
  580.     local camt=insGet(cam,"CameraType")
  581.     local camcon0=nil
  582.     local camcon1=nil
  583.     local camcon2=nil
  584.     local onnewcamera=function()
  585.         refcam()
  586.         if camcon0 then
  587.             Disconnect(camcon0)
  588.             Disconnect(camcon1)
  589.             camcon0=nil
  590.         end
  591.         if not c then
  592.             if insGet(cam,"CameraType")==enumCamS then
  593.                 insSet(cam,"CameraType",camt)
  594.             end
  595.             return Disconnect(camcon2)
  596.         end
  597.         camcon0=Connect(GetPropertyChangedSignal(cam,"CFrame"),function()
  598.             if insGet(cam,"CFrame")~=camcf then
  599.                 insSet(cam,"CFrame",camcf)
  600.             end
  601.         end)
  602.         camcon1=Connect(GetPropertyChangedSignal(cam,"CameraType"),function()
  603.             if insGet(cam,"CameraType")~=enumCamS then
  604.                 insSet(cam,"CameraType",enumCamS)
  605.             end
  606.         end)
  607.         if insGet(cam,"CameraType")~=enumCamS then
  608.             insSet(cam,"CameraType",enumCamS)
  609.         end
  610.         if insGet(cam,"CFrame")~=camcf then
  611.             insSet(cam,"CFrame",camcf)
  612.         end
  613.     end
  614.     camcon2=Connect(GetPropertyChangedSignal(ws,"CurrentCamera"),onnewcamera)
  615.     onnewcamera()
  616.  
  617.     local velYdelta=insGet(ws,"Gravity")*0.025
  618.     Connect(GetPropertyChangedSignal(ws,"Gravity"),function()
  619.         velYdelta=insGet(ws,"Gravity")*0.025
  620.     end)
  621.  
  622.     local fpdh=insGet(ws,"FallenPartsDestroyHeight")
  623.     novoid=novoid and (fpdh+1)
  624.  
  625.     local Yvel=0
  626.     local cfr=insGet(rootpart,"CFrame")
  627.     local pos=cfGet(cfr,"Position")
  628.     cfr=cfl(pos,pos+cfGet(cfr,"LookVector")*v3_101)
  629.     local primarypart=nil
  630.     local shiftlock=false
  631.     local firstperson=false
  632.     local xzvel=v3_0
  633.     local v3_0150=v3_010*1.5
  634.     local camcfLV=cfGet(camcf,"LookVector")
  635.     local camrot=cfl(v3_0,camcfLV)
  636.     local camcfRV=cfGet(camrot,"RightVector")
  637.     local cammag=-v3Get((cfGet(camcf,"Position")-(pos+v3_0150)),"Magnitude")
  638.  
  639.     local R6parts={
  640.         head={Name="Head"},
  641.         torso={Name="Torso"},
  642.         root={Name="HumanoidRootPart"},
  643.         leftArm={Name="Left Arm"},
  644.         rightArm={Name="Right Arm"},
  645.         leftLeg={Name="Left Leg"},
  646.         rightLeg={Name="Right Leg"}
  647.     }
  648.     rootpart=R6parts.root
  649.     local cframes={}
  650.     for i,v in next,R6parts do
  651.         cframes[v]=cfr
  652.     end
  653.     local joints={
  654.         {
  655.             Name="Neck",
  656.             Part0=R6parts.torso,Part1=R6parts.head,
  657.             C0=cf(0,1,0,-1,0,0,0,0,1,0,1,-0),
  658.             C1=cf(0,-0.5,0,-1,0,0,0,0,1,0,1,-0)
  659.         },
  660.         {
  661.             Name="RootJoint",
  662.             Part0=rootpart,Part1=R6parts.torso,
  663.             C0=cf(0,0,0,-1,0,0,0,0,1,0,1,-0),
  664.             C1=cf(0,0,0,-1,0,0,0,0,1,0,1,-0)
  665.         },
  666.         {
  667.             Name="Right Shoulder",
  668.             Part0=R6parts.torso,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.         {
  673.             Name="Left Shoulder",
  674.             Part0=R6parts.torso,Part1=R6parts.leftArm,
  675.             C0=cf(-1,0.5,0,0,0,-1,0,1,0,1,0,0),
  676.             C1=cf(0.5,0.5,0,0,0,-1,0,1,0,1,0,0)
  677.         },
  678.         {
  679.             Name="Right Hip",
  680.             Part0=R6parts.torso,Part1=R6parts.rightLeg,
  681.             C0=cf(1,-1,0,0,0,1,0,1,-0,-1,0,0),
  682.             C1=cf(0.5,1,0,0,0,1,0,1,-0,-1,0,0)
  683.         },
  684.         {
  685.             Name="Left Hip",
  686.             Part0=R6parts.torso,Part1=R6parts.leftLeg,
  687.             C0=cf(-1,-1,0,0,0,-1,0,1,0,1,0,0),
  688.             C1=cf(-0.5,1,0,0,0,-1,0,1,0,1,0,0)
  689.         }
  690.     }
  691.  
  692.     local refreshedjoints={}
  693.     local refreshjointsI=nil
  694.     refreshjointsI=function(part)
  695.         tinsert(refreshedjoints,part)
  696.         for i,v in next,joints do
  697.             local part0=v.Part0
  698.             local part1=v.Part1
  699.             if part1 and (part0==part) then
  700.                 cframes[part1]=cfMul(cframes[part],cfMul(v.C0,Inverse(v.C1)))
  701.                 if not tfind(refreshedjoints,part1) then
  702.                     refreshjointsI(part1)
  703.                 end
  704.             elseif part0 and (part1==part) then
  705.                 cframes[part0]=cfMul(cframes[part],cfMul(v.C1,Inverse(v.C0)))
  706.                 if not tfind(refreshedjoints,part0) then
  707.                     refreshjointsI(part0)
  708.                 end
  709.             end
  710.         end
  711.     end
  712.     refreshjointsI(rootpart)
  713.     tclear(refreshedjoints)
  714.  
  715.     local attachments={
  716.         RightShoulderAttachment={R6parts.rightArm,cf(0,1,0,1,0,0,0,1,0,0,0,1)},
  717.         RightGripAttachment={R6parts.rightArm,cf(0,-1,0,1,0,0,0,1,0,0,0,1)},
  718.         LeftFootAttachment={R6parts.leftLeg,cf(0,-1,0,1,0,0,0,1,0,0,0,1)},
  719.         LeftShoulderAttachment={R6parts.leftArm,cf(0,1,0,1,0,0,0,1,0,0,0,1)},
  720.         LeftGripAttachment={R6parts.leftArm,cf(0,-1,0,1,0,0,0,1,0,0,0,1)},
  721.         RootAttachment={rootpart,cf(0,0,0,1,0,0,0,1,0,0,0,1)},
  722.         RightFootAttachment={R6parts.rightLeg,cf(0,-1,0,1,0,0,0,1,0,0,0,1)},
  723.         NeckAttachment={R6parts.torso,cf(0,1,0,1,0,0,0,1,0,0,0,1)},
  724.         BodyFrontAttachment={R6parts.torso,cf(0,0,-0.5,1,0,0,0,1,0,0,0,1)},
  725.         BodyBackAttachment={R6parts.torso,cf(0,0,0.5,1,0,0,0,1,0,0,0,1)},
  726.         LeftCollarAttachment={R6parts.torso,cf(-1,1,0,1,0,0,0,1,0,0,0,1)},
  727.         RightCollarAttachment={R6parts.torso,cf(1,1,0,1,0,0,0,1,0,0,0,1)},
  728.         WaistFrontAttachment={R6parts.torso,cf(0,-1,-0.5,1,0,0,0,1,0,0,0,1)},
  729.         WaistCenterAttachment={R6parts.torso,cf(0,-1,0,1,0,0,0,1,0,0,0,1)},
  730.         WaistBackAttachment={R6parts.torso,cf(0,-1,0.5,1,0,0,0,1,0,0,0,1)},
  731.         HairAttachment={R6parts.head,cf(0,0.6,0,1,0,0,0,1,0,0,0,1)},
  732.         HatAttachment={R6parts.head,cf(0,0.6,0,1,0,0,0,1,0,0,0,1)},
  733.         FaceFrontAttachment={R6parts.head,cf(0,0,-0.6,1,0,0,0,1,0,0,0,1)},
  734.         FaceCenterAttachment={R6parts.head,cf(0,0,0,1,0,0,0,1,0,0,0,1)}
  735.     }
  736.  
  737.     local getPart=function(name,blacklist)
  738.         if blacklist then
  739.             for i,v in next,cframes do
  740.                 if (i.Name==name) and not tfind(blacklist,i) then
  741.                     return i
  742.                 end
  743.             end
  744.         else
  745.             for i,v in next,cframes do
  746.                 if i.Name==name then
  747.                     return i
  748.                 end
  749.             end
  750.         end
  751.         return nil
  752.     end
  753.  
  754.     local getJoint=function(name)
  755.         for i,v in next,joints do
  756.             if v.Name==name then
  757.                 return v
  758.             end
  759.         end
  760.         return {C0=cf_0,C1=cf_0}
  761.     end
  762.  
  763.     local getPartFromMesh=function(m,t,blacklist)
  764.         if blacklist then
  765.             for v,_ in next,cframes do
  766.                 if v.m and (not tfind(blacklist,v)) and sfind(v.m,m) and sfind(v.t,t) then
  767.                     return v
  768.                 end
  769.             end
  770.         else
  771.             for v,_ in next,cframes do
  772.                 if v.m and sfind(v.m,m) and sfind(v.t,t) then
  773.                     return v
  774.                 end
  775.             end
  776.         end
  777.         local p={m=m,t=t}
  778.         cframes[p]=cfr
  779.         local j={C0=cf_0,C1=cf_0,Part0=p}
  780.         p.j=j
  781.         return p
  782.     end
  783.  
  784.     local getPartJoint=function(p)
  785.         if cframes[p] then
  786.             local j=p.j
  787.             if j then
  788.                 return j
  789.             end
  790.             for i,v in next,joints do
  791.                 if v.Part0==p then
  792.                     return v
  793.                 end
  794.             end
  795.             for i,v in next,joints do
  796.                 if v.Part1==p then
  797.                     return v
  798.                 end
  799.             end
  800.         end
  801.         return nil
  802.     end
  803.  
  804.     local getAccWeldFromMesh=function(m,t)
  805.         return getPartJoint(getPartFromMesh(m,t))
  806.     end
  807.  
  808.     local raycastparams=rp()
  809.     raycastparams.FilterType=e.RaycastFilterType.Exclude
  810.     raycastparams.RespectCanCollide=true
  811.     local rayfilter={}
  812.     local characters={}
  813.     local refreshrayfilter=function()
  814.         tclear(rayfilter)
  815.         for i,v in next,characters do
  816.             tinsert(rayfilter,v)
  817.         end
  818.         raycastparams.FilterDescendantsInstances=rayfilter
  819.     end
  820.     local flingtable={}
  821.     local rootparts={}
  822.     for i,v in next,accessorylimbs do
  823.         v.p=getPart(v.Name)
  824.     end
  825.     local makePartCons=function(p,t)
  826.         if (t.p==p) and insGet(p,"Anchored") then
  827.             t.p=nil
  828.         end
  829.         local con0=Connect(GetPropertyChangedSignal(p,"Anchored"),function()
  830.             if insGet(p,"Anchored") then
  831.                 if t.p==p then
  832.                     t.c=nil
  833.                     t.p=nil
  834.                 end
  835.             elseif not t.p then
  836.                 t.p=p
  837.             end
  838.         end)
  839.         local con1=nil
  840.         con1=Connect(insGet(p,"AncestryChanged"),function()
  841.             if not IsDescendantOf(p,ws) then
  842.                 Disconnect(con0)
  843.                 Disconnect(con1)
  844.                 if t.p==p then
  845.                     t.p=nil
  846.                 end
  847.             end
  848.         end)
  849.     end
  850.     local ondes=nil
  851.     ondes=function(v)
  852.         if c and IsA(v,"Attachment") and IsDescendantOf(c,ws) then
  853.             local v1=attachments[insGet(v,"Name")]
  854.             if v1 then
  855.                 local p=insGet(v,"Parent")
  856.                 if insGet(p,"Parent")~=c then
  857.                     local meshid=nil
  858.                     local textureid=nil
  859.                     if IsA(p,"MeshPart") then
  860.                         meshid=insGet(p,"MeshId")
  861.                         textureid=insGet(p,"TextureID")
  862.                     elseif IsA(p,"BasePart") then
  863.                         local sm=FindFirstChildOfClass(p,"SpecialMesh")
  864.                         if sm then
  865.                             meshid=insGet(sm,"MeshId")
  866.                             textureid=insGet(sm,"TextureId")
  867.                         else
  868.                             return
  869.                         end
  870.                     else
  871.                         return
  872.                     end
  873.                     for i,_ in next,cframes do
  874.                         if (meshid==i.m) and (textureid==i.t) then
  875.                             local p1=i.p
  876.                             if p1 and IsDescendantOf(p1,c) then
  877.                                 if p1==p then
  878.                                     return
  879.                                 end
  880.                             else
  881.                                 i.p=p
  882.                                 makePartCons(p,i)
  883.                                 return
  884.                             end
  885.                         else
  886.                             local j=i.j
  887.                             if j and sfind(meshid,i.m) and sfind(textureid,i.t) then
  888.                                 i.m=meshid
  889.                                 i.t=textureid
  890.                                 i.l=insGet(p,"Position")
  891.                                 i.p=p
  892.                                 makePartCons(p,i)
  893.                                 i.j=nil
  894.                                 i.Name=insGet(p,"Name")
  895.                                 j.C0=insGet(v,"CFrame")
  896.                                 j.C1=v1[2]
  897.                                 j.Part1=v1[1]
  898.                                 tinsert(joints,j)
  899.                                 return
  900.                             end
  901.                         end
  902.                     end
  903.                     for i,l in next,accessorylimbs do
  904.                         if l.p and sfind(meshid,l.meshid) and sfind(textureid,l.textureid) then
  905.                             local t={Name=insGet(p,"Name"),l=insGet(p,"Position"),m=meshid,t=textureid,p=p}
  906.                             makePartCons(p,t)
  907.                             if placeholders then
  908.                                 t.v=makeplaceholder(p)
  909.                                 t.b=false
  910.                             end
  911.                             cframes[t]=insGet(p,"CFrame")
  912.                             tinsert(joints,{Part0=t,Part1=l.p,C0=l.C0,C1=cf_0})
  913.                             l.p=nil
  914.                             return
  915.                         end
  916.                     end
  917.                     local t={Name=insGet(p,"Name"),l=insGet(p,"Position"),m=meshid,t=textureid,p=p}
  918.                     makePartCons(p,t)
  919.                     if placeholders then
  920.                         t.v=makeplaceholder(p)
  921.                         t.b=false
  922.                     end
  923.                     cframes[t]=insGet(p,"CFrame")
  924.                     tinsert(joints,{Part0=t,Part1=v1[1],C0=insGet(v,"CFrame"),C1=v1[2]})
  925.                 end
  926.             end
  927.         end
  928.     end
  929.  
  930.     local simradv=0
  931.     local charcons={}
  932.     local enumH=e.CoreGuiType.Health
  933.     local onplayer=function(v)
  934.         simradv=simradv+1000
  935.         local islp=v==lp
  936.         local lastc=nil
  937.         local oncharacter=function()
  938.             local newc=insGet(v,"Character")
  939.             if c and newc and (newc~=lastc) then
  940.                 lastc=newc
  941.                 characters[v]=newc
  942.                 refreshrayfilter()
  943.                 if islp then
  944.                     if discharscripts then
  945.                         Connect(insGet(newc,"DescendantAdded"),discharscripts)
  946.                         for i,v in next,GetDescendants(newc) do
  947.                             if IsA(v,"Script") then
  948.                                 insSet(v,"Disabled",true)
  949.                             end
  950.                         end
  951.                     end
  952.                     local hrp=timegp(newc,"HumanoidRootPart","BasePart",10)
  953.                     if not (hrp and c and IsDescendantOf(newc,ws)) then return end
  954.                     c=newc
  955.                     local fi,fv=next(flingtable)
  956.                     if fi then
  957.                         if replicatesignal and not pdloadedtime then
  958.                             replicatesignal(cdsb)
  959.                             pdloadedtime=osclock()+rst
  960.                         end
  961.                         if flingchangestate==3 then
  962.                             local hum=FindFirstChildOfClass(c,"Humanoid")
  963.                             if hum then
  964.                                 insGet(hum,"ChangeState")(hum,e.HumanoidStateType.Physics)
  965.                                 insGet(hum,"SetStateEnabled")(hum,e.HumanoidStateType.Seated,false)
  966.                             end
  967.                         elseif flingchangestate==1 then
  968.                             local hum=FindFirstChildOfClass(c,"Humanoid")
  969.                             if hum then
  970.                                 insGet(hum,"ChangeState")(hum,e.HumanoidStateType.Physics)
  971.                             end
  972.                         elseif flingchangestate==2 then
  973.                             local hum=FindFirstChildOfClass(c,"Humanoid")
  974.                             if hum then
  975.                                 insGet(hum,"SetStateEnabled")(hum,e.HumanoidStateType.Seated,false)
  976.                             end
  977.                         end
  978.                         for i,v in next,tclone(flingtable) do
  979.                             if not c then
  980.                                 return
  981.                             end
  982.                             local startpos=insGet(i,"Position")
  983.                             local stoptime=sine+3
  984.                             while true do
  985.                                 twait()
  986.                                 if sine>stoptime then
  987.                                     break
  988.                                 end
  989.                                 if insGet(i,"Anchored") or not IsDescendantOf(i,ws) then
  990.                                     break
  991.                                 end
  992.                                 if v3Get((startpos-insGet(i,"Position")),"Magnitude")>200 then
  993.                                     break
  994.                                 end
  995.                                 local tcf=cfAdd(insGet(i,"CFrame"),insGet(i,"AssemblyLinearVelocity")*(sin(sine*15)+1))
  996.                                 if novoid and (cfGet(tcf,"Y")<novoid) then
  997.                                     tcf=cfAdd(tcf,v3_010*(novoid-cfGet(tcf,"Y")))
  998.                                 end
  999.                                 insSet(hrp,"CFrame",tcf)
  1000.                                 insSet(hrp,"AssemblyLinearVelocity",insGet(i,"AssemblyLinearVelocity")*v3_101*75)
  1001.                                 insSet(hrp,"AssemblyAngularVelocity",flingvel)
  1002.                             end
  1003.                             if v then
  1004.                                 Destroy(v)
  1005.                             end
  1006.                             flingtable[i]=nil
  1007.                         end
  1008.                         insSet(hrp,"AssemblyLinearVelocity",v3_0)
  1009.                         insSet(hrp,"AssemblyAngularVelocity",v3_0)
  1010.                         insSet(hrp,"CFrame",cfr)
  1011.                         twait(0.17)
  1012.                     end
  1013.                     if respawntp==1 then
  1014.                         local startpos=pos+v3(mrandom(-32,32),0,mrandom(-32,32))
  1015.                         local dir=nil
  1016.                         local poscheck=true
  1017.                         while poscheck do
  1018.                             poscheck=false
  1019.                             for i,v in next,rootparts do
  1020.                                 local diff=(startpos-insGet(v,"Position"))*v3_101
  1021.                                 if v3Get(diff,"Magnitude")<10 then
  1022.                                     poscheck=true
  1023.                                     dir=dir or (v3Get(diff,"Unit")*3)
  1024.                                     startpos=startpos+dir
  1025.                                 end
  1026.                             end
  1027.                             local diff=(startpos-pos)*v3_101
  1028.                             if v3Get(diff,"Magnitude")<10 then
  1029.                                 poscheck=true
  1030.                                 dir=dir or (v3Get(diff,"Unit")*3)
  1031.                                 startpos=startpos+dir
  1032.                             end
  1033.                         end
  1034.                         startpos=cfAdd(cfGet(cfr,"Rotation"),startpos)
  1035.                         insSet(hrp,"CFrame",startpos)
  1036.                         insSet(hrp,"AssemblyLinearVelocity",v3_0)
  1037.                         insSet(hrp,"AssemblyAngularVelocity",v3_0)
  1038.                         twait(0.17)
  1039.                     elseif respawntp==2 then
  1040.                         insSet(hrp,"CFrame",cfAdd(cfr,cfGet(cfr,"RightVector")*3.5-cfGet(cfr,"LookVector")*3.5))
  1041.                         insSet(hrp,"AssemblyLinearVelocity",v3_0)
  1042.                         insSet(hrp,"AssemblyAngularVelocity",v3_0)
  1043.                         twait(0.17)
  1044.                     elseif respawntp==3 then
  1045.                         local t=osclock()+0.17
  1046.                         if pdloadedtime and pdloadedtime>t then
  1047.                             t=pdloadedtime
  1048.                         end
  1049.                         local startcf=cfAdd(cfMul(cfGet(cfr,"Rotation"),angles(1.5707963267948966,0,0)),pos*v3_101+v3_010*min(fpdh+30,v3Get(pos,"Y")-5))
  1050.                         while twait() do
  1051.                             insSet(hrp,"CFrame",startcf)
  1052.                             insSet(hrp,"AssemblyLinearVelocity",v3_0)
  1053.                             insSet(hrp,"AssemblyAngularVelocity",v3_0)
  1054.                             if osclock()>t then
  1055.                                 break
  1056.                             end
  1057.                         end
  1058.                     end
  1059.                     if newc~=c then
  1060.                         return
  1061.                     end
  1062.                     primarypart=insGet(newc,"PrimaryPart") or hrp
  1063.                     if hidedeatheffect and GetCoreGuiEnabled(sg,enumH) then
  1064.                         SetCoreGuiEnabled(sg,enumH,false)
  1065.                     end
  1066.                     if pdloadedtime then
  1067.                         if (osclock()<pdloadedtime) then
  1068.                             twait(pdloadedtime-osclock())
  1069.                         end
  1070.                         pdloadedtime=nil
  1071.                     end
  1072.                     if breakjointsmethod==1 then
  1073.                         insGet(newc,"BreakJoints")(newc)
  1074.                         local h=FindFirstChildOfClass(newc,"Humanoid")
  1075.                         if h then
  1076.                             insSet(h,"Health",0)
  1077.                         end
  1078.                     elseif breakjointsmethod==2 then
  1079.                         local h=FindFirstChildOfClass(newc,"Humanoid")
  1080.                         if h then
  1081.                             insSet(h,"Health",0)
  1082.                         else
  1083.                             insGet(newc,"BreakJoints")(newc)
  1084.                         end
  1085.                     else
  1086.                         insGet(newc,"BreakJoints")(newc)
  1087.                     end
  1088.                     Connect(insGet(newc,"DescendantAdded"),ondes)
  1089.                     for i,v in next,GetDescendants(newc) do
  1090.                         ondes(v)
  1091.                     end
  1092.                 else
  1093.                     local hrp=timegp(newc,"HumanoidRootPart","BasePart",10)
  1094.                     if hrp and c and IsDescendantOf(newc,ws) then
  1095.                         rootparts[v]=hrp
  1096.                     end
  1097.                 end
  1098.             end
  1099.         end
  1100.         charcons[v]=Connect(GetPropertyChangedSignal(v,"Character"),oncharacter)
  1101.         oncharacter()
  1102.     end
  1103.     Connect(insGet(plrs,"PlayerRemoving"),function(v)
  1104.         simradv=simradv-1000
  1105.         local charcon=charcons[v]
  1106.         if charcon then
  1107.             Disconnect(charcon)
  1108.         end
  1109.         characters[v]=nil
  1110.         rootparts[v]=nil
  1111.     end)
  1112.     for i,v in next,GetPlayers(plrs) do simradv=simradv+1000 if v~=lp then tspawn(onplayer,v) end end
  1113.     Connect(insGet(plrs,"PlayerAdded"),onplayer)
  1114.     onplayer(lp)
  1115.     local setsimrad=emptyfunction
  1116.     if simrad then
  1117.         setsimrad=function()
  1118.             local canset,_=pcall(function()
  1119.                 insSet(lp,"SimulationRadius",simradv)
  1120.             end)
  1121.             if canset then
  1122.                 setsimrad=function()
  1123.                     insSet(lp,"SimulationRadius",simradv)
  1124.                 end
  1125.             else
  1126.                 setsimrad=emptyfunction
  1127.             end
  1128.         end
  1129.     end
  1130.  
  1131.     local mradN05=-0.008726646259971648
  1132.     local KeyCode=e.KeyCode
  1133.     local enumMB2=e.UserInputType.MouseButton2
  1134.     local enumMLCP=e.MouseBehavior.LockCurrentPosition
  1135.     local enumMLC=(insGet(uis,"TouchEnabled") and enumMLCP) or e.MouseBehavior.LockCenter
  1136.     local enumMD=e.MouseBehavior.Default
  1137.     local enumMW=e.UserInputType.MouseWheel
  1138.     local enumMM=e.UserInputType.MouseMovement
  1139.  
  1140.     local mouseBehavior=nil
  1141.     local lastMouseBehavior=insGet(uis,"MouseBehavior")
  1142.     Connect(GetPropertyChangedSignal(uis,"MouseBehavior"),function()
  1143.         if mouseBehavior and (insGet(uis,"MouseBehavior")~=mouseBehavior) then
  1144.             insSet(uis,"MouseBehavior",mouseBehavior)
  1145.         end
  1146.     end)
  1147.  
  1148.     local mode="default"
  1149.     local defaultmode={}
  1150.     local modes={default=defaultmode}
  1151.  
  1152.     local lerpsIdle=emptyfunction
  1153.     local lerpsWalk=emptyfunction
  1154.     local lerpsJump=emptyfunction
  1155.     local lerpsFall=emptyfunction
  1156.  
  1157.     local addmode=function(key,mode)
  1158.         if (type(key)~="string") or (type(mode)~="table") then
  1159.             return
  1160.         end
  1161.         for i,v in next,mode do
  1162.             if type(v)~="function" then
  1163.                 mode[i]=nil
  1164.             end
  1165.         end
  1166.         if key=="default" then
  1167.             defaultmode=mode
  1168.             modes.default=mode
  1169.             lerpsIdle=mode.idle or emptyfunction
  1170.             lerpsWalk=mode.walk or emptyfunction
  1171.             lerpsJump=mode.jump or emptyfunction
  1172.             lerpsFall=mode.fall or emptyfunction
  1173.             if mode.modeEntered then
  1174.                 mode.modeEntered()
  1175.             end
  1176.         elseif #key==1 then
  1177.             key=KeyCode[supper(ssub(key,1,1))]
  1178.             modes[key]=mode
  1179.         end
  1180.     end
  1181.  
  1182.     local keyW=KeyCode.W
  1183.     local Wpressed=IsKeyDown(uis,keyW)
  1184.     local keyA=KeyCode.A
  1185.     local Apressed=IsKeyDown(uis,keyA)
  1186.     local keyS=KeyCode.S
  1187.     local Spressed=IsKeyDown(uis,keyS)
  1188.     local keyD=KeyCode.D
  1189.     local Dpressed=IsKeyDown(uis,keyD)
  1190.     local keySpace=KeyCode.Space
  1191.     local jumpingInput=IsKeyDown(uis,keySpace)
  1192.  
  1193.     local FWmovement=0
  1194.     local RTmovement=0
  1195.     local isWalking=false
  1196.     local refreshKeyboardMovement=function()
  1197.         if Wpressed then if Spressed then if Dpressed then if Apressed then isWalking=false else FWmovement=0 RTmovement=1 isWalking=true end else if Apressed then FWmovement=0 RTmovement=-1 isWalking=true else isWalking=false end end else FWmovement=1 if Dpressed then if Apressed then RTmovement=0 else RTmovement=1 end else if Apressed then RTmovement=-1 else RTmovement=0 end end isWalking=true end else if Spressed then FWmovement=-1 if Dpressed then if Apressed then RTmovement=0 else RTmovement=1 end else if Apressed then RTmovement=-1 else RTmovement=0 end end isWalking=true else if Dpressed then if Apressed then isWalking=false else FWmovement=0 RTmovement=1 isWalking=true end else if Apressed then FWmovement=0 RTmovement=-1 isWalking=true else isWalking=false end end end end
  1198.     end
  1199.     refreshKeyboardMovement()
  1200.  
  1201.     local keyShift=KeyCode.LeftShift
  1202.     Connect(insGet(uis,"InputBegan"),function(a)
  1203.         if insGet(gs,"MenuIsOpen") or GetFocusedTextBox(uis) then
  1204.             return
  1205.         end
  1206.         a=insGet(a,"KeyCode")
  1207.         if a==keyW then
  1208.             Wpressed=true
  1209.             refreshKeyboardMovement()
  1210.         elseif a==keyA then
  1211.             Apressed=true
  1212.             refreshKeyboardMovement()
  1213.         elseif a==keyS then
  1214.             Spressed=true
  1215.             refreshKeyboardMovement()
  1216.         elseif a==keyD then
  1217.             Dpressed=true
  1218.             refreshKeyboardMovement()
  1219.         elseif a==keySpace then
  1220.             jumpingInput=true
  1221.         elseif a==keyShift then
  1222.             shiftlock=allowshiftlock and not shiftlock
  1223.         elseif modes[a] then
  1224.             if modes[mode].modeLeft then
  1225.                 modes[mode].modeLeft()
  1226.             end
  1227.             if mode==a then
  1228.                 mode="default"
  1229.             else
  1230.                 mode=a
  1231.             end
  1232.             local modet=modes[mode]
  1233.             lerpsIdle=modet.idle or defaultmode.idle or emptyfunction
  1234.             lerpsWalk=modet.walk or defaultmode.walk or emptyfunction
  1235.             lerpsJump=modet.jump or defaultmode.jump or emptyfunction
  1236.             lerpsFall=modet.fall or defaultmode.fall or emptyfunction
  1237.             if modes[mode].modeEntered then
  1238.                 modes[mode].modeEntered()
  1239.             end
  1240.         end
  1241.     end)
  1242.     Connect(insGet(uis,"InputEnded"),function(a)
  1243.         a=insGet(a,"KeyCode")
  1244.         if a==keyW then
  1245.             Wpressed=false
  1246.             refreshKeyboardMovement()
  1247.         elseif a==keyA then
  1248.             Apressed=false
  1249.             refreshKeyboardMovement()
  1250.         elseif a==keyS then
  1251.             Spressed=false
  1252.             refreshKeyboardMovement()
  1253.         elseif a==keyD then
  1254.             Dpressed=false
  1255.             refreshKeyboardMovement()
  1256.         elseif a==keySpace then
  1257.             jumpingInput=false
  1258.         end
  1259.     end)
  1260.  
  1261.     local thumbstickEndX=0
  1262.     local thumbstickStartY=0
  1263.  
  1264.     local thumbstickSizeMultiplier=0
  1265.  
  1266.     local jumpStartX=0
  1267.     local jumpStartY=0
  1268.     local jumpEndX=0
  1269.     local jumpEndY=0
  1270.  
  1271.     local thumbstickInputObject=nil
  1272.     local jumpInputObject=nil
  1273.     local cameraRotateInputObject=nil
  1274.     local cameraZoomInputObject=nil
  1275.  
  1276.     local thumbstickTouchStart=v3_0
  1277.     local cameraZoomInputMagnitude=0
  1278.  
  1279.     Connect(insGet(uis,"TouchStarted"),function(inputObject)
  1280.         if insGet(gs,"MenuIsOpen") or GetFocusedTextBox(uis) then
  1281.             return
  1282.         end
  1283.  
  1284.         local touchPos=insGet(inputObject,"Position")
  1285.         local touchX=v3Get(touchPos,"X")
  1286.         local touchY=v3Get(touchPos,"Y")
  1287.  
  1288.         if (not thumbstickInputObject) and touchX<thumbstickEndX and touchY>thumbstickStartY then
  1289.             thumbstickInputObject=inputObject
  1290.             thumbstickTouchStart=insGet(inputObject,"Position")
  1291.             isWalking=false
  1292.         elseif (not jumpInputObject) and touchY>jumpStartY and touchX>jumpStartX and touchX<jumpEndX and touchY<jumpEndY then
  1293.             jumpInputObject=inputObject
  1294.             jumpingInput=true
  1295.         elseif not cameraRotateInputObject then
  1296.             cameraRotateInputObject=inputObject
  1297.         else
  1298.             cameraZoomInputObject=inputObject
  1299.             cameraZoomInputMagnitude=v3Get(insGet(cameraRotateInputObject,"Position")-insGet(cameraZoomInputObject,"Position"),"Magnitude")
  1300.         end
  1301.     end)
  1302.     Connect(insGet(uis,"TouchMoved"),function(inputObject)
  1303.         local touchPos=insGet(inputObject,"Position")
  1304.         local touchX=v3Get(touchPos,"X")
  1305.         local touchY=v3Get(touchPos,"Y")
  1306.         if inputObject==thumbstickInputObject then
  1307.             local direction=insGet(inputObject,"Position")-thumbstickTouchStart
  1308.             local directionMag=v3Get(direction,"Magnitude")/thumbstickSizeMultiplier
  1309.             if directionMag>0.05 then
  1310.                 isWalking=true
  1311.                 direction=v3Get(direction,"Unit")*min(1,(directionMag-0.05)/0.95)
  1312.                 FWmovement=-v3Get(direction,"Y")
  1313.                 RTmovement=v3Get(direction,"X")
  1314.             else
  1315.                 isWalking=false
  1316.             end
  1317.         elseif inputObject==jumpInputObject then
  1318.             jumpingInput=touchY>jumpStartY and touchX>jumpStartX and touchX<jumpEndX and touchY<jumpEndY
  1319.         else
  1320.             if cameraZoomInputObject then
  1321.                 local newMagnitude=v3Get(insGet(cameraRotateInputObject,"Position")-insGet(cameraZoomInputObject,"Position"),"Magnitude")                  
  1322.                 cammag=cammag+(newMagnitude-cameraZoomInputMagnitude)*0.04*(0.75-cammag/4)
  1323.                 cameraZoomInputMagnitude=newMagnitude
  1324.                 if cammag<0 then
  1325.                     firstperson=false
  1326.                 else
  1327.                     cammag=0
  1328.                     firstperson=true
  1329.                 end
  1330.             elseif inputObject==cameraRotateInputObject then
  1331.                 local rotation=GetMouseDelta(uis)*mradN05
  1332.                 camcfLV=cfGet(cfMul(camrot,angles(rotation.Y,rotation.X,0)),"LookVector")
  1333.                 camrot=cfl(v3_0,camcfLV)
  1334.                 camcfRV=cfGet(camrot,"RightVector")
  1335.             end
  1336.         end
  1337.     end)
  1338.     Connect(insGet(uis,"TouchEnded"),function(inputObject)
  1339.         if inputObject==thumbstickInputObject then
  1340.             thumbstickInputObject=nil
  1341.             isWalking=false
  1342.         elseif inputObject==jumpInputObject then
  1343.             jumpInputObject=nil
  1344.             jumpingInput=false
  1345.         elseif inputObject==cameraRotateInputObject then
  1346.             cameraRotateInputObject=nil
  1347.             cameraZoomInputObject=nil
  1348.         elseif inputObject==cameraZoomInputObject then
  1349.             cameraZoomInputObject=nil
  1350.         end
  1351.     end)
  1352.  
  1353.     local refreshTouchRegions=function()
  1354.         local sX=insGet(mouse,"ViewSizeX")
  1355.         local sY=insGet(mouse,"ViewSizeY")
  1356.         local isSmallScreen=min(sX,sY)<=500
  1357.  
  1358.         sY=sY+insGet(gs,"TopbarInset").Height
  1359.  
  1360.         thumbstickEndX=sX*0.4
  1361.         thumbstickStartY=(sY+0)*0.333
  1362.  
  1363.         if isSmallScreen then
  1364.             thumbstickSizeMultiplier=35
  1365.             jumpStartX=sX-95
  1366.             jumpStartY=sY-90
  1367.             jumpEndX=jumpStartX+70
  1368.             jumpEndY=jumpStartY+70
  1369.         else
  1370.             thumbstickSizeMultiplier=60
  1371.             jumpStartX=sX-170
  1372.             jumpStartY=sY-210
  1373.             jumpEndX=jumpStartX+120
  1374.             jumpEndY=jumpStartY+120
  1375.         end
  1376.     end
  1377.     Connect(GetPropertyChangedSignal(mouse,"ViewSizeX"),refreshTouchRegions)
  1378.     Connect(GetPropertyChangedSignal(mouse,"ViewSizeY"),refreshTouchRegions)
  1379.     Connect(GetPropertyChangedSignal(gs,"TopbarInset"),refreshTouchRegions)
  1380.     refreshTouchRegions()
  1381.  
  1382.     local mouseCameraMove=false
  1383.     Connect(insGet(uis,"InputChanged"),function(a,b)
  1384.         if b then return end
  1385.         local inputType=insGet(a,"UserInputType")
  1386.         if mouseCameraMove and inputType==enumMM then
  1387.             local rotation=GetMouseDelta(uis)*mradN05
  1388.             camcfLV=cfGet(cfMul(camrot,angles(rotation.Y,rotation.X,0)),"LookVector")
  1389.             camrot=cfl(v3_0,camcfLV)
  1390.             camcfRV=cfGet(camrot,"RightVector")
  1391.         elseif inputType==enumMW then
  1392.             cammag=cammag+v3Get(insGet(a,"Position"),"Z")*(0.75-cammag/4)
  1393.             if cammag<0 then
  1394.                 firstperson=false
  1395.             else
  1396.                 cammag=0
  1397.                 firstperson=true
  1398.             end
  1399.         end
  1400.     end)
  1401.  
  1402.     local predictionfling=function(target)
  1403.         if not c then
  1404.             return false
  1405.         end
  1406.         if typeof(target)~="Instance" then
  1407.             target=insGet(mouse,"Target")
  1408.             if not target then
  1409.                 return false
  1410.             end
  1411.         end
  1412.         if not IsDescendantOf(target,ws) then
  1413.             return false
  1414.         end
  1415.         if IsA(target,"BasePart") or IsA(target,"Humanoid") then
  1416.             target=insGet(target,"Parent")
  1417.             if IsA(target,"Accessory") then
  1418.                 target=insGet(target,"Parent")
  1419.             end
  1420.         end
  1421.         if (not IsA(target,"Model")) or (target==c) then
  1422.             return false
  1423.         end
  1424.         local targetpart=gp(target,"HumanoidRootPart","BasePart") or gp(target,"Torso","BasePart") or gp(target,"UpperTorso","BasePart")
  1425.         if (not targetpart) or (flingtable[targetpart]~=nil) then
  1426.             return false
  1427.         end
  1428.         if replicatesignal then
  1429.             replicatesignal(cdsb)
  1430.         end
  1431.         if highlightflingtargets then
  1432.             local h=i("Highlight")
  1433.             insSet(h,"Name",rs())
  1434.             insSet(h,"Adornee",target)
  1435.             insSet(h,"FillColor",c3(1,0,0))
  1436.             insSet(h,"OutlineColor",c3(1,0,0))
  1437.             insSet(h,"FillTransparency",0.5)
  1438.             insSet(h,"OutlineTransparency",0)
  1439.             insSet(h,"Parent",i10)
  1440.             flingtable[targetpart]=h
  1441.         else
  1442.             flingtable[targetpart]=false
  1443.         end
  1444.         return true
  1445.     end
  1446.  
  1447.     local clickConnection=nil
  1448.     if ctrlclicktp then
  1449.         ctrlclicktp=KeyCode.LeftControl
  1450.         local tpoff=v3_010*3
  1451.         if clickfling then
  1452.             clickConnection=Connect(insGet(mouse,"Button1Down"),function()
  1453.                 if insGet(mouse,"Target") then
  1454.                     if IsKeyDown(uis,ctrlclicktp) then
  1455.                         pos=cfGet(insGet(mouse,"Hit"),"Position")+tpoff
  1456.                         cfr=cfl(pos,pos+camcfLV*v3_101)
  1457.                         xzvel=v3_0
  1458.                         Yvel=0
  1459.                     else
  1460.                         predictionfling()
  1461.                     end
  1462.                 end
  1463.             end)
  1464.         else
  1465.             clickConnection=Connect(insGet(mouse,"Button1Down"),function()
  1466.                 if insGet(mouse,"Target") and IsKeyDown(uis,ctrlclicktp) then
  1467.                     pos=cfGet(insGet(mouse,"Hit"),"Position")+tpoff
  1468.                     cfr=cfl(pos,pos+camcfLV*v3_101)
  1469.                     xzvel=v3_0
  1470.                     Yvel=0
  1471.                 end
  1472.             end)
  1473.         end
  1474.     elseif clickfling then
  1475.         clickConnection=Connect(insGet(mouse,"Button1Down"),predictionfling)
  1476.     end
  1477.  
  1478.     local hhOff=3
  1479.     local hhOff1=3.01
  1480.     local setHipHeight=function(n)
  1481.         hhOff=n+3
  1482.         hhOff1=n+3.01
  1483.     end
  1484.  
  1485.     local noYvelTime=1
  1486.     local lastsine=sine
  1487.     local con=nil
  1488.     local mainFunction=function()
  1489.         if not c then
  1490.             for i,v in next,cframes do
  1491.                 local p=i.v
  1492.                 if p then
  1493.                     Destroy(p)
  1494.                 end
  1495.             end
  1496.             for i,v in next,flingtable do
  1497.                 if v then --it could be false
  1498.                     Destroy(v)
  1499.                 end
  1500.             end
  1501.             for i,v in next,charcons do
  1502.                 Disconnect(v)
  1503.             end
  1504.             if clickConnection then
  1505.                 Disconnect(clickConnection)
  1506.             end
  1507.             mouseBehavior=nil
  1508.             insSet(uis,"MouseBehavior",enumMD)
  1509.             onnewcamera()
  1510.             local c=insGet(lp,"Character")
  1511.             if c then
  1512.                 insSet(cam,"CameraSubject",FindFirstChildOfClass(c,"Humanoid"))
  1513.             end
  1514.             return con and Disconnect(con)
  1515.         end
  1516.  
  1517.         sine=osclock()
  1518.         local delta=sine-lastsine
  1519.         deltaTime=min(delta*10,1)
  1520.         lastsine=sine
  1521.  
  1522.         if shiftlock then
  1523.             if allowshiftlock then
  1524.                 mouseBehavior=enumMLC
  1525.                 mouseCameraMove=true
  1526.             else
  1527.                 shiftlock=false
  1528.             end
  1529.         elseif firstperson then
  1530.             mouseBehavior=enumMLC
  1531.             mouseCameraMove=true
  1532.         elseif IsMouseButtonPressed(uis,enumMB2) then
  1533.             mouseBehavior=enumMLCP
  1534.             mouseCameraMove=true
  1535.         else
  1536.             mouseBehavior=enumMD
  1537.             mouseCameraMove=false
  1538.         end
  1539.         if lastMouseBehavior~=mouseBehavior then
  1540.             lastMouseBehavior=mouseBehavior
  1541.             insSet(uis,"MouseBehavior",mouseBehavior)
  1542.         end
  1543.  
  1544.         local raycastresult=Raycast(ws,pos,v3_010*(fpdh-v3Get(pos,"Y")),raycastparams)
  1545.         local onground=nil
  1546.         if raycastresult then
  1547.             raycastresult=v3Get(raycastresult.Position,"Y")
  1548.             onground=v3Get(pos,"Y")-raycastresult<hhOff1
  1549.             if onground then
  1550.                 Yvel=0
  1551.                 pos=pos+v3_010*(raycastresult+hhOff-v3Get(pos,"Y"))*min(delta*20,1)
  1552.                 if jumpingInput and (jumpPower>0) then
  1553.                     Yvel=jumpPower
  1554.                     onground=false
  1555.                 end
  1556.             else
  1557.                 Yvel=Yvel-gravity*delta
  1558.                 if v3Get(pos,"Y")+Yvel*delta<raycastresult then
  1559.                     Yvel=0
  1560.                     pos=pos+v3_010*(raycastresult+hhOff-v3Get(pos,"Y"))
  1561.                 end
  1562.             end
  1563.         else
  1564.             Yvel=0
  1565.             onground=false
  1566.         end
  1567.  
  1568.         if firstperson then
  1569.             if isWalking then
  1570.                 if walkSpeed==0 then
  1571.                     xzvel=v3_0
  1572.                     if onground then
  1573.                         cfr=cfl(pos,pos+camcfLV*v3_101)
  1574.                         camcf=cfAdd(camrot,pos+v3_0150)
  1575.                         cframes[rootpart]=cfr
  1576.                         insSet(cam,"CFrame",camcf)
  1577.                         lerpsIdle()
  1578.                         noYvelTime=min(noYvelTime+delta*0.3,1)
  1579.                         xzvel=xzvel*(1-noYvelTime)
  1580.                     elseif Yvel>0 then
  1581.                         pos=pos+v3_010*Yvel*delta
  1582.                         cfr=cfl(pos,pos+camcfLV*v3_101)
  1583.                         camcf=cfAdd(camrot,pos+v3_0150)
  1584.                         cframes[rootpart]=cfr
  1585.                         insSet(cam,"CFrame",camcf)
  1586.                         lerpsJump()
  1587.                         noYvelTime=0
  1588.                     else
  1589.                         pos=pos+v3_010*Yvel*delta
  1590.                         cfr=cfl(pos,pos+camcfLV*v3_101)
  1591.                         camcf=cfAdd(camrot,pos+v3_0150)
  1592.                         cframes[rootpart]=cfr
  1593.                         insSet(cam,"CFrame",camcf)
  1594.                         lerpsFall()
  1595.                         noYvelTime=0
  1596.                     end
  1597.                 else
  1598.                     xzvel=v3Get(v3Get(camcfLV*v3_101,"Unit")*FWmovement+v3Get(camcfRV*v3_101,"Unit")*RTmovement,"Unit")*walkSpeed
  1599.                     if onground then
  1600.                         pos=pos+xzvel*delta
  1601.                         cfr=cfl(pos,pos+camcfLV*v3_101)
  1602.                         camcf=cfAdd(camrot,pos+v3_0150)
  1603.                         cframes[rootpart]=cfr
  1604.                         insSet(cam,"CFrame",camcf)
  1605.                         lerpsWalk()
  1606.                         noYvelTime=min(noYvelTime+delta*0.3,1)
  1607.                         xzvel=xzvel*(1-noYvelTime)
  1608.                     elseif Yvel>0 then
  1609.                         pos=pos+(xzvel+v3_010*Yvel)*delta
  1610.                         cfr=cfl(pos,pos+camcfLV*v3_101)
  1611.                         camcf=cfAdd(camrot,pos+v3_0150)
  1612.                         cframes[rootpart]=cfr
  1613.                         insSet(cam,"CFrame",camcf)
  1614.                         lerpsJump()
  1615.                         noYvelTime=0
  1616.                     else
  1617.                         pos=pos+(xzvel+v3_010*Yvel)*delta
  1618.                         cfr=cfl(pos,pos+camcfLV*v3_101)
  1619.                         camcf=cfAdd(camrot,pos+v3_0150)
  1620.                         cframes[rootpart]=cfr
  1621.                         insSet(cam,"CFrame",camcf)
  1622.                         lerpsFall()
  1623.                         noYvelTime=0
  1624.                     end
  1625.                 end
  1626.             else
  1627.                 xzvel=v3_0
  1628.                 if onground then
  1629.                     cfr=cfl(pos,pos+camcfLV*v3_101)
  1630.                     camcf=cfAdd(camrot,pos+v3_0150)
  1631.                     cframes[rootpart]=cfr
  1632.                     insSet(cam,"CFrame",camcf)
  1633.                     lerpsIdle()
  1634.                     noYvelTime=min(noYvelTime+delta*0.3,1)
  1635.                     xzvel=xzvel*(1-noYvelTime)
  1636.                 elseif Yvel>0 then
  1637.                     pos=pos+v3_010*Yvel*delta
  1638.                     cfr=cfl(pos,pos+camcfLV*v3_101)
  1639.                     camcf=cfAdd(camrot,pos+v3_0150)
  1640.                     cframes[rootpart]=cfr
  1641.                     insSet(cam,"CFrame",camcf)
  1642.                     lerpsJump()
  1643.                     noYvelTime=0
  1644.                 else
  1645.                     pos=pos+v3_010*Yvel*delta
  1646.                     cfr=cfl(pos,pos+camcfLV*v3_101)
  1647.                     camcf=cfAdd(camrot,pos+v3_0150)
  1648.                     cframes[rootpart]=cfr
  1649.                     insSet(cam,"CFrame",camcf)
  1650.                     lerpsFall()
  1651.                     noYvelTime=0
  1652.                 end
  1653.             end
  1654.         elseif shiftlock then  
  1655.             if isWalking then
  1656.                 if walkSpeed==0 then
  1657.                     xzvel=v3_0
  1658.                     if onground then
  1659.                         cfr=cfl(pos,pos+camcfLV*v3_101)
  1660.                         camcf=cfAdd(camrot,pos+v3_0150+camcfRV*1.75+camcfLV*cammag)
  1661.                         cframes[rootpart]=cfr
  1662.                         insSet(cam,"CFrame",camcf)
  1663.                         lerpsIdle()
  1664.                         noYvelTime=min(noYvelTime+delta*0.3,1)
  1665.                         xzvel=xzvel*(1-noYvelTime)
  1666.                     elseif Yvel>0 then
  1667.                         pos=pos+v3_010*Yvel*delta
  1668.                         cfr=cfl(pos,pos+camcfLV*v3_101)
  1669.                         camcf=cfAdd(camrot,pos+v3_0150+camcfRV*1.75+camcfLV*cammag)
  1670.                         cframes[rootpart]=cfr
  1671.                         insSet(cam,"CFrame",camcf)
  1672.                         lerpsJump()
  1673.                         noYvelTime=0
  1674.                     else
  1675.                         pos=pos+v3_010*Yvel*delta
  1676.                         cfr=cfl(pos,pos+camcfLV*v3_101)
  1677.                         camcf=cfAdd(camrot,pos+v3_0150+camcfRV*1.75+camcfLV*cammag)
  1678.                         cframes[rootpart]=cfr
  1679.                         insSet(cam,"CFrame",camcf)
  1680.                         lerpsFall()
  1681.                         noYvelTime=0
  1682.                     end
  1683.                 else
  1684.                     xzvel=v3Get(v3Get(camcfLV*v3_101,"Unit")*FWmovement+v3Get(camcfRV*v3_101,"Unit")*RTmovement,"Unit")*walkSpeed
  1685.                     if onground then
  1686.                         pos=pos+xzvel*delta
  1687.                         cfr=cfl(pos,pos+camcfLV*v3_101)
  1688.                         camcf=cfAdd(camrot,pos+v3_0150+camcfRV*1.75+camcfLV*cammag)
  1689.                         cframes[rootpart]=cfr
  1690.                         insSet(cam,"CFrame",camcf)
  1691.                         lerpsWalk()
  1692.                         noYvelTime=min(noYvelTime+delta*0.3,1)
  1693.                         xzvel=xzvel*(1-noYvelTime)
  1694.                     elseif Yvel>0 then
  1695.                         pos=pos+(xzvel+v3_010*Yvel)*delta
  1696.                         cfr=cfl(pos,pos+camcfLV*v3_101)
  1697.                         camcf=cfAdd(camrot,pos+v3_0150+camcfRV*1.75+camcfLV*cammag)
  1698.                         cframes[rootpart]=cfr
  1699.                         insSet(cam,"CFrame",camcf)
  1700.                         lerpsJump()
  1701.                         noYvelTime=0
  1702.                     else
  1703.                         pos=pos+(xzvel+v3_010*Yvel)*delta
  1704.                         cfr=cfl(pos,pos+camcfLV*v3_101)
  1705.                         camcf=cfAdd(camrot,pos+v3_0150+camcfRV*1.75+camcfLV*cammag)
  1706.                         cframes[rootpart]=cfr
  1707.                         insSet(cam,"CFrame",camcf)
  1708.                         lerpsFall()
  1709.                         noYvelTime=0
  1710.                     end
  1711.                 end
  1712.             else
  1713.                 xzvel=v3_0
  1714.                 if onground then
  1715.                     cfr=cfl(pos,pos+camcfLV*v3_101)
  1716.                     camcf=cfAdd(camrot,pos+v3_0150+camcfRV*1.75+camcfLV*cammag)
  1717.                     cframes[rootpart]=cfr
  1718.                     insSet(cam,"CFrame",camcf)
  1719.                     lerpsIdle()
  1720.                     noYvelTime=min(noYvelTime+delta*0.3,1)
  1721.                     xzvel=xzvel*(1-noYvelTime)
  1722.                 elseif Yvel>0 then
  1723.                     pos=pos+v3_010*Yvel*delta
  1724.                     cfr=cfl(pos,pos+camcfLV*v3_101)
  1725.                     camcf=cfAdd(camrot,pos+v3_0150+camcfRV*1.75+camcfLV*cammag)
  1726.                     cframes[rootpart]=cfr
  1727.                     insSet(cam,"CFrame",camcf)
  1728.                     lerpsJump()
  1729.                     noYvelTime=0
  1730.                 else
  1731.                     pos=pos+v3_010*Yvel*delta
  1732.                     cfr=cfl(pos,pos+camcfLV*v3_101)
  1733.                     camcf=cfAdd(camrot,pos+v3_0150+camcfRV*1.75+camcfLV*cammag)
  1734.                     cframes[rootpart]=cfr
  1735.                     insSet(cam,"CFrame",camcf)
  1736.                     lerpsFall()
  1737.                     noYvelTime=0
  1738.                 end
  1739.             end
  1740.         else
  1741.             if isWalking then
  1742.                 if walkSpeed==0 then
  1743.                     xzvel=v3_0
  1744.                     if onground then
  1745.                         cfr=cfAdd(cfGet(cfr,"Rotation"),pos)
  1746.                         camcf=cfAdd(camrot,pos+v3_0150+camcfLV*cammag)
  1747.                         cframes[rootpart]=cfr
  1748.                         insSet(cam,"CFrame",camcf)
  1749.                         lerpsIdle()
  1750.                         noYvelTime=min(noYvelTime+delta*0.3,1)
  1751.                         xzvel=xzvel*(1-noYvelTime)
  1752.                     elseif Yvel>0 then
  1753.                         pos=pos+v3_010*Yvel*delta
  1754.                         cfr=cfAdd(cfGet(cfr,"Rotation"),pos)
  1755.                         camcf=cfAdd(camrot,pos+v3_0150+camcfLV*cammag)
  1756.                         cframes[rootpart]=cfr
  1757.                         insSet(cam,"CFrame",camcf)
  1758.                         lerpsJump()
  1759.                         noYvelTime=0
  1760.                     else
  1761.                         pos=pos+v3_010*Yvel*delta
  1762.                         cfr=cfAdd(cfGet(cfr,"Rotation"),pos)
  1763.                         camcf=cfAdd(camrot,pos+v3_0150+camcfLV*cammag)
  1764.                         cframes[rootpart]=cfr
  1765.                         insSet(cam,"CFrame",camcf)
  1766.                         lerpsFall()
  1767.                         noYvelTime=0
  1768.                     end
  1769.                 else
  1770.                     xzvel=v3Get(v3Get(camcfLV*v3_101,"Unit")*FWmovement+v3Get(camcfRV*v3_101,"Unit")*RTmovement,"Unit")*walkSpeed
  1771.                     if onground then
  1772.                         pos=pos+xzvel*delta
  1773.                         cfr=cfAdd(Lerp(cfGet(cfr,"Rotation"),cfl(v3_0,xzvel),deltaTime),pos)
  1774.                         camcf=cfAdd(camrot,pos+v3_0150+camcfLV*cammag)
  1775.                         cframes[rootpart]=cfr
  1776.                         insSet(cam,"CFrame",camcf)
  1777.                         lerpsWalk()
  1778.                         noYvelTime=min(noYvelTime+delta*0.3,1)
  1779.                         xzvel=xzvel*(1-noYvelTime)
  1780.                     elseif Yvel>0 then
  1781.                         pos=pos+(xzvel+(v3_010*Yvel))*delta
  1782.                         cfr=cfAdd(Lerp(cfGet(cfr,"Rotation"),cfl(v3_0,xzvel),deltaTime),pos)
  1783.                         camcf=cfAdd(camrot,pos+v3_0150+camcfLV*cammag)
  1784.                         cframes[rootpart]=cfr
  1785.                         insSet(cam,"CFrame",camcf)
  1786.                         lerpsJump()
  1787.                         noYvelTime=0
  1788.                     else
  1789.                         pos=pos+(xzvel+(v3_010*Yvel))*delta
  1790.                         cfr=cfAdd(Lerp(cfGet(cfr,"Rotation"),cfl(v3_0,xzvel),deltaTime),pos)
  1791.                         camcf=cfAdd(camrot,pos+v3_0150+camcfLV*cammag)
  1792.                         cframes[rootpart]=cfr
  1793.                         insSet(cam,"CFrame",camcf)
  1794.                         lerpsFall()
  1795.                         noYvelTime=0
  1796.                     end
  1797.                 end
  1798.             else
  1799.                 xzvel=v3_0
  1800.                 if onground then
  1801.                     cfr=cfAdd(cfGet(cfr,"Rotation"),pos)
  1802.                     camcf=cfAdd(camrot,pos+v3_0150+camcfLV*cammag)
  1803.                     cframes[rootpart]=cfr
  1804.                     insSet(cam,"CFrame",camcf)
  1805.                     lerpsIdle()
  1806.                     noYvelTime=min(noYvelTime+delta*0.3,1)
  1807.                     xzvel=xzvel*(1-noYvelTime)
  1808.                 elseif Yvel>0 then
  1809.                     pos=pos+v3_010*Yvel*delta
  1810.                     cfr=cfAdd(cfGet(cfr,"Rotation"),pos)
  1811.                     camcf=cfAdd(camrot,pos+v3_0150+camcfLV*cammag)
  1812.                     cframes[rootpart]=cfr
  1813.                     insSet(cam,"CFrame",camcf)
  1814.                     lerpsJump()
  1815.                     noYvelTime=0
  1816.                 else
  1817.                     pos=pos+v3_010*Yvel*delta
  1818.                     cfr=cfAdd(cfGet(cfr,"Rotation"),pos)
  1819.                     camcf=cfAdd(camrot,pos+v3_0150+camcfLV*cammag)
  1820.                     cframes[rootpart]=cfr
  1821.                     insSet(cam,"CFrame",camcf)
  1822.                     lerpsFall()
  1823.                     noYvelTime=0
  1824.                 end
  1825.             end
  1826.         end
  1827.  
  1828.         refreshjointsI(rootpart)
  1829.         tclear(refreshedjoints)
  1830.  
  1831.         local sine15=sine*15
  1832.         local idlerv=v3(sin(sine15),sin(sine15+1.0471975511965976),sin(sine15+2.0943951023931953))
  1833.         local idleoff=idlerv*0.003910064697265625 --0.0156402587890625/4
  1834.  
  1835.         local claimpos=insGet(primarypart,"Position")
  1836.         local claimposY=v3Get(claimpos,"Y")
  1837.         for i,v in next,cframes do
  1838.             local part=i.p
  1839.  
  1840.             if part then
  1841.                 if insGet(part,"ReceiveAge")==0 then
  1842.                     local placeholder=i.v
  1843.                     local vpos=cfGet(v,"Position")
  1844.                     if novoid and (v3Get(vpos,"Y")<novoid) then
  1845.                         v=cfAdd(v,v3_010*(novoid-v3Get(vpos,"Y")))
  1846.                     end
  1847.                     local lastpos=i.l
  1848.                     local vel=(vpos-lastpos)/delta
  1849.                     local mag=v3Get(vel,"Magnitude")
  1850.                     if mag<0.11730194091796875 then --0.0156402587890625*15/2
  1851.                         if placeholder and i.b then
  1852.                             insSet(placeholder,"Parent",nil)
  1853.                             i.b=false
  1854.                         end
  1855.                         i.l=cfGet(v,"Position")
  1856.                         v=cfAdd(v,idleoff)
  1857.                     elseif mag>speedlimit then
  1858.                         if placeholder then
  1859.                             insSet(placeholder,"CFrame",v)
  1860.                             if not i.b then
  1861.                                 insSet(placeholder,"Parent",ws)
  1862.                                 i.b=true
  1863.                             end
  1864.                         end
  1865.                         vel=v3Get(vel,"Unit")*speedlimit
  1866.                         local newpos=lastpos+vel*delta
  1867.                         v=cfAdd(cfGet(v,"Rotation"),newpos)
  1868.                         i.l=newpos
  1869.                     else
  1870.                         if placeholder and i.b then
  1871.                             insSet(placeholder,"Parent",nil)
  1872.                             i.b=false
  1873.                         end
  1874.                         i.l=cfGet(v,"Position")
  1875.                     end
  1876.                     local claimtime=i.c
  1877.                     if claimtime then
  1878.                         if sine-claimtime<retVelTime then
  1879.                             local Ydiff=cfGet(v,"Y")-claimposY
  1880.                             local velY=25.01
  1881.                             local fallingTime=0
  1882.                             while (Ydiff>0) or (velY>0) do
  1883.                                 fallingTime=fallingTime+0.025
  1884.                                 if fallingTime>0.6 then
  1885.                                     break
  1886.                                 end
  1887.                                 velY=velY-velYdelta
  1888.                                 Ydiff=Ydiff+(velY*0.025)
  1889.                             end
  1890.                             insSet(part,"AssemblyLinearVelocity",(claimpos-cfGet(v,"Position"))*v3_101/fallingTime+v3_net)
  1891.                         else
  1892.                             local vel1=vel*noYvelTime+xzvel
  1893.                             if v3Get(vel1,"Magnitude")>25.01 then
  1894.                                 insSet(part,"AssemblyLinearVelocity",v3Get(vel1,"Unit")*v3_xzL+v3_net)
  1895.                             else
  1896.                                 insSet(part,"AssemblyLinearVelocity",vel1*v3_xz+v3_net)
  1897.                             end
  1898.                         end
  1899.                     else
  1900.                         i.c=sine
  1901.                         local vel1=vel*noYvelTime+xzvel
  1902.                         if v3Get(vel1,"Magnitude")>25.01 then
  1903.                             insSet(part,"AssemblyLinearVelocity",v3Get(vel1,"Unit")*v3_xzL+v3_net)
  1904.                         else
  1905.                             insSet(part,"AssemblyLinearVelocity",vel1*v3_xz+v3_net)
  1906.                         end
  1907.                     end
  1908.                     insSet(part,"CFrame",v)
  1909.                     insSet(part,"AssemblyAngularVelocity",idlerv)
  1910.                 else
  1911.                     i.c=nil
  1912.                     i.l=insGet(part,"Position")
  1913.                     local placeholder=i.v
  1914.                     if placeholder then
  1915.                         insSet(placeholder,"CFrame",v)
  1916.                         if not i.b then
  1917.                             insSet(placeholder,"Parent",ws)
  1918.                             i.b=true
  1919.                         end
  1920.                     end
  1921.                 end
  1922.             else
  1923.                 local placeholder=i.v
  1924.                 if placeholder then
  1925.                     insSet(placeholder,"CFrame",v)
  1926.                     if not i.b then
  1927.                         insSet(placeholder,"Parent",ws)
  1928.                         i.b=true
  1929.                     end
  1930.                 end
  1931.             end
  1932.         end
  1933.         setsimrad()
  1934.     end
  1935.  
  1936.     sine=osclock()
  1937.     lastsine=sine
  1938.     con=Connect(heartbeat,mainFunction)
  1939.     mainFunction()
  1940.  
  1941.     local refreshjoints=function(v) --use this on the main part if u have parts that
  1942.         refreshjointsI(v) --are connected with each other but arent connected to rootpart
  1943.         tclear(refreshedjoints)
  1944.     end
  1945.  
  1946.     local legcfR=cf(1,-1,0)
  1947.     local legcfL=cf(-1,-1,0)
  1948.     local raydir=v3_010*-2
  1949.     local raycastlegs=function() --this returns 2 values: right leg raycast offset, left leg raycast offset
  1950.         local rY=Raycast(ws,cfGet(cfMul(cfr,legcfR),"Position"),raydir,raycastparams)
  1951.         local lY=Raycast(ws,cfGet(cfMul(cfr,legcfL),"Position"),raydir,raycastparams)
  1952.         if rY then
  1953.             if lY then
  1954.                 return v3Get(rY.Position,"Y")-(v3Get(pos,"Y")-3),v3Get(lY.Position,"Y")-(v3Get(pos,"Y")-3)
  1955.             else
  1956.                 return v3Get(rY.Position,"Y")-(v3Get(pos,"Y")-3),0
  1957.             end
  1958.         elseif lY then
  1959.             return 0,v3Get(lY.Position,"Y")-(v3Get(pos,"Y")-3)
  1960.         else
  1961.             return 0,0
  1962.         end
  1963.     end
  1964.  
  1965.     local velbycfrvec=function() --this returns 2 values: forward/backwards movement (from -1 to 1), right/left movement (from -1 to 1)
  1966.         local fw=cfGet(cfr,"LookVector")*xzvel/walkSpeed
  1967.         local rt=cfGet(cfr,"RightVector")*xzvel/walkSpeed
  1968.         return v3Get(fw,"X")+v3Get(fw,"Z"),v3Get(rt,"X")+v3Get(rt,"Z")
  1969.     end
  1970.  
  1971.     local lastvel=v3_0
  1972.     local velchg1=v3_0
  1973.     local velchgbycfrvec=function() --this returns 2 values: forward/backwards velocity change, right/left velocity change
  1974.         velchg1=velchg1+(lastvel-xzvel) --i recommend setting velchg1 to v3_0 when u start using this function or it will look worse
  1975.         lastvel=xzvel
  1976.         velchg1=velchg1-velchg1*(deltaTime/2)
  1977.         local fw=cfGet(cfr,"LookVector")*velchg1/32
  1978.         local rt=cfGet(cfr,"RightVector")*velchg1/32
  1979.         return v3Get(fw,"X")+v3Get(fw,"Z"),v3Get(rt,"X")+v3Get(rt,"Z")
  1980.     end
  1981.  
  1982.     local lastYvel=0
  1983.     local velYchg1=0
  1984.     local velYchg=function() --this returns Y axis velocity change
  1985.         velYchg1=clamp(velYchg1+(lastYvel-Yvel),-50,50) --i recommend setting velYchg1 to 0 when u start using this function or it will look worse
  1986.         lastYvel=Yvel
  1987.         velYchg1=velYchg1-velYchg1*(deltaTime/2)
  1988.         return velYchg1
  1989.     end
  1990.  
  1991.     local rotToMouse=function(alpha) --this rotates ur character towards your mouse hit position
  1992.         local pos1=pos*v3_010+cfGet(insGet(mouse,"Hit"),"Position")*v3_101
  1993.         if pos~=pos1 then --could make nan rotation
  1994.             cfr=Lerp(cfr,cfl(pos,pos1),alpha or deltaTime)
  1995.         end
  1996.     end
  1997.  
  1998.     local glitchJoint=function(joint,targetGlitchTime,delayFrom,delayTo,radiansFrom,radiansTo)
  1999.         if sine>targetGlitchTime then --example usage: local glitchtime=0 addMode("x",{idle=function() glitchtime=glitchJoint(joint,glitchtime,0.2,0.4,-0.1,0.1) end})
  2000.             radiansFrom=radiansFrom*100
  2001.             radiansTo=radiansTo*100
  2002.             joint.C0=cfMul(joint.C0,angles(mrandom(radiansFrom,radiansTo)/100,mrandom(radiansFrom,radiansTo)/100,mrandom(radiansFrom,radiansTo)/100))
  2003.             return sine+mrandom(delayFrom*100,delayTo*100)/100
  2004.         end
  2005.         return targetGlitchTime
  2006.     end
  2007.  
  2008.     local setWalkSpeed=function(n)
  2009.         if type(n)~="number" then
  2010.             n=16
  2011.         end
  2012.         walkSpeed=n
  2013.     end
  2014.     local setJumpPower=function(n)
  2015.         if type(n)~="number" then
  2016.             n=50
  2017.         end
  2018.         jumpPower=n
  2019.     end
  2020.     local setGravity=function(n)
  2021.         if type(n)~="number" then
  2022.             n=196.2
  2023.         end
  2024.         gravity=n
  2025.     end
  2026.     local setCfr=function(v) --sets character cframe
  2027.         if typeof(v)=="CFrame" then
  2028.             local newpos=cfGet(v,"Position")
  2029.             camcf=cfAdd(camcf,newpos-pos)
  2030.             insSet(cam,"CFrame",camcf)
  2031.             cfr=v
  2032.             pos=newpos
  2033.         elseif typeof(v)=="Vector3" then
  2034.             camcf=cfAdd(camcf,v-pos)
  2035.             insSet(cam,"CFrame",camcf)
  2036.             cfr=cfAdd(cfGet(cfr,"Rotation"),v)
  2037.             pos=v
  2038.         end
  2039.     end
  2040.     local getVel=function() --returns character velocity
  2041.         return xzvel+v3_010*Yvel --important: use only in lerps or it might not work
  2042.     end
  2043.     local getCamCF=function() --returns camera cframe
  2044.         return camcf
  2045.     end
  2046.     local isFirstPerson=function() --returns true if user is in first person camera mode
  2047.         return firstperson
  2048.     end
  2049.  
  2050.     return {
  2051.         cframes=cframes,
  2052.         joints=joints,
  2053.         fling=predictionfling,
  2054.         predictionfling=predictionfling,
  2055.         refreshjoints=refreshjoints,
  2056.         raycastlegs=raycastlegs,
  2057.         velbycfrvec=velbycfrvec,
  2058.         velchgbycfrvec=velchgbycfrvec,
  2059.         velYchg=velYchg,
  2060.         addmode=addmode,
  2061.         getPart=getPart,
  2062.         getPartFromMesh=getPartFromMesh,
  2063.         getAccWeldFromMesh=getAccWeldFromMesh,
  2064.         getJoint=getJoint,
  2065.         getPartJoint=getPartJoint,
  2066.         rotToMouse=rotToMouse,
  2067.         glitchJoint=glitchJoint,
  2068.         setWalkSpeed=setWalkSpeed,
  2069.         setJumpPower=setJumpPower,
  2070.         setGravity=setGravity,
  2071.         setCfr=setCfr,
  2072.         getVel=getVel,
  2073.         getCamCF=getCamCF,
  2074.         isFirstPerson=isFirstPerson,
  2075.         setHipHeight=setHipHeight
  2076.     }
  2077. end
  2078.  
  2079. btn("creepy crawler",function()
  2080.     local t=reanimate()
  2081.     if type(t)~="table" then return end
  2082.     local getJoint=t.getJoint
  2083.     local rootJoint=getJoint("RootJoint")
  2084.     local rightShoulder=getJoint("Right Shoulder")
  2085.     local leftShoulder=getJoint("Left Shoulder")
  2086.     local rightHip=getJoint("Right Hip")
  2087.     local leftHip=getJoint("Left Hip")
  2088.     local neck=getJoint("Neck")
  2089.  
  2090.     t.setWalkSpeed(10)
  2091.  
  2092.     local jumplerp=function()
  2093.         neck.C0 = Lerp(neck.C0,cfMul(cf(0,0,0.5), angles(0,0,3.141592653589793)),deltaTime)
  2094.         rootJoint.C0 = Lerp(rootJoint.C0,cfMul(cf(0,-1.4,0), angles(3.141592653589793,0,-3.141592653589793)),deltaTime)
  2095.         leftShoulder.C0 = Lerp(leftShoulder.C0,cfMul(cf(-1,1.5,0.3), angles(1.7453292519943295,0,-0.17453292519943295)),deltaTime)
  2096.         rightShoulder.C0 = Lerp(rightShoulder.C0,cfMul(cf(1,1.5,0.3), angles(1.7453292519943295,0,0.17453292519943295)),deltaTime)
  2097.         leftHip.C0 = Lerp(leftHip.C0,cfMul(cf(-1,-1.5,0.8), angles(1.3962634015954636,0,-0.17453292519943295)),deltaTime)
  2098.         rightHip.C0 = Lerp(rightHip.C0,cfMul(cf(1,-1.5,0.8), angles(1.3962634015954636,0,0.17453292519943295)),deltaTime)
  2099.     end
  2100.  
  2101.     t.addmode("default",{
  2102.         idle=function()
  2103.             local sine=sine*60
  2104.             neck.C0 = Lerp(neck.C0,cfMul(cf(0,0,0.5), angles(0.08726646259971647 * sin((sine + 20) * 0.05),0,3.141592653589793 + 0.3490658503988659 * sin((sine + -30) * 0.025))),deltaTime)
  2105.             rootJoint.C0 = Lerp(rootJoint.C0,cfMul(cf(0,-1.5 + 0.1 * sin(sine * 0.05),0), angles(3.141592653589793,0,-3.1590459461097367 + 0.05235987755982989 * sin(sine * 0.025))),deltaTime)
  2106.             leftShoulder.C0 = Lerp(leftShoulder.C0,cfMul(cf(-1,1.5,-0.1 * sin(sine * 0.05)), angles(1.5707963267948966,0,0.08726646259971647 * sin(sine * 0.025))),deltaTime)
  2107.             rightShoulder.C0 = Lerp(rightShoulder.C0,cfMul(cf(1,1.5,-0.1 * sin(sine * 0.05)), angles(1.5707963267948966,0,0.08726646259971647 * sin(sine * 0.025))),deltaTime)
  2108.             leftHip.C0 = Lerp(leftHip.C0,cfMul(cf(-1,-1.5,0.5 + -0.1 * sin((sine + 10) * 0.05)), angles(1.5707963267948966,0,0.08726646259971647 * sin(sine * 0.025))),deltaTime)
  2109.             rightHip.C0 = Lerp(rightHip.C0,cfMul(cf(1,-1.5,0.5 + -0.1 * sin((sine + 10) * 0.05)), angles(1.5707963267948966,0,0.08726646259971647 * sin(sine * 0.025))),deltaTime)
  2110.         end,
  2111.         walk=function()
  2112.             local sine=sine*60
  2113.             neck.C0 = Lerp(neck.C0,cfMul(cf(0,0,0.5), angles(0.17453292519943295,0.03490658503988659 * sin((sine + 2.5) * 0.2),3.141592653589793 + -0.17453292519943295 * sin((sine + -10) * 0.2))),deltaTime)
  2114.             rootJoint.C0 = Lerp(rootJoint.C0,cfMul(cf(0,-1.5,0), angles(3.0543261909900767,0.08726646259971647 * sin((sine + 7.5) * 0.2),-3.1590459461097367 + -0.08726646259971647 * sin(sine * 0.2))),deltaTime)
  2115.             leftShoulder.C0 = Lerp(leftShoulder.C0,cfMul(cf(-1,1.5 + 0.5 * sin((sine + 10) * 0.2),0.3 + 0.2 * sin((sine + -10) * 0.2)), angles(1.6580627893946132 + 0.17453292519943295 * sin((sine + 15) * 0.2),0,-0.08726646259971647 * sin(sine * 0.2))),deltaTime)
  2116.             rightShoulder.C0 = Lerp(rightShoulder.C0,cfMul(cf(1,1.5 + 0.5 * sin((sine + -7.5) * 0.2),0.3 + 0.2 * sin((sine + 5) * 0.2)), angles(1.6580627893946132 + 0.17453292519943295 * sin(sine * 0.2),0,-0.08726646259971647 * sin(sine * 0.2))),deltaTime)
  2117.             leftHip.C0 = Lerp(leftHip.C0,cfMul(cf(-1,-1.5 + 0.5 * sin((sine + -7.5) * 0.2),0.5 + 0.2 * sin((sine + 5) * 0.2)), angles(1.6580627893946132 + 0.17453292519943295 * sin(sine * 0.2),0,-0.08726646259971647 * sin(sine * 0.2))),deltaTime)
  2118.             rightHip.C0 = Lerp(rightHip.C0,cfMul(cf(1,-1.5 + 0.5 * sin((sine + 10) * 0.2),0.5 + 0.2 * sin((sine + -7.5) * 0.2)), angles(1.6580627893946132 + -0.17453292519943295 * sin(sine * 0.2),0,-0.08726646259971647 * sin(sine * 0.2))),deltaTime)
  2119.         end,
  2120.         jump=jumplerp,
  2121.         fall=jumplerp
  2122.     })
  2123. end)
  2124.  
  2125. btn("nameless animations V8", function()
  2126.     local t=reanimate()
  2127.     if type(t)~="table" then return end
  2128.     local raycastlegs=t.raycastlegs
  2129.     local velbycfrvec=t.velbycfrvec
  2130.     local addmode=t.addmode
  2131.     local getJoint=t.getJoint
  2132.     local velYchg=t.velYchg
  2133.     local setWalkSpeed=t.setWalkSpeed
  2134.     local RootJoint=getJoint("RootJoint")
  2135.     local RightShoulder=getJoint("Right Shoulder")
  2136.     local LeftShoulder=getJoint("Left Shoulder")
  2137.     local RightHip=getJoint("Right Hip")
  2138.     local LeftHip=getJoint("Left Hip")
  2139.     local Neck=getJoint("Neck")
  2140.  
  2141.     addmode("default", {
  2142.         idle = function()
  2143.             local rY, lY = raycastlegs()
  2144.  
  2145.             local Ychg=velYchg()/20
  2146.  
  2147.             LeftShoulder.C0=Lerp(LeftShoulder.C0,cfMul(cf(-1,0.5+0.1*sin((sine - 1)*1.3),0.05 * sin((sine-0.3)*1.3)),angles(0.5235987755982988+0.08726646259971647*sin(sine*1),-1.4835298641951802+0.10471975511965978*sin(sine*1.3),0.5235987755982988)),deltaTime)
  2148.             RightShoulder.C0=Lerp(RightShoulder.C0,cfMul(cf(1,0.5+0.1*sin((sine - 1)*1.3),0.05 * sin((sine-0.3)*1.3)),angles(0.5235987755982988+0.08726646259971647*sin(sine*1),1.4835298641951802-0.10471975511965978*sin(sine*1.3),-0.5235987755982988)),deltaTime)
  2149.             LeftHip.C0=Lerp(LeftHip.C0,cfMul(cf(-1,-1.09-0.1*sin(sine*1.3)+lY-Ychg,lY*-0.5),angles(-0.026179938779914945*sin(sine*1.3),-1.3962634015954636,0)),deltaTime)
  2150.             RightHip.C0=Lerp(RightHip.C0,cfMul(cf(1,-1.09-0.1*sin(sine*1.3)+rY-Ychg,rY*-0.5),angles(-0.026179938779914945*sin(sine*1.3),1.3962634015954636,0)),deltaTime)
  2151.             RootJoint.C0=Lerp(RootJoint.C0,cfMul(cf(0,0.09+0.1*sin(sine*1.3) + Ychg,0.025 * sin(sine*1.3)),angles(-1.5707963267948966+0.026179938779914945*sin(sine*1.3),0,3.141592653589793)),deltaTime)
  2152.             Neck.C0=Lerp(Neck.C0,cfMul(cf(0,1,0),angles(-1.53588974175501-0.026179938779914945*sin((sine+1)*1.3),0.05235987755982989*sin((sine-0.6)*0.65),3.141592653589793)),deltaTime)
  2153.             --MW_animatorProgressSave: LeftArm,-1,0,0,1,30,5,0,1,0.5,0.1,-1,1.3,-85,6,0,1.3,0,0.05,-0.3,1.3,30,0,0,1,RightArm,1,0,0,1,30,5,0,1,0.5,0.1,-1,1.3,85,-6,0,1.3,0,0.05,-0.3,1.3,-30,0,0,1,LeftLeg,-1,0,0,1,-0,-1.5,0,1.3,-1.09,-0.1,0,1.3,-80,0,0,1,0,0,0,1,0,0,0,1,CPlusPlusTextbook_Handle,8.658389560878277e-09,0,0,1,0,0,0,1,-0.25,0,0,1,0,0,0,1,-0.0002722442150115967,0,0,1,0,0,0,1,RightLeg,1,0,0,1,0,-1.5,0,1.3,-1.09,-0.1,0,1.3,80,0,0,1,0,0,0,1,0,0,0,1,Torso,0,0,0,1,-90,1.5,0,1.3,0.09,0.1,0,1.3,-0,0,0,1,0,0.025,0,1.3,180,0,0,1,Head,0,0,0,1,-88,-1.5,1,1.3,1,0,0,1,-0,3,-0.6,0.65,0,0,0,1,180,0,0,1
  2154.         end,
  2155.         walk = function()
  2156.             local Vfw, Vrt = velbycfrvec()
  2157.  
  2158.             local rY, lY = raycastlegs()
  2159.  
  2160.             local Ychg=velYchg()/20
  2161.  
  2162.             LeftShoulder.C0=Lerp(LeftShoulder.C0,cfMul(cf(-1,0.5,0),angles(-0.7853981633974483*sin((sine+0.07)*8)*Vfw,-1.5707963267948966+0.5235987755982988*sin((sine+0.15)*8),0)),deltaTime)
  2163.             RightShoulder.C0=Lerp(RightShoulder.C0,cfMul(cf(1,0.5,0),angles(0.7853981633974483*sin((sine+0.07)*8)*Vfw,1.5707963267948966+0.5235987755982988*sin((sine+0.15)*8),0)),deltaTime)
  2164.             RightHip.C0=Lerp(RightHip.C0,cfMul(cf(1,-1+0.3*sin((sine - 0.15)*8)+rY-Ychg,rY*-0.5),angles(1.5707963267948966-0.9599310885968813*sin(sine*8)*Vfw,1.5707963267948966-0.7853981633974483*sin(sine*8)*Vrt,-1.5707963267948966)),deltaTime)
  2165.             LeftHip.C0=Lerp(LeftHip.C0,cfMul(cf(-1,-1+0.3*sin((sine + 0.15)*8)+lY-Ychg,lY*-0.5),angles(1.5707963267948966+0.9599310885968813*sin(sine*8)*Vfw,-1.5707963267948966+0.7853981633974483*sin(sine*8)*Vrt,1.5707963267948966)),deltaTime)
  2166.             Neck.C0=Lerp(Neck.C0,cfMul(cf(0,1,0),angles(-1.5707963267948966+0.08726646259971647*sin(sine*16),0,3.141592653589793+0.08726646259971647*sin((sine+0.04)*8)-Vrt)),deltaTime)
  2167.             RootJoint.C0=Lerp(RootJoint.C0,cfMul(cf(0,0.2 * sin((sine+0.1)*16) + Ychg,0),angles(-1.5707963267948966,0,3.141592653589793)),deltaTime)
  2168.             --MW_animatorProgressSave: CPlusPlusTextbook_Handle,8.658389560878277e-09,0,0,8,0,0,0,8,-0.25,0,0,8,0,0,0,8,-0.0002722442150115967,0,0,8,0,0,0,8,LeftArm,-1,0,0,8,-0,-45,0.07,8,0.5,0,0,8,-90,30,0.15,8,0,0,0,8,0,0,0,8,RightArm,1,0,0,8,0,45,0.07,8,0.5,0,0,8,90,30,0.15,8,0,0,0,8,0,0,0,8,RightLeg,1,0,0,8,90,-55,0,8,-1,0.3,-0.15,8,90,-45,0,8,0,0,0,8,-90,0,0,8,LeftLeg,-1,0,0,8,90,55,0,8,-1,0.3,0.15,8,-90,45,0,8,0,0,0,8,90,0,0,8,Head,0,0,0,8,-90,5,0,16,1,0,0,8,-0,0,0,8,0,0,0,8,180,5,0.04,8,Torso,0,0,0,8,-90,0,0,8,0,0.2,0.1,16,-0,0,0,8,0,0,0,8,180,0,0,8
  2169.         end,
  2170.         jump = function()
  2171.             velYchg()
  2172.             local Vfw, Vrt = velbycfrvec()
  2173.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf_0,angles(-1.4835298641951802 + Vfw * 0.1, Vrt * -0.05, -3.141592653589793)),deltaTime)
  2174.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 0.5, 0),angles(4.014257279586958 - 0.08726646259971647 * sin((sine + 0.5) * 4), 1.7453292519943295 + 0.08726646259971647 * sin((sine + 0.25) * 4), -1.5707963267948966)),deltaTime)
  2175.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1, 0),angles(1.5707963267948966 - 0.08726646259971647 * sin((sine + 0.5) * 4), -1.6580627893946132 + 0.06981317007977318 * sin((sine + 0.25) * 4), 1.5707963267948966)),deltaTime)
  2176.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1, 0.5, 0),angles(4.014257279586958 - 0.08726646259971647 * sin((sine + 0.5) * 4), -1.7453292519943295 - 0.08726646259971647 * sin((sine + 0.25) * 4), 1.5707963267948966)),deltaTime)
  2177.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.3962634015954636, 0, -3.141592653589793 - Vrt)),deltaTime)
  2178.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1, 0),angles(1.5707963267948966 - 0.08726646259971647 * sin((sine + 0.5) * 4), 1.6580627893946132 - 0.06981317007977318 * sin((sine + 0.25) * 4), -1.5707963267948966)),deltaTime)
  2179.             --Torso,0,0,0,4,-85,0,0,4,0,0,0,4,0,0,0,4,0,0,0,4,-180,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,4,0.25,4,0,0,0,4,90,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,Head,0,0,0,4,-80,0,0.5,4,1,0,0,4,0,0,0.25,4,0,0,0,4,-180,0,0,4,RightLeg,1,0,0,4,90,-5,0.5,4,-1,0,0,4,95,-4,0.25,4,0,0,0,4,-90,0,0,4
  2180.         end,
  2181.         fall = function()
  2182.             velYchg()
  2183.             local Vfw, Vrt = velbycfrvec()
  2184.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf_0,angles(-1.6580627893946132 + Vfw * 0.1, Vrt * -0.05, -3.141592653589793)),deltaTime)
  2185.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 0.5, 0),angles(4.014257279586958 - 0.08726646259971647 * sin((sine + 0.5) * 4), 1.7453292519943295 + 0.08726646259971647 * sin((sine + 0.25) * 4), -1.5707963267948966)),deltaTime)
  2186.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1, 0),angles(1.5707963267948966 - 0.08726646259971647 * sin((sine + 0.5) * 4), -1.6580627893946132 + 0.06981317007977318 * sin((sine + 0.25) * 4), 1.5707963267948966)),deltaTime)
  2187.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1, 0.5, 0),angles(4.014257279586958 - 0.08726646259971647 * sin((sine + 0.5) * 4), -1.7453292519943295 - 0.08726646259971647 * sin((sine + 0.25) * 4), 1.5707963267948966)),deltaTime)
  2188.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.7453292519943295, 0, -3.141592653589793 - Vrt)),deltaTime)
  2189.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1, 0),angles(1.5707963267948966 - 0.08726646259971647 * sin((sine + 0.5) * 4), 1.6580627893946132 - 0.06981317007977318 * sin((sine + 0.25) * 4), -1.5707963267948966)),deltaTime)
  2190.             --Torso,0,0,0,4,-95,0,0,4,0,0,0,4,0,0,0,4,0,0,0,4,-180,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,4,0.25,4,0,0,0,4,90,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,Head,0,0,0,4,-100,0,0.5,4,1,0,0,4,0,0,0.25,4,0,0,0,4,-180,0,0,4,RightLeg,1,0,0,4,90,-5,0.5,4,-1,0,0,4,95,-4,0.25,4,0,0,0,4,-90,0,0,4
  2191.         end
  2192.     })
  2193.  
  2194.     addmode("q", {
  2195.         idle = function()
  2196.             velYchg()
  2197.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1, 0.75, -0.2),angles(2.705260340591211 - 0.08726646259971647 * sin((sine + 0.1) * 2), -2.792526803190927, -0.6981317007977318)),deltaTime)
  2198.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 0.75, -0.2),angles(2.705260340591211 - 0.08726646259971647 * sin((sine + 0.1) * 2), 2.792526803190927, 0.6981317007977318)),deltaTime)
  2199.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.9198621771937625 - 0.10471975511965978 * sin((sine + 0.3) * 2), 0, 3.141592653589793)),deltaTime)
  2200.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0, -2.45 - 0.05 * sin(sine * 2), 0),angles(0.03490658503988659 * sin(sine * 2), 0, 3.141592653589793)),deltaTime)
  2201.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1, 0),angles(1.3962634015954636 - 0.03490658503988659 * sin(sine * 2), 1.3089969389957472, -0.9599310885968813)),deltaTime)
  2202.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1, 0),angles(1.5707963267948966 - 0.03490658503988659 * sin(sine * 2), -1.3089969389957472, 1.5707963267948966)),deltaTime)
  2203.             --LeftArm,-1,0,0,2,155,-5,0.1,2,0.75,0,0,2,-160,0,0,2,-0.2,0,0,2,-40,0,0,2,RightArm,1,0,0,2,155,-5,0.1,2,0.75,0,0,2,160,0,0,2,-0.2,0,0,2,40,0,0,2,Head,0,0,0,2,-110,-6,0.3,2,1,0,0,2,-0,0,0,2,0,0,0,2,180,0,0,2,Torso,0,0,0,2,0,2,0,2,-2.45,-0.05,0,2,-0,0,0,2,0,0,0,2,180,0,0,2,RightLeg,1,0,0,2,80,-2,0,2,-1,0,0,2,75,0,0,2,0,0,0,2,-55,0,0,2,LeftLeg,-1,0,0,2,90,-2,0,2,-1,0,0,2,-75,0,0,2,0,0,0,2,90,0,0,2
  2204.         end
  2205.     })
  2206.     addmode("e", {
  2207.         idle = function()
  2208.             velYchg()
  2209.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-0.9, 0.4 + 0.1 * sin(sine * 2), 0.3 - 0.15 * sin(sine * 2)),angles(-1.0471975511965976 - 0.12217304763960307 * sin(sine * 2), -1.3962634015954636, -0.6981317007977318)),deltaTime)
  2210.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0, -1.85 - 0.1 * sin((sine + 0.2) * 2), 0),angles(-1.3962634015954636 + 0.03490658503988659 * sin(sine * 2), -0.08726646259971647, 3.141592653589793)),deltaTime)
  2211.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 0.4 + 0.1 * sin(sine * 2), 0.2 - 0.15 * sin(sine * 2)),angles(0.6108652381980153 - 0.12217304763960307 * sin(sine * 2), 1.2217304763960306, -0.7853981633974483)),deltaTime)
  2212.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.6580627893946132 - 0.03490658503988659 * sin((sine + 0.6) * 2), 0.10471975511965978 + 0.06981317007977318 * sin(sine * 0.66), 3.141592653589793 + 0.3490658503988659 * sin(sine * 0.66))),deltaTime)
  2213.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, 0.2 + 0.15 * sin((sine + 0.2) * 2), -0.7 + 0.1 * sin(sine * 2)),angles(1.4835298641951802 + 0.03490658503988659 * sin(sine * 2), 1.4835298641951802, -1.5707963267948966)),deltaTime)
  2214.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -0.75 + 0.1 * sin((sine + 0.2) * 2), -0.5),angles(1.3962634015954636 - 0.03490658503988659 * sin(sine * 2), -1.6580627893946132, 0)),deltaTime)
  2215.             --LeftArm,-0.9,0,0,2,-60,-7,0,2,0.4,0.1,0,2,-80,0,0,2,0.3,-0.15,0,2,-40,0,0,2,Torso,0,0,0,2,-80,2,0,2,-1.85,-0.1,0.2,2,-5,0,0,2,0,0,0,2,180,0,0,2,RightArm,1,0,0,2,35,-7,0,2,0.4,0.1,0,2,70,0,0,2,0.2,-0.15,0,2,-45,0,0,2,Head,0,0,0,2,-95,-2,0.6,2,1,0,0,2,6,4,0,0.66,0,0,0,2,180,20,0,0.66,RightLeg,1,0,0,2,85,2,0,2,0.2,0.15,0.2,2,85,0,0,2,-0.7,0.1,0,2,-90,0,0,2,LeftLeg,-1,0,0,2,80,-2,0,2,-0.75,0.1,0.2,2,-95,0,0,2,-0.5,0,0,2,0,0,0,2
  2216.         end
  2217.     })
  2218.     addmode("r", {
  2219.         idle = function()
  2220.             local Ychg=velYchg()/20
  2221.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -0.9 - 0.2 * sin(sine * 2)-Ychg, 0),angles(1.5707963267948966, 1.6580627893946132 - 0.17453292519943295 * sin(sine + 0.8), -1.5707963267948966)),deltaTime)
  2222.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0.3 * sin(sine + 0.8), -0.1 + 0.2 * sin(sine * 2)+Ychg, 0),angles(-1.5707963267948966, 0, -3.141592653589793)),deltaTime)
  2223.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.5707963267948966 + 0.08726646259971647 * sin((sine - 0.5) * 2), 0.08726646259971647 * sin(sine - 1), -3.141592653589793 + 0.2617993877991494 * sin(sine * 5))),deltaTime)
  2224.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1 + 0.1 * sin(sine * 7), 0.2 - 0.1 * sin(sine + 0.8), -0.25),angles(1.5707963267948966 + 0.5235987755982988 * sin(sine * 7), -0.6981317007977318, 0.3490658503988659 * sin(sine * 7))),deltaTime)
  2225.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -0.9 - 0.2 * sin(sine * 2)-Ychg, 0),angles(1.5707963267948966, -1.6580627893946132 - 0.17453292519943295 * sin(sine + 0.8), 1.5707963267948966)),deltaTime)
  2226.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1 + 0.1 * sin(sine * 7), 0.2 + 0.1 * sin(sine + 0.8), -0.25),angles(1.5707963267948966 - 0.5235987755982988 * sin(sine * 7), 0.6981317007977318, 0.3490658503988659 * sin(sine * 7))),deltaTime)
  2227.             --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
  2228.         end
  2229.     })
  2230.     addmode("t", {
  2231.         idle = function()
  2232.             local Ychg=velYchg()/20
  2233.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1, 0.5, 0),angles(1.5707963267948966, -1.6580627893946132 + 0.08726646259971647 * sin((sine - 0.3) * 4), 1.5707963267948966)),deltaTime)
  2234.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1 + 0.15 * sin((sine - 0.4) * 4), 1.42, 0),angles(1.5707963267948966, 1.4835298641951802 - 0.3490658503988659 * sin((sine - 0.4) * 4), 1.5707963267948966)),deltaTime)
  2235.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.4835298641951802, 0.04363323129985824 - 0.08726646259971647 * sin((sine + 0.1) * 4), -3.141592653589793 + 0.04363323129985824 * sin(sine * 4))),deltaTime)
  2236.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0.1 * sin(sine * 4), Ychg, 0),angles(-1.5707963267948966, -0.08726646259971647 + 0.08726646259971647 * sin(sine * 4), -3.141592653589793)),deltaTime)
  2237.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1.1 + 0.1 * sin(sine * 4)-Ychg, 0),angles(1.5707963267948966, 1.5707963267948966 + 0.08726646259971647 * sin(sine * 4), -1.5707963267948966)),deltaTime)
  2238.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1 - 0.02 * sin(sine * 4), -0.925 - 0.07 * sin(sine * 4)-Ychg, 0),angles(1.5707963267948966, -1.7453292519943295 + 0.08726646259971647 * sin(sine * 4), 1.5707963267948966)),deltaTime)
  2239.             --LeftArm,-1,0,0,4,90,0,0,4,0.5,0,0,4,-95,5,-0.3,4,0,0,0,4,90,0,0,4,RightArm,1,0.15,-0.4,4,90,0,0,4,1.42,0,0,4,85,-20,-0.4,4,0,0,0,4,90,0,0,4,Head,0,0,0,4,-85,0,0,4,1,0,0,4,2.5,-5,0.1,4,0,0,0,4,-180,2.5,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,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.02,0,4,90,0,0,4,-0.925,-0.07,0,4,-100,5,0,4,0,0,0,4,90,0,0,4
  2240.         end
  2241.     })
  2242.     addmode("y", {
  2243.         idle = function()
  2244.             local Ychg=velYchg()/20
  2245.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1.5, 0.5, 0),angles(-1.7453292519943295, 0.17453292519943295 - 0.04363323129985824 * sin(sine * 2), -1.4835298641951802)),deltaTime)
  2246.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -0.9000000953674316 - 0.1 * sin(sine * 2)-Ychg, 0),angles(-1.3962634015954636, 1.3962634015954636, 1.5707963267948966)),deltaTime)
  2247.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1.0000001192092896 - 0.1 * sin(sine * 2)-Ychg, 0),angles(-1.5707963267948966, -1.3962634015954636, -1.5707963267948966)),deltaTime)
  2248.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-2.0943951023931953 + 0.08726646259971647 * sin((sine - 1) * 2), -0.08726646259971647, 2.792526803190927)),deltaTime)
  2249.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 1.2000000476837158, 0),angles(2.6179938779914944 + 0.08726646259971647 * sin((sine - 1) * 2), 0.6981317007977318, -1.3962634015954636)),deltaTime)
  2250.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0, 0.1 * sin(sine * 2) + Ychg, 0),angles(-1.6580627893946132, 0.08726646259971647, 3.0543261909900767)),deltaTime)
  2251.             --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
  2252.         end
  2253.     })
  2254.     addmode("u", {
  2255.         idle = function()
  2256.             velYchg()
  2257.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0, 0.75 + 0.25 * sin(sine * 2), 0),angles(-1.5707963267948966, 0, 3.141592653589793)),deltaTime)
  2258.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1.5 - 0.1 * sin((sine + 0.2) * 2), 0),angles(-1.5707963267948966 - 0.08726646259971647 * sin((sine + 0.4) * 2), 0, 3.141592653589793 + 0.3490658503988659 * sin(sine * 0.66))),deltaTime)
  2259.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-0.5 - 1 * sin((sine + 0.2) * 2.2), -0.75 - 0.25 * sin(sine * 2), 1 * sin((sine + 0.95) * 2.2)),angles(0, -1.5707963267948966, 0)),deltaTime)
  2260.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(0.5 + 1 * sin((sine + 0.2) * 2.2), -0.75 - 0.25 * sin(sine * 2), -1 * sin((sine + 0.95) * 2.2)),angles(0, 1.5707963267948966, 0)),deltaTime)
  2261.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(-0.5 - 1.85 * sin(sine * 2), 0.8 - 0.5 * sin(sine * 2), -1.85 * sin((sine + 0.75) * 2)),angles(0, 1.5707963267948966, 0)),deltaTime)
  2262.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(0.5 + 1.85 * sin(sine * 2), 0.8 - 0.5 * sin(sine * 2), 1.85 * sin((sine + 0.75) * 2)),angles(0, -1.5707963267948966, 0)),deltaTime)
  2263.             --Torso,0,0,0,2,-90,0,0,2,0.75,0.25,0,2,-0,0,0,2,0,0,0,2,180,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,-90,-5,0.4,2,1.5,-0.1,0.2,2,-0,0,0,2,0,0,0,2,180,20,0,0.66,LeftLeg,-0.5,-1,0.2,2.2,-0,0,0,2,-0.75,-0.25,0,2,-90,0,0,2,0,1,0.95,2.2,0,0,0,2,RightLeg,0.5,1,0.2,2.2,0,0,0,2,-0.75,-0.25,0,2,90,0,0,2,0,-1,0.95,2.2,0,0,0,2,RightArm,-0.5,-1.85,0,2,0,0,0,2,0.8,-0.5,0,2,90,0,0,2,0,-1.85,0.75,2,0,0,0,2,LeftArm,0.5,1.85,0,2,-0,0,0,2,0.8,-0.5,0,2,-90,0,0,2,0,1.85,0.75,2,0,0,0,2
  2264.         end
  2265.     })
  2266.     addmode("i", {
  2267.         idle = function()
  2268.             local Ychg=velYchg()/20
  2269.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-0.5, 0.5 + 0.1 * sin((sine - 0.4444444444444444) * 9), 0),angles(2.9670597283903604 + 0.17453292519943295 * sin((sine - 0.17777777777777778) * 9), -0.5235987755982988, 1.5707963267948966 + 0.17453292519943295 * sin(sine * 4.5))),deltaTime)
  2270.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -0.5 + 0.1 * sin((sine + 0.26666666666666666) * 4.5)-Ychg, -0.5),angles(1.7453292519943295 - 1.0471975511965976 * sin(sine * 4.5), -1.5707963267948966 + 0.03490658503988659 * sin(sine * 4.5), 1.5707963267948966)),deltaTime)
  2271.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0, -0.5 + 0.5 * sin((sine + 0.17777777777777778) * 9)+Ychg, 0),angles(-1.3962634015954636 - 0.03490658503988659 * sin((sine + 0.17777777777777778) * 9), -0.05235987755982989 * sin(sine * 4.5), 3.141592653589793 + 0.03490658503988659 * sin(sine * 4.5))),deltaTime)
  2272.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1 + 0.2 * sin(sine * 9), 0),angles(-1.5707963267948966 + 0.08726646259971647 * sin(sine * 9), 0.08726646259971647 * sin(sine * 4.5), 3.141592653589793 - 0.06981317007977318 * sin(sine * 4.5))),deltaTime)
  2273.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(0.5, 0.5 + 0.1 * sin((sine - 0.4444444444444444) * 9), 0),angles(2.9670597283903604 + 0.17453292519943295 * sin((sine - 0.17777777777777778) * 9), 0.5235987755982988, -1.5707963267948966 + 0.17453292519943295 * sin(sine * 4.5))),deltaTime)
  2274.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -0.5 + 0.1 * sin((sine - 0.26666666666666666) * 4.5)-Ychg, -0.5),angles(1.7453292519943295 + 1.0471975511965976 * sin(sine * 4.5), 1.5707963267948966 + 0.03490658503988659 * sin(sine * 4.5), -1.5707963267948966)),deltaTime)
  2275.             --LeftArm,-0.5,0,0,4.5,170,10,-0.17777777777777778,9,0.5,0.1,-0.4444444444444444,9,-30,0,0,4.5,0,0,0,4.5,90,10,0,4.5,LeftLeg,-1,0,0,4.5,100,-60,0,4.5,-0.5,0.1,0.26666666666666666,4.5,-90,2,0,4.5,-0.5,0,0,4.5,90,0,0,4.5,Torso,0,0,0,4.5,-80,-2,0.17777777777777778,9,-0.5,0.5,0.17777777777777778,9,-0,-3,0,4.5,0,0,0,4.5,180,2,0,4.5,Head,0,0,0,4.5,-90,5,0,9,1,0.2,0,9,-0,5,0,4.5,0,0,0,4.5,180,-4,0,4.5,RightArm,0.5,0,0,4.5,170,10,-0.17777777777777778,9,0.5,0.1,-0.4444444444444444,9,30,0,0,4.5,0,0,0,4.5,-90,10,0,4.5,RightLeg,1,0,0,4.5,100,60,0,4.5,-0.5,0.1,-0.26666666666666666,4.5,90,2,0,4.5,-0.5,0,0,4.5,-90,0,0,4.5
  2276.         end,
  2277.     })
  2278.     addmode("o", {
  2279.         idle = function()
  2280.             local Ychg=velYchg()/20
  2281.             local rY, lY = raycastlegs()
  2282.  
  2283.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1 + lY-Ychg, lY * -0.5),angles(-1.8325957145940461 - 0.08726646259971647 * sin(sine * 2), -1.4835298641951802, -1.5707963267948966)),deltaTime)
  2284.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0, Ychg, 0.09 * sin(sine * 2)),angles(-1.3962634015954636 + 0.08726646259971647 * sin(sine * 2), -0.08726646259971647, 3.141592653589793)),deltaTime)
  2285.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1, 0.5, 0),angles(2.9670597283903604 + 0.08726646259971647 * sin(sine * 1), -1.5707963267948966 + 0.08726646259971647 * sin((sine + 0.6) * 1), 1.5707963267948966)),deltaTime)
  2286.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1.1 + rY-Ychg, rY * -0.5),angles(-1.7453292519943295 - 0.08726646259971647 * sin(sine * 2), 1.5707963267948966, 1.5707963267948966)),deltaTime)
  2287.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.2217304763960306 - 0.08726646259971647 * sin((sine + 0.3) * 2), -0.2617993877991494 - 0.08726646259971647 * sin(sine * 2), 3.141592653589793)),deltaTime)
  2288.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 0.5, 0),angles(2.8797932657906435 + 0.08726646259971647 * sin(sine * 1), 1.5707963267948966 - 0.08726646259971647 * sin((sine + 0.6) * 1), -1.5707963267948966)),deltaTime)
  2289.             --LeftLeg,-1,0,0,2,-105,-5,0,2,-1,0,0,2,-85,0,0,2,0,0,0,2,-90,0,0.75,2,Torso,0,0,0,2,-80,5,0,2,0,0,0,2,-5,0,0,2,0,0.09,0,2,180,0,0,2,LeftArm,-1,0,0,2,170,5,0,1,0.5,0,0,2,-90,5,0.6,1,0,0,0,2,90,0,0,2,RightLeg,1,0,0,2,-100,-5,0,2,-1.1,0,0,2,90,0,0,2,0,0,0,2,90,0,0.75,2,Head,0,0,0,2,-70,-5,0.3,2,1,0,0,2,-15,-5,0,2,0,0,0,2,180,0,0,2,RightArm,1,0,0,2,165,5,0,1,0.5,0,0,2,90,-5,0.6,1,0,0,0,2,-90,0,0,2
  2290.         end,
  2291.         walk = function()
  2292.             local Ychg=velYchg()/20
  2293.             local Vfw, Vrt = velbycfrvec()
  2294.  
  2295.             local rY, lY = raycastlegs()
  2296.  
  2297.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.5707963267948966 + 0.04363323129985824 * sin(sine * 16), 0, 3.141592653589793 + 0.08726646259971647 * sin(sine * 8) - Vrt)),deltaTime)
  2298.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1 - 0.3 * sin((sine + 0.15) * 8) + rY-Ychg, rY * -0.5),angles(-1.5707963267948966 - 0.6981317007977318 * sin(sine * 8) * Vfw, 1.5707963267948966 + 0.6981317007977318 * sin(sine * 8) * Vrt, 1.5707963267948966)),deltaTime)
  2299.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 0.5, 0),angles(0.08726646259971647 * sin((sine - 0.05) * 16), 1.5707963267948966 + 0.08726646259971647 * sin(sine * 8) - Vrt/3, 1.5707963267948966)),deltaTime)
  2300.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1, 0.5, 0),angles(0.08726646259971647 * sin((sine - 0.05) * 16), -1.5707963267948966 + 0.08726646259971647 * sin(sine * 8) - Vrt/3, -1.5707963267948966)),deltaTime)
  2301.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0, 0.1 * sin((sine + 0.1) * 16)+Ychg, 0),angles(-1.5707963267948966, 0, 3.141592653589793 - 0.08726646259971647 * sin(sine * 8))),deltaTime)
  2302.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1 + 0.3 * sin((sine + 0.15) * 8) + lY-Ychg, lY * -0.5),angles(1.5707963267948966 + 0.6981317007977318 * sin(sine * 8) * Vfw, -1.5707963267948966 + 0.6981317007977318 * sin(sine * 8) * Vrt, 1.5707963267948966)),deltaTime)
  2303.             --Head,0,0,0,8,-90,2.5,0,16,1,0,0,8,-0,0,0,8,0,0,0,8,180,5,0,8,RightLeg,1,0,0,8,-90,-40,0,8,-1,-0.3,0.15,8,90,40,0,8,0,0,0,8,90,0,0,8,RightArm,1,0,0,8,0,5,-0.05,16,0.5,0,0,8,90,5,0,8,0,0,0,8,90,0,0,8,LeftArm,-1,0,0,8,0,5,-0.05,16,0.5,0,0,8,-90,5,0,8,0,0,0,8,-90,0,0,8,Torso,0,0,0,8,-90,0,0,8,0,0.1,0.1,16,-0,0,0,8,0,0,0,8,180,-5,0,8,LeftLeg,-1,0,0,8,90,40,0,8,-1,0.3,0.15,8,-90,40,0,8,0,0,0,8,90,0,0,8
  2304.         end
  2305.     })
  2306.     addmode("p", {
  2307.         idle = function()
  2308.             local Ychg=velYchg()/20
  2309.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1.5, 0.5, 0),angles(1.5707963267948966, 3.141592653589793, -1.5707963267948966)),deltaTime)
  2310.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1-Ychg, 0),angles(0, 1.5707963267948966, 0)),deltaTime)
  2311.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1.5, 0.5, 0),angles(1.5707963267948966, 3.141592653589793, 1.5707963267948966)),deltaTime)
  2312.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1-Ychg, 0),angles(0, -1.5707963267948966, 0)),deltaTime)
  2313.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.5707963267948966, 0, -3.141592653589793)),deltaTime)
  2314.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0, Ychg, 0),angles(-1.5707963267948966, 0, -3.141592653589793)),deltaTime)
  2315.             --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
  2316.         end
  2317.     })
  2318.     addmode("f", {
  2319.         modeEntered = function()
  2320.             setWalkSpeed(25)
  2321.         end,
  2322.         idle = function()
  2323.             velYchg()
  2324.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1, 0.5, 0),angles(-3.0543261909900767 - 0.17453292519943295 * sin((sine + 1.5) * 1), -1.5707963267948966 + 0.08726646259971647 * sin((sine + 0.6) * 1), -1.5707963267948966)),deltaTime)
  2325.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 0.5, 0),angles(3.141592653589793 - 0.08726646259971647 * sin(sine * 1), 0.3490658503988659 + 0.08726646259971647 * sin((sine + 0.3) * 1), -1.9198621771937625 + 0.08726646259971647 * sin((sine + 1) * 1))),deltaTime)
  2326.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.3089969389957472 - 0.2617993877991494 * sin((sine + 1.2) * 1), 0.08726646259971647 * sin((sine + 0.2) * 0.5), -2.9670597283903604)),deltaTime)
  2327.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0, 5 - 0.5 * sin((sine - 0.2) * 1), 0.2 * sin((sine - 1.2) * 1)),angles(-0.08726646259971647 + 0.17453292519943295 * sin((sine + 1.2) * 1), 0.08726646259971647 * sin(sine * 0.5), 3.141592653589793)),deltaTime)
  2328.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1, 0),angles(1.3962634015954636 + 0.12217304763960307 * sin((sine + 1.5) * 1), -1.2217304763960306 + 0.08726646259971647 * sin((sine + 0.2) * 0.5), 1.5707963267948966)),deltaTime)
  2329.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1, 0),angles(1.9198621771937625 + 0.12217304763960307 * sin((sine + 1.5) * 1), 1.2217304763960306 + 0.08726646259971647 * sin((sine + 0.2) * 0.5), -1.5707963267948966)),deltaTime)
  2330.             --LeftArm,-1,0,0,1,-175,-10,1.5,1,0.5,0,0,1,-90,5,0.6,1,0,0,0,1,-90,0,0,1,RightArm,1,0,0,1,180,-5,0,1,0.5,0,0,1,20,5,0.3,1,0,0,0,1,-110,5,1,1,Head,0,0,0,1,-75,-15,1.2,1,1,0,0,1,-0,5,0.2,0.5,0,0,0,1,-170,0,0,1,Torso,0,0,0,1,-5,10,1.2,1,5,-0.5,-0.2,1,-0,5,0,0.5,0,0.2,-1.2,1,180,0,0,1,LeftLeg,-1,0,0,1,80,7,1.5,1,-1,0,0,1,-70,5,0.2,0.5,0,0,0,1,90,0,0,1,RightLeg,1,0,0,1,110,7,1.5,1,-1,0,0,1,70,5,0.2,0.5,0,0,0,1,-90,0,0,1
  2331.         end,
  2332.         walk = function()
  2333.             velYchg()
  2334.             local Vfw, Vrt = velbycfrvec()
  2335.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1, 0.5, 0),angles(-3.0543261909900767 - 0.17453292519943295 * sin((sine + 1.5) * 1) - Vfw * 0.1, -1.5707963267948966 + 0.08726646259971647 * sin((sine + 0.6) * 1) + Vrt * 0.2, -1.5707963267948966)),deltaTime)
  2336.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 0.5, 0),angles(3.141592653589793 - 0.08726646259971647 * sin(sine * 1), 0.3490658503988659 + 0.08726646259971647 * sin((sine + 0.3) * 1), -1.9198621771937625 + 0.08726646259971647 * sin((sine + 1) * 1))),deltaTime)
  2337.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.3089969389957472 - 0.2617993877991494 * sin((sine + 1.2) * 1) + Vfw * 0.1, 0.08726646259971647 * sin((sine + 0.2) * 0.5) - Vrt * 0.2, -2.9670597283903604)),deltaTime)
  2338.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0, 5 - 0.5 * sin((sine - 0.2) * 1), 0.2 * sin((sine - 1.2) * 1)),angles(-0.08726646259971647 + 0.17453292519943295 * sin((sine + 1.2) * 1) - Vfw * 0.2, 0.08726646259971647 * sin(sine * 0.5), 3.141592653589793 - Vrt * 0.2)),deltaTime)
  2339.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1, 0),angles(1.3962634015954636 + 0.12217304763960307 * sin((sine + 1.5) * 1) - Vfw * 0.2, -1.2217304763960306 + 0.08726646259971647 * sin((sine + 0.2) * 0.5), 1.5707963267948966)),deltaTime)
  2340.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1, 0),angles(1.9198621771937625 + 0.12217304763960307 * sin((sine + 1.5) * 1) - Vfw * 0.2, 1.2217304763960306 + 0.08726646259971647 * sin((sine + 0.2) * 0.5), -1.5707963267948966)),deltaTime)
  2341.             --LeftArm,-1,0,0,1,-175,-10,1.5,1,0.5,0,0,1,-90,5,0.6,1,0,0,0,1,-90,0,0,1,RightArm,1,0,0,1,180,-5,0,1,0.5,0,0,1,20,5,0.3,1,0,0,0,1,-110,5,1,1,Head,0,0,0,1,-75,-15,1.2,1,1,0,0,1,-0,5,0.2,0.5,0,0,0,1,-170,0,0,1,Torso,0,0,0,1,-5,10,1.2,1,5,-0.5,-0.2,1,-0,5,0,0.5,0,0.2,-1.2,1,180,0,0,1,LeftLeg,-1,0,0,1,80,7,1.5,1,-1,0,0,1,-70,5,0.2,0.5,0,0,0,1,90,0,0,1,RightLeg,1,0,0,1,110,7,1.5,1,-1,0,0,1,70,5,0.2,0.5,0,0,0,1,-90,0,0,1
  2342.         end,
  2343.         modeLeft = function()
  2344.             setWalkSpeed(16)
  2345.         end,
  2346.     })
  2347.     addmode("g", {
  2348.         idle = function()
  2349.             local Ychg=velYchg()/20
  2350.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-0.9 + 0.4 * sin(sine * 8), 0.5, 0.5 * sin((sine + 0.25) * 4)),angles(1.5707963267948966, -1.5707963267948966 + 1.0471975511965976 * sin(sine * 8), 1.5707963267948966 + 0.6981317007977318 * sin((sine + 0.25) * 4))),deltaTime)
  2351.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0.3 * sin((sine + 0.4) * 8), Ychg, 0),angles(-1.5707963267948966, 0.3490658503988659 * sin(sine * 8), -3.141592653589793)),deltaTime)
  2352.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.5707963267948966 + 0.061086523819801536 * sin((sine + 0.125) * 16), -0.3839724354387525 * sin(sine * 8), -3.141592653589793)),deltaTime)
  2353.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1 + 0.4 * sin((sine - 0.01) * 8)-Ychg, 0),angles(1.5707963267948966, 1.7453292519943295 + 0.6981317007977318 * sin(sine * 8), -1.5707963267948966)),deltaTime)
  2354.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1 - 0.4 * sin((sine - 0.01) * 8)-Ychg, 0),angles(1.5707963267948966, -1.7453292519943295 + 0.6981317007977318 * sin(sine * 8), 1.5707963267948966)),deltaTime)
  2355.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(0.9 + 0.4 * sin(sine * 8), 0.5, -0.5 * sin((sine - 0.35) * 4)),angles(1.5707963267948966 + 0.6981317007977318 * sin(sine * 4), 1.5707963267948966 + 1.0471975511965976 * sin(sine * 8), -1.5707963267948966 + 0.17453292519943295 * sin((sine - 0.35) * 4))),deltaTime)
  2356.             --LeftArm,-0.9,0.4,0,8,90,0,0.25,4,0.5,0,0,8,-90,60,0,8,0,0.5,0.25,4,90,40,0.25,4,Torso,0,0.3,0.4,8,-90,0,0,8,0,0,0,4,0,20,0,8,0,0,0,8,-180,0,0,8,Head,0,0,0,8,-90,3.5,0.125,16,1,0,0,8,0,-22,0,8,0,0,0,8,-180,0,0,1.1,RightLeg,1,0,0,8,90,0,0,8,-1,0.4,-0.01,8,100,40,0,8,0,0,0,8,-90,0,0,8,LeftLeg,-1,0,0,8,90,0,0,8,-1,-0.4,-0.01,8,-100,40,0,8,0,0,0,8,90,0,0,8,RightArm,0.9,0.4,0,8,90,40,0,4,0.5,0,0,8,90,60,0,8,0,-0.5,-0.35,4,-90,10,-0.35,4
  2357.         end
  2358.     })
  2359.     addmode("h", {
  2360.         idle = function()
  2361.             local Ychg=velYchg()/20
  2362.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.5707963267948966, -0.4363323129985824 * sin(sine * 8), -3.141592653589793)),deltaTime)
  2363.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1 + 0.3 * sin(sine * 8)-Ychg, 0),angles(1.5707963267948966, 1.5707963267948966 + 0.5235987755982988 * sin(sine * 8), -1.5707963267948966)),deltaTime)
  2364.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-0.5, 1, 0),angles(-0.5235987755982988, -1.5707963267948966 - 0.5235987755982988 * sin(sine * 8), 3.141592653589793)),deltaTime)
  2365.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(0.5, 1, 0),angles(-0.5235987755982988, 1.5707963267948966 - 0.5235987755982988 * sin(sine * 8), 3.141592653589793)),deltaTime)
  2366.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(-0.1 * sin(sine * 8), 0.2 * sin((sine + 0.1) * 16)+Ychg, 0),angles(-1.5707963267948966, 0.2617993877991494 * sin(sine * 8), -3.141592653589793)),deltaTime)
  2367.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1 - 0.3 * sin(sine * 8)-Ychg, 0),angles(1.5707963267948966, -1.5707963267948966 + 0.5235987755982988 * sin(sine * 8), 1.5707963267948966)),deltaTime)
  2368.             --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
  2369.         end
  2370.     })
  2371.     addmode("j", {
  2372.         idle = function()
  2373.             local Ychg=velYchg()/20
  2374.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-0.8, -1, -0.1),angles(0.17453292519943295, -0.6981317007977318, 0)),deltaTime)
  2375.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1.2, 0.5, 0),angles(-0.3490658503988659 + 0.08726646259971647 * sin((sine + 0.1) * 4), 0, 0.6981317007977318 + 0.08726646259971647 * sin((sine + 0.1) * 4))),deltaTime)
  2376.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1.1, -1, 0),angles(1.5707963267948966, 1.7453292519943295, -1.5707963267948966)),deltaTime)
  2377.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.5707963267948966 + 0.08726646259971647 * sin((sine + 0.1) * 4), 0, 2.792526803190927)),deltaTime)
  2378.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0, -1.7 + 0.5 * sin(sine * 4)+Ychg, 0.15 * sin(sine * 4)),angles(3.3161255787892263 + 0.17453292519943295 * sin(sine * 4), 0, 3.6651914291880923)),deltaTime)
  2379.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(0.8 + 0.4 * sin(sine * 4), 0.6 + 0.1 * sin(sine * 4), 0.4 - 0.25 * sin(sine * 4)),angles(2.9670597283903604, 2.2689280275926285 - 0.17453292519943295 * sin(sine * 4), -1.4835298641951802 - 0.17453292519943295 * sin(sine * 4))),deltaTime)
  2380.             --GalaxyBeautifulHair_Handle,-0.15000000596046448,0,0,1,0,0,0,1,0.10000000149011612,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,LeftLeg,-0.8,0,0,4,10,0,0,4,-1,0,0,4,-40,0,0,4,-0.1,0,0,4,0,0,0,4,LeftArm,-1.2,0,0,4,-20,5,0.1,4,0.5,0,0,4,0,0,0,4,0,0,0,4,40,5,0.1,4,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,ValkyrieHelm_Handle,8.658389560878277e-09,0,0,1,-15,0,0,1,-0.2433757781982422,0,0,1,0,0,0,1,-0.2657628059387207,0,0,1,0,0,0,1,RightLeg,1.1,0,0,4,90,0,0,4,-1,0,0,4,100,0,0,4,0,0,0,4,-90,0,0,4,BlackIronAntlers_Handle,8.658389560878277e-09,0,0,1,0,0,0,1,-0.6500000953674316,0,0,1,0,0,0,1,0.19972775876522064,0,0,1,0,0,0,1,DevAwardsAdurite_Handle,0,0,0,1,0,0,0,1,-0.25,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,SilverthornAntlers_Handle,8.658389560878277e-09,0,0,1,0,0,0,1,-0.6500000953674316,0,0,1,0,0,0,1,0.19972775876522064,0,0,1,0,0,0,1,Head,0,0,0,4,-90,5,0.1,4,1,0,0,4,-0,0,0,4,0,0,0,4,160,0,0,4,Torso,0,0,0,4,190,10,0,4,-1.70,0.5,0,4,-0,0,0,4,0,0.15,0,4,210,0,0,4,RightArm,0.8,0.4,0,4,170,0,0,4,0.6,0.1,0,4,130,-10,0,4,0.4,-0.25,0,4,-85,-10,0,4
  2381.         end
  2382.     })
  2383.     addmode("k", {
  2384.         idle = function()
  2385.             local Ychg=velYchg()/20
  2386.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.6580627893946132 - 0.08726646259971647 * sin((sine + 0.3333333333333333) * 12), -0.08726646259971647 * sin((sine + 0.2) * 6), 3.141592653589793)),deltaTime)
  2387.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -0.5 - 0.5 * sin((sine + 0.39999999999999997) * 12)-Ychg, -0.5),angles(1.7453292519943295 - 1.0471975511965976 * sin(sine * 6), -1.5707963267948966 + 0.1308996938995747 * sin(sine * 6), 1.5707963267948966)),deltaTime)
  2388.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -0.5 - 0.5 * sin((sine + 0.39999999999999997) * 12)-Ychg, -0.5),angles(1.7453292519943295 + 1.0471975511965976 * sin(sine * 6), 1.5707963267948966 + 0.1308996938995747 * sin(sine * 6), -1.5707963267948966)),deltaTime)
  2389.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0, -0.5 + 0.3 * sin((sine + 0.16666666666666666) * 12)+Ychg, 0),angles(-1.3962634015954636 + 0.08726646259971647 * sin((sine + 0.3333333333333333) * 12), 0.08726646259971647 * sin((sine + 0.06666666666666667) * 6), 3.141592653589793)),deltaTime)
  2390.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-0.8 - 0.1 * sin(sine * 6), 0.5 + 0.1 * sin(sine * 6), -0.2),angles(3.141592653589793 - 0.17453292519943295 * sin((sine + 0.39999999999999997) * 12), -0.17453292519943295, 1.5707963267948966)),deltaTime)
  2391.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(0.8 - 0.1 * sin(sine * 6), 0.5 - 0.1 * sin(sine * 6), -0.2),angles(3.141592653589793 - 0.17453292519943295 * sin((sine + 0.39999999999999997) * 12), 0.17453292519943295, -1.5707963267948966)),deltaTime)
  2392.             --GalaxyBeautifulHair_Handle,-0.15000000596046448,0,0,1.5,0,0,0,1.5,0.10000000149011612,0,0,1.5,0,0,0,1.5,0,0,0,1.5,0,0,0,1.5,Head,0,0,0,6,-95,-5,0.3333333333333333,12,1,0,0,6,-0,-5,0.2,6,0,0,0,6,180,0,0,6,ValkyrieHelm_Handle,8.658389560878277e-09,0,0,1.5,-15,0,0,1.5,-0.2433757781982422,0,0,1.5,0,0,0,1.5,-0.2657628059387207,0,0,1.5,0,0,0,1.5,SilverthornAntlers_Handle,8.658389560878277e-09,0,0,1.5,0,0,0,1.5,-0.6500000953674316,0,0,1.5,0,0,0,1.5,0.19972775876522064,0,0,1.5,0,0,0,1.5,BlackIronAntlers_Handle,8.658389560878277e-09,0,0,1.5,0,0,0,1.5,-0.6500000953674316,0,0,1.5,0,0,0,1.5,0.19972775876522064,0,0,1.5,0,0,0,1.5,Fedora_Handle,8.657480066176504e-09,0,0,1.5,-6,0,0,1.5,-0.15052366256713867,0,0,1.5,0,0,0,1.5,-0.010221302509307861,0,0,1.5,0,0,0,1.5,LeftLeg,-1,0,0,6,100,-60,0,6,-0.5,-0.5,0.39999999999999997,12,-90,7.5,0,6,-0.5,0,0,6,90,0,0,6,EyelessSmileHead_Handle,-0.00043487548828125,0,0,1.5,180,0,0,1.5,0.6000361442565918,0,0,1.5,0,0,0,1.5,0.0003204345703125,0,0,1.5,180,0,0,1.5,RightLeg,1,0,0,6,100,60,0,6,-0.5,-0.5,0.39999999999999997,12,90,7.5,0,6,-0.5,0,0,6,-90,0,0,6,DevAwardsAdurite_Handle,0,0,0,1.5,0,0,0,1.5,-0.25,0,0,1.5,0,0,0,1.5,0,0,0,1.5,0,0,0,1.5,Torso,0,0,0,6,-80,5,0.3333333333333333,12,-0.5,0.3,0.16666666666666666,12,-0,5,0.06666666666666667,6,0,0,0,6,180,0,0,6,LeftArm,-0.8,-0.1,0,6,180,-10,0.39999999999999997,12,0.5,0.1,0,6,-10,0,0,6,-0.2,0,0,6,90,0,0,6,RightArm,0.8,-0.1,0,6,180,-10,0.39999999999999997,12,0.5,-0.1,0,6,10,0,0,6,-0.2,0,0,6,-90,0,0,6
  2393.         end
  2394.     })
  2395.     local idleL=function()
  2396.         local Ychg=velYchg()/20
  2397.         RightHip.C0=Lerp(RightHip.C0,cfMul(cf(1,-0.9+0.2*sin((sine - 0.2)*16)-Ychg,0.25),angles(0,0.7853981633974483,0.4363323129985824-1.1344640137963142*sin((sine-0.0875)*8))),deltaTime)
  2398.         RootJoint.C0=Lerp(RootJoint.C0,cfMul(cf(0.15 * sin((sine-0.1)*8),0.54 * sin(sine*16)+Ychg,0),angles(-1.5707963267948966,-0.08726646259971647*sin((sine-0.0785)*8),3.141592653589793-0.08726646259971647*sin((sine-0.0785)*8))),deltaTime)
  2399.         RightShoulder.C0=Lerp(RightShoulder.C0,cfMul(cf(0.75+0.07*sin((sine - 0.0785)*8),1.3+0.1*sin((sine - 0.0875)*16),0),angles(1.3962634015954636,2.356194490192345-0.06981317007977318*sin((sine-0.0785)*8),1.2217304763960306)),deltaTime)
  2400.         Neck.C0=Lerp(Neck.C0,cfMul(cf(0,1,0),angles(-1.5707963267948966+0.08726646259971647*sin((sine-0.1)*16),0.12217304763960307*sin((sine-0.0785)*8),3.141592653589793)),deltaTime)
  2401.         LeftHip.C0=Lerp(LeftHip.C0,cfMul(cf(-1,-0.9+0.2*sin((sine - 0.2)*16)-Ychg,0.25),angles(0,-0.7853981633974483,-0.4363323129985824-1.1344640137963142*sin((sine-0.0875)*8))),deltaTime)
  2402.         LeftShoulder.C0=Lerp(LeftShoulder.C0,cfMul(cf(-1,0.45+0.05*sin((sine - 0.0875)*16),-0.2),angles(2.0943951023931953+0.17453292519943295*sin((sine-0.0875)*16),-0.5235987755982988,1.5707963267948966+0.17453292519943295*sin((sine-0.0875)*16))),deltaTime)
  2403.         --MW_animatorProgressSave: RightLeg,1,0,0,16,0,0,0,8,-0.9,0.2,-0.2,16,45,0,-0.0875,8,0.25,0,0,16,25,-65,-0.0875,8,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,Torso,0,0.15,-0.1,8,-90,0,0,16,0,0.54,0,16,-0,-5,-0.0785,8,0,0,0,16,180,-5,-0.0785,8,RightArm,0.75,0.07,-0.0785,8,80,0,0,16,1.3,0.1,-0.0875,16,135,-4,-0.0785,8,0,0,0,16,70,0,0,16,Head,0,0,0,16,-90,5,-0.1,16,1,0,0,16,-0,7,-0.0785,8,0,0,0,16,180,0,0,16,LeftLeg,-1,0,0,16,0,0,0,8,-0.9,0.2,-0.2,16,-45,0,0,8,0.25,0,0,16,-25,-65,-0.0875,8,Bandana_Handle,3.9362930692732334e-09,0,0,2,0,0,0,2,0.3000001907348633,0,0,2,0,0,0,2,-0.6002722978591919,0,0,2,0,0,0,2,LeftArm,-1,0,0,16,120,10,-0.0875,16,0.45,0.05,-0.0875,16,-30,0,0,16,-0.2,0,0,16,90,10,-0.0875,16
  2404.     end
  2405.     addmode("l", {
  2406.         modeEntered = function()
  2407.             setWalkSpeed(10)
  2408.         end,
  2409.         idle = idleL,
  2410.         walk = idleL,
  2411.         modeLeft = function()
  2412.             setWalkSpeed(16)
  2413.         end
  2414.     })
  2415. end)
  2416.  
  2417. btn("nameless animations V7", function()
  2418.     local t=reanimate()
  2419.     if type(t)~="table" then return end
  2420.     local raycastlegs=t.raycastlegs
  2421.     local velbycfrvec=t.velbycfrvec
  2422.     local velchgbycfrvec=t.velchgbycfrvec
  2423.     local addmode=t.addmode
  2424.     local getJoint=t.getJoint
  2425.     local RootJoint=getJoint("RootJoint")
  2426.     local RightShoulder=getJoint("Right Shoulder")
  2427.     local LeftShoulder=getJoint("Left Shoulder")
  2428.     local RightHip=getJoint("Right Hip")
  2429.     local LeftHip=getJoint("Left Hip")
  2430.     local Neck=getJoint("Neck")
  2431.  
  2432.     addmode("default", {
  2433.         idle = function()
  2434.             local rY, lY = raycastlegs()
  2435.  
  2436.             local Cfw, Crt = velchgbycfrvec()
  2437.  
  2438.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 0.3 + 0.1 * sin(sine * 2), -0.1),angles(-0.5235987755982988 + 0.05235987755982989 * sin((sine + 1.5) * 2), 1.0471975511965976 + 0.08726646259971647 * sin((sine + 0.5) * 2), 0.5235987755982988)),deltaTime)
  2439.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.6580627893946132 + 0.08726646259971647 * sin((sine + 0.6) * 2), 0, 3.141592653589793 + 0.2617993877991494 * sin((sine - 1.2) * 1))),deltaTime)
  2440.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(Crt * 3, 0.1 * sin(sine * 2), Cfw * -3),angles(-1.5707963267948966 + 0.08726646259971647 * sin(sine * 2) - Cfw, Crt, 3.141592653589793)),deltaTime)
  2441.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1 - 0.1 * sin(sine * 2) + rY, 0.1 * sin(sine * 2) - rY * 0.5),angles(-0.6981317007977318 - 0.08726646259971647 * sin(sine * 2), 1.0471975511965976, 0.5235987755982988)),deltaTime)
  2442.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1, 0.6 + 0.1 * sin(sine * 2), 0),angles(3.141592653589793 + 0.05235987755982989 * sin((sine + 0.5) * 2), -2.705260340591211 + 0.017453292519943295 * sin((sine + 1.5) * 2), -1.2217304763960306 + 0.05235987755982989 * sin((sine + 1.5) * 2))),deltaTime)
  2443.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1 - 0.1 * sin(sine * 2) + lY, 0.1 * sin(sine * 2) - lY * 0.5),angles(-0.3490658503988659 - 0.08726646259971647 * sin(sine * 2), -1.0471975511965976, -0.5235987755982988)),deltaTime)
  2444.             --RightArm,1,0,0,2,-30,3,1.5,2,0.3,0.1,0,2,60,5,0.5,2,-0.1,0,0,2,30,0,0,2,Head,0,0,0,2,-95,5,0.6,2,1,0,0,2,-0,0,0,1,0,0,0,2,180,15,-1.2,1,Torso,0,0,0,2,-90,5,0,2,0,0.1,0,2,-0,0,0,2,0,0,0,2,180,0,0,2,RightLeg,1,0,0,2,-40,-5,0,2,-1,-0.1,0,2,60,0,0,2,0,0.1,0,2,30,0,0,2,Meshes/TrollFaceHeadAccessory_Handle,0.01043701171875,0,0,1,0,0,0,1,0.43610429763793945,0,0,1,0,0,0,1,-0.01102447509765625,0,0,1,0,0,0,1,LeftArm,-1,0,0,2,180,3,0.5,2,0.6,0.1,0,2,-155,1,1.5,2,0,0,0,2,-70,3,1.5,2,LeftLeg,-1,0,0,2,-20,-5,0,2,-1,-0.1,0,2,-60,0,0,2,0,0.1,0,2,-30,0,0,2
  2445.         end,
  2446.         walk = function()
  2447.             local Vfw, Vrt = velbycfrvec()
  2448.  
  2449.             local rY, lY = raycastlegs()
  2450.  
  2451.             local Cfw, Crt = velchgbycfrvec()
  2452.  
  2453.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(Crt * 3, -0.2 + 0.2 * sin(sine * 16), Cfw * -3),angles(-1.6580627893946132 + 0.04363323129985824 * sin(sine * 16) - Vfw * 0.15 - Cfw, 0.03490658503988659 * sin(sine * 8) + Vrt * 0.15 + Crt, -3.141592653589793 - 0.08726646259971647 * sin((sine + 0.25) * 8) - Vrt * 0.1)),deltaTime)
  2454.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -0.8 + 0.4 * sin((sine + 0.125) * 8) + rY, -0.15 * Vfw + 0.4 * sin((sine + 10) * 8) * Vfw + rY * -0.5),angles(1.3962634015954636 + 0.6981317007977318 * sin(sine * 8)*Vfw, 1.5707963267948966 + 0.6981317007977318 * sin(sine * 8)*Vrt, -1.5707963267948966 + 0.2617993877991494 * sin(sine * 8))),deltaTime)
  2455.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1, 0.35 - 0.1 * sin(sine * 8), 0),angles(0.5235987755982988 * sin(sine * 8)*Vfw, -1.5707963267948966 - 0.5235987755982988 * sin(sine * 8)*Vfw, -0.5235987755982988 * sin(sine * 8)*Vfw)),deltaTime)
  2456.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 0.35 + 0.1 * sin(sine * 8), 0),angles(-0.5235987755982988 * sin(sine * 8)*Vfw, 1.5707963267948966 - 0.5235987755982988 * sin(sine * 8)*Vfw, -0.5235987755982988 * sin(sine * 8)*Vfw)),deltaTime)
  2457.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -0.8 - 0.4 * sin((sine + 0.125) * 8) + lY, -0.15 * Vfw - 0.4 * sin((sine + 10) * 8) * Vfw + lY * -0.5),angles(1.3962634015954636 - 0.6981317007977318 * sin(sine * 8)*Vfw, -1.5707963267948966 - 0.6981317007977318 * sin(sine * 8)*Vrt, 1.5707963267948966 + 0.2617993877991494 * sin(sine * 8))),deltaTime)
  2458.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.5707963267948966 + 0.08726646259971647 * sin((sine + 10) * 16) + Vfw * 0.15, -0.08726646259971647 * sin(sine * 8) + Vrt * -0.1, 3.141592653589793 - 0.05235987755982989 * sin((sine + 5) * 8) - Vrt * 0.5)),deltaTime)
  2459.             --Torso,0,0,0,8,-95,2.5,0,16,-0.2,0.2,0,16,0,5,0,8,0,0,0,8,-180,-5,0.25,8,RightArm,1,0,0,1,0,-30,0,8,0.35,0.1,0,8,90,-30,0,8,0,0,0,8,0,-30,0,8,RightLeg,1,0,0,8,80,40,0,8,-0.8,0.4,0.125,8,90,40,0,8,-0.15,0.4,10,8,-90,15,0,8,LeftLeg,-1,0,0,8,80,-40,0,8,-0.8,-0.4,0.125,8,-90,-40,0,8,-0.15,-0.4,10,8,90,15,0,8,Head,0,0,0,1,-90,2.5,10,16,1,0,0,1,-0,-5,0,8,0,0,0,1,180,-3,5,8,LeftArm,-1,0,0,1,0,30,0,8,0.35,-0.1,0,8,-90,-30,0,8,0,-0.4,0,8,0,-30,0,8
  2460.         end,
  2461.         jump = function()
  2462.             local Vfw, Vrt = velbycfrvec()
  2463.  
  2464.             local Cfw, Crt = velchgbycfrvec()
  2465.  
  2466.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(Crt * 3, 0, Cfw * -3),angles(-1.4835298641951802 + Vfw * 0.1 - Cfw, Vrt * -0.05 + Crt, -3.141592653589793)),deltaTime)
  2467.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 0.5, 0),angles(4.014257279586958 - 0.08726646259971647 * sin((sine + 0.5) * 4), 1.7453292519943295 + 0.08726646259971647 * sin((sine + 0.25) * 4), -1.5707963267948966)),deltaTime)
  2468.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1, 0),angles(1.5707963267948966 - 0.08726646259971647 * sin((sine + 0.5) * 4), -1.6580627893946132 + 0.06981317007977318 * sin((sine + 0.25) * 4), 1.5707963267948966)),deltaTime)
  2469.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1, 0.5, 0),angles(4.014257279586958 - 0.08726646259971647 * sin((sine + 0.5) * 4), -1.7453292519943295 - 0.08726646259971647 * sin((sine + 0.25) * 4), 1.5707963267948966)),deltaTime)
  2470.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.3962634015954636, 0, -3.141592653589793 - Vrt)),deltaTime)
  2471.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1, 0),angles(1.5707963267948966 - 0.08726646259971647 * sin((sine + 0.5) * 4), 1.6580627893946132 - 0.06981317007977318 * sin((sine + 0.25) * 4), -1.5707963267948966)),deltaTime)
  2472.             --Torso,0,0,0,4,-85,0,0,4,0,0,0,4,0,0,0,4,0,0,0,4,-180,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,4,0.25,4,0,0,0,4,90,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,Head,0,0,0,4,-80,0,0.5,4,1,0,0,4,0,0,0.25,4,0,0,0,4,-180,0,0,4,RightLeg,1,0,0,4,90,-5,0.5,4,-1,0,0,4,95,-4,0.25,4,0,0,0,4,-90,0,0,4
  2473.         end,
  2474.         fall = function()
  2475.             local Vfw, Vrt = velbycfrvec()
  2476.  
  2477.             local Cfw, Crt = velchgbycfrvec()
  2478.  
  2479.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(Crt * 3, 0, Cfw * -3),angles(-1.6580627893946132 + Vfw * 0.1 - Cfw, Vrt * -0.05 + Crt, -3.141592653589793)),deltaTime)
  2480.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 0.5, 0),angles(4.014257279586958 - 0.08726646259971647 * sin((sine + 0.5) * 4), 1.7453292519943295 + 0.08726646259971647 * sin((sine + 0.25) * 4), -1.5707963267948966)),deltaTime)
  2481.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1, 0),angles(1.5707963267948966 - 0.08726646259971647 * sin((sine + 0.5) * 4), -1.6580627893946132 + 0.06981317007977318 * sin((sine + 0.25) * 4), 1.5707963267948966)),deltaTime)
  2482.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1, 0.5, 0),angles(4.014257279586958 - 0.08726646259971647 * sin((sine + 0.5) * 4), -1.7453292519943295 - 0.08726646259971647 * sin((sine + 0.25) * 4), 1.5707963267948966)),deltaTime)
  2483.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.7453292519943295, 0, -3.141592653589793 - Vrt)),deltaTime)
  2484.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1, 0),angles(1.5707963267948966 - 0.08726646259971647 * sin((sine + 0.5) * 4), 1.6580627893946132 - 0.06981317007977318 * sin((sine + 0.25) * 4), -1.5707963267948966)),deltaTime)
  2485.             --Torso,0,0,0,4,-95,0,0,4,0,0,0,4,0,0,0,4,0,0,0,4,-180,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,4,0.25,4,0,0,0,4,90,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,Head,0,0,0,4,-100,0,0.5,4,1,0,0,4,0,0,0.25,4,0,0,0,4,-180,0,0,4,RightLeg,1,0,0,4,90,-5,0.5,4,-1,0,0,4,95,-4,0.25,4,0,0,0,4,-90,0,0,4
  2486.         end
  2487.     })
  2488.  
  2489.     addmode("q", {
  2490.         idle = function()
  2491.             local Cfw, Crt = velchgbycfrvec()
  2492.  
  2493.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1, 0.75, -0.2),angles(2.705260340591211 - 0.08726646259971647 * sin((sine + 0.1) * 2), -2.792526803190927, -0.6981317007977318)),deltaTime)
  2494.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 0.75, -0.2),angles(2.705260340591211 - 0.08726646259971647 * sin((sine + 0.1) * 2), 2.792526803190927, 0.6981317007977318)),deltaTime)
  2495.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.9198621771937625 - 0.10471975511965978 * sin((sine + 0.3) * 2), 0, 3.141592653589793)),deltaTime)
  2496.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(Crt * 3, -2.45 - 0.05 * sin(sine * 2), Cfw * -3),angles(0.03490658503988659 * sin(sine * 2) - Cfw, Crt, 3.141592653589793)),deltaTime)
  2497.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1, 0),angles(1.3962634015954636 - 0.03490658503988659 * sin(sine * 2), 1.3089969389957472, -0.9599310885968813)),deltaTime)
  2498.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1, 0),angles(1.5707963267948966 - 0.03490658503988659 * sin(sine * 2), -1.3089969389957472, 1.5707963267948966)),deltaTime)
  2499.             --LeftArm,-1,0,0,2,155,-5,0.1,2,0.75,0,0,2,-160,0,0,2,-0.2,0,0,2,-40,0,0,2,RightArm,1,0,0,2,155,-5,0.1,2,0.75,0,0,2,160,0,0,2,-0.2,0,0,2,40,0,0,2,Head,0,0,0,2,-110,-6,0.3,2,1,0,0,2,-0,0,0,2,0,0,0,2,180,0,0,2,Torso,0,0,0,2,0,2,0,2,-2.45,-0.05,0,2,-0,0,0,2,0,0,0,2,180,0,0,2,RightLeg,1,0,0,2,80,-2,0,2,-1,0,0,2,75,0,0,2,0,0,0,2,-55,0,0,2,LeftLeg,-1,0,0,2,90,-2,0,2,-1,0,0,2,-75,0,0,2,0,0,0,2,90,0,0,2
  2500.         end
  2501.     })
  2502.     addmode("e", {
  2503.         idle = function()
  2504.             local Cfw, Crt = velchgbycfrvec()
  2505.  
  2506.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-0.9, 0.4 + 0.1 * sin(sine * 2), 0.3 - 0.15 * sin(sine * 2)),angles(-1.0471975511965976 - 0.12217304763960307 * sin(sine * 2), -1.3962634015954636, -0.6981317007977318)),deltaTime)
  2507.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(Crt * 3, -1.85 - 0.1 * sin((sine + 0.2) * 2), Cfw * -3),angles(-1.3962634015954636 + 0.03490658503988659 * sin(sine * 2) - Cfw, -0.08726646259971647 + Crt, 3.141592653589793)),deltaTime)
  2508.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 0.4 + 0.1 * sin(sine * 2), 0.2 - 0.15 * sin(sine * 2)),angles(0.6108652381980153 - 0.12217304763960307 * sin(sine * 2), 1.2217304763960306, -0.7853981633974483)),deltaTime)
  2509.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.6580627893946132 - 0.03490658503988659 * sin((sine + 0.6) * 2), 0.10471975511965978 + 0.06981317007977318 * sin(sine * 0.66), 3.141592653589793 + 0.3490658503988659 * sin(sine * 0.66))),deltaTime)
  2510.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, 0.2 + 0.15 * sin((sine + 0.2) * 2), -0.7 + 0.1 * sin(sine * 2)),angles(1.4835298641951802 + 0.03490658503988659 * sin(sine * 2), 1.4835298641951802, -1.5707963267948966)),deltaTime)
  2511.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -0.75 + 0.1 * sin((sine + 0.2) * 2), -0.5),angles(1.3962634015954636 - 0.03490658503988659 * sin(sine * 2), -1.6580627893946132, 0)),deltaTime)
  2512.             --LeftArm,-0.9,0,0,2,-60,-7,0,2,0.4,0.1,0,2,-80,0,0,2,0.3,-0.15,0,2,-40,0,0,2,Torso,0,0,0,2,-80,2,0,2,-1.85,-0.1,0.2,2,-5,0,0,2,0,0,0,2,180,0,0,2,RightArm,1,0,0,2,35,-7,0,2,0.4,0.1,0,2,70,0,0,2,0.2,-0.15,0,2,-45,0,0,2,Head,0,0,0,2,-95,-2,0.6,2,1,0,0,2,6,4,0,0.66,0,0,0,2,180,20,0,0.66,RightLeg,1,0,0,2,85,2,0,2,0.2,0.15,0.2,2,85,0,0,2,-0.7,0.1,0,2,-90,0,0,2,LeftLeg,-1,0,0,2,80,-2,0,2,-0.75,0.1,0.2,2,-95,0,0,2,-0.5,0,0,2,0,0,0,2
  2513.         end
  2514.     })
  2515.     addmode("r", {
  2516.         idle = function()
  2517.             local Cfw, Crt = velchgbycfrvec()
  2518.  
  2519.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -0.9 - 0.2 * sin(sine * 2), 0),angles(1.5707963267948966, 1.6580627893946132 - 0.17453292519943295 * sin(sine + 0.8), -1.5707963267948966)),deltaTime)
  2520.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0.3 * sin(sine + 0.8) + Crt * 3, -0.1 + 0.2 * sin(sine * 2), Cfw * -3),angles(-1.5707963267948966 - Cfw, Crt, -3.141592653589793)),deltaTime)
  2521.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.5707963267948966 + 0.08726646259971647 * sin((sine - 0.5) * 2), 0.08726646259971647 * sin(sine - 1), -3.141592653589793 + 0.2617993877991494 * sin(sine * 5))),deltaTime)
  2522.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1 + 0.1 * sin(sine * 7), 0.2 - 0.1 * sin(sine + 0.8), -0.25),angles(1.5707963267948966 + 0.5235987755982988 * sin(sine * 7), -0.6981317007977318, 0.3490658503988659 * sin(sine * 7))),deltaTime)
  2523.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -0.9 - 0.2 * sin(sine * 2), 0),angles(1.5707963267948966, -1.6580627893946132 - 0.17453292519943295 * sin(sine + 0.8), 1.5707963267948966)),deltaTime)
  2524.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1 + 0.1 * sin(sine * 7), 0.2 + 0.1 * sin(sine + 0.8), -0.25),angles(1.5707963267948966 - 0.5235987755982988 * sin(sine * 7), 0.6981317007977318, 0.3490658503988659 * sin(sine * 7))),deltaTime)
  2525.             --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
  2526.         end
  2527.     })
  2528.     addmode("t", {
  2529.         idle = function()
  2530.             local Cfw, Crt = velchgbycfrvec()
  2531.  
  2532.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1, 0.5, 0),angles(1.5707963267948966, -1.6580627893946132 + 0.08726646259971647 * sin((sine - 0.3) * 4), 1.5707963267948966)),deltaTime)
  2533.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1 + 0.15 * sin((sine - 0.4) * 4), 1.42, 0),angles(1.5707963267948966, 1.4835298641951802 - 0.3490658503988659 * sin((sine - 0.4) * 4), 1.5707963267948966)),deltaTime)
  2534.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.4835298641951802, 0.04363323129985824 - 0.08726646259971647 * sin((sine + 0.1) * 4), -3.141592653589793 + 0.04363323129985824 * sin(sine * 4))),deltaTime)
  2535.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0.1 * sin(sine * 4) + Crt * 3, 0, Cfw * -3),angles(-1.5707963267948966 - Cfw, -0.08726646259971647 + 0.08726646259971647 * sin(sine * 4) + Crt, -3.141592653589793)),deltaTime)
  2536.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1.1 + 0.1 * sin(sine * 4), 0),angles(1.5707963267948966, 1.5707963267948966 + 0.08726646259971647 * sin(sine * 4), -1.5707963267948966)),deltaTime)
  2537.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1 - 0.02 * sin(sine * 4), -0.925 - 0.07 * sin(sine * 4), 0),angles(1.5707963267948966, -1.7453292519943295 + 0.08726646259971647 * sin(sine * 4), 1.5707963267948966)),deltaTime)
  2538.             --LeftArm,-1,0,0,4,90,0,0,4,0.5,0,0,4,-95,5,-0.3,4,0,0,0,4,90,0,0,4,RightArm,1,0.15,-0.4,4,90,0,0,4,1.42,0,0,4,85,-20,-0.4,4,0,0,0,4,90,0,0,4,Head,0,0,0,4,-85,0,0,4,1,0,0,4,2.5,-5,0.1,4,0,0,0,4,-180,2.5,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,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.02,0,4,90,0,0,4,-0.925,-0.07,0,4,-100,5,0,4,0,0,0,4,90,0,0,4
  2539.         end
  2540.     })
  2541.     addmode("y", {
  2542.         idle = function()
  2543.             local Cfw, Crt = velchgbycfrvec()
  2544.  
  2545.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1.5, 0.5, 0),angles(-1.7453292519943295, 0.17453292519943295 - 0.04363323129985824 * sin(sine * 2), -1.4835298641951802)),deltaTime)
  2546.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -0.9000000953674316 - 0.1 * sin(sine * 2), 0),angles(-1.3962634015954636, 1.3962634015954636, 1.5707963267948966)),deltaTime)
  2547.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1.0000001192092896 - 0.1 * sin(sine * 2), 0),angles(-1.5707963267948966, -1.3962634015954636, -1.5707963267948966)),deltaTime)
  2548.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-2.0943951023931953 + 0.08726646259971647 * sin((sine - 1) * 2), -0.08726646259971647, 2.792526803190927)),deltaTime)
  2549.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 1.2000000476837158, 0),angles(2.6179938779914944 + 0.08726646259971647 * sin((sine - 1) * 2), 0.6981317007977318, -1.3962634015954636)),deltaTime)
  2550.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(Crt * 3, 0.1 * sin(sine * 2), Cfw * -3),angles(-1.6580627893946132 - Cfw, 0.08726646259971647 + Crt, 3.0543261909900767)),deltaTime)
  2551.             --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
  2552.         end
  2553.     })
  2554.     addmode("u", {
  2555.         idle = function()
  2556.             local Cfw, Crt = velchgbycfrvec()
  2557.  
  2558.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(Crt * 3, 0.75 + 0.25 * sin(sine * 2), Cfw * -3),angles(-1.5707963267948966 - Cfw, Crt, 3.141592653589793)),deltaTime)
  2559.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1.5 - 0.1 * sin((sine + 0.2) * 2), 0),angles(-1.5707963267948966 - 0.08726646259971647 * sin((sine + 0.4) * 2), 0, 3.141592653589793 + 0.3490658503988659 * sin(sine * 0.66))),deltaTime)
  2560.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-0.5 - 1 * sin((sine + 0.2) * 2.2), -0.75 - 0.25 * sin(sine * 2), 1 * sin((sine + 0.95) * 2.2)),angles(0, -1.5707963267948966, 0)),deltaTime)
  2561.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(0.5 + 1 * sin((sine + 0.2) * 2.2), -0.75 - 0.25 * sin(sine * 2), -1 * sin((sine + 0.95) * 2.2)),angles(0, 1.5707963267948966, 0)),deltaTime)
  2562.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(-0.5 - 1.85 * sin(sine * 2), 0.8 - 0.5 * sin(sine * 2), -1.85 * sin((sine + 0.75) * 2)),angles(0, 1.5707963267948966, 0)),deltaTime)
  2563.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(0.5 + 1.85 * sin(sine * 2), 0.8 - 0.5 * sin(sine * 2), 1.85 * sin((sine + 0.75) * 2)),angles(0, -1.5707963267948966, 0)),deltaTime)
  2564.             --Torso,0,0,0,2,-90,0,0,2,0.75,0.25,0,2,-0,0,0,2,0,0,0,2,180,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,-90,-5,0.4,2,1.5,-0.1,0.2,2,-0,0,0,2,0,0,0,2,180,20,0,0.66,LeftLeg,-0.5,-1,0.2,2.2,-0,0,0,2,-0.75,-0.25,0,2,-90,0,0,2,0,1,0.95,2.2,0,0,0,2,RightLeg,0.5,1,0.2,2.2,0,0,0,2,-0.75,-0.25,0,2,90,0,0,2,0,-1,0.95,2.2,0,0,0,2,RightArm,-0.5,-1.85,0,2,0,0,0,2,0.8,-0.5,0,2,90,0,0,2,0,-1.85,0.75,2,0,0,0,2,LeftArm,0.5,1.85,0,2,-0,0,0,2,0.8,-0.5,0,2,-90,0,0,2,0,1.85,0.75,2,0,0,0,2
  2565.         end
  2566.     })
  2567.     addmode("i", {
  2568.         idle = function()
  2569.             local Cfw, Crt = velchgbycfrvec()
  2570.  
  2571.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-0.5, 0.5 + 0.1 * sin((sine - 0.4444444444444444) * 9), 0),angles(2.9670597283903604 + 0.17453292519943295 * sin((sine - 0.17777777777777778) * 9), -0.5235987755982988, 1.5707963267948966 + 0.17453292519943295 * sin(sine * 4.5))),deltaTime)
  2572.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -0.5 + 0.1 * sin((sine + 0.26666666666666666) * 4.5), -0.5),angles(1.7453292519943295 - 1.0471975511965976 * sin(sine * 4.5), -1.5707963267948966 + 0.03490658503988659 * sin(sine * 4.5), 1.5707963267948966)),deltaTime)
  2573.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(Crt * 3, -0.5 + 0.5 * sin((sine + 0.17777777777777778) * 9), Cfw * -3),angles(-1.3962634015954636 - 0.03490658503988659 * sin((sine + 0.17777777777777778) * 9) - Cfw, -0.05235987755982989 * sin(sine * 4.5) + Crt, 3.141592653589793 + 0.03490658503988659 * sin(sine * 4.5))),deltaTime)
  2574.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1 + 0.2 * sin(sine * 9), 0),angles(-1.5707963267948966 + 0.08726646259971647 * sin(sine * 9), 0.08726646259971647 * sin(sine * 4.5), 3.141592653589793 - 0.06981317007977318 * sin(sine * 4.5))),deltaTime)
  2575.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(0.5, 0.5 + 0.1 * sin((sine - 0.4444444444444444) * 9), 0),angles(2.9670597283903604 + 0.17453292519943295 * sin((sine - 0.17777777777777778) * 9), 0.5235987755982988, -1.5707963267948966 + 0.17453292519943295 * sin(sine * 4.5))),deltaTime)
  2576.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -0.5 + 0.1 * sin((sine - 0.26666666666666666) * 4.5), -0.5),angles(1.7453292519943295 + 1.0471975511965976 * sin(sine * 4.5), 1.5707963267948966 + 0.03490658503988659 * sin(sine * 4.5), -1.5707963267948966)),deltaTime)
  2577.             --LeftArm,-0.5,0,0,4.5,170,10,-0.17777777777777778,9,0.5,0.1,-0.4444444444444444,9,-30,0,0,4.5,0,0,0,4.5,90,10,0,4.5,LeftLeg,-1,0,0,4.5,100,-60,0,4.5,-0.5,0.1,0.26666666666666666,4.5,-90,2,0,4.5,-0.5,0,0,4.5,90,0,0,4.5,Torso,0,0,0,4.5,-80,-2,0.17777777777777778,9,-0.5,0.5,0.17777777777777778,9,-0,-3,0,4.5,0,0,0,4.5,180,2,0,4.5,Head,0,0,0,4.5,-90,5,0,9,1,0.2,0,9,-0,5,0,4.5,0,0,0,4.5,180,-4,0,4.5,RightArm,0.5,0,0,4.5,170,10,-0.17777777777777778,9,0.5,0.1,-0.4444444444444444,9,30,0,0,4.5,0,0,0,4.5,-90,10,0,4.5,RightLeg,1,0,0,4.5,100,60,0,4.5,-0.5,0.1,-0.26666666666666666,4.5,90,2,0,4.5,-0.5,0,0,4.5,-90,0,0,4.5
  2578.         end,
  2579.     })
  2580.     addmode("o", {
  2581.         idle = function()
  2582.             local rY, lY = raycastlegs()
  2583.  
  2584.             local Cfw, Crt = velchgbycfrvec()
  2585.  
  2586.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1 + lY, lY * -0.5),angles(-1.8325957145940461 - 0.08726646259971647 * sin(sine * 2), -1.4835298641951802, -1.5707963267948966)),deltaTime)
  2587.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(Crt, 0, 0.09 * sin(sine * 2) - Cfw * 3),angles(-1.3962634015954636 + 0.08726646259971647 * sin(sine * 2) - Cfw, -0.08726646259971647 + Crt, 3.141592653589793)),deltaTime)
  2588.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1, 0.5, 0),angles(2.9670597283903604 + 0.08726646259971647 * sin(sine * 1), -1.5707963267948966 + 0.08726646259971647 * sin((sine + 0.6) * 1), 1.5707963267948966)),deltaTime)
  2589.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1.1 + rY, rY * -0.5),angles(-1.7453292519943295 - 0.08726646259971647 * sin(sine * 2), 1.5707963267948966, 1.5707963267948966)),deltaTime)
  2590.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.2217304763960306 - 0.08726646259971647 * sin((sine + 0.3) * 2), -0.2617993877991494 - 0.08726646259971647 * sin(sine * 2), 3.141592653589793)),deltaTime)
  2591.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 0.5, 0),angles(2.8797932657906435 + 0.08726646259971647 * sin(sine * 1), 1.5707963267948966 - 0.08726646259971647 * sin((sine + 0.6) * 1), -1.5707963267948966)),deltaTime)
  2592.             --LeftLeg,-1,0,0,2,-105,-5,0,2,-1,0,0,2,-85,0,0,2,0,0,0,2,-90,0,0.75,2,Torso,0,0,0,2,-80,5,0,2,0,0,0,2,-5,0,0,2,0,0.09,0,2,180,0,0,2,LeftArm,-1,0,0,2,170,5,0,1,0.5,0,0,2,-90,5,0.6,1,0,0,0,2,90,0,0,2,RightLeg,1,0,0,2,-100,-5,0,2,-1.1,0,0,2,90,0,0,2,0,0,0,2,90,0,0.75,2,Head,0,0,0,2,-70,-5,0.3,2,1,0,0,2,-15,-5,0,2,0,0,0,2,180,0,0,2,RightArm,1,0,0,2,165,5,0,1,0.5,0,0,2,90,-5,0.6,1,0,0,0,2,-90,0,0,2
  2593.         end,
  2594.         walk = function()
  2595.             local Vfw, Vrt = velbycfrvec()
  2596.  
  2597.             local rY, lY = raycastlegs()
  2598.  
  2599.             local Cfw, Crt = velchgbycfrvec()
  2600.  
  2601.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.5707963267948966 + 0.04363323129985824 * sin(sine * 16), 0, 3.141592653589793 + 0.08726646259971647 * sin(sine * 8) - Vrt)),deltaTime)
  2602.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1 - 0.3 * sin((sine + 0.15) * 8) + rY, rY * -0.5),angles(-1.5707963267948966 - 0.6981317007977318 * sin(sine * 8) * Vfw, 1.5707963267948966 + 0.6981317007977318 * sin(sine * 8) * Vrt, 1.5707963267948966)),deltaTime)
  2603.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 0.5, 0),angles(0.08726646259971647 * sin((sine - 0.05) * 16), 1.5707963267948966 + 0.08726646259971647 * sin(sine * 8) - Vrt/3, 1.5707963267948966)),deltaTime)
  2604.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1, 0.5, 0),angles(0.08726646259971647 * sin((sine - 0.05) * 16), -1.5707963267948966 + 0.08726646259971647 * sin(sine * 8) - Vrt/3, -1.5707963267948966)),deltaTime)
  2605.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(Crt * 3, 0.1 * sin((sine + 0.1) * 16), Cfw * -3),angles(-1.5707963267948966 - Cfw, Crt, 3.141592653589793 - 0.08726646259971647 * sin(sine * 8))),deltaTime)
  2606.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1 + 0.3 * sin((sine + 0.15) * 8) + lY, lY * -0.5),angles(1.5707963267948966 + 0.6981317007977318 * sin(sine * 8) * Vfw, -1.5707963267948966 + 0.6981317007977318 * sin(sine * 8) * Vrt, 1.5707963267948966)),deltaTime)
  2607.             --Head,0,0,0,8,-90,2.5,0,16,1,0,0,8,-0,0,0,8,0,0,0,8,180,5,0,8,RightLeg,1,0,0,8,-90,-40,0,8,-1,-0.3,0.15,8,90,40,0,8,0,0,0,8,90,0,0,8,RightArm,1,0,0,8,0,5,-0.05,16,0.5,0,0,8,90,5,0,8,0,0,0,8,90,0,0,8,LeftArm,-1,0,0,8,0,5,-0.05,16,0.5,0,0,8,-90,5,0,8,0,0,0,8,-90,0,0,8,Torso,0,0,0,8,-90,0,0,8,0,0.1,0.1,16,-0,0,0,8,0,0,0,8,180,-5,0,8,LeftLeg,-1,0,0,8,90,40,0,8,-1,0.3,0.15,8,-90,40,0,8,0,0,0,8,90,0,0,8
  2608.         end
  2609.     })
  2610.     addmode("p", {
  2611.         idle = function()
  2612.             local Cfw, Crt = velchgbycfrvec()
  2613.  
  2614.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1.5, 0.5, 0),angles(1.5707963267948966, 3.141592653589793, -1.5707963267948966)),deltaTime)
  2615.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1, 0),angles(0, 1.5707963267948966, 0)),deltaTime)
  2616.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1.5, 0.5, 0),angles(1.5707963267948966, 3.141592653589793, 1.5707963267948966)),deltaTime)
  2617.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1, 0),angles(0, -1.5707963267948966, 0)),deltaTime)
  2618.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.5707963267948966, 0, -3.141592653589793)),deltaTime)
  2619.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(Crt * 3, 0, Cfw * -3),angles(-1.5707963267948966 - Cfw, Crt, -3.141592653589793)),deltaTime)
  2620.             --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
  2621.         end
  2622.     })
  2623.     addmode("f", {
  2624.         idle = function()
  2625.             local Cfw, Crt = velchgbycfrvec()
  2626.  
  2627.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1, 0.5, 0),angles(-3.0543261909900767 - 0.17453292519943295 * sin((sine + 1.5) * 1), -1.5707963267948966 + 0.08726646259971647 * sin((sine + 0.6) * 1), -1.5707963267948966)),deltaTime)
  2628.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 0.5, 0),angles(3.141592653589793 - 0.08726646259971647 * sin(sine * 1), 0.3490658503988659 + 0.08726646259971647 * sin((sine + 0.3) * 1), -1.9198621771937625 + 0.08726646259971647 * sin((sine + 1) * 1))),deltaTime)
  2629.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.3089969389957472 - 0.2617993877991494 * sin((sine + 1.2) * 1), 0.08726646259971647 * sin((sine + 0.2) * 0.5), -2.9670597283903604)),deltaTime)
  2630.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(Crt * 3, 5 - 0.5 * sin((sine - 0.2) * 1), 0.2 * sin((sine - 1.2) * 1) - Cfw * 3),angles(-0.08726646259971647 + 0.17453292519943295 * sin((sine + 1.2) * 1) - Cfw, 0.08726646259971647 * sin(sine * 0.5) + Crt, 3.141592653589793)),deltaTime)
  2631.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1, 0),angles(1.3962634015954636 + 0.12217304763960307 * sin((sine + 1.5) * 1), -1.2217304763960306 + 0.08726646259971647 * sin((sine + 0.2) * 0.5), 1.5707963267948966)),deltaTime)
  2632.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1, 0),angles(1.9198621771937625 + 0.12217304763960307 * sin((sine + 1.5) * 1), 1.2217304763960306 + 0.08726646259971647 * sin((sine + 0.2) * 0.5), -1.5707963267948966)),deltaTime)
  2633.             --LeftArm,-1,0,0,1,-175,-10,1.5,1,0.5,0,0,1,-90,5,0.6,1,0,0,0,1,-90,0,0,1,RightArm,1,0,0,1,180,-5,0,1,0.5,0,0,1,20,5,0.3,1,0,0,0,1,-110,5,1,1,Head,0,0,0,1,-75,-15,1.2,1,1,0,0,1,-0,5,0.2,0.5,0,0,0,1,-170,0,0,1,Torso,0,0,0,1,-5,10,1.2,1,5,-0.5,-0.2,1,-0,5,0,0.5,0,0.2,-1.2,1,180,0,0,1,LeftLeg,-1,0,0,1,80,7,1.5,1,-1,0,0,1,-70,5,0.2,0.5,0,0,0,1,90,0,0,1,RightLeg,1,0,0,1,110,7,1.5,1,-1,0,0,1,70,5,0.2,0.5,0,0,0,1,-90,0,0,1
  2634.         end,
  2635.         walk = function()
  2636.             local Vfw, Vrt = velbycfrvec()
  2637.  
  2638.             local Cfw, Crt = velchgbycfrvec()
  2639.  
  2640.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1, 0.5, 0),angles(-3.0543261909900767 - 0.17453292519943295 * sin((sine + 1.5) * 1) - Vfw * 0.1, -1.5707963267948966 + 0.08726646259971647 * sin((sine + 0.6) * 1) + Vrt * 0.2, -1.5707963267948966)),deltaTime)
  2641.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 0.5, 0),angles(3.141592653589793 - 0.08726646259971647 * sin(sine * 1), 0.3490658503988659 + 0.08726646259971647 * sin((sine + 0.3) * 1), -1.9198621771937625 + 0.08726646259971647 * sin((sine + 1) * 1))),deltaTime)
  2642.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.3089969389957472 - 0.2617993877991494 * sin((sine + 1.2) * 1) + Vfw * 0.1, 0.08726646259971647 * sin((sine + 0.2) * 0.5) - Vrt * 0.2, -2.9670597283903604)),deltaTime)
  2643.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(Crt * 3, 5 - 0.5 * sin((sine - 0.2) * 1), 0.2 * sin((sine - 1.2) * 1) - Cfw * 3),angles(-0.08726646259971647 + 0.17453292519943295 * sin((sine + 1.2) * 1) - Vfw * 0.2 - Cfw, 0.08726646259971647 * sin(sine * 0.5) + Crt, 3.141592653589793 - Vrt * 0.2)),deltaTime)
  2644.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1, 0),angles(1.3962634015954636 + 0.12217304763960307 * sin((sine + 1.5) * 1) - Vfw * 0.2, -1.2217304763960306 + 0.08726646259971647 * sin((sine + 0.2) * 0.5), 1.5707963267948966)),deltaTime)
  2645.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1, 0),angles(1.9198621771937625 + 0.12217304763960307 * sin((sine + 1.5) * 1) - Vfw * 0.2, 1.2217304763960306 + 0.08726646259971647 * sin((sine + 0.2) * 0.5), -1.5707963267948966)),deltaTime)
  2646.             --LeftArm,-1,0,0,1,-175,-10,1.5,1,0.5,0,0,1,-90,5,0.6,1,0,0,0,1,-90,0,0,1,RightArm,1,0,0,1,180,-5,0,1,0.5,0,0,1,20,5,0.3,1,0,0,0,1,-110,5,1,1,Head,0,0,0,1,-75,-15,1.2,1,1,0,0,1,-0,5,0.2,0.5,0,0,0,1,-170,0,0,1,Torso,0,0,0,1,-5,10,1.2,1,5,-0.5,-0.2,1,-0,5,0,0.5,0,0.2,-1.2,1,180,0,0,1,LeftLeg,-1,0,0,1,80,7,1.5,1,-1,0,0,1,-70,5,0.2,0.5,0,0,0,1,90,0,0,1,RightLeg,1,0,0,1,110,7,1.5,1,-1,0,0,1,70,5,0.2,0.5,0,0,0,1,-90,0,0,1
  2647.         end
  2648.     })
  2649.     addmode("g", {
  2650.         idle = function()
  2651.             local Cfw, Crt = velchgbycfrvec()
  2652.  
  2653.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-0.9 + 0.4 * sin(sine * 8), 0.5, 0.5 * sin((sine + 0.25) * 4)),angles(1.5707963267948966, -1.5707963267948966 + 1.0471975511965976 * sin(sine * 8), 1.5707963267948966 + 0.6981317007977318 * sin((sine + 0.25) * 4))),deltaTime)
  2654.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0.3 * sin((sine + 0.4) * 8) + Crt * 3, 0, Cfw * -3),angles(-1.5707963267948966 - Cfw, 0.3490658503988659 * sin(sine * 8) + Crt, -3.141592653589793)),deltaTime)
  2655.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.5707963267948966 + 0.061086523819801536 * sin((sine + 0.125) * 16), -0.3839724354387525 * sin(sine * 8), -3.141592653589793)),deltaTime)
  2656.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1 + 0.4 * sin((sine - 0.01) * 8), 0),angles(1.5707963267948966, 1.7453292519943295 + 0.6981317007977318 * sin(sine * 8), -1.5707963267948966)),deltaTime)
  2657.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1 - 0.4 * sin((sine - 0.01) * 8), 0),angles(1.5707963267948966, -1.7453292519943295 + 0.6981317007977318 * sin(sine * 8), 1.5707963267948966)),deltaTime)
  2658.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(0.9 + 0.4 * sin(sine * 8), 0.5, -0.5 * sin((sine - 0.35) * 4)),angles(1.5707963267948966 + 0.6981317007977318 * sin(sine * 4), 1.5707963267948966 + 1.0471975511965976 * sin(sine * 8), -1.5707963267948966 + 0.17453292519943295 * sin((sine - 0.35) * 4))),deltaTime)
  2659.             --LeftArm,-0.9,0.4,0,8,90,0,0.25,4,0.5,0,0,8,-90,60,0,8,0,0.5,0.25,4,90,40,0.25,4,Torso,0,0.3,0.4,8,-90,0,0,8,0,0,0,4,0,20,0,8,0,0,0,8,-180,0,0,8,Head,0,0,0,8,-90,3.5,0.125,16,1,0,0,8,0,-22,0,8,0,0,0,8,-180,0,0,1.1,RightLeg,1,0,0,8,90,0,0,8,-1,0.4,-0.01,8,100,40,0,8,0,0,0,8,-90,0,0,8,LeftLeg,-1,0,0,8,90,0,0,8,-1,-0.4,-0.01,8,-100,40,0,8,0,0,0,8,90,0,0,8,RightArm,0.9,0.4,0,8,90,40,0,4,0.5,0,0,8,90,60,0,8,0,-0.5,-0.35,4,-90,10,-0.35,4
  2660.         end
  2661.     })
  2662.     addmode("h", {
  2663.         idle = function()
  2664.             local Cfw, Crt = velchgbycfrvec()
  2665.  
  2666.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.5707963267948966, -0.4363323129985824 * sin(sine * 8), -3.141592653589793)),deltaTime)
  2667.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1 + 0.3 * sin(sine * 8), 0),angles(1.5707963267948966, 1.5707963267948966 + 0.5235987755982988 * sin(sine * 8), -1.5707963267948966)),deltaTime)
  2668.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-0.5, 1, 0),angles(-0.5235987755982988, -1.5707963267948966 - 0.5235987755982988 * sin(sine * 8), 3.141592653589793)),deltaTime)
  2669.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(0.5, 1, 0),angles(-0.5235987755982988, 1.5707963267948966 - 0.5235987755982988 * sin(sine * 8), 3.141592653589793)),deltaTime)
  2670.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(-0.1 * sin(sine * 8) + Crt * 3, 0.2 * sin((sine + 0.1) * 16), Cfw * -3),angles(-1.5707963267948966 - Cfw, 0.2617993877991494 * sin(sine * 8) + Crt, -3.141592653589793)),deltaTime)
  2671.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1 - 0.3 * sin(sine * 8), 0),angles(1.5707963267948966, -1.5707963267948966 + 0.5235987755982988 * sin(sine * 8), 1.5707963267948966)),deltaTime)
  2672.             --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
  2673.         end
  2674.     })
  2675.     addmode("j", {
  2676.         idle = function()
  2677.             local Cfw, Crt = velchgbycfrvec()
  2678.  
  2679.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-0.8, -1, -0.1),angles(0.17453292519943295, -0.6981317007977318, 0)),deltaTime)
  2680.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1.2, 0.5, 0),angles(-0.3490658503988659 + 0.08726646259971647 * sin((sine + 0.1) * 4), 0, 0.6981317007977318 + 0.08726646259971647 * sin((sine + 0.1) * 4))),deltaTime)
  2681.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1.1, -1, 0),angles(1.5707963267948966, 1.7453292519943295, -1.5707963267948966)),deltaTime)
  2682.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.5707963267948966 + 0.08726646259971647 * sin((sine + 0.1) * 4), 0, 2.792526803190927)),deltaTime)
  2683.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(Crt * 3, -1.7 + 0.5 * sin(sine * 4), 0.15 * sin(sine * 4) - Cfw * 3),angles(3.3161255787892263 + 0.17453292519943295 * sin(sine * 4) - Cfw, Crt, 3.6651914291880923)),deltaTime)
  2684.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(0.8 + 0.4 * sin(sine * 4), 0.6 + 0.1 * sin(sine * 4), 0.4 - 0.25 * sin(sine * 4)),angles(2.9670597283903604, 2.2689280275926285 - 0.17453292519943295 * sin(sine * 4), -1.4835298641951802 - 0.17453292519943295 * sin(sine * 4))),deltaTime)
  2685.             --GalaxyBeautifulHair_Handle,-0.15000000596046448,0,0,1,0,0,0,1,0.10000000149011612,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,LeftLeg,-0.8,0,0,4,10,0,0,4,-1,0,0,4,-40,0,0,4,-0.1,0,0,4,0,0,0,4,LeftArm,-1.2,0,0,4,-20,5,0.1,4,0.5,0,0,4,0,0,0,4,0,0,0,4,40,5,0.1,4,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,ValkyrieHelm_Handle,8.658389560878277e-09,0,0,1,-15,0,0,1,-0.2433757781982422,0,0,1,0,0,0,1,-0.2657628059387207,0,0,1,0,0,0,1,RightLeg,1.1,0,0,4,90,0,0,4,-1,0,0,4,100,0,0,4,0,0,0,4,-90,0,0,4,BlackIronAntlers_Handle,8.658389560878277e-09,0,0,1,0,0,0,1,-0.6500000953674316,0,0,1,0,0,0,1,0.19972775876522064,0,0,1,0,0,0,1,DevAwardsAdurite_Handle,0,0,0,1,0,0,0,1,-0.25,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,SilverthornAntlers_Handle,8.658389560878277e-09,0,0,1,0,0,0,1,-0.6500000953674316,0,0,1,0,0,0,1,0.19972775876522064,0,0,1,0,0,0,1,Head,0,0,0,4,-90,5,0.1,4,1,0,0,4,-0,0,0,4,0,0,0,4,160,0,0,4,Torso,0,0,0,4,190,10,0,4,-1.70,0.5,0,4,-0,0,0,4,0,0.15,0,4,210,0,0,4,RightArm,0.8,0.4,0,4,170,0,0,4,0.6,0.1,0,4,130,-10,0,4,0.4,-0.25,0,4,-85,-10,0,4
  2686.         end
  2687.     })
  2688.     addmode("k", {
  2689.         idle = function()
  2690.             local Cfw, Crt = velchgbycfrvec()
  2691.  
  2692.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.6580627893946132 - 0.08726646259971647 * sin((sine + 0.3333333333333333) * 12), -0.08726646259971647 * sin((sine + 0.2) * 6), 3.141592653589793)),deltaTime)
  2693.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -0.5 - 0.5 * sin((sine + 0.39999999999999997) * 12), -0.5),angles(1.7453292519943295 - 1.0471975511965976 * sin(sine * 6), -1.5707963267948966 + 0.1308996938995747 * sin(sine * 6), 1.5707963267948966)),deltaTime)
  2694.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -0.5 - 0.5 * sin((sine + 0.39999999999999997) * 12), -0.5),angles(1.7453292519943295 + 1.0471975511965976 * sin(sine * 6), 1.5707963267948966 + 0.1308996938995747 * sin(sine * 6), -1.5707963267948966)),deltaTime)
  2695.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(Crt * 3, -0.5 + 0.3 * sin((sine + 0.16666666666666666) * 12), Cfw * -3),angles(-1.3962634015954636 + 0.08726646259971647 * sin((sine + 0.3333333333333333) * 12) - Cfw, 0.08726646259971647 * sin((sine + 0.06666666666666667) * 6) + Crt, 3.141592653589793)),deltaTime)
  2696.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-0.8 - 0.1 * sin(sine * 6), 0.5 + 0.1 * sin(sine * 6), -0.2),angles(3.141592653589793 - 0.17453292519943295 * sin((sine + 0.39999999999999997) * 12), -0.17453292519943295, 1.5707963267948966)),deltaTime)
  2697.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(0.8 - 0.1 * sin(sine * 6), 0.5 - 0.1 * sin(sine * 6), -0.2),angles(3.141592653589793 - 0.17453292519943295 * sin((sine + 0.39999999999999997) * 12), 0.17453292519943295, -1.5707963267948966)),deltaTime)
  2698.             --GalaxyBeautifulHair_Handle,-0.15000000596046448,0,0,1.5,0,0,0,1.5,0.10000000149011612,0,0,1.5,0,0,0,1.5,0,0,0,1.5,0,0,0,1.5,Head,0,0,0,6,-95,-5,0.3333333333333333,12,1,0,0,6,-0,-5,0.2,6,0,0,0,6,180,0,0,6,ValkyrieHelm_Handle,8.658389560878277e-09,0,0,1.5,-15,0,0,1.5,-0.2433757781982422,0,0,1.5,0,0,0,1.5,-0.2657628059387207,0,0,1.5,0,0,0,1.5,SilverthornAntlers_Handle,8.658389560878277e-09,0,0,1.5,0,0,0,1.5,-0.6500000953674316,0,0,1.5,0,0,0,1.5,0.19972775876522064,0,0,1.5,0,0,0,1.5,BlackIronAntlers_Handle,8.658389560878277e-09,0,0,1.5,0,0,0,1.5,-0.6500000953674316,0,0,1.5,0,0,0,1.5,0.19972775876522064,0,0,1.5,0,0,0,1.5,Fedora_Handle,8.657480066176504e-09,0,0,1.5,-6,0,0,1.5,-0.15052366256713867,0,0,1.5,0,0,0,1.5,-0.010221302509307861,0,0,1.5,0,0,0,1.5,LeftLeg,-1,0,0,6,100,-60,0,6,-0.5,-0.5,0.39999999999999997,12,-90,7.5,0,6,-0.5,0,0,6,90,0,0,6,EyelessSmileHead_Handle,-0.00043487548828125,0,0,1.5,180,0,0,1.5,0.6000361442565918,0,0,1.5,0,0,0,1.5,0.0003204345703125,0,0,1.5,180,0,0,1.5,RightLeg,1,0,0,6,100,60,0,6,-0.5,-0.5,0.39999999999999997,12,90,7.5,0,6,-0.5,0,0,6,-90,0,0,6,DevAwardsAdurite_Handle,0,0,0,1.5,0,0,0,1.5,-0.25,0,0,1.5,0,0,0,1.5,0,0,0,1.5,0,0,0,1.5,Torso,0,0,0,6,-80,5,0.3333333333333333,12,-0.5,0.3,0.16666666666666666,12,-0,5,0.06666666666666667,6,0,0,0,6,180,0,0,6,LeftArm,-0.8,-0.1,0,6,180,-10,0.39999999999999997,12,0.5,0.1,0,6,-10,0,0,6,-0.2,0,0,6,90,0,0,6,RightArm,0.8,-0.1,0,6,180,-10,0.39999999999999997,12,0.5,-0.1,0,6,10,0,0,6,-0.2,0,0,6,-90,0,0,6
  2699.         end
  2700.     })
  2701.     addmode("l", {
  2702.         idle = function()
  2703.             local Cfw, Crt = velchgbycfrvec()
  2704.  
  2705.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.5707963267948966 + 0.04363323129985824 * sin((sine + 0.1) * 1), -0.17453292519943295 * sin((sine + 0.1) * 5), -3.141592653589793)),deltaTime)
  2706.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1 + 0.2 * sin(sine * 5), -0.2 + 0.2 * sin(sine * 5)),angles(2.181661564992912 - 0.8726646259971648 * sin(sine * 5), 1.9198621771937625 - 0.3490658503988659 * sin(sine * 5), -1.5707963267948966)),deltaTime)
  2707.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(0.7, 0.8, 0),angles(1.0471975511965976 + 0.03490658503988659 * sin(sine * 10), 2.0943951023931953 + 0.10471975511965978 * sin((sine + 0.1) * 5), 1.5707963267948966)),deltaTime)
  2708.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1 - 0.2 * sin(sine * 5), -0.2 - 0.2 * sin(sine * 5)),angles(2.181661564992912 + 0.8726646259971648 * sin(sine * 5), -1.9198621771937625 - 0.3490658503988659 * sin(sine * 5), 1.5707963267948966)),deltaTime)
  2709.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(Crt * 3, 0.15 + 0.4 * sin((sine - 0.5) * 10), Cfw * -3),angles(-1.4835298641951802 - Cfw, 0.17453292519943295 * sin(sine * 5) + Crt, -3.141592653589793)),deltaTime)
  2710.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-0.7, 0.5, -0.3),angles(1.7453292519943295, -0.8726646259971648, 1.5707963267948966)),deltaTime)
  2711.             --Head,0,0,0,5,-90,2.5,0.1,1,1,0,0,4,0,-10,0.1,5,0,0,0,4,-180,0,0,4,RightLeg,1,0,0,4,125,-50,0,5,-1,0.2,0,5,110,-20,0,5,-0.2,0.2,0,5,-90,0,0,4,RightArm,0.7,0,0,4,60,2,0,10,0.8,0,0,4,120,6,0.1,5,0,0,0,4,90,0,0,4,LeftLeg,-1,0,0,4,125,50,0,5,-1,-0.2,0,5,-110,-20,0,5,-0.2,-0.2,0,5,90,0,0,4,Torso,0,0,0,4,-85,0,0,4,0.15,0.4,-0.5,10,0,10,0,5,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
  2712.         end
  2713.     })
  2714.  
  2715.     addmode("x", {
  2716.         idle = function()
  2717.             local Cfw, Crt = velchgbycfrvec()
  2718.  
  2719.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 0.5, 0),angles(0, 1.5707963267948966, 0)),deltaTime)
  2720.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.5707963267948966, 0, 3.141592653589793)),deltaTime)
  2721.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1, 0),angles(0, 1.5707963267948966, 0)),deltaTime)
  2722.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1, 0),angles(0, -1.5707963267948966, 0)),deltaTime)
  2723.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(Crt * 3, 0, Cfw * -3),angles(-1.5707963267948966 - Cfw, Crt, 3.141592653589793)),deltaTime)
  2724.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1, 0.5, 0),angles(0, -1.5707963267948966, 0)),deltaTime)
  2725.             --RightArm,1,0,0,1,0,0,0,1,0.5,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,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,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,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,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,LeftArm,-1,0,0,1,-0,0,0,1,0.5,0,0,1,-90,0,0,1,0,0,0,1,0,0,0,1
  2726.         end,
  2727.         walk = function()
  2728.             local Cfw, Crt = velchgbycfrvec()
  2729.  
  2730.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 0.5, 0),angles(0, 1.5707963267948966, 0)),deltaTime)
  2731.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.5707963267948966, 0, 3.141592653589793)),deltaTime)
  2732.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1, 0),angles(0, 1.5707963267948966, 0)),deltaTime)
  2733.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1, 0),angles(0, -1.5707963267948966, 0)),deltaTime)
  2734.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(Crt * 3, 0, Cfw * -3),angles(-1.5707963267948966 - Cfw, Crt, 3.141592653589793)),deltaTime)
  2735.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1, 0.5, 0),angles(0, -1.5707963267948966, 0)),deltaTime)
  2736.             --RightArm,1,0,0,1,0,0,0,1,0.5,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,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,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,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,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,LeftArm,-1,0,0,1,-0,0,0,1,0.5,0,0,1,-90,0,0,1,0,0,0,1,0,0,0,1
  2737.         end
  2738.     })
  2739. end)
  2740.  
  2741. btn("nameless animations V6", function()
  2742.     local t=reanimate()
  2743.     if type(t)~="table" then return end
  2744.     local raycastlegs=t.raycastlegs
  2745.     local velbycfrvec=t.velbycfrvec
  2746.     local addmode=t.addmode
  2747.     local getJoint=t.getJoint
  2748.     local RootJoint=getJoint("RootJoint")
  2749.     local RightShoulder=getJoint("Right Shoulder")
  2750.     local LeftShoulder=getJoint("Left Shoulder")
  2751.     local RightHip=getJoint("Right Hip")
  2752.     local LeftHip=getJoint("Left Hip")
  2753.     local Neck=getJoint("Neck")
  2754.     addmode("default", {
  2755.         idle = function()
  2756.             local rY, lY = raycastlegs()
  2757.  
  2758.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 0.3 + 0.1 * sin(sine * 2), -0.1),angles(-0.5235987755982988 + 0.05235987755982989 * sin((sine + 1.5) * 2), 1.0471975511965976 + 0.08726646259971647 * sin((sine + 0.5) * 2), 0.5235987755982988)),deltaTime)
  2759.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.6580627893946132 + 0.08726646259971647 * sin((sine + 0.6) * 2), 0, 3.141592653589793 + 0.2617993877991494 * sin((sine - 1.2) * 1))),deltaTime)
  2760.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0, 0.1 * sin(sine * 2), 0),angles(-1.5707963267948966 + 0.08726646259971647 * sin(sine * 2), 0, 3.141592653589793)),deltaTime)
  2761.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1 - 0.1 * sin(sine * 2) + rY, 0.1 * sin(sine * 2) - rY * 0.5),angles(-0.6981317007977318 - 0.08726646259971647 * sin(sine * 2), 1.0471975511965976, 0.5235987755982988)),deltaTime)
  2762.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1, 0.6 + 0.1 * sin(sine * 2), 0),angles(3.141592653589793 + 0.05235987755982989 * sin((sine + 0.5) * 2), -2.705260340591211 + 0.017453292519943295 * sin((sine + 1.5) * 2), -1.2217304763960306 + 0.05235987755982989 * sin((sine + 1.5) * 2))),deltaTime)
  2763.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1 - 0.1 * sin(sine * 2) + lY, 0.1 * sin(sine * 2) - lY * 0.5),angles(-0.3490658503988659 - 0.08726646259971647 * sin(sine * 2), -1.0471975511965976, -0.5235987755982988)),deltaTime)
  2764.             --RightArm,1,0,0,2,-30,3,1.5,2,0.3,0.1,0,2,60,5,0.5,2,-0.1,0,0,2,30,0,0,2,Head,0,0,0,2,-95,5,0.6,2,1,0,0,2,-0,0,0,1,0,0,0,2,180,15,-1.2,1,Torso,0,0,0,2,-90,5,0,2,0,0.1,0,2,-0,0,0,2,0,0,0,2,180,0,0,2,RightLeg,1,0,0,2,-40,-5,0,2,-1,-0.1,0,2,60,0,0,2,0,0.1,0,2,30,0,0,2,Meshes/TrollFaceHeadAccessory_Handle,0.01043701171875,0,0,1,0,0,0,1,0.43610429763793945,0,0,1,0,0,0,1,-0.01102447509765625,0,0,1,0,0,0,1,LeftArm,-1,0,0,2,180,3,0.5,2,0.6,0.1,0,2,-155,1,1.5,2,0,0,0,2,-70,3,1.5,2,LeftLeg,-1,0,0,2,-20,-5,0,2,-1,-0.1,0,2,-60,0,0,2,0,0.1,0,2,-30,0,0,2
  2765.         end,
  2766.         walk = function()
  2767.             local fw, rt = velbycfrvec()
  2768.  
  2769.             local rY, lY = raycastlegs()
  2770.  
  2771.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0, -0.2 + 0.2 * sin(sine * 16), 0),angles(-1.6580627893946132 + 0.04363323129985824 * sin(sine * 16) - fw * 0.15, 0.03490658503988659 * sin(sine * 8) + rt * 0.15, -3.141592653589793 - 0.08726646259971647 * sin((sine + 0.25) * 8) - rt * 0.1)),deltaTime)
  2772.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -0.8 + 0.4 * sin((sine + 0.125) * 8) + rY, -0.15 * fw + 0.4 * sin((sine + 10) * 8) * fw + rY * -0.5),angles(1.3962634015954636 + 0.6981317007977318 * sin(sine * 8)*fw, 1.5707963267948966 + 0.6981317007977318 * sin(sine * 8)*rt, -1.5707963267948966 + 0.2617993877991494 * sin(sine * 8))),deltaTime)
  2773.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1, 0.35 - 0.1 * sin(sine * 8), 0),angles(0.5235987755982988 * sin(sine * 8)*fw, -1.5707963267948966 - 0.5235987755982988 * sin(sine * 8)*fw, -0.5235987755982988 * sin(sine * 8)*fw)),deltaTime)
  2774.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 0.35 + 0.1 * sin(sine * 8), 0),angles(-0.5235987755982988 * sin(sine * 8)*fw, 1.5707963267948966 - 0.5235987755982988 * sin(sine * 8)*fw, -0.5235987755982988 * sin(sine * 8)*fw)),deltaTime)
  2775.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -0.8 - 0.4 * sin((sine + 0.125) * 8) + lY, -0.15 * fw - 0.4 * sin((sine + 10) * 8) * fw + lY * -0.5),angles(1.3962634015954636 - 0.6981317007977318 * sin(sine * 8)*fw, -1.5707963267948966 - 0.6981317007977318 * sin(sine * 8)*rt, 1.5707963267948966 + 0.2617993877991494 * sin(sine * 8))),deltaTime)
  2776.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.5707963267948966 + 0.08726646259971647 * sin((sine + 10) * 16) + fw * 0.15, -0.08726646259971647 * sin(sine * 8) + rt * -0.1, 3.141592653589793 - 0.05235987755982989 * sin((sine + 5) * 8) - rt * 0.5)),deltaTime)
  2777.             --Torso,0,0,0,8,-95,2.5,0,16,-0.2,0.2,0,16,0,5,0,8,0,0,0,8,-180,-5,0.25,8,RightArm,1,0,0,1,0,-30,0,8,0.35,0.1,0,8,90,-30,0,8,0,0,0,8,0,-30,0,8,RightLeg,1,0,0,8,80,40,0,8,-0.8,0.4,0.125,8,90,40,0,8,-0.15,0.4,10,8,-90,15,0,8,LeftLeg,-1,0,0,8,80,-40,0,8,-0.8,-0.4,0.125,8,-90,-40,0,8,-0.15,-0.4,10,8,90,15,0,8,Head,0,0,0,1,-90,2.5,10,16,1,0,0,1,-0,-5,0,8,0,0,0,1,180,-3,5,8,LeftArm,-1,0,0,1,0,30,0,8,0.35,-0.1,0,8,-90,-30,0,8,0,-0.4,0,8,0,-30,0,8
  2778.         end,
  2779.         jump = function()
  2780.             local fw, rt = velbycfrvec()
  2781.  
  2782.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf_0,angles(-1.4835298641951802 + fw * 0.1, rt * -0.05, -3.141592653589793)),deltaTime)
  2783.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 0.5, 0),angles(4.014257279586958 - 0.08726646259971647 * sin((sine + 0.5) * 4), 1.7453292519943295 + 0.08726646259971647 * sin((sine + 0.25) * 4), -1.5707963267948966)),deltaTime)
  2784.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1, 0),angles(1.5707963267948966 - 0.08726646259971647 * sin((sine + 0.5) * 4), -1.6580627893946132 + 0.06981317007977318 * sin((sine + 0.25) * 4), 1.5707963267948966)),deltaTime)
  2785.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1, 0.5, 0),angles(4.014257279586958 - 0.08726646259971647 * sin((sine + 0.5) * 4), -1.7453292519943295 - 0.08726646259971647 * sin((sine + 0.25) * 4), 1.5707963267948966)),deltaTime)
  2786.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.3962634015954636, 0, -3.141592653589793 - rt)),deltaTime)
  2787.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1, 0),angles(1.5707963267948966 - 0.08726646259971647 * sin((sine + 0.5) * 4), 1.6580627893946132 - 0.06981317007977318 * sin((sine + 0.25) * 4), -1.5707963267948966)),deltaTime)
  2788.             --Torso,0,0,0,4,-85,0,0,4,0,0,0,4,0,0,0,4,0,0,0,4,-180,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,4,0.25,4,0,0,0,4,90,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,Head,0,0,0,4,-80,0,0.5,4,1,0,0,4,0,0,0.25,4,0,0,0,4,-180,0,0,4,RightLeg,1,0,0,4,90,-5,0.5,4,-1,0,0,4,95,-4,0.25,4,0,0,0,4,-90,0,0,4
  2789.         end,
  2790.         fall = function()
  2791.             local fw, rt = velbycfrvec()
  2792.  
  2793.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf_0,angles(-1.6580627893946132 + fw * 0.1, rt * -0.05, -3.141592653589793)),deltaTime)
  2794.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 0.5, 0),angles(4.014257279586958 - 0.08726646259971647 * sin((sine + 0.5) * 4), 1.7453292519943295 + 0.08726646259971647 * sin((sine + 0.25) * 4), -1.5707963267948966)),deltaTime)
  2795.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1, 0),angles(1.5707963267948966 - 0.08726646259971647 * sin((sine + 0.5) * 4), -1.6580627893946132 + 0.06981317007977318 * sin((sine + 0.25) * 4), 1.5707963267948966)),deltaTime)
  2796.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1, 0.5, 0),angles(4.014257279586958 - 0.08726646259971647 * sin((sine + 0.5) * 4), -1.7453292519943295 - 0.08726646259971647 * sin((sine + 0.25) * 4), 1.5707963267948966)),deltaTime)
  2797.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.7453292519943295, 0, -3.141592653589793 - rt)),deltaTime)
  2798.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1, 0),angles(1.5707963267948966 - 0.08726646259971647 * sin((sine + 0.5) * 4), 1.6580627893946132 - 0.06981317007977318 * sin((sine + 0.25) * 4), -1.5707963267948966)),deltaTime)
  2799.             --Torso,0,0,0,4,-95,0,0,4,0,0,0,4,0,0,0,4,0,0,0,4,-180,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,4,0.25,4,0,0,0,4,90,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,Head,0,0,0,4,-100,0,0.5,4,1,0,0,4,0,0,0.25,4,0,0,0,4,-180,0,0,4,RightLeg,1,0,0,4,90,-5,0.5,4,-1,0,0,4,95,-4,0.25,4,0,0,0,4,-90,0,0,4
  2800.         end
  2801.     })
  2802.  
  2803.     addmode("q", {
  2804.         idle = function()
  2805.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1, 0.75, -0.2),angles(2.705260340591211 - 0.08726646259971647 * sin((sine + 0.1) * 2), -2.792526803190927, -0.6981317007977318)),deltaTime)
  2806.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 0.75, -0.2),angles(2.705260340591211 - 0.08726646259971647 * sin((sine + 0.1) * 2), 2.792526803190927, 0.6981317007977318)),deltaTime)
  2807.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.9198621771937625 - 0.10471975511965978 * sin((sine + 0.3) * 2), 0, 3.141592653589793)),deltaTime)
  2808.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0, -2.45 - 0.05 * sin(sine * 2), 0),angles(0.03490658503988659 * sin(sine * 2), 0, 3.141592653589793)),deltaTime)
  2809.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1, 0),angles(1.3962634015954636 - 0.03490658503988659 * sin(sine * 2), 1.3089969389957472, -0.9599310885968813)),deltaTime)
  2810.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1, 0),angles(1.5707963267948966 - 0.03490658503988659 * sin(sine * 2), -1.3089969389957472, 1.5707963267948966)),deltaTime)
  2811.             --LeftArm,-1,0,0,2,155,-5,0.1,2,0.75,0,0,2,-160,0,0,2,-0.2,0,0,2,-40,0,0,2,RightArm,1,0,0,2,155,-5,0.1,2,0.75,0,0,2,160,0,0,2,-0.2,0,0,2,40,0,0,2,Head,0,0,0,2,-110,-6,0.3,2,1,0,0,2,-0,0,0,2,0,0,0,2,180,0,0,2,Torso,0,0,0,2,0,2,0,2,-2.45,-0.05,0,2,-0,0,0,2,0,0,0,2,180,0,0,2,RightLeg,1,0,0,2,80,-2,0,2,-1,0,0,2,75,0,0,2,0,0,0,2,-55,0,0,2,LeftLeg,-1,0,0,2,90,-2,0,2,-1,0,0,2,-75,0,0,2,0,0,0,2,90,0,0,2
  2812.         end
  2813.     })
  2814.     addmode("e", {
  2815.         idle = function()
  2816.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-0.9, 0.4 + 0.1 * sin(sine * 2), 0.3 - 0.15 * sin(sine * 2)),angles(-1.0471975511965976 - 0.12217304763960307 * sin(sine * 2), -1.3962634015954636, -0.6981317007977318)),deltaTime)
  2817.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0, -1.85 - 0.1 * sin((sine + 0.2) * 2), 0),angles(-1.3962634015954636 + 0.03490658503988659 * sin(sine * 2), -0.08726646259971647, 3.141592653589793)),deltaTime)
  2818.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 0.4 + 0.1 * sin(sine * 2), 0.2 - 0.15 * sin(sine * 2)),angles(0.6108652381980153 - 0.12217304763960307 * sin(sine * 2), 1.2217304763960306, -0.7853981633974483)),deltaTime)
  2819.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.6580627893946132 - 0.03490658503988659 * sin((sine + 0.6) * 2), 0.10471975511965978 + 0.06981317007977318 * sin(sine * 0.66), 3.141592653589793 + 0.3490658503988659 * sin(sine * 0.66))),deltaTime)
  2820.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, 0.2 + 0.15 * sin((sine + 0.2) * 2), -0.7 + 0.1 * sin(sine * 2)),angles(1.4835298641951802 + 0.03490658503988659 * sin(sine * 2), 1.4835298641951802, -1.5707963267948966)),deltaTime)
  2821.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -0.75 + 0.1 * sin((sine + 0.2) * 2), -0.5),angles(1.3962634015954636 - 0.03490658503988659 * sin(sine * 2), -1.6580627893946132, 0)),deltaTime)
  2822.             --LeftArm,-0.9,0,0,2,-60,-7,0,2,0.4,0.1,0,2,-80,0,0,2,0.3,-0.15,0,2,-40,0,0,2,Torso,0,0,0,2,-80,2,0,2,-1.85,-0.1,0.2,2,-5,0,0,2,0,0,0,2,180,0,0,2,RightArm,1,0,0,2,35,-7,0,2,0.4,0.1,0,2,70,0,0,2,0.2,-0.15,0,2,-45,0,0,2,Head,0,0,0,2,-95,-2,0.6,2,1,0,0,2,6,4,0,0.66,0,0,0,2,180,20,0,0.66,RightLeg,1,0,0,2,85,2,0,2,0.2,0.15,0.2,2,85,0,0,2,-0.7,0.1,0,2,-90,0,0,2,LeftLeg,-1,0,0,2,80,-2,0,2,-0.75,0.1,0.2,2,-95,0,0,2,-0.5,0,0,2,0,0,0,2
  2823.         end
  2824.     })
  2825.     addmode("r", {
  2826.         idle = function()
  2827.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -0.9 - 0.2 * sin(sine * 2), 0),angles(1.5707963267948966, 1.6580627893946132 - 0.17453292519943295 * sin(sine + 0.8), -1.5707963267948966)),deltaTime)
  2828.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0.3 * sin(sine + 0.8), -0.1 + 0.2 * sin(sine * 2), 0),angles(-1.5707963267948966, 0, -3.141592653589793)),deltaTime)
  2829.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.5707963267948966 + 0.08726646259971647 * sin((sine - 0.5) * 2), 0.08726646259971647 * sin(sine - 1), -3.141592653589793 + 0.2617993877991494 * sin(sine * 5))),deltaTime)
  2830.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1 + 0.1 * sin(sine * 7), 0.2 - 0.1 * sin(sine + 0.8), -0.25),angles(1.5707963267948966 + 0.5235987755982988 * sin(sine * 7), -0.6981317007977318, 0.3490658503988659 * sin(sine * 7))),deltaTime)
  2831.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -0.9 - 0.2 * sin(sine * 2), 0),angles(1.5707963267948966, -1.6580627893946132 - 0.17453292519943295 * sin(sine + 0.8), 1.5707963267948966)),deltaTime)
  2832.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1 + 0.1 * sin(sine * 7), 0.2 + 0.1 * sin(sine + 0.8), -0.25),angles(1.5707963267948966 - 0.5235987755982988 * sin(sine * 7), 0.6981317007977318, 0.3490658503988659 * sin(sine * 7))),deltaTime)
  2833.             --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
  2834.         end
  2835.     })
  2836.     addmode("t", {
  2837.         idle = function()
  2838.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1, 0.5, 0),angles(1.5707963267948966, -1.6580627893946132 + 0.08726646259971647 * sin((sine - 0.3) * 4), 1.5707963267948966)),deltaTime)
  2839.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1 + 0.15 * sin((sine - 0.4) * 4), 1.42, 0),angles(1.5707963267948966, 1.4835298641951802 - 0.3490658503988659 * sin((sine - 0.4) * 4), 1.5707963267948966)),deltaTime)
  2840.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.4835298641951802, 0.04363323129985824 - 0.08726646259971647 * sin((sine + 0.1) * 4), -3.141592653589793 + 0.04363323129985824 * sin(sine * 4))),deltaTime)
  2841.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0.1 * sin(sine * 4), 0, 0),angles(-1.5707963267948966, -0.08726646259971647 + 0.08726646259971647 * sin(sine * 4), -3.141592653589793)),deltaTime)
  2842.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1.1 + 0.1 * sin(sine * 4), 0),angles(1.5707963267948966, 1.5707963267948966 + 0.08726646259971647 * sin(sine * 4), -1.5707963267948966)),deltaTime)
  2843.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1 - 0.02 * sin(sine * 4), -0.925 - 0.07 * sin(sine * 4), 0),angles(1.5707963267948966, -1.7453292519943295 + 0.08726646259971647 * sin(sine * 4), 1.5707963267948966)),deltaTime)
  2844.             --LeftArm,-1,0,0,4,90,0,0,4,0.5,0,0,4,-95,5,-0.3,4,0,0,0,4,90,0,0,4,RightArm,1,0.15,-0.4,4,90,0,0,4,1.42,0,0,4,85,-20,-0.4,4,0,0,0,4,90,0,0,4,Head,0,0,0,4,-85,0,0,4,1,0,0,4,2.5,-5,0.1,4,0,0,0,4,-180,2.5,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,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.02,0,4,90,0,0,4,-0.925,-0.07,0,4,-100,5,0,4,0,0,0,4,90,0,0,4
  2845.         end
  2846.     })
  2847.     addmode("y", {
  2848.         idle = function()
  2849.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1.5, 0.5, 0),angles(-1.7453292519943295, 0.17453292519943295 - 0.04363323129985824 * sin(sine * 2), -1.4835298641951802)),deltaTime)
  2850.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -0.9000000953674316 - 0.1 * sin(sine * 2), 0),angles(-1.3962634015954636, 1.3962634015954636, 1.5707963267948966)),deltaTime)
  2851.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1.0000001192092896 - 0.1 * sin(sine * 2), 0),angles(-1.5707963267948966, -1.3962634015954636, -1.5707963267948966)),deltaTime)
  2852.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-2.0943951023931953 + 0.08726646259971647 * sin((sine - 1) * 2), -0.08726646259971647, 2.792526803190927)),deltaTime)
  2853.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 1.2000000476837158, 0),angles(2.6179938779914944 + 0.08726646259971647 * sin((sine - 1) * 2), 0.6981317007977318, -1.3962634015954636)),deltaTime)
  2854.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0, 0.1 * sin(sine * 2), 0),angles(-1.6580627893946132, 0.08726646259971647, 3.0543261909900767)),deltaTime)
  2855.             --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
  2856.         end
  2857.     })
  2858.     addmode("u", {
  2859.         idle = function()
  2860.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0, 0.75 + 0.25 * sin(sine * 2), 0),angles(-1.5707963267948966, 0, 3.141592653589793)),deltaTime)
  2861.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1.5 - 0.1 * sin((sine + 0.2) * 2), 0),angles(-1.5707963267948966 - 0.08726646259971647 * sin((sine + 0.4) * 2), 0, 3.141592653589793 + 0.3490658503988659 * sin(sine * 0.66))),deltaTime)
  2862.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-0.5 - 1 * sin((sine + 0.2) * 2.2), -0.75 - 0.25 * sin(sine * 2), 1 * sin((sine + 0.95) * 2.2)),angles(0, -1.5707963267948966, 0)),deltaTime)
  2863.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(0.5 + 1 * sin((sine + 0.2) * 2.2), -0.75 - 0.25 * sin(sine * 2), -1 * sin((sine + 0.95) * 2.2)),angles(0, 1.5707963267948966, 0)),deltaTime)
  2864.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(-0.5 - 1.85 * sin(sine * 2), 0.8 - 0.5 * sin(sine * 2), -1.85 * sin((sine + 0.75) * 2)),angles(0, 1.5707963267948966, 0)),deltaTime)
  2865.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(0.5 + 1.85 * sin(sine * 2), 0.8 - 0.5 * sin(sine * 2), 1.85 * sin((sine + 0.75) * 2)),angles(0, -1.5707963267948966, 0)),deltaTime)
  2866.             --Torso,0,0,0,2,-90,0,0,2,0.75,0.25,0,2,-0,0,0,2,0,0,0,2,180,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,-90,-5,0.4,2,1.5,-0.1,0.2,2,-0,0,0,2,0,0,0,2,180,20,0,0.66,LeftLeg,-0.5,-1,0.2,2.2,-0,0,0,2,-0.75,-0.25,0,2,-90,0,0,2,0,1,0.95,2.2,0,0,0,2,RightLeg,0.5,1,0.2,2.2,0,0,0,2,-0.75,-0.25,0,2,90,0,0,2,0,-1,0.95,2.2,0,0,0,2,RightArm,-0.5,-1.85,0,2,0,0,0,2,0.8,-0.5,0,2,90,0,0,2,0,-1.85,0.75,2,0,0,0,2,LeftArm,0.5,1.85,0,2,-0,0,0,2,0.8,-0.5,0,2,-90,0,0,2,0,1.85,0.75,2,0,0,0,2
  2867.         end
  2868.     })
  2869.     addmode("i", {
  2870.         idle = function()
  2871.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-0.5, 0.5 + 0.1 * sin((sine - 0.4444444444444444) * 9), 0),angles(2.9670597283903604 + 0.17453292519943295 * sin((sine - 0.17777777777777778) * 9), -0.5235987755982988, 1.5707963267948966 + 0.17453292519943295 * sin(sine * 4.5))),deltaTime)
  2872.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -0.5 + 0.1 * sin((sine + 0.26666666666666666) * 4.5), -0.5),angles(1.7453292519943295 - 1.0471975511965976 * sin(sine * 4.5), -1.5707963267948966 + 0.03490658503988659 * sin(sine * 4.5), 1.5707963267948966)),deltaTime)
  2873.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0, -0.5 + 0.5 * sin((sine + 0.17777777777777778) * 9), 0),angles(-1.3962634015954636 - 0.03490658503988659 * sin((sine + 0.17777777777777778) * 9), -0.05235987755982989 * sin(sine * 4.5), 3.141592653589793 + 0.03490658503988659 * sin(sine * 4.5))),deltaTime)
  2874.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1 + 0.2 * sin(sine * 9), 0),angles(-1.5707963267948966 + 0.08726646259971647 * sin(sine * 9), 0.08726646259971647 * sin(sine * 4.5), 3.141592653589793 - 0.06981317007977318 * sin(sine * 4.5))),deltaTime)
  2875.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(0.5, 0.5 + 0.1 * sin((sine - 0.4444444444444444) * 9), 0),angles(2.9670597283903604 + 0.17453292519943295 * sin((sine - 0.17777777777777778) * 9), 0.5235987755982988, -1.5707963267948966 + 0.17453292519943295 * sin(sine * 4.5))),deltaTime)
  2876.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -0.5 + 0.1 * sin((sine - 0.26666666666666666) * 4.5), -0.5),angles(1.7453292519943295 + 1.0471975511965976 * sin(sine * 4.5), 1.5707963267948966 + 0.03490658503988659 * sin(sine * 4.5), -1.5707963267948966)),deltaTime)
  2877.             --LeftArm,-0.5,0,0,4.5,170,10,-0.17777777777777778,9,0.5,0.1,-0.4444444444444444,9,-30,0,0,4.5,0,0,0,4.5,90,10,0,4.5,LeftLeg,-1,0,0,4.5,100,-60,0,4.5,-0.5,0.1,0.26666666666666666,4.5,-90,2,0,4.5,-0.5,0,0,4.5,90,0,0,4.5,Torso,0,0,0,4.5,-80,-2,0.17777777777777778,9,-0.5,0.5,0.17777777777777778,9,-0,-3,0,4.5,0,0,0,4.5,180,2,0,4.5,Head,0,0,0,4.5,-90,5,0,9,1,0.2,0,9,-0,5,0,4.5,0,0,0,4.5,180,-4,0,4.5,RightArm,0.5,0,0,4.5,170,10,-0.17777777777777778,9,0.5,0.1,-0.4444444444444444,9,30,0,0,4.5,0,0,0,4.5,-90,10,0,4.5,RightLeg,1,0,0,4.5,100,60,0,4.5,-0.5,0.1,-0.26666666666666666,4.5,90,2,0,4.5,-0.5,0,0,4.5,-90,0,0,4.5
  2878.         end,
  2879.     })
  2880.     addmode("o", {
  2881.         idle = function()
  2882.             local rY, lY = raycastlegs()
  2883.  
  2884.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1 + lY, lY * -0.5),angles(-1.8325957145940461 - 0.08726646259971647 * sin(sine * 2), -1.4835298641951802, -1.5707963267948966)),deltaTime)
  2885.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0, 0, 0.09 * sin(sine * 2)),angles(-1.3962634015954636 + 0.08726646259971647 * sin(sine * 2), -0.08726646259971647, 3.141592653589793)),deltaTime)
  2886.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1, 0.5, 0),angles(2.9670597283903604 + 0.08726646259971647 * sin(sine * 1), -1.5707963267948966 + 0.08726646259971647 * sin((sine + 0.6) * 1), 1.5707963267948966)),deltaTime)
  2887.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1.1 + rY, rY * -0.5),angles(-1.7453292519943295 - 0.08726646259971647 * sin(sine * 2), 1.5707963267948966, 1.5707963267948966)),deltaTime)
  2888.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.2217304763960306 - 0.08726646259971647 * sin((sine + 0.3) * 2), -0.2617993877991494 - 0.08726646259971647 * sin(sine * 2), 3.141592653589793)),deltaTime)
  2889.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 0.5, 0),angles(2.8797932657906435 + 0.08726646259971647 * sin(sine * 1), 1.5707963267948966 - 0.08726646259971647 * sin((sine + 0.6) * 1), -1.5707963267948966)),deltaTime)
  2890.             --LeftLeg,-1,0,0,2,-105,-5,0,2,-1,0,0,2,-85,0,0,2,0,0,0,2,-90,0,0.75,2,Torso,0,0,0,2,-80,5,0,2,0,0,0,2,-5,0,0,2,0,0.09,0,2,180,0,0,2,LeftArm,-1,0,0,2,170,5,0,1,0.5,0,0,2,-90,5,0.6,1,0,0,0,2,90,0,0,2,RightLeg,1,0,0,2,-100,-5,0,2,-1.1,0,0,2,90,0,0,2,0,0,0,2,90,0,0.75,2,Head,0,0,0,2,-70,-5,0.3,2,1,0,0,2,-15,-5,0,2,0,0,0,2,180,0,0,2,RightArm,1,0,0,2,165,5,0,1,0.5,0,0,2,90,-5,0.6,1,0,0,0,2,-90,0,0,2
  2891.         end,
  2892.         walk = function()
  2893.             local fw, rt = velbycfrvec()
  2894.  
  2895.             local rY, lY = raycastlegs()
  2896.  
  2897.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.5707963267948966 + 0.04363323129985824 * sin(sine * 16), 0, 3.141592653589793 + 0.08726646259971647 * sin(sine * 8) - rt)),deltaTime)
  2898.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1 - 0.3 * sin((sine + 0.15) * 8) + rY, rY * -0.5),angles(-1.5707963267948966 - 0.6981317007977318 * sin(sine * 8) * fw, 1.5707963267948966 + 0.6981317007977318 * sin(sine * 8) * rt, 1.5707963267948966)),deltaTime)
  2899.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 0.5, 0),angles(0.08726646259971647 * sin((sine - 0.05) * 16), 1.5707963267948966 + 0.08726646259971647 * sin(sine * 8) - rt/3, 1.5707963267948966)),deltaTime)
  2900.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1, 0.5, 0),angles(0.08726646259971647 * sin((sine - 0.05) * 16), -1.5707963267948966 + 0.08726646259971647 * sin(sine * 8) - rt/3, -1.5707963267948966)),deltaTime)
  2901.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0, 0.1 * sin((sine + 0.1) * 16), 0),angles(-1.5707963267948966, 0, 3.141592653589793 - 0.08726646259971647 * sin(sine * 8))),deltaTime)
  2902.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1 + 0.3 * sin((sine + 0.15) * 8) + lY, lY * -0.5),angles(1.5707963267948966 + 0.6981317007977318 * sin(sine * 8) * fw, -1.5707963267948966 + 0.6981317007977318 * sin(sine * 8) * rt, 1.5707963267948966)),deltaTime)
  2903.             --Head,0,0,0,8,-90,2.5,0,16,1,0,0,8,-0,0,0,8,0,0,0,8,180,5,0,8,RightLeg,1,0,0,8,-90,-40,0,8,-1,-0.3,0.15,8,90,40,0,8,0,0,0,8,90,0,0,8,RightArm,1,0,0,8,0,5,-0.05,16,0.5,0,0,8,90,5,0,8,0,0,0,8,90,0,0,8,LeftArm,-1,0,0,8,0,5,-0.05,16,0.5,0,0,8,-90,5,0,8,0,0,0,8,-90,0,0,8,Torso,0,0,0,8,-90,0,0,8,0,0.1,0.1,16,-0,0,0,8,0,0,0,8,180,-5,0,8,LeftLeg,-1,0,0,8,90,40,0,8,-1,0.3,0.15,8,-90,40,0,8,0,0,0,8,90,0,0,8
  2904.         end
  2905.     })
  2906.     addmode("p", {
  2907.         idle = function()
  2908.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1.5, 0.5, 0),angles(1.5707963267948966, 3.141592653589793, -1.5707963267948966)),deltaTime)
  2909.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1, 0),angles(0, 1.5707963267948966, 0)),deltaTime)
  2910.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1.5, 0.5, 0),angles(1.5707963267948966, 3.141592653589793, 1.5707963267948966)),deltaTime)
  2911.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1, 0),angles(0, -1.5707963267948966, 0)),deltaTime)
  2912.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.5707963267948966, 0, -3.141592653589793)),deltaTime)
  2913.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf_0,angles(-1.5707963267948966, 0, -3.141592653589793)),deltaTime)
  2914.             --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
  2915.         end
  2916.     })
  2917.     addmode("f", {
  2918.         idle = function()
  2919.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1, 0.5, 0),angles(-3.0543261909900767 - 0.17453292519943295 * sin((sine + 1.5) * 1), -1.5707963267948966 + 0.08726646259971647 * sin((sine + 0.6) * 1), -1.5707963267948966)),deltaTime)
  2920.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 0.5, 0),angles(3.141592653589793 - 0.08726646259971647 * sin(sine * 1), 0.3490658503988659 + 0.08726646259971647 * sin((sine + 0.3) * 1), -1.9198621771937625 + 0.08726646259971647 * sin((sine + 1) * 1))),deltaTime)
  2921.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.3089969389957472 - 0.2617993877991494 * sin((sine + 1.2) * 1), 0.08726646259971647 * sin((sine + 0.2) * 0.5), -2.9670597283903604)),deltaTime)
  2922.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0, 5 - 0.5 * sin((sine - 0.2) * 1), 0.2 * sin((sine - 1.2) * 1)),angles(-0.08726646259971647 + 0.17453292519943295 * sin((sine + 1.2) * 1), 0.08726646259971647 * sin(sine * 0.5), 3.141592653589793)),deltaTime)
  2923.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1, 0),angles(1.3962634015954636 + 0.12217304763960307 * sin((sine + 1.5) * 1), -1.2217304763960306 + 0.08726646259971647 * sin((sine + 0.2) * 0.5), 1.5707963267948966)),deltaTime)
  2924.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1, 0),angles(1.9198621771937625 + 0.12217304763960307 * sin((sine + 1.5) * 1), 1.2217304763960306 + 0.08726646259971647 * sin((sine + 0.2) * 0.5), -1.5707963267948966)),deltaTime)
  2925.             --LeftArm,-1,0,0,1,-175,-10,1.5,1,0.5,0,0,1,-90,5,0.6,1,0,0,0,1,-90,0,0,1,RightArm,1,0,0,1,180,-5,0,1,0.5,0,0,1,20,5,0.3,1,0,0,0,1,-110,5,1,1,Head,0,0,0,1,-75,-15,1.2,1,1,0,0,1,-0,5,0.2,0.5,0,0,0,1,-170,0,0,1,Torso,0,0,0,1,-5,10,1.2,1,5,-0.5,-0.2,1,-0,5,0,0.5,0,0.2,-1.2,1,180,0,0,1,LeftLeg,-1,0,0,1,80,7,1.5,1,-1,0,0,1,-70,5,0.2,0.5,0,0,0,1,90,0,0,1,RightLeg,1,0,0,1,110,7,1.5,1,-1,0,0,1,70,5,0.2,0.5,0,0,0,1,-90,0,0,1
  2926.         end,
  2927.         walk = function()
  2928.             local fw, rt = velbycfrvec()
  2929.  
  2930.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1, 0.5, 0),angles(-3.0543261909900767 - 0.17453292519943295 * sin((sine + 1.5) * 1) - fw * 0.1, -1.5707963267948966 + 0.08726646259971647 * sin((sine + 0.6) * 1) + rt * 0.2, -1.5707963267948966)),deltaTime)
  2931.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 0.5, 0),angles(3.141592653589793 - 0.08726646259971647 * sin(sine * 1), 0.3490658503988659 + 0.08726646259971647 * sin((sine + 0.3) * 1), -1.9198621771937625 + 0.08726646259971647 * sin((sine + 1) * 1))),deltaTime)
  2932.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.3089969389957472 - 0.2617993877991494 * sin((sine + 1.2) * 1) + fw * 0.1, 0.08726646259971647 * sin((sine + 0.2) * 0.5) - rt * 0.2, -2.9670597283903604)),deltaTime)
  2933.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0, 5 - 0.5 * sin((sine - 0.2) * 1), 0.2 * sin((sine - 1.2) * 1)),angles(-0.08726646259971647 + 0.17453292519943295 * sin((sine + 1.2) * 1) - fw * 0.2, 0.08726646259971647 * sin(sine * 0.5), 3.141592653589793 - rt * 0.2)),deltaTime)
  2934.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1, 0),angles(1.3962634015954636 + 0.12217304763960307 * sin((sine + 1.5) * 1) - fw * 0.2, -1.2217304763960306 + 0.08726646259971647 * sin((sine + 0.2) * 0.5), 1.5707963267948966)),deltaTime)
  2935.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1, 0),angles(1.9198621771937625 + 0.12217304763960307 * sin((sine + 1.5) * 1) - fw * 0.2, 1.2217304763960306 + 0.08726646259971647 * sin((sine + 0.2) * 0.5), -1.5707963267948966)),deltaTime)
  2936.             --LeftArm,-1,0,0,1,-175,-10,1.5,1,0.5,0,0,1,-90,5,0.6,1,0,0,0,1,-90,0,0,1,RightArm,1,0,0,1,180,-5,0,1,0.5,0,0,1,20,5,0.3,1,0,0,0,1,-110,5,1,1,Head,0,0,0,1,-75,-15,1.2,1,1,0,0,1,-0,5,0.2,0.5,0,0,0,1,-170,0,0,1,Torso,0,0,0,1,-5,10,1.2,1,5,-0.5,-0.2,1,-0,5,0,0.5,0,0.2,-1.2,1,180,0,0,1,LeftLeg,-1,0,0,1,80,7,1.5,1,-1,0,0,1,-70,5,0.2,0.5,0,0,0,1,90,0,0,1,RightLeg,1,0,0,1,110,7,1.5,1,-1,0,0,1,70,5,0.2,0.5,0,0,0,1,-90,0,0,1
  2937.         end
  2938.     })
  2939.     addmode("g", {
  2940.         idle = function()
  2941.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-0.9 + 0.4 * sin(sine * 8), 0.5, 0.5 * sin((sine + 0.25) * 4)),angles(1.5707963267948966, -1.5707963267948966 + 1.0471975511965976 * sin(sine * 8), 1.5707963267948966 + 0.6981317007977318 * sin((sine + 0.25) * 4))),deltaTime)
  2942.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0.3 * sin((sine + 0.4) * 8), 0, 0),angles(-1.5707963267948966, 0.3490658503988659 * sin(sine * 8), -3.141592653589793)),deltaTime)
  2943.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.5707963267948966 + 0.061086523819801536 * sin((sine + 0.125) * 16), -0.3839724354387525 * sin(sine * 8), -3.141592653589793)),deltaTime)
  2944.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1 + 0.4 * sin((sine - 0.01) * 8), 0),angles(1.5707963267948966, 1.7453292519943295 + 0.6981317007977318 * sin(sine * 8), -1.5707963267948966)),deltaTime)
  2945.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1 - 0.4 * sin((sine - 0.01) * 8), 0),angles(1.5707963267948966, -1.7453292519943295 + 0.6981317007977318 * sin(sine * 8), 1.5707963267948966)),deltaTime)
  2946.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(0.9 + 0.4 * sin(sine * 8), 0.5, -0.5 * sin((sine - 0.35) * 4)),angles(1.5707963267948966 + 0.6981317007977318 * sin(sine * 4), 1.5707963267948966 + 1.0471975511965976 * sin(sine * 8), -1.5707963267948966 + 0.17453292519943295 * sin((sine - 0.35) * 4))),deltaTime)
  2947.             --LeftArm,-0.9,0.4,0,8,90,0,0.25,4,0.5,0,0,8,-90,60,0,8,0,0.5,0.25,4,90,40,0.25,4,Torso,0,0.3,0.4,8,-90,0,0,8,0,0,0,4,0,20,0,8,0,0,0,8,-180,0,0,8,Head,0,0,0,8,-90,3.5,0.125,16,1,0,0,8,0,-22,0,8,0,0,0,8,-180,0,0,1.1,RightLeg,1,0,0,8,90,0,0,8,-1,0.4,-0.01,8,100,40,0,8,0,0,0,8,-90,0,0,8,LeftLeg,-1,0,0,8,90,0,0,8,-1,-0.4,-0.01,8,-100,40,0,8,0,0,0,8,90,0,0,8,RightArm,0.9,0.4,0,8,90,40,0,4,0.5,0,0,8,90,60,0,8,0,-0.5,-0.35,4,-90,10,-0.35,4
  2948.         end
  2949.     })
  2950.     addmode("h", {
  2951.         idle = function()
  2952.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.5707963267948966, -0.4363323129985824 * sin(sine * 8), -3.141592653589793)),deltaTime)
  2953.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1 + 0.3 * sin(sine * 8), 0),angles(1.5707963267948966, 1.5707963267948966 + 0.5235987755982988 * sin(sine * 8), -1.5707963267948966)),deltaTime)
  2954.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-0.5, 1, 0),angles(-0.5235987755982988, -1.5707963267948966 - 0.5235987755982988 * sin(sine * 8), 3.141592653589793)),deltaTime)
  2955.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(0.5, 1, 0),angles(-0.5235987755982988, 1.5707963267948966 - 0.5235987755982988 * sin(sine * 8), 3.141592653589793)),deltaTime)
  2956.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(-0.1 * sin(sine * 8), 0.2 * sin((sine + 0.1) * 16), 0),angles(-1.5707963267948966, 0.2617993877991494 * sin(sine * 8), -3.141592653589793)),deltaTime)
  2957.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1 - 0.3 * sin(sine * 8), 0),angles(1.5707963267948966, -1.5707963267948966 + 0.5235987755982988 * sin(sine * 8), 1.5707963267948966)),deltaTime)
  2958.             --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
  2959.         end
  2960.     })
  2961.     addmode("j", {
  2962.         idle = function()
  2963.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-0.8, -1, -0.1),angles(0.17453292519943295, -0.6981317007977318, 0)),deltaTime)
  2964.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1.2, 0.5, 0),angles(-0.3490658503988659 + 0.08726646259971647 * sin((sine + 0.1) * 4), 0, 0.6981317007977318 + 0.08726646259971647 * sin((sine + 0.1) * 4))),deltaTime)
  2965.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1.1, -1, 0),angles(1.5707963267948966, 1.7453292519943295, -1.5707963267948966)),deltaTime)
  2966.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.5707963267948966 + 0.08726646259971647 * sin((sine + 0.1) * 4), 0, 2.792526803190927)),deltaTime)
  2967.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0, -1.7 + 0.5 * sin(sine * 4), 0.15 * sin(sine * 4)),angles(3.3161255787892263 + 0.17453292519943295 * sin(sine * 4), 0, 3.6651914291880923)),deltaTime)
  2968.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(0.8 + 0.4 * sin(sine * 4), 0.6 + 0.1 * sin(sine * 4), 0.4 - 0.25 * sin(sine * 4)),angles(2.9670597283903604, 2.2689280275926285 - 0.17453292519943295 * sin(sine * 4), -1.4835298641951802 - 0.17453292519943295 * sin(sine * 4))),deltaTime)
  2969.             --GalaxyBeautifulHair_Handle,-0.15000000596046448,0,0,1,0,0,0,1,0.10000000149011612,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,LeftLeg,-0.8,0,0,4,10,0,0,4,-1,0,0,4,-40,0,0,4,-0.1,0,0,4,0,0,0,4,LeftArm,-1.2,0,0,4,-20,5,0.1,4,0.5,0,0,4,0,0,0,4,0,0,0,4,40,5,0.1,4,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,ValkyrieHelm_Handle,8.658389560878277e-09,0,0,1,-15,0,0,1,-0.2433757781982422,0,0,1,0,0,0,1,-0.2657628059387207,0,0,1,0,0,0,1,RightLeg,1.1,0,0,4,90,0,0,4,-1,0,0,4,100,0,0,4,0,0,0,4,-90,0,0,4,BlackIronAntlers_Handle,8.658389560878277e-09,0,0,1,0,0,0,1,-0.6500000953674316,0,0,1,0,0,0,1,0.19972775876522064,0,0,1,0,0,0,1,DevAwardsAdurite_Handle,0,0,0,1,0,0,0,1,-0.25,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,SilverthornAntlers_Handle,8.658389560878277e-09,0,0,1,0,0,0,1,-0.6500000953674316,0,0,1,0,0,0,1,0.19972775876522064,0,0,1,0,0,0,1,Head,0,0,0,4,-90,5,0.1,4,1,0,0,4,-0,0,0,4,0,0,0,4,160,0,0,4,Torso,0,0,0,4,190,10,0,4,-1.70,0.5,0,4,-0,0,0,4,0,0.15,0,4,210,0,0,4,RightArm,0.8,0.4,0,4,170,0,0,4,0.6,0.1,0,4,130,-10,0,4,0.4,-0.25,0,4,-85,-10,0,4
  2970.         end
  2971.     })
  2972.     addmode("k", {
  2973.         idle = function()
  2974.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.6580627893946132 - 0.08726646259971647 * sin((sine + 0.3333333333333333) * 12), -0.08726646259971647 * sin((sine + 0.2) * 6), 3.141592653589793)),deltaTime)
  2975.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -0.5 - 0.5 * sin((sine + 0.39999999999999997) * 12), -0.5),angles(1.7453292519943295 - 1.0471975511965976 * sin(sine * 6), -1.5707963267948966 + 0.1308996938995747 * sin(sine * 6), 1.5707963267948966)),deltaTime)
  2976.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -0.5 - 0.5 * sin((sine + 0.39999999999999997) * 12), -0.5),angles(1.7453292519943295 + 1.0471975511965976 * sin(sine * 6), 1.5707963267948966 + 0.1308996938995747 * sin(sine * 6), -1.5707963267948966)),deltaTime)
  2977.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0, -0.5 + 0.3 * sin((sine + 0.16666666666666666) * 12), 0),angles(-1.3962634015954636 + 0.08726646259971647 * sin((sine + 0.3333333333333333) * 12), 0.08726646259971647 * sin((sine + 0.06666666666666667) * 6), 3.141592653589793)),deltaTime)
  2978.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-0.8 - 0.1 * sin(sine * 6), 0.5 + 0.1 * sin(sine * 6), -0.2),angles(3.141592653589793 - 0.17453292519943295 * sin((sine + 0.39999999999999997) * 12), -0.17453292519943295, 1.5707963267948966)),deltaTime)
  2979.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(0.8 - 0.1 * sin(sine * 6), 0.5 - 0.1 * sin(sine * 6), -0.2),angles(3.141592653589793 - 0.17453292519943295 * sin((sine + 0.39999999999999997) * 12), 0.17453292519943295, -1.5707963267948966)),deltaTime)
  2980.             --GalaxyBeautifulHair_Handle,-0.15000000596046448,0,0,1.5,0,0,0,1.5,0.10000000149011612,0,0,1.5,0,0,0,1.5,0,0,0,1.5,0,0,0,1.5,Head,0,0,0,6,-95,-5,0.3333333333333333,12,1,0,0,6,-0,-5,0.2,6,0,0,0,6,180,0,0,6,ValkyrieHelm_Handle,8.658389560878277e-09,0,0,1.5,-15,0,0,1.5,-0.2433757781982422,0,0,1.5,0,0,0,1.5,-0.2657628059387207,0,0,1.5,0,0,0,1.5,SilverthornAntlers_Handle,8.658389560878277e-09,0,0,1.5,0,0,0,1.5,-0.6500000953674316,0,0,1.5,0,0,0,1.5,0.19972775876522064,0,0,1.5,0,0,0,1.5,BlackIronAntlers_Handle,8.658389560878277e-09,0,0,1.5,0,0,0,1.5,-0.6500000953674316,0,0,1.5,0,0,0,1.5,0.19972775876522064,0,0,1.5,0,0,0,1.5,Fedora_Handle,8.657480066176504e-09,0,0,1.5,-6,0,0,1.5,-0.15052366256713867,0,0,1.5,0,0,0,1.5,-0.010221302509307861,0,0,1.5,0,0,0,1.5,LeftLeg,-1,0,0,6,100,-60,0,6,-0.5,-0.5,0.39999999999999997,12,-90,7.5,0,6,-0.5,0,0,6,90,0,0,6,EyelessSmileHead_Handle,-0.00043487548828125,0,0,1.5,180,0,0,1.5,0.6000361442565918,0,0,1.5,0,0,0,1.5,0.0003204345703125,0,0,1.5,180,0,0,1.5,RightLeg,1,0,0,6,100,60,0,6,-0.5,-0.5,0.39999999999999997,12,90,7.5,0,6,-0.5,0,0,6,-90,0,0,6,DevAwardsAdurite_Handle,0,0,0,1.5,0,0,0,1.5,-0.25,0,0,1.5,0,0,0,1.5,0,0,0,1.5,0,0,0,1.5,Torso,0,0,0,6,-80,5,0.3333333333333333,12,-0.5,0.3,0.16666666666666666,12,-0,5,0.06666666666666667,6,0,0,0,6,180,0,0,6,LeftArm,-0.8,-0.1,0,6,180,-10,0.39999999999999997,12,0.5,0.1,0,6,-10,0,0,6,-0.2,0,0,6,90,0,0,6,RightArm,0.8,-0.1,0,6,180,-10,0.39999999999999997,12,0.5,-0.1,0,6,10,0,0,6,-0.2,0,0,6,-90,0,0,6
  2981.         end
  2982.     })
  2983.     addmode("l", {
  2984.         idle = function()
  2985.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.5707963267948966 + 0.04363323129985824 * sin((sine + 0.1) * 1), -0.17453292519943295 * sin((sine + 0.1) * 5), -3.141592653589793)),deltaTime)
  2986.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1 + 0.2 * sin(sine * 5), -0.2 + 0.2 * sin(sine * 5)),angles(2.181661564992912 - 0.8726646259971648 * sin(sine * 5), 1.9198621771937625 - 0.3490658503988659 * sin(sine * 5), -1.5707963267948966)),deltaTime)
  2987.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(0.7, 0.8, 0),angles(1.0471975511965976 + 0.03490658503988659 * sin(sine * 10), 2.0943951023931953 + 0.10471975511965978 * sin((sine + 0.1) * 5), 1.5707963267948966)),deltaTime)
  2988.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1 - 0.2 * sin(sine * 5), -0.2 - 0.2 * sin(sine * 5)),angles(2.181661564992912 + 0.8726646259971648 * sin(sine * 5), -1.9198621771937625 - 0.3490658503988659 * sin(sine * 5), 1.5707963267948966)),deltaTime)
  2989.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0, 0.15 + 0.4 * sin((sine - 0.5) * 10), 0),angles(-1.4835298641951802, 0.17453292519943295 * sin(sine * 5), -3.141592653589793)),deltaTime)
  2990.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-0.7, 0.5, -0.3),angles(1.7453292519943295, -0.8726646259971648, 1.5707963267948966)),deltaTime)
  2991.             --Head,0,0,0,5,-90,2.5,0.1,1,1,0,0,4,0,-10,0.1,5,0,0,0,4,-180,0,0,4,RightLeg,1,0,0,4,125,-50,0,5,-1,0.2,0,5,110,-20,0,5,-0.2,0.2,0,5,-90,0,0,4,RightArm,0.7,0,0,4,60,2,0,10,0.8,0,0,4,120,6,0.1,5,0,0,0,4,90,0,0,4,LeftLeg,-1,0,0,4,125,50,0,5,-1,-0.2,0,5,-110,-20,0,5,-0.2,-0.2,0,5,90,0,0,4,Torso,0,0,0,4,-85,0,0,4,0.15,0.4,-0.5,10,0,10,0,5,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
  2992.         end
  2993.     })
  2994. end)
  2995.  
  2996. btn("Immortality Lord", function()
  2997.     local backup=accessorylimbs
  2998.     accessorylimbs={
  2999.         {meshid="17269636541",textureid="",C0=cf_0,Name="Torso"},
  3000.         {meshid="17269753087",textureid="",C0=angles(0,3.14,0),Name="Head"},
  3001.         {meshid="17375312569",textureid="",C0=cf(1.50995803e-08,-1.07200003,-0.100000001,-1,0,1.50995803e-07,0,1,0,-1.50995803e-07,0,-1),Name="Head"},
  3002.         {meshid="17269487439",textureid="",C0=angles(0,0,1.5707963267948966),Name="Left Arm"},
  3003.         {meshid="17269487439",textureid="",C0=angles(0,0,1.5707963267948966),Name="Right Arm"},
  3004.         {meshid="17269487439",textureid="",C0=angles(0,0,1.5707963267948966),Name="Left Leg"},
  3005.         {meshid="17269487439",textureid="",C0=angles(0,0,1.5707963267948966),Name="Right Leg"},
  3006.  
  3007.         {meshid="111946216585470",textureid="",C0=cf_0,Name="Torso"},
  3008.         {meshid="92572400594624",textureid="",C0=angles(0,3.14,0),Name="Head"},
  3009.         {meshid="117649985156221",textureid="",C0=cf_0,Name="Left Arm"},
  3010.         {meshid="93749227415046",textureid="",C0=cf_0,Name="Right Arm"},
  3011.         {meshid="137156465227879",textureid="",C0=cf_0,Name="Left Leg"},
  3012.         {meshid="76010149115685",textureid="",C0=cf_0,Name="Right Leg"},
  3013.  
  3014.         {meshid="126825022897778",textureid="",C0=cf_0,Name="Torso"},
  3015.         {meshid="138744606849121",textureid="83207562332062",C0=angles(0,0,1.5707963267948966),Name="Left Arm"},
  3016.         {meshid="138744606849121",textureid="83207562332062",C0=angles(0,0,1.5707963267948966),Name="Right Arm"},
  3017.         {meshid="138744606849121",textureid="136752500636691",C0=angles(0,0,1.5707963267948966),Name="Left Leg"},
  3018.         {meshid="138744606849121",textureid="136752500636691",C0=angles(0,0,1.5707963267948966),Name="Right Leg"}
  3019.     }
  3020.     local t=reanimate()
  3021.     accessorylimbs=backup
  3022.     if type(t)~="table" then return end
  3023.     local getJoint=t.getJoint
  3024.     local RootJoint=getJoint("RootJoint")
  3025.     local RightShoulder=getJoint("Right Shoulder")
  3026.     local LeftShoulder=getJoint("Left Shoulder")
  3027.     local RightHip=getJoint("Right Hip")
  3028.     local LeftHip=getJoint("Left Hip")
  3029.     local Neck=getJoint("Neck")
  3030.     local getVel=t.getVel
  3031.     local setCfr=t.setCfr
  3032.     local getCamCF=t.getCamCF
  3033.     local cframes=t.cframes
  3034.     local joints=t.joints
  3035.     local getAccWeldFromMesh=t.getAccWeldFromMesh
  3036.     local setWalkSpeed=t.setWalkSpeed
  3037.     local fling=t.fling
  3038.     local rad=math.rad
  3039.  
  3040.     Neck.C1=cf(0,-1,0,-1,0,0,0,0,1,0,1,-0)
  3041.     RootJoint.C1=cf(0,0,0,-1,0,0,0,0,1,0,1,-0)
  3042.     RightShoulder.C1=cf(-1,1,0,0,0,1,0,1,-0,-1,0,0)
  3043.     LeftShoulder.C1=cf(1,1,0,0,0,-1,0,1,0,1,0,0)
  3044.     RightHip.C1=cf(1,2,0,0,0,1,0,1,-0,-1,0,0)
  3045.     LeftHip.C1=cf(-1,2,0,0,0,-1,0,1,0,1,0,0)
  3046.  
  3047.     setWalkSpeed(32)
  3048.     t.setJumpPower(0)
  3049.     t.setHipHeight(7)
  3050.     t.setGravity(math.huge)
  3051.  
  3052.     local torso=t.getPart("Torso")
  3053.     local rootpart=t.getPart("HumanoidRootPart")
  3054.  
  3055.     local leftWingPart={}
  3056.     cframes[leftWingPart]=cf_0
  3057.  
  3058.     local leftWingAccWeld=getAccWeldFromMesh("17269814619","")
  3059.     leftWingAccWeld.C0=angles(0,3.14,0)
  3060.     leftWingAccWeld.C1=cf_0
  3061.     leftWingAccWeld.Part1=leftWingPart
  3062.  
  3063.     local LeftWing={
  3064.         C0=cf(-.3,1,1)*angles(0,1.5707963267948966,0),
  3065.         C1=cf(2.2,2,1.5),
  3066.         Part0=torso,
  3067.         Part1=leftWingPart
  3068.     }
  3069.     tinsert(joints,LeftWing)
  3070.  
  3071.     local rightWingPart={}
  3072.     cframes[rightWingPart]=cf_0
  3073.  
  3074.     local rightWingAccWeld=getAccWeldFromMesh("17269824947","")
  3075.     rightWingAccWeld.C0=angles(0,3.14,0)
  3076.     rightWingAccWeld.C1=cf_0
  3077.     rightWingAccWeld.Part1=rightWingPart
  3078.  
  3079.     local RightWing={
  3080.         C0=cf(.3,1,1)*angles(0,1.5707963267948966,0),
  3081.         C1=cf(2.2,2,-1.5),
  3082.         Part0=torso,
  3083.         Part1=rightWingPart
  3084.     }
  3085.     tinsert(joints,RightWing)
  3086.  
  3087.     local swordpart={}
  3088.     cframes[swordpart]=cf_0
  3089.  
  3090.     local swordAccWeld0=getAccWeldFromMesh("17326555172","")
  3091.     swordAccWeld0.C0=cf(-0.0023765564,2.14191723,3.825109,-1,0,0,0,-0.519688249,-0.85435611,0,-0.854355931,0.519688308)
  3092.     swordAccWeld0.C1=cf_0
  3093.     swordAccWeld0.Part1=swordpart
  3094.     local swordAccWeld1=getAccWeldFromMesh("17326476901","")
  3095.     swordAccWeld1.C0=cf(-0.00237464905,-1.31204176,-3.18902349,-1,0,0,0,-0.519688249,-0.85435611,0,-0.854355931,0.519688308)
  3096.     swordAccWeld1.C1=cf_0
  3097.     swordAccWeld1.Part1=swordpart
  3098.  
  3099.     local Sword={
  3100.         C0=cf(0,-2,0)*angles(1.57,0,0),
  3101.         C1=cf(0,-6.3,0),
  3102.         Part0=t.getPart("Right Arm"),
  3103.         Part1=swordpart
  3104.     }
  3105.     tinsert(joints,Sword)
  3106.  
  3107.     local DefaultsNeckC0 = cf(0,2,0)*angles(-1.5707963267948966,0,3.141592653589793)
  3108.     local DefaultsRootJointC0 = angles(-1.5707963267948966,0,3.141592653589793)
  3109.     local DefaultsRightShoulderC0 = cf(-1,0,0)*angles(0,1.5707963267948966,0)
  3110.     local DefaultsLeftShoulderC0 = cf(1,0,0)*angles(0,-1.5707963267948966,0)
  3111.  
  3112.     local TimingSine=sine*60
  3113.     local attacking=false
  3114.     local animOverwrite=nil
  3115.     local neckSnap=false
  3116.  
  3117.     local Lerp1=function(a,b,c)
  3118.         return Lerp(a,b,min(c*6*deltaTime,1))
  3119.     end
  3120.  
  3121.     local v3_030=v3_010*3
  3122.     local flycf=nil
  3123.     local flypos=nil
  3124.     local charcf=cf_0
  3125.     local animations=function(onground)    
  3126.         TimingSine=sine*60
  3127.         local vel=getVel()
  3128.         local xzvel=vel*v3_101
  3129.         if flycf then
  3130.             if xzvel~=v3_0 then
  3131.                 local camrot=cfGet(getCamCF(),"Rotation")
  3132.                 local clv=cfGet(camrot,"LookVector")
  3133.                 local crv=cfGet(camrot,"RightVector")
  3134.                 local fw=v3Get(clv*v3_101,"Unit")*xzvel
  3135.                 fw=clv*(v3Get(fw,"X")+v3Get(fw,"Z"))
  3136.                 local rt=v3Get(crv*v3_101,"Unit")*xzvel
  3137.                 rt=crv*(v3Get(rt,"X")+v3Get(rt,"Z"))
  3138.                 flypos=flypos+v3Get(fw+rt,"Unit")*deltaTime*3.2
  3139.                 flycf=cfAdd(camrot,flypos)
  3140.                 charcf=cfAdd(flycf,cfGet(flycf,"UpVector")*3-v3_030)
  3141.             end
  3142.             cframes[rootpart]=flycf
  3143.             setCfr(charcf)
  3144.         elseif onground then
  3145.             charcf=cframes[rootpart]
  3146.         elseif cframes[rootpart].Y<charcf.Y then
  3147.             local newcf=cframes[rootpart]
  3148.             local lastY=cfGet(charcf,"Y")
  3149.             charcf=cfAdd(cfGet(newcf,"Rotation"),v3(cfGet(newcf,"X"),lastY+(cfGet(newcf,"Y")-lastY)*deltaTime*0.6,cfGet(newcf,"Z")))
  3150.             cframes[rootpart]=charcf
  3151.             setCfr(charcf)
  3152.         else
  3153.             charcf=cframes[rootpart]
  3154.         end
  3155.         if attacking then
  3156.             animOverwrite()
  3157.         elseif xzvel~=v3_0 then
  3158.             if neckSnap then
  3159.                 Neck.C0 = DefaultsNeckC0
  3160.                 neckSnap = false
  3161.             else
  3162.                 Neck.C0 = Lerp1(Neck.C0,DefaultsNeckC0,.25)
  3163.             end
  3164.             if mrandom(15) == 1 then
  3165.                 Neck.C0 = DefaultsNeckC0*angles(rad(mrandom(-20,20)),rad(mrandom(-20,20)),rad(mrandom(-20,20)))
  3166.                 neckSnap = true
  3167.             end
  3168.             if onground and not flycf then
  3169.                 RightShoulder.C0 = Lerp1(RightShoulder.C0,cf(3,1,0)*angles(-0.17453292519943295,0,0)*DefaultsRightShoulderC0,.25)
  3170.                 Sword.C0 = Lerp1(Sword.C0,cf(0,-2,0)*angles(rad(154.35-5.65*sin(TimingSine/25)),0,0),.25)
  3171.             else
  3172.                 RightShoulder.C0 = Lerp1(RightShoulder.C0,cf(3,1,0)*angles(rad(80+5*cos(TimingSine/25)),0,0.7853981633974483)*DefaultsRightShoulderC0,.25)
  3173.                 Sword.C0 = Lerp1(Sword.C0,cf(0,-0,-1)*angles(0,2.9670597283903604,-0.17453292519943295),.25)
  3174.             end
  3175.             RootJoint.C0 = Lerp1(RootJoint.C0,DefaultsRootJointC0*cf(0,0,-sin(TimingSine/25))*angles(0.3490658503988659,0,0),.25)
  3176.             LeftShoulder.C0 = Lerp1(LeftShoulder.C0,cf(-3,1,0)*angles(0.3490658503988659,0,rad(-10-10*cos(TimingSine/25)))*DefaultsLeftShoulderC0,.25)
  3177.             RightHip.C0 = Lerp1(RightHip.C0,cf(2,-2,0)*angles(-0.3490658503988659,1.3962634015954636,rad(10+10*cos(TimingSine/25))),.25)
  3178.             LeftHip.C0 = Lerp1(LeftHip.C0,cf(-2,-2,0)*angles(-0.17453292519943295,-1.3962634015954636,rad(-10-10*cos(TimingSine/25))),.25)
  3179.         else
  3180.             RootJoint.C0 = Lerp1(RootJoint.C0,DefaultsRootJointC0*cf(0,0,-sin(TimingSine/25))*angles(0.3490658503988659,0,0),.25)
  3181.             if neckSnap then
  3182.                 Neck.C0 = DefaultsNeckC0*angles(0.3490658503988659,rad(10*sin(TimingSine/50)),0)
  3183.                 neckSnap = false
  3184.             else
  3185.                 Neck.C0 = Lerp1(Neck.C0,DefaultsNeckC0*angles(0.3490658503988659,rad(10*sin(TimingSine/50)),0),.25)
  3186.             end
  3187.             if mrandom(15) == 1 then
  3188.                 Neck.C0 = DefaultsNeckC0*angles(rad(20+mrandom(-20,20)),rad((10*sin(TimingSine/50))+mrandom(-20,20)),rad(mrandom(-20,20)))
  3189.                 neckSnap = true
  3190.             end
  3191.             if onground and not flycf then
  3192.                 RightShoulder.C0 = Lerp1(RightShoulder.C0,cf(3,1,0)*angles(-0.17453292519943295,0,0)*DefaultsRightShoulderC0,.25)
  3193.                 Sword.C0 = Lerp1(Sword.C0,cf(0,-2,0)*angles(rad(154.35-5.65*sin(TimingSine/25)),0,0),.25)
  3194.             else
  3195.                 RightShoulder.C0 = Lerp1(RightShoulder.C0,cf(3,1,0)*angles(rad(80+5*cos(TimingSine/25)),0,0.7853981633974483)*DefaultsRightShoulderC0,.25)
  3196.                 Sword.C0 = Lerp1(Sword.C0,cf(0,0,-1)*angles(0,2.9670597283903604,-0.17453292519943295),.25)
  3197.             end
  3198.             LeftShoulder.C0 = Lerp1(LeftShoulder.C0,cf(-3,1,0)*angles(0.3490658503988659,0,rad(-10-10*cos(TimingSine/25)))*DefaultsLeftShoulderC0,.25)
  3199.             RightHip.C0 = Lerp1(RightHip.C0,cf(2,-2,0)*angles(0.17453292519943295,1.3962634015954636,rad(10+10*cos(TimingSine/25))),.25)
  3200.             LeftHip.C0 = Lerp1(LeftHip.C0,cf(-2,-2,0)*angles(0.3490658503988659,-1.3962634015954636,rad(-10-10*cos(TimingSine/25))),.25)
  3201.         end
  3202.         RightWing.C0 = Lerp1(RightWing.C0,cf(0.3,1,1)*angles(0,rad(105-25*cos(TimingSine/25)),0),.25)
  3203.         LeftWing.C0 = Lerp1(LeftWing.C0,cf(-0.3,1,1)*angles(0,rad(75+25*cos(TimingSine/25)),0),.25)
  3204.     end
  3205.  
  3206.     local onKeyPressed=function(key)
  3207.         if key=="f" then
  3208.             if flycf then
  3209.                 flycf=nil
  3210.                 charcf=cf(flypos)
  3211.                 setCfr(charcf)
  3212.             else
  3213.                 flypos=cfGet(cframes[rootpart],"Position")
  3214.                 flycf=cf(flypos)
  3215.                 charcf=flycf
  3216.             end
  3217.         elseif key=="z" then
  3218.             if attacking then return end
  3219.             attacking=true
  3220.             setWalkSpeed(0)
  3221.             animOverwrite=function()
  3222.                 RootJoint.C0 = Lerp1(RootJoint.C0,DefaultsRootJointC0*cf(0,0,-sin(TimingSine/25))*angles(0.08726646259971647,0,-0.3490658503988659),.25)
  3223.                 if neckSnap then
  3224.                     Neck.C0 = DefaultsNeckC0
  3225.                     neckSnap = false
  3226.                 else
  3227.                     Neck.C0 = Lerp1(Neck.C0,DefaultsNeckC0,.25)
  3228.                 end
  3229.                 if mrandom(15) == 1 then
  3230.                     Neck.C0 = DefaultsNeckC0*angles(rad(mrandom(-20,20)),rad(mrandom(-20,20)),rad(mrandom(-20,20)))
  3231.                     neckSnap = true
  3232.                 end
  3233.                 RightShoulder.C0 = Lerp1(RightShoulder.C0,cf(3,1,0)*angles(1.3962634015954636,0,0.8726646259971648)*DefaultsRightShoulderC0,.25)
  3234.                 Sword.C0 = Lerp1(Sword.C0,cf(-1,-1,0)*angles(3.141592653589793,-1.5707963267948966,0),.25)
  3235.                 LeftShoulder.C0 = Lerp1(LeftShoulder.C0,cf(-3,1,0)*angles(0.08726646259971647,0,rad(-10-10*cos(TimingSine/25)))*DefaultsLeftShoulderC0,.25)
  3236.                 RightHip.C0 = Lerp1(RightHip.C0,cf(2,-2,0)*angles(-0.3490658503988659,1.3962634015954636,rad(10+10*cos(TimingSine/25))),.25)
  3237.                 LeftHip.C0 = Lerp1(LeftHip.C0,cf(-2,-2,0)*angles(-0.17453292519943295,-1.3962634015954636,rad(-10-10*cos(TimingSine/25))),.25)
  3238.             end
  3239.             twait(0.25)
  3240.             local flingpos=cfGet(cfMul(cframes[rootpart],cf(0,0,-9)),"Position")
  3241.             for i,v in next,GetDescendants(ws) do
  3242.                 if IsA(v,"Humanoid") then
  3243.                     local p=v.Parent
  3244.                     p=gp(p,"HumanoidRootPart","BasePart") or FindFirstChildWhichIsA(p,"BasePart")
  3245.                     if p and (v3Get(insGet(p,"Position")-flingpos,"Magnitude")<9) then
  3246.                         fling(v)
  3247.                     end
  3248.                 end
  3249.             end
  3250.             animOverwrite=function()
  3251.                 RootJoint.C0 = Lerp1(RootJoint.C0,DefaultsRootJointC0*cf(0,0,-sin(TimingSine/25))*angles(0.08726646259971647,0,0.3490658503988659),.25)
  3252.                 if neckSnap then
  3253.                     Neck.C0 = DefaultsNeckC0
  3254.                     neckSnap = false
  3255.                 else
  3256.                     Neck.C0 = Lerp1(Neck.C0,DefaultsNeckC0,.25)
  3257.                 end
  3258.                 if mrandom(15) == 1 then
  3259.                     Neck.C0 = DefaultsNeckC0*angles(rad(mrandom(-20,20)),rad(mrandom(-20,20)),rad(mrandom(-20,20)))
  3260.                     neckSnap = true
  3261.                 end
  3262.                 RightShoulder.C0 = Lerp1(RightShoulder.C0,cf(2,1,-1)*angles(1.3962634015954636,0,-0.8726646259971648)*DefaultsRightShoulderC0,.25)
  3263.                 Sword.C0 = Lerp1(Sword.C0,cf(-1,-1,0)*angles(3.141592653589793,-1.5707963267948966,0),.25)
  3264.                 LeftShoulder.C0 = Lerp1(LeftShoulder.C0,cf(-3,1,0)*angles(0.08726646259971647,0,rad(-10-10*cos(TimingSine/25)))*DefaultsLeftShoulderC0,.25)
  3265.                 RightHip.C0 = Lerp1(RightHip.C0,cf(2,-2,0)*angles(-0.3490658503988659,1.3962634015954636,rad(10+10*cos(TimingSine/25))),.25)
  3266.                 LeftHip.C0 = Lerp1(LeftHip.C0,cf(-2,-2,0)*angles(-0.17453292519943295,-1.3962634015954636,rad(-10-10*cos(TimingSine/25))),.25)
  3267.             end
  3268.             twait(0.25)
  3269.             setWalkSpeed(32)
  3270.             attacking=false
  3271.         elseif key=="x" then
  3272.             attacking=true
  3273.             setWalkSpeed(0)
  3274.             local newpos=cfGet(insGet(mouse,"Hit"),"Position")+v3_010*10
  3275.             local newcf=cfl(newpos,newpos+cfGet(getCamCF(),"LookVector")*v3_101)
  3276.             animOverwrite=function()
  3277.                 RootJoint.C0 = Lerp1(RootJoint.C0,DefaultsRootJointC0*cf(0,0,-sin(TimingSine/25))*angles(0.3490658503988659,0,0),.25)
  3278.                 if neckSnap then
  3279.                     Neck.C0 = DefaultsNeckC0
  3280.                     neckSnap = false
  3281.                 else
  3282.                     Neck.C0 = Lerp1(Neck.C0,DefaultsNeckC0,.25)
  3283.                 end
  3284.                 if mrandom(15) == 1 then
  3285.                     Neck.C0 = DefaultsNeckC0*angles(rad(mrandom(-20,20)),rad(mrandom(-20,20)),rad(mrandom(-20,20)))
  3286.                     neckSnap = true
  3287.                 end
  3288.                 RightShoulder.C0 = Lerp1(RightShoulder.C0,cf(3,1,0)*angles(rad(80+5*cos(TimingSine/25)),0,0.7853981633974483)*DefaultsRightShoulderC0,.25)
  3289.                 Sword.C0 = Lerp1(Sword.C0,cf(0,-0,-1)*angles(0,2.9670597283903604,-0.17453292519943295),.25)
  3290.                 LeftShoulder.C0 = Lerp1(LeftShoulder.C0,cf(-3,1,0)*angles(0.3490658503988659,0,rad(-10-10*cos(TimingSine/25)))*DefaultsLeftShoulderC0,.25)
  3291.                 RightHip.C0 = Lerp1(RightHip.C0,cf(2,-2,0)*angles(-0.3490658503988659,1.3962634015954636,rad(10+10*cos(TimingSine/25))),.25)
  3292.                 LeftHip.C0 = Lerp1(LeftHip.C0,cf(-2,-2,0)*angles(-0.17453292519943295,-1.3962634015954636,rad(-10-10*cos(TimingSine/25))),.25)
  3293.             end
  3294.             twait(0.5)
  3295.             local animStart=sine
  3296.             animOverwrite=function()
  3297.                 RootJoint.C0 = Lerp1(RootJoint.C0,DefaultsRootJointC0*cf(0,0,-20*(.5+sine-animStart))*angles(0.3490658503988659,0,0),.25)
  3298.                 if neckSnap then
  3299.                     Neck.C0 = DefaultsNeckC0
  3300.                     neckSnap = false
  3301.                 else
  3302.                     Neck.C0 = Lerp1(Neck.C0,DefaultsNeckC0,.25)
  3303.                 end
  3304.                 if mrandom(15) == 1 then
  3305.                     Neck.C0 = DefaultsNeckC0*angles(rad(mrandom(-20,20)),rad(mrandom(-20,20)),rad(mrandom(-20,20)))
  3306.                     neckSnap = true
  3307.                 end
  3308.                 RightShoulder.C0 = Lerp1(RightShoulder.C0,cf(3,1,0)*angles(rad(80+5*cos(TimingSine/25)),0,0.7853981633974483)*DefaultsRightShoulderC0,.25)
  3309.                 Sword.C0 = Lerp1(Sword.C0,cf(0,-0,-1)*angles(0,2.9670597283903604,-0.17453292519943295),.25)
  3310.                 LeftShoulder.C0 = Lerp1(LeftShoulder.C0,cf(-3,1,0)*angles(0.3490658503988659,0,rad(-10-10*cos(TimingSine/25)))*DefaultsLeftShoulderC0,.25)
  3311.                 RightHip.C0 = Lerp1(RightHip.C0,cf(2,-2,0)*angles(-0.3490658503988659,1.3962634015954636,rad(10+10*cos(TimingSine/25))),.25)
  3312.                 LeftHip.C0 = Lerp1(LeftHip.C0,cf(-2,-2,0)*angles(-0.17453292519943295,-1.3962634015954636,rad(-10-10*cos(TimingSine/25))),.25)
  3313.             end
  3314.             twait(0.5)
  3315.             if flycf then
  3316.                 flycf=newcf
  3317.                 flypos=newpos
  3318.             end
  3319.             charcf=newcf
  3320.             setCfr(newcf)
  3321.  
  3322.             twait(0.5)
  3323.             animStart=sine
  3324.  
  3325.             animOverwrite=function()
  3326.                 RootJoint.C0 = Lerp1(RootJoint.C0,DefaultsRootJointC0*cf(0,0,(-sin(TimingSine/25))-(10-(sine-animStart)*20))*angles(0.3490658503988659,0,0),.25)
  3327.                 if neckSnap then
  3328.                     Neck.C0 = DefaultsNeckC0
  3329.                     neckSnap = false
  3330.                 else
  3331.                     Neck.C0 = Lerp1(Neck.C0,DefaultsNeckC0,.25)
  3332.                 end
  3333.                 if mrandom(15) == 1 then
  3334.                     Neck.C0 = DefaultsNeckC0*angles(rad(mrandom(-20,20)),rad(mrandom(-20,20)),rad(mrandom(-20,20)))
  3335.                     neckSnap = true
  3336.                 end
  3337.                 RightShoulder.C0 = Lerp1(RightShoulder.C0,cf(3,1,0)*angles(rad(80+5*cos(TimingSine/25)),0,0.7853981633974483)*DefaultsRightShoulderC0,.25)
  3338.                 Sword.C0 = Lerp1(Sword.C0,cf(0,-0,-1)*angles(0,2.9670597283903604,-0.17453292519943295),.25)
  3339.                 LeftShoulder.C0 = Lerp1(LeftShoulder.C0,cf(-3,1,0)*angles(0.3490658503988659,0,rad(-10-10*cos(TimingSine/25)))*DefaultsLeftShoulderC0,.25)
  3340.                 RightHip.C0 = Lerp1(RightHip.C0,cf(2,-2,0)*angles(-0.3490658503988659,1.3962634015954636,rad(10+10*cos(TimingSine/25))),.25)
  3341.                 LeftHip.C0 = Lerp1(LeftHip.C0,cf(-2,-2,0)*angles(-0.17453292519943295,-1.3962634015954636,rad(-10-10*cos(TimingSine/25))),.25)
  3342.             end
  3343.             twait(0.5)
  3344.             setWalkSpeed(32)
  3345.             attacking=false
  3346.         end
  3347.     end
  3348.  
  3349.     local animations1=function()
  3350.         animations(true)
  3351.     end
  3352.     local animations0=function()
  3353.         animations(false)
  3354.     end
  3355.     local lastmode="default"
  3356.     t.addmode("default",{
  3357.         modeEntered=function()
  3358.             onKeyPressed(lastmode)
  3359.             lastmode="default"
  3360.         end,
  3361.         idle=animations1,walk=animations1,jump=animations0,fall=animations0
  3362.     })
  3363.     t.addmode("z",{
  3364.         modeEntered=function()
  3365.             onKeyPressed("z")
  3366.             lastmode="z"
  3367.         end,
  3368.         idle=animations1,walk=animations1,jump=animations0,fall=animations0
  3369.     })
  3370.     t.addmode("x",{
  3371.         modeEntered=function()
  3372.             onKeyPressed("x")
  3373.             lastmode="x"
  3374.         end,
  3375.         idle=animations1,walk=animations1,jump=animations0,fall=animations0
  3376.     })
  3377.     t.addmode("f",{
  3378.         modeEntered=function()
  3379.             onKeyPressed("f")
  3380.             lastmode="f"
  3381.         end,
  3382.         idle=animations1,walk=animations1,jump=animations0,fall=animations0
  3383.     })
  3384. end)
  3385. lbl("(needs specific accessories)")
  3386.  
  3387. btn("goofy trolus (goofy)", function()
  3388.     local t=reanimate()
  3389.     if type(t)~="table" then return end
  3390.     local velbycfrvec=t.velbycfrvec
  3391.     local raycastlegs=t.raycastlegs
  3392.     local getJoint=t.getJoint
  3393.     local RootJoint=getJoint("RootJoint")
  3394.     local RightShoulder=getJoint("Right Shoulder")
  3395.     local LeftShoulder=getJoint("Left Shoulder")
  3396.     local RightHip=getJoint("Right Hip")
  3397.     local LeftHip=getJoint("Left Hip")
  3398.     local Neck=getJoint("Neck")
  3399.     t.addmode("default", {
  3400.         idle = function()
  3401.             local rY, lY = raycastlegs()
  3402.  
  3403.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 0.5, 0),angles(0.6981317007977318 * sin((sine + 0.5) * 4), 1.5707963267948966 - 0.3490658503988659 * sin(sine * 4), 0)),deltaTime)
  3404.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1, 0.5, 0),angles(0.6981317007977318 * sin((sine + 0.5) * 4), -1.5707963267948966 + 0.3490658503988659 * sin(sine * 4), 0)),deltaTime)
  3405.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1 + rY, 0),angles(1.5707963267948966 - 1.0471975511965976 * sin(sine * 4), 1.6580627893946132, -1.5707963267948966)),deltaTime)
  3406.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0, -0.2 + 0.2 * sin((sine + 1) * 8), 0),angles(-1.5707963267948966 + 0.6981317007977318 * sin(sine * 4), 0, 3.141592653589793)),deltaTime)
  3407.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1 + lY, 0),angles(1.5707963267948966 - 1.0471975511965976 * sin(sine * 4), -1.6580627893946132, 1.5707963267948966)),deltaTime)
  3408.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.5707963267948966 - 0.8726646259971648 * sin((sine + 0.25) * 4), 0, 3.141592653589793)),deltaTime)
  3409.             --RightArm,1,0,0,4,0,40,0.5,4,0.5,0,0,4,90,-20,0,4,0,0,0,4,0,0,0,4,LeftArm,-1,0,0,4,-0,40,0.5,4,0.5,0,0,4,-90,20,0,4,0,0,0,4,0,0,0,4,RightLeg,1,0,0,4,90,-60,0,4,-1,0,0,4,95,0,0,4,0,0,0,4,-90,0,0,4,Torso,0,0,0,4,-90,40,0,4,-0.2,0.2,1,8,-0,0,0,4,0,0,0,4,180,0,0,4,LeftLeg,-1,0,0,4,90,-60,0,4,-1,0,0,4,-95,0,0,4,0,0,0,4,90,0,0,4,Head,0,0,0,4,-90,-50,0.25,4,1,0,0,4,-0,0,0,4,0,0,0,4,180,0,0,4,CPlusPlusTextbook_Handle,8.658389560878277e-09,0,0,4,0,0,0,4,-0.25,0,0,4,0,0,0,4,-0.0002722442150115967,0,0,4,0,0,0,4
  3410.         end,
  3411.         walk = function()
  3412.             local fw, rt = velbycfrvec()
  3413.  
  3414.             Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.5707963267948966 + 0.5235987755982988 * sin((sine + 0.45) * 8), 0, 3.141592653589793)),deltaTime)
  3415.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 0.5, 0),angles(2.0943951023931953 - 1.7453292519943295 * sin((sine - 0.1) * 4), 1.9198621771937625, -1.5707963267948966)),deltaTime)
  3416.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(0, 0.25 + 0.5 * sin((sine - 0.125) * 8), 0),angles(-1.5707963267948966 + 0.17453292519943295 * sin(sine * 8), 0, 3.141592653589793)),deltaTime)
  3417.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1 - 1 * sin(sine * 4), 0),angles(1.5707963267948966 - 1.2217304763960306 * sin((sine - 0.15) * 4) * fw, -1.5707963267948966 - 0.6108652381980153 * sin((sine - 0.15) * 4) * rt, 1.5707963267948966)),deltaTime)
  3418.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1 + 1 * sin(sine * 4), 0),angles(1.5707963267948966 + 1.2217304763960306 * sin((sine - 0.15) * 4) * fw, 1.5707963267948966 + 0.6108652381980153 * sin((sine - 0.15) * 4) * rt, -1.5707963267948966)),deltaTime)
  3419.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1, 0.5, 0),angles(2.0943951023931953 + 1.7453292519943295 * sin((sine - 0.1) * 4), -1.7453292519943295, 1.5707963267948966)),deltaTime)
  3420.             --Head,0,0,0,4,-90,30,0.45,8,1,0,0,4,-0,0,0,4,0,0,0,4,180,0,0,4,CPlusPlusTextbook_Handle,8.658389560878277e-09,0,0,4,0,0,0,4,-0.25,0,0,4,0,0,0,4,-0.0002722442150115967,0,0,4,0,0,0,4,RightArm,1,0,0,4,120,-100,-0.1,4,0.5,0,0,4,110,0,0,4,0,0,0,4,-90,0,0,4,Torso,0,0,0,4,-90,10,0,8,0.25,0.5,-0.125,8,-0,0,0,4,0,0,0,4,180,0,0,4,LeftLeg,-1,0,0,4,90,-70,-0.15,4,-1,-1,0,4,-90,-35,-0.15,4,0,0,0,4,90,0,0,4,RightLeg,1,0,0,4,90,70,-0.15,4,-1,1,0,4,90,35,-0.15,4,0,0,0,4,-90,0,0,4,LeftArm,-1,0,0,4,120,100,-0.1,4,0.5,0,0,4,-100,0,0,4,0,0,0,4,90,0,0,4
  3421.         end
  3422.     })
  3423. end)
  3424.  
  3425. btn("good cop bad cop animations", function()
  3426.     local t=reanimate()
  3427.     if type(t)~="table" then return end
  3428.     local addmode=t.addmode
  3429.     local getJoint=t.getJoint
  3430.     local RootJoint=getJoint("RootJoint")
  3431.     local RightShoulder=getJoint("Right Shoulder")
  3432.     local LeftShoulder=getJoint("Left Shoulder")
  3433.     local RightHip=getJoint("Right Hip")
  3434.     local LeftHip=getJoint("Left Hip")
  3435.     local Neck=getJoint("Neck")
  3436.     local setWalkSpeed=t.setWalkSpeed
  3437.     local setJumpPower=t.setJumpPower
  3438.     setWalkSpeed(20)
  3439.     setJumpPower(50)
  3440.  
  3441.     local ROOTC0=angles(-1.5707963267948966,0,3.141592653589793)
  3442.     local NECKC0=cfMul(cf(0,1,0),angles(-1.5707963267948966,0,3.141592653589793))
  3443.     local RIGHTSHOULDERC0=cfMul(cf(-0.5,0,0),angles(0,1.5707963267948966,0))
  3444.     local LEFTSHOULDERC0=cfMul(cf(0.5,0,0),angles(0,-1.5707963267948966,0))
  3445.     local rad=math.rad
  3446.  
  3447.     --bruh yeah shackluster had a lot of math.rad(0) instead of just 0
  3448.     --and a lot of multyplying by angles(0, 0, 0)
  3449.     --and he had ArtificialHB
  3450.     --and he had a sine value increasing by 2/3 each frame
  3451.     --and a lot of variables with names saying other things
  3452.     --and he had both C0 and C1 lerps for the same animations
  3453.  
  3454.     local jumplerps=function()
  3455.         local Animation_Speed = 0.45 / deltaTime
  3456.         RootJoint.C1 = Lerp(RootJoint.C1,ROOTC0, 0.2 / Animation_Speed)
  3457.         Neck.C1 = Lerp(Neck.C1,cfMul(cf(0, -0.5, 0),angles(-1.5707963267948966, 0, 3.141592653589793)), 0.2 / Animation_Speed)
  3458.         RightHip.C1 = Lerp(RightHip.C1,cfMul(cf(0.5, 1, 0),angles(0, 1.5707963267948966, 0)), 0.7 / Animation_Speed)
  3459.         LeftHip.C1 = Lerp(LeftHip.C1,cfMul(cf(-0.5, 1, 0),angles(0, -1.5707963267948966, 0)), 0.7 / Animation_Speed)
  3460.  
  3461.         RootJoint.C0 = Lerp(RootJoint.C0,ROOTC0, 0.2 / Animation_Speed)
  3462.         Neck.C0 = Lerp(Neck.C0,cfMul(NECKC0,angles(-0.3490658503988659, 0, 0)), 0.2 / Animation_Speed)
  3463.         RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cfMul(cf(1.5, 0.5, 0),angles(-0.6981317007977318, 0, 0.3490658503988659)), RIGHTSHOULDERC0), 0.2 / Animation_Speed)
  3464.         LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cfMul(cf(-1.5, 0.5, 0),angles(-0.6981317007977318, 0, -0.3490658503988659)), LEFTSHOULDERC0), 0.2 / Animation_Speed)
  3465.         RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1, -0.3),angles(0, 1.5707963267948966, 0),angles(-0.08726646259971647, 0, -0.3490658503988659)), 0.2 / Animation_Speed)
  3466.         LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1, -0.3),angles(0, -1.5707963267948966, 0),angles(-0.08726646259971647, 0, 0.3490658503988659)), 0.2 / Animation_Speed) 
  3467.     end
  3468.     local falllerps=function()
  3469.         local Animation_Speed = 0.45 / deltaTime
  3470.         RootJoint.C1 = Lerp(RootJoint.C1,ROOTC0, 0.2 / Animation_Speed)
  3471.         Neck.C1 = Lerp(Neck.C1,cfMul(cf(0, -0.5, 0),angles(-1.5707963267948966, 0, 3.141592653589793)), 0.2 / Animation_Speed)
  3472.         RightHip.C1 = Lerp(RightHip.C1,cfMul(cf(0.5, 1, 0),angles(0, 1.5707963267948966, 0)), 0.7 / Animation_Speed)
  3473.         LeftHip.C1 = Lerp(LeftHip.C1,cfMul(cf(-0.5, 1, 0),angles(0, -1.5707963267948966, 0)), 0.7 / Animation_Speed)
  3474.  
  3475.         RootJoint.C0 = Lerp(RootJoint.C0,ROOTC0, 0.2 / Animation_Speed)
  3476.         Neck.C0 = Lerp(Neck.C0,cfMul(NECKC0,angles(0.3490658503988659, 0, 0)), 0.2 / Animation_Speed)
  3477.         RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cfMul(cf(1.5, 0.5, 0),angles(0, 0, 1.0471975511965976)), RIGHTSHOULDERC0), 0.2 / Animation_Speed)
  3478.         LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cfMul(cf(-1.5, 0.5, 0),angles(0, 0, -1.0471975511965976)), LEFTSHOULDERC0), 0.2 / Animation_Speed)
  3479.         RightHip.C0 = Lerp(RightHip.C0,cfMul(cfMul(cf(1, -1, 0),angles(0, 1.5707963267948966, 0)),angles(0, 0, 0.3490658503988659)), 0.2 / Animation_Speed)
  3480.         LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cfMul(cf(-1, -1, 0),angles(0, -1.5707963267948966, 0)),angles(0, 0, 0.17453292519943295)), 0.2 / Animation_Speed)
  3481.     end
  3482.  
  3483.     local idleOverwrite=nil
  3484.  
  3485.     addmode("default",{ --mode 1
  3486.         modeLeft=function() --enter mode 0
  3487.             setWalkSpeed(0)
  3488.             setJumpPower(0)
  3489.             idleOverwrite=function()
  3490.                 local sine = sine * 40
  3491.                 local Animation_Speed = 0.45 / deltaTime
  3492.                 RootJoint.C1 = Lerp(RootJoint.C1,ROOTC0, 0.2 / Animation_Speed)
  3493.                 Neck.C1 = Lerp(Neck.C1,cfMul(cf(0, -0.5, 0),angles(-1.5707963267948966, 0, 3.141592653589793)), 0.2 / Animation_Speed)
  3494.                 RightHip.C1 = Lerp(RightHip.C1,cfMul(cf(0.5, 1, 0),angles(0, 1.5707963267948966, 0)), 0.7 / Animation_Speed)
  3495.                 LeftHip.C1 = Lerp(LeftHip.C1,cfMul(cf(-0.5, 1, 0),angles(0, -1.5707963267948966, 0)), 0.7 / Animation_Speed)
  3496.  
  3497.                 RootJoint.C0 = Lerp(RootJoint.C0,ROOTC0 * cf(0, 0, 0.05 * cos(sine / 12)), 1 / Animation_Speed)
  3498.                 Neck.C0 = Lerp(Neck.C0, NECKC0, 1 / Animation_Speed)
  3499.                 RightShoulder.C0 = Lerp(RightShoulder.C0, cf(1.5, 0.5, 0) * angles(0, 0, 0.4363323129985824) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3500.                 LeftShoulder.C0 = Lerp(LeftShoulder.C0, cf(-1.5, 0.5, 0) * angles(0, 0, -0.4363323129985824) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3501.                 RightHip.C0 = Lerp(RightHip.C0, cf(1, -1 - 0.05 * cos(sine / 12), -0.01) * angles(0, 1.4486232791552935, 0), 1 / Animation_Speed)
  3502.                 LeftHip.C0 = Lerp(LeftHip.C0, cf(-1, -1 - 0.05 * cos(sine / 12), -0.01) * angles(0, -1.4486232791552935, 0), 1 / Animation_Speed)
  3503.             end
  3504.             twait(0.15)
  3505.             idleOverwrite=function()
  3506.                 local sine = sine * 40
  3507.                 local Animation_Speed = 0.45 / deltaTime
  3508.                 RootJoint.C1 = Lerp(RootJoint.C1,ROOTC0, 0.2 / Animation_Speed)
  3509.                 Neck.C1 = Lerp(Neck.C1,cfMul(cf(0, -0.5, 0),angles(-1.5707963267948966, 0, 3.141592653589793)), 0.2 / Animation_Speed)
  3510.                 RightHip.C1 = Lerp(RightHip.C1,cfMul(cf(0.5, 1, 0),angles(0, 1.5707963267948966, 0)), 0.7 / Animation_Speed)
  3511.                 LeftHip.C1 = Lerp(LeftHip.C1,cfMul(cf(-0.5, 1, 0),angles(0, -1.5707963267948966, 0)), 0.7 / Animation_Speed)
  3512.  
  3513.                 RootJoint.C0 = Lerp(RootJoint.C0,ROOTC0 * cf(0, 0, 0.05 * cos(sine / 12)), 1 / Animation_Speed)
  3514.                 Neck.C0 = Lerp(Neck.C0, NECKC0 * angles(0.08726646259971647, 0, 0), 1 / Animation_Speed)
  3515.                 RightShoulder.C0 = Lerp(RightShoulder.C0, cf(1.25, 0.5, -0.5) * angles(1.7453292519943295, 0, -1.2217304763960306) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3516.                 LeftShoulder.C0 = Lerp(LeftShoulder.C0, cf(-1.25, 0.35, -0.35) * angles(1.2217304763960306, 0, 1.3962634015954636) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3517.                 RightHip.C0 = Lerp(RightHip.C0, cf(1, -1 - 0.05 * cos(sine / 12), -0.01) * angles(0, 1.4486232791552935, 0), 1 / Animation_Speed)
  3518.                 LeftHip.C0 = Lerp(LeftHip.C0, cf(-1, -1 - 0.05 * cos(sine / 12), -0.01) * angles(0, -1.4486232791552935, 0), 1 / Animation_Speed)
  3519.             end
  3520.             twait(0.5)
  3521.             --CreateSound(363808674, Torso, 6, 1, false)
  3522.             idleOverwrite=function()
  3523.                 local sine = sine * 40
  3524.                 local Animation_Speed = 0.45 / deltaTime
  3525.                 RootJoint.C1 = Lerp(RootJoint.C1,ROOTC0, 0.2 / Animation_Speed)
  3526.                 Neck.C1 = Lerp(Neck.C1,cfMul(cf(0, -0.5, 0),angles(-1.5707963267948966, 0, 3.141592653589793)), 0.2 / Animation_Speed)
  3527.                 RightHip.C1 = Lerp(RightHip.C1,cfMul(cf(0.5, 1, 0),angles(0, 1.5707963267948966, 0)), 0.7 / Animation_Speed)
  3528.                 LeftHip.C1 = Lerp(LeftHip.C1,cfMul(cf(-0.5, 1, 0),angles(0, -1.5707963267948966, 0)), 0.7 / Animation_Speed)
  3529.  
  3530.                 RootJoint.C0 = Lerp(RootJoint.C0,ROOTC0 * cf(0, 0, 0.05 * cos(sine / 12)), 1 / Animation_Speed)
  3531.                 Neck.C0 = Lerp(Neck.C0, NECKC0 * angles(0.08726646259971647, 0.4363323129985824, 0), 1 / Animation_Speed)
  3532.                 RightShoulder.C0 = Lerp(RightShoulder.C0, cf(1.25, 0.5, -0.5) * angles(1.7453292519943295, 0, -0.8726646259971648) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3533.                 LeftShoulder.C0 = Lerp(LeftShoulder.C0, cf(-1.25, 0.35, -0.35) * angles(1.2217304763960306, 0, 1.0471975511965976) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3534.                 RightHip.C0 = Lerp(RightHip.C0, cf(1, -1 - 0.05 * cos(sine / 12), -0.01) * angles(0, 1.4486232791552935, 0), 1 / Animation_Speed)
  3535.                 LeftHip.C0 = Lerp(LeftHip.C0, cf(-1, -1 - 0.05 * cos(sine / 12), -0.01) * angles(0, -1.4486232791552935, 0), 1 / Animation_Speed)
  3536.             end
  3537.             twait(0.3)
  3538.             --CreateSound(363808674, Torso, 6, 1, false)
  3539.             idleOverwrite=function()
  3540.                 local sine = sine * 40
  3541.                 local Animation_Speed = 0.45 / deltaTime
  3542.                 RootJoint.C1 = Lerp(RootJoint.C1,ROOTC0, 0.2 / Animation_Speed)
  3543.                 Neck.C1 = Lerp(Neck.C1,cfMul(cf(0, -0.5, 0),angles(-1.5707963267948966, 0, 3.141592653589793)), 0.2 / Animation_Speed)
  3544.                 RightHip.C1 = Lerp(RightHip.C1,cfMul(cf(0.5, 1, 0),angles(0, 1.5707963267948966, 0)), 0.7 / Animation_Speed)
  3545.                 LeftHip.C1 = Lerp(LeftHip.C1,cfMul(cf(-0.5, 1, 0),angles(0, -1.5707963267948966, 0)), 0.7 / Animation_Speed)
  3546.  
  3547.                 RootJoint.C0 = Lerp(RootJoint.C0,ROOTC0 * cf(0, 0, 0.05 * cos(sine / 12)), 1 / Animation_Speed)
  3548.                 Neck.C0 = Lerp(Neck.C0, NECKC0 * angles(0.08726646259971647, -0.4363323129985824, 0), 1 / Animation_Speed)
  3549.                 RightShoulder.C0 = Lerp(RightShoulder.C0, cf(1.25, 0.5, -0.5) * angles(1.7453292519943295, 0, -1.5707963267948966) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3550.                 LeftShoulder.C0 = Lerp(LeftShoulder.C0, cf(-1.25, 0.35, -0.35) * angles(1.2217304763960306, 0, 1.5707963267948966) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3551.                 RightHip.C0 = Lerp(RightHip.C0, cf(1, -1 - 0.05 * cos(sine / 12), -0.01) * angles(0, 1.4486232791552935, 0), 1 / Animation_Speed)
  3552.                 LeftHip.C0 = Lerp(LeftHip.C0, cf(-1, -1 - 0.05 * cos(sine / 12), -0.01) * angles(0, -1.4486232791552935, 0), 1 / Animation_Speed)
  3553.             end
  3554.             twait(0.3)
  3555.             idleOverwrite=nil
  3556.             setWalkSpeed(20)
  3557.             setJumpPower(50)
  3558.         end,
  3559.         idle = function()
  3560.             if idleOverwrite then
  3561.                 return idleOverwrite()
  3562.             end
  3563.  
  3564.             local Animation_Speed = 0.45 / deltaTime
  3565.             local sine = sine * 40
  3566.  
  3567.             RootJoint.C1 = Lerp(RootJoint.C1,ROOTC0, 0.2 / Animation_Speed)
  3568.             Neck.C1 = Lerp(Neck.C1,cfMul(cf(0, -0.5, 0),angles(-1.5707963267948966, 0, 3.141592653589793)), 0.2 / Animation_Speed)
  3569.             RightHip.C1 = Lerp(RightHip.C1,cfMul(cf(0.5, 1, 0),angles(0, 1.5707963267948966, 0)), 0.7 / Animation_Speed)
  3570.             LeftHip.C1 = Lerp(LeftHip.C1,cfMul(cf(-0.5, 1, 0),angles(0, -1.5707963267948966, 0)), 0.7 / Animation_Speed)
  3571.  
  3572.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(ROOTC0, cf(0.05 * cos(sine / 12), 0, 0.05 * sin(sine / 12))), 0.15 / Animation_Speed)
  3573.             Neck.C0 = Lerp(Neck.C0,cfMul(NECKC0, angles(rad(15 - 2.5 * sin(sine / 12)), 0, -0.4363323129985824)), 1 / Animation_Speed)
  3574.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cfMul(cf(1.25, 0.5, 0.3),angles(-0.7853981633974483, 0, -0.7853981633974483)), RIGHTSHOULDERC0), 1 / Animation_Speed)
  3575.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cfMul(cf(-1.25, 0.5, 0.3),angles(-0.6981317007977318, 0, 0.7853981633974483)), LEFTSHOULDERC0), 1 / Animation_Speed)
  3576.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cfMul(cf(1 + 0.05 * cos(sine / 12), -1 - 0.05 * sin(sine / 12), -0.01),angles(0, 1.4835298641951802, 0)),angles(-0.017453292519943295, 0, 0)), 0.15 / Animation_Speed)
  3577.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cfMul(cf(-1 + 0.05 * cos(sine / 12), -1 - 0.05 * sin(sine / 12), -0.01),angles(0, -1.4835298641951802, 0)),angles(-0.017453292519943295, 0, 0)), 0.15 / Animation_Speed)
  3578.         end,
  3579.         walk = function()
  3580.             local Animation_Speed = 0.45 / deltaTime
  3581.             local sine = sine * 40
  3582.             RootJoint.C1 = Lerp(RootJoint.C1,cfMul(ROOTC0, cf(0, 0, 0.05 * cos(sine / (2.4)))), 2 * 1.25 / Animation_Speed)
  3583.             Neck.C1 = Lerp(Neck.C1,cfMul(cf(0, -0.5, 0),angles(-1.5707963267948966, 0, 3.141592653589793)), 0.2 * 1.25 / Animation_Speed)
  3584.             RightHip.C1 = Lerp(RightHip.C1,cfMul(cfMul(cf(0.5, 0.875 - 0.125 * sin(sine / 4.8) - 0.15 * cos(sine / 2.4), 0),angles(0, 1.5707963267948966, 0)),angles(0, 0, rad(35 * cos(sine / 4.8)))), 0.6 / Animation_Speed)
  3585.             LeftHip.C1 = Lerp(LeftHip.C1,cfMul(cfMul(cf(-0.5, 0.875 + 0.125 * sin(sine / 4.8) - 0.15 * cos(sine / 2.4), 0),angles(0, -1.5707963267948966, 0)),angles(0, 0, rad(35 * cos(sine / 4.8)))), 0.6 / Animation_Speed)
  3586.  
  3587.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(ROOTC0, cf(0, 0, -0.05)), 0.15 / Animation_Speed)
  3588.             Neck.C0 = Lerp(Neck.C0,cfMul(NECKC0,angles(0.08726646259971647, 0, 0)), 0.15 / Animation_Speed)
  3589.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cfMul(cf(1.25, 0.5 + 0.05 * sin(sine / (2.4)), 0.3),angles(-0.7853981633974483, 0, -0.7853981633974483)), RIGHTSHOULDERC0), 1 / Animation_Speed)
  3590.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cfMul(cf(-1.25, 0.5 + 0.05 * sin(sine / (2.4)), 0.3),angles(-0.6981317007977318, 0, 0.7853981633974483)), LEFTSHOULDERC0), 1 / Animation_Speed)
  3591.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cfMul(cf(1, -1, 0),angles(0, 1.3962634015954636, 0)),angles(0, 0, -0.08726646259971647)), 2 / Animation_Speed)
  3592.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cfMul(cf(-1, -1, 0),angles(0, -1.3962634015954636, 0)),angles(0, 0, 0.08726646259971647)), 2 / Animation_Speed)
  3593.         end,
  3594.         jump = jumplerps,
  3595.         fall = falllerps
  3596.     })
  3597.  
  3598.     addmode("f",{ --mode 0
  3599.         modeLeft=function() --enter mode 1
  3600.             setWalkSpeed(0)
  3601.             setJumpPower(0)
  3602.             --CreateSound(147722227, Torso, 4, 1.3, false)
  3603.             idleOverwrite=function()
  3604.                 local sine = sine * 40
  3605.                 local Animation_Speed = 0.45 / deltaTime
  3606.                 RootJoint.C1 = Lerp(RootJoint.C1,ROOTC0, 0.2 / Animation_Speed)
  3607.                 Neck.C1 = Lerp(Neck.C1,cfMul(cf(0, -0.5, 0),angles(-1.5707963267948966, 0, 3.141592653589793)), 0.2 / Animation_Speed)
  3608.                 RightHip.C1 = Lerp(RightHip.C1,cfMul(cf(0.5, 1, 0),angles(0, 1.5707963267948966, 0)), 0.7 / Animation_Speed)
  3609.                 LeftHip.C1 = Lerp(LeftHip.C1,cfMul(cf(-0.5, 1, 0),angles(0, -1.5707963267948966, 0)), 0.7 / Animation_Speed)
  3610.  
  3611.                 RootJoint.C0 = Lerp(RootJoint.C0,ROOTC0 * cf(0, 0, 0.05 * cos(sine / 12)), 1 / Animation_Speed)
  3612.                 Neck.C0 = Lerp(Neck.C0, NECKC0 * angles(0.6108652381980153, 0, 0), 1 / Animation_Speed)
  3613.                 RightShoulder.C0 = Lerp(RightShoulder.C0, cf(1.5, 0.5, 0) * angles(0, 0, 0.4363323129985824) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3614.                 LeftShoulder.C0 = Lerp(LeftShoulder.C0, cf(-1.5, 0.5, 0) * angles(0, 0, -0.4363323129985824) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3615.                 RightHip.C0 = Lerp(RightHip.C0, cf(1, -1 - 0.05 * cos(sine / 12), -0.01) * angles(0, 1.4486232791552935, 0), 1 / Animation_Speed)
  3616.                 LeftHip.C0 = Lerp(LeftHip.C0, cf(-1, -1 - 0.05 * cos(sine / 12), -0.01) * angles(0, -1.4486232791552935, 0), 1 / Animation_Speed)
  3617.             end
  3618.             twait(0.15)
  3619.             idleOverwrite=nil
  3620.             setWalkSpeed(20)
  3621.             setJumpPower(50)
  3622.         end,
  3623.         idle = function()
  3624.             if idleOverwrite then
  3625.                 return idleOverwrite()
  3626.             end
  3627.  
  3628.             local Animation_Speed = 0.45 / deltaTime
  3629.             local sine = sine * 40
  3630.  
  3631.             RootJoint.C1 = Lerp(RootJoint.C1,ROOTC0, 0.2 / Animation_Speed)
  3632.             Neck.C1 = Lerp(Neck.C1,cfMul(cf(0, -0.5, 0),angles(-1.5707963267948966, 0, 3.141592653589793)), 0.2 / Animation_Speed)
  3633.             RightHip.C1 = Lerp(RightHip.C1,cfMul(cf(0.5, 1, 0),angles(0, 1.5707963267948966, 0)), 0.7 / Animation_Speed)
  3634.             LeftHip.C1 = Lerp(LeftHip.C1,cfMul(cf(-0.5, 1, 0),angles(0, -1.5707963267948966, 0)), 0.7 / Animation_Speed)
  3635.  
  3636.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(ROOTC0, cf(0, 0, 0.05 * cos(sine / 12))), 1 / Animation_Speed)
  3637.             Neck.C0 = Lerp(Neck.C0,cfMul(NECKC0,angles(rad(-5 - 2.5 * cos(sine / 12)), 0, 0.4363323129985824)), 1 / Animation_Speed)
  3638.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cfMul(cf(0.9, 0.5 + 0.05 * sin(sine / 12), -0.5),angles(1.7453292519943295, 0, -1.2217304763960306)), RIGHTSHOULDERC0), 1 / Animation_Speed)
  3639.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cfMul(cf(-0.9, 0.25 + 0.05 * sin(sine / 12), -0.35),angles(1.2217304763960306, 0, 1.3962634015954636)), LEFTSHOULDERC0), 1 / Animation_Speed)
  3640.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1 - 0.05 * cos(sine / 12), -0.01),angles(0, 1.3962634015954636, 0)), 1 / Animation_Speed)
  3641.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1 - 0.05 * cos(sine / 12), -0.01),angles(0, -1.3962634015954636, 0)), 1 / Animation_Speed)
  3642.         end,
  3643.         walk = function()
  3644.             local Animation_Speed = 0.45 / deltaTime
  3645.             local sine = sine * 40
  3646.             RootJoint.C1 = Lerp(RootJoint.C1,cfMul(ROOTC0, cf(0, 0, 0.05 * cos(sine / (2.4)))), 2 * 1.25 / Animation_Speed)
  3647.             Neck.C1 = Lerp(Neck.C1,cfMul(cf(0, -0.5, 0),angles(-1.5707963267948966, 0, 3.141592653589793)), 0.2 * 1.25 / Animation_Speed)
  3648.             RightHip.C1 = Lerp(RightHip.C1,cfMul(cfMul(cf(0.5, 0.875 - 0.125 * sin(sine / 4.8) - 0.15 * cos(sine / 2.4), 0),angles(0, 1.5707963267948966, 0)),angles(0, 0, rad(35 * cos(sine / 4.8)))), 0.6 / Animation_Speed)
  3649.             LeftHip.C1 = Lerp(LeftHip.C1,cfMul(cfMul(cf(-0.5, 0.875 + 0.125 * sin(sine / 4.8) - 0.15 * cos(sine / 2.4), 0),angles(0, -1.5707963267948966, 0)),angles(0, 0, rad(35 * cos(sine / 4.8)))), 0.6 / Animation_Speed)
  3650.  
  3651.             RootJoint.C0 = Lerp(RootJoint.C0,cfMul(ROOTC0, cf(0, 0, -0.05)), 0.15 / Animation_Speed)
  3652.             Neck.C0 = Lerp(Neck.C0,cfMul(NECKC0,angles(0.08726646259971647, 0, 0)), 0.15 / Animation_Speed)
  3653.             RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cfMul(cf(0.9, 0.5 + 0.05 * sin(sine / (2.4)), -0.5),angles(1.7453292519943295, 0, -1.2217304763960306)), RIGHTSHOULDERC0), 1 / Animation_Speed)
  3654.             LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cfMul(cf(-0.9, 0.25 + 0.05 * sin(sine / (2.4)), -0.35),angles(1.2217304763960306, 0, 1.3962634015954636)), LEFTSHOULDERC0), 1 / Animation_Speed)
  3655.             RightHip.C0 = Lerp(RightHip.C0,cfMul(cfMul(cf(1, -1, 0),angles(0, 1.3962634015954636, 0)),angles(0, 0, -0.08726646259971647)), 2 / Animation_Speed)
  3656.             LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cfMul(cf(-1, -1, 0),angles(0, -1.3962634015954636, 0)),angles(0, 0, 0.08726646259971647)), 2 / Animation_Speed)
  3657.         end,
  3658.         jump = jumplerps,
  3659.         fall = falllerps
  3660.     })
  3661. end)
  3662. lbl("original by shackluster")
  3663. lbl("the classics never die")
  3664.  
  3665. btn("metamorphosis vibe", function()
  3666.     local t=reanimate()
  3667.     if type(t)~="table" then return end
  3668.     local addmode=t.addmode
  3669.     local getJoint=t.getJoint
  3670.     local velbycfrvec=t.velbycfrvec
  3671.     local RootJoint=getJoint("RootJoint")
  3672.     local RightShoulder=getJoint("Right Shoulder")
  3673.     local LeftShoulder=getJoint("Left Shoulder")
  3674.     local RightHip=getJoint("Right Hip")
  3675.     local LeftHip=getJoint("Left Hip")
  3676.     local Neck=getJoint("Neck")
  3677.     t.setWalkSpeed(4.5)
  3678.  
  3679.     addmode("default",{
  3680.         idle=function()
  3681.             Neck.C0=Lerp(Neck.C0,cfMul(cf(0,1,0),angles(-1.7453292519943295-0.08726646259971647*sin(sine*8),-0.12217304763960307*sin((sine+0.2)*4),2.8797932657906435+0.2007128639793479*sin((sine+0.15)*4))),deltaTime)
  3682.             RightHip.C0=Lerp(RightHip.C0,cfMul(cf(1,-1+0.1*sin(sine*4),0),angles(1.5707963267948966,1.5707963267948966+0.17453292519943295*sin(sine*4),-1.5707963267948966)),deltaTime)
  3683.             RightShoulder.C0=Lerp(RightShoulder.C0,cfMul(cf(1,0.3,0),angles(2.530727415391778+0.20943951023931956*sin((sine+0.4)*8),1.5707963267948966-0.4363323129985824*sin((sine+0.2)*4),-1.5707963267948966)),deltaTime)
  3684.             LeftShoulder.C0=Lerp(LeftShoulder.C0,cfMul(cf(-1,0.5,0),angles(1.0471975511965976,-1.2217304763960306+0.08726646259971647*sin((sine+0.2)*4),1.5707963267948966)),deltaTime)
  3685.             LeftHip.C0=Lerp(LeftHip.C0,cfMul(cf(-1,-1-0.1*sin(sine*4),0),angles(1.5707963267948966,-1.5707963267948966+0.17453292519943295*sin(sine*4),1.5707963267948966)),deltaTime)
  3686.             RootJoint.C0=Lerp(RootJoint.C0,cfMul(cf(-0.1 * sin(sine*4),0,0),angles(-1.5707963267948966,0.08726646259971647*sin(sine*4),3.141592653589793)),deltaTime)
  3687.             --MW_animatorProgressSave: 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,Bandana_Handle,3.9362930692732334e-09,0,0,4,0,0,0,4,0.3000001907348633,0,0,4,0,0,0,4,-0.6002722978591919,0,0,4,0,0,0,4,Head,0,0,0,4,-100,-5,0,8,1,0,0,4,-0,-7,0.2,4,0,0,0,4,165,11.5,0.15,4,RightLeg,1,0,0,4,90,0,0,4,-1,0.1,0,4,90,10,0,4,0,0,0,4,-90,0,0,4,RightArm,1,0,0,4,145,12,0.4,8,0.3,0,0,4,90,-25,0.2,4,0,0,0,4,-90,0,0,4,LeftArm,-1,0,0,4,60,0,0,4,0.5,0,0,4,-70,5,0.2,4,0,0,0,4,90,0,0,4,LeftLeg,-1,0,0,4,90,0,0,4,-1,-0.1,0,4,-90,10,0,4,0,0,0,4,90,0,0,4,Torso,0,-0.1,0,4,-90,0,0,4,0,0,0,4,-0,5,0,4,0,0,0,4,180,0,0,4
  3688.         end,
  3689.         walk=function()
  3690.             local fw,rt=velbycfrvec()
  3691.  
  3692.             Neck.C0=Lerp(Neck.C0,cfMul(cf(0,1,0),angles(-1.5707963267948966+0.08726646259971647*sin((sine-0.1)*8),0.3490658503988659*sin((sine-0.07)*4),3.141592653589793-0.4363323129985824*sin((sine-0.4)*4))),deltaTime)
  3693.             RightHip.C0=Lerp(RightHip.C0,cfMul(cf(1,-1+0.3*sin((sine + 0.3)*4),0),angles(1.5707963267948966,1.5707963267948966+0.6981317007977318*sin(sine*4)*rt,-1.5707963267948966+0.6981317007977318*sin(sine*4)*fw)),deltaTime)
  3694.             RightShoulder.C0=Lerp(RightShoulder.C0,cfMul(cf(1,0.5,0),angles(-0.5235987755982988*sin((sine+0.2)*4),1.5707963267948966-0.3490658503988659*sin(sine*4),0)),deltaTime)
  3695.             LeftShoulder.C0=Lerp(LeftShoulder.C0,cfMul(cf(-1,0.5,0),angles(0.5235987755982988*sin((sine+0.2)*4),-1.5707963267948966-0.3490658503988659*sin(sine*4),0)),deltaTime)
  3696.             LeftHip.C0=Lerp(LeftHip.C0,cfMul(cf(-1,-1-0.3*sin((sine + 0.3)*4),0),angles(1.5707963267948966,-1.5707963267948966-0.6981317007977318*sin(sine*4)*rt,1.5707963267948966+0.6981317007977318*sin(sine*4)*fw)),deltaTime)
  3697.             RootJoint.C0=Lerp(RootJoint.C0,cfMul(cf(0,0.05+0.2*sin((sine + 0.15)*8),0),angles(-1.5707963267948966,0,3.141592653589793)),deltaTime)
  3698.             --MW_animatorProgressSave: 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,Bandana_Handle,3.9362930692732334e-09,0,0,4,0,0,0,4,0.3000001907348633,0,0,4,0,0,0,4,-0.6002722978591919,0,0,4,0,0,0,4,Head,0,0,0,4,-90,5,-0.1,8,1,0,0,4,-0,20,-0.07,4,0,0,0,4,180,-25,-0.4,4,RightLeg,1,0,0,4,90,0,0,4,-1,0.3,0.3,4,90,40,0,4,0,0,0,4,-90,40,0,4,RightArm,1,0,0,4,0,-30,0.2,4,0.5,0,0,4,90,-20,0,4,0,0,0,4,0,0,0,4,LeftArm,-1,0,0,4,0,30,0.2,4,0.5,0,0,4,-90,-20,0,4,0,0,0,4,0,0,0,4,LeftLeg,-1,0,0,4,90,0,0,4,-1,-0.3,0.3,4,-90,-40,0,4,0,0,0,4,90,40,0,4,Torso,0,0,0,4,-90,0,0,4,0.05,0.2,0.15,8,-0,0,0,4,0,0,0,4,180,0,0,4
  3699.         end
  3700.     })
  3701. end)
  3702.  
  3703. lbl("INTERWORLD - METAMORPHOSIS")
  3704. lbl("was listening to ^^ and animating")
  3705.  
  3706. btn("empty reanimate (no animations)", reanimate)
  3707. insSet(btn("stop current script",stopreanimate),"TextColor3",c3(0.75,0,0))
  3708.  
  3709. lbl("SETTINGS (REANIMATE TO APPLY)")
  3710.  
  3711. local swtc=function(txt,options,onchanged)
  3712.     local current=0
  3713.     local swtcbtn=nil
  3714.     local btnpressed=function()
  3715.         current=current+1
  3716.         if current>#options then
  3717.             current=1
  3718.         end
  3719.         local option=options[current]
  3720.         insSet(swtcbtn,"Text",txt..": "..option.text)
  3721.         onchanged(option.value)
  3722.     end
  3723.     swtcbtn=btn("change",btnpressed)
  3724.     btnpressed()
  3725.     return swtcbtn
  3726. end
  3727.  
  3728. swtc("client sided placeholders",{
  3729.     {value=true,text="yes"},
  3730.     {value=false,text="no"}
  3731. },function(v)
  3732.     placeholders=v
  3733. end)
  3734.  
  3735. swtc("highlight fling targets",{
  3736.     {value=true,text="yes"},
  3737.     {value=false,text="no"}
  3738. },function(v)
  3739.     highlightflingtargets=v
  3740. end)
  3741.  
  3742. swtc("allow shiftlock",{
  3743.     {value=true,text="yes"},
  3744.     {value=false,text="no"}
  3745. },function(v)
  3746.     allowshiftlock=v
  3747. end)
  3748.  
  3749. swtc("ctrl click tp",{
  3750.     {value=true,text="yes"},
  3751.     {value=false,text="no"}
  3752. },function(v)
  3753.     ctrltp=v
  3754. end)
  3755.  
  3756. swtc("click fling",{
  3757.     {value=true,text="yes"},
  3758.     {value=false,text="no"}
  3759. },function(v)
  3760.     clickfling=v
  3761. end)
  3762.  
  3763. swtc("fling enhancements",{
  3764.     {value=3,text="all"},
  3765.     {value=1,text="changestate physics"},
  3766.     {value=2,text="disable sitting"},
  3767.     {value=0,text="none"},
  3768. },function(v)
  3769.     flingchangestate=v
  3770. end)
  3771.  
  3772. swtc("respawn tp",{
  3773.     {value=3,text="hide body"},
  3774.     {value=0,text="stay at spawn"},
  3775.     {value=1,text="random tp close"},
  3776.     {value=2,text="behind char"}
  3777. },function(v)
  3778.     respawntp=v
  3779. end)
  3780.  
  3781. local disguiscripts=nil
  3782. swtc("new gui scripts",{
  3783.     {value=true,text="disable"},
  3784.     {value=false,text="keep"}
  3785. },function(v)
  3786.     disguiscripts=v
  3787. end)
  3788. Connect(insGet(pg,"DescendantAdded"),function(v)
  3789.     if c and disguiscripts and IsA(v,"Script") then --mind Enum.RunContext.Client
  3790.         insSet(v,"Disabled",true)
  3791.     end
  3792. end)
  3793.  
  3794. swtc("new character scripts",{
  3795.     {value=function(v)
  3796.         if IsA(v,"Script") then --mind Enum.RunContext.Client
  3797.             insSet(v,"Disabled",true)
  3798.         end
  3799.     end,text="disable"},
  3800.     {value=false,text="keep"}
  3801. },function(v)
  3802.     discharscripts=v
  3803. end)
  3804.  
  3805. swtc("breakjoints",{
  3806.     {value=1,text="breakjoints+health"},
  3807.     {value=2,text="health or breakjoints"},
  3808.     {value=3,text="breakjoints"}
  3809. },function(v)
  3810.     breakjointsmethod=v
  3811. end)
  3812.  
  3813. swtc("coregui death effect",{
  3814.     {value=true,text="disable"},
  3815.     {value=false,text="dont modify"},
  3816. },function(v)
  3817.     hidedeatheffect=v
  3818. end)
  3819.  
  3820. swtc("set simulation radius",{
  3821.     {value=true,text="yes"},
  3822.     {value=false,text="no"},
  3823. },function(v)
  3824.     simrad=v
  3825. end)
  3826.  
  3827. if replicatesignal then
  3828.     local i11=i("Frame")
  3829.     local i12=i("UIListLayout")
  3830.     local i13=i("Frame")
  3831.     local i14=i("UIListLayout")
  3832.  
  3833.     insSet(i11,"Name",rs())
  3834.     insSet(i11,"AnchorPoint",v2(0.5,0.5))
  3835.     insSet(i11,"AutomaticSize",e.AutomaticSize.XY)
  3836.     insSet(i11,"BackgroundTransparency",1)
  3837.     insSet(i11,"Position",u2(0.5,0,0.5,0))
  3838.     insSet(i11,"Size",u2(1,0,0,0))
  3839.     insSet(i12,"Name",rs())
  3840.     insSet(i12,"SortOrder",e.SortOrder.LayoutOrder)
  3841.     insSet(i12,"Parent",i11)
  3842.     insSet(i13,"Name",rs())
  3843.     insSet(i13,"AutomaticSize",e.AutomaticSize.Y)
  3844.     insSet(i13,"BackgroundTransparency",1)
  3845.     insSet(i13,"Size",u2(0.5,0,0,0))
  3846.     insSet(i14,"Name",rs())
  3847.     insSet(i14,"FillDirection",e.FillDirection.Horizontal)
  3848.     insSet(i14,"SortOrder",e.SortOrder.LayoutOrder)
  3849.     insSet(i14,"Parent",i13)
  3850.  
  3851.     local s=i4
  3852.     i4=i11
  3853.     lbl("Use permadeath?")
  3854.     lbl("(detectable with no false positives)")
  3855.     lbl("This executor supports permadeath.")
  3856.     lbl("permadeath preload method")
  3857.     insSet(i13,"Parent",i11)
  3858.     i4=i13
  3859.     btn("No",function()
  3860.         replicatesignal=nil
  3861.         Destroy(i11)
  3862.         lbl("permadeath disabled")
  3863.         insSet(i4,"Parent",i3)
  3864.         pdloadedtime=nil
  3865.     end)
  3866.     btn("Yes",function()
  3867.         Destroy(i11)
  3868.         lbl("permadeath enabled")
  3869.         insSet(i4,"Parent",i3)
  3870.         replicatesignal(cdsb)
  3871.         pdloadedtime=osclock()+rst
  3872.         local lastc=nil
  3873.         local hdied=function()
  3874.             if not c then
  3875.                 replicatesignal(cdsb)
  3876.                 pdloadedtime=osclock()+rst
  3877.             end
  3878.         end
  3879.         Connect(GetPropertyChangedSignal(lp,"Character"),function()
  3880.             local c=lp.Character
  3881.             if c and c~=lastc then
  3882.                 lastc=c
  3883.                 replicatesignal(cdsb)
  3884.                 pdloadedtime=osclock()+rst
  3885.                 while lastc==c do
  3886.                     local h=FindFirstChildOfClass(c,"Humanoid")
  3887.                     if h then
  3888.                         Connect(insGet(h,"Died"),hdied)
  3889.                         break
  3890.                     end
  3891.                     Wait(preanimation)
  3892.                 end
  3893.             end
  3894.         end)
  3895.     end)
  3896.     i4=s
  3897.  
  3898.     insSet(i11,"Parent",i3)
  3899.     insSet(i4,"Parent",nil)
  3900. else
  3901.     lbl("permadeath unsupported")
  3902. end
  3903.  
  3904. if not pcall(insSet,i10,"Parent",FindFirstChildOfClass(game,"CoreGui")) then
  3905.     insSet(i7,"Text","PLAYERGUI MODE")
  3906.     insSet(i10,"Parent",pg)
  3907.     twait(3)
  3908.     insSet(i7,"Text",guiTheme.guiTitle)
  3909. end
  3910. -- Short Link: loadstring(game:HttpGet("https://pastebin.com/raw/6LuKfqHc"))()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement