Run it
Copy the script and paste it into your executor.
osclock=.clock
tspawn=.spawn
twait=.wait
schar=.char
ssub=.sub
sfind=.find
supper=.upper
mrandom=.random
sin=.sin
cos=.cos
abs=.abs
rad=.rad
min=.min
clamp=.clamp
tinsert=.insert
tclear=.clear
tclone=.clone
tfind=.find
tunpack=.unpack
=
=
=
=
=
=
i=.new
v2=.new
v3=.new
c3=.new
cf=.new
cfl=.lookAt
angles=.Angles
u2=.new
e=
rp=RaycastParams.new
cs=ColorSequence.new
csk=ColorSequenceKeypoint.new
Clone=.Clone
ClearAllChildren=.ClearAllChildren
Destroy=.Destroy
IsA=.IsA
FindFirstChildOfClass=.FindFirstChildOfClass
FindFirstChildWhichIsA=.FindFirstChildWhichIsA
GetChildren=.GetChildren
GetDescendants=.GetDescendants
IsDescendantOf=.IsDescendantOf
GetPropertyChangedSignal=.GetPropertyChangedSignal
plrs=(,)
rs=(,)
ws=(,)
uis=(,)
gs=(,)
lp=plrs.LocalPlayer
pg=(lp,)
mouse=lp:()
stepped=rs.Stepped
heartbeat=rs.Heartbeat
renderstepped=rs.RenderStepped
GetPlayers=plrs.GetPlayers
Raycast=ws.Raycast
Connect=heartbeat.Connect
Disconnect=((,),).Disconnect
Wait=heartbeat.Wait
GetMouseLocation=uis.GetMouseLocation
GetFocusedTextBox=uis.GetFocusedTextBox
GetMouseDelta=uis.GetMouseDelta
IsMouseButtonPressed=uis.IsMouseButtonPressed
IsKeyDown=uis.IsKeyDown
sine=()
deltaTime=
v3_0=(,,)
v3_101=(,,)
v3_010=(,,)
v3_001=(,,)
cf_0=(,,)
v3_xz=v3_101*
v3_net=v3_010*
Inverse=cf_0.Inverse
Lerp=cf_0.Lerp
guiTheme={
guiTitle=,
windowTitleColor=(,,),
windowTopColor=(,,),
windowBottomColor=(,,),
windowMinimizedSize={X=,Y=},
windowRegularSize={X=,Y=},
buttonsTextColor=(,,),
labelsTextColor=(,,),
listTopColor=(,,),
listBottomColor=(,,)
}
accessorylimbs={
{meshid=,textureid=,C0=(,,),Name=},
{meshid=,textureid=,C0=(-,,),Name=},
{meshid=,textureid=,C0=(,,),Name=},
{meshid=,textureid=,C0=(-,,),Name=},
{meshid=,textureid=,C0=(,,),Name=},
{meshid=,textureid=,C0=(,,),Name=},
{meshid=,textureid=,C0=(,,),Name=},
{meshid=,textureid=,C0=(,-,),Name=},
{meshid=,textureid=,C0=(,,),Name=},
{meshid=,textureid=,C0=(,,),Name=},
{meshid=,textureid=,C0=cf_0,Name=},
{meshid=,textureid=,C0=cf_0,Name=},
{meshid=,textureid=,C0=cf_0,Name=},
{meshid=,textureid=,C0=(-,,)*(-,,),Name=},
{meshid=,textureid=,C0=(,-,)*(-,-,),Name=},
{meshid=,textureid=,C0=(,,)*(,-,),Name=},
{meshid=,textureid=,C0=(-,-,)*(,,),Name=},
{meshid=,textureid=,C0=(,,)*(-,-,),Name=},
{meshid=,textureid=,C0=(-,-,)*(-,,),Name=},
{meshid=,textureid=,C0=(,-,)*(,-,),Name=},
{meshid=,textureid=,C0=(-,,)*(,,),Name=},
{meshid=,textureid=,C0=(,,),Name=}
}
(l)
l=l (,)
s=
i=,l
(,)==
s=s..((,))
s=s..((,))
s
(p,n,cl)
c=(p)
i=,#c
v=c[i]
(v,cl) (v.Name==n)
v
(p,n,c,t)
t=()+t
t>()
r=(p,n,c)
r
r
(stepped)
(realVel)
realVel.Magnitude>
realVel=realVel.Unit*
realVel*v3_xz+v3_net
sft=/
(Ypos,destY,gravity)
velY=
fallingTime=
gravity=gravity*sft
(Ypos>destY) (velY>)
fallingTime=fallingTime+sft
velY=velY-gravity
Ypos=Ypos+(velY*sft)
fallingTime
(v)
(v,)
v.MeshId, v.TextureID
(v,)
v=(v,)
v
v.MeshId, v.TextureId
,
(v)
(v)~=
v.Archivable
v.Archivable=
v=(v)
c=(v)
i=,#c
v=c[i]
(v,)
v.Name=()
(v)
(v)
v.Name=()
v.Anchored=
v.CanCollide=
v.Transparency=
v.Parent=ws
v
()
i1=()
i2=()
i3=()
i4=()
i5=()
i6=()
i7=()
i8=()
i9=()
i1.AnchorPoint=(,)
i1.BackgroundColor3=(,,)
i1.BorderSizePixel=
i1.ClipsDescendants=
i1.Position=(,,,-)
i1.Size=(,guiTheme.windowRegularSize.X,,guiTheme.windowRegularSize.Y)
i1.Name=()
i1.Parent=i9
i2.BackgroundColor3=(,,)
i2.BorderSizePixel=
i2.Position=(,,,guiTheme.windowMinimizedSize.Y-)
i2.Size=(,-,,guiTheme.windowRegularSize.Y-guiTheme.windowMinimizedSize.Y-)
i2.Name=()
i2.Parent=i1
i3.Active=
i3.BackgroundTransparency=
i3.BorderSizePixel=
i3.Size=(,-,,)
i3.AutomaticCanvasSize=e.AutomaticSize.Y
i3.CanvasSize=(,,,)
i3.ScrollBarThickness=
i3.Name=()
i3.Parent=i2
i4.Name=()
i4.Parent=i3
i4.SortOrder=e.SortOrder.LayoutOrder
i5.Name=()
i5.Parent=i2
i5.Color=({(,guiTheme.listTopColor),(,guiTheme.listBottomColor)})
i5.Rotation=
i6.Font=e.Font.SourceSans
i6.FontSize=e.FontSize.Size18
i6.ClearTextOnFocus=
i6.Text=guiTheme.guiTitle
i6.TextColor3=guiTheme.windowTitleColor
i6.TextSize=
i6.AnchorPoint=(,)
i6.BackgroundTransparency=
i6.Position=(,,,guiTheme.windowMinimizedSize.Y/)
i6.Name=()
i6.Parent=i1
i7.AnchorPoint=(,)
i7.BackgroundTransparency=
i7.Position=(,,,)
i7.Size=(,,,guiTheme.windowMinimizedSize.Y)
i7.Name=()
i7.Parent=i1
i7.Font=e.Font.SourceSans
i7.FontSize=e.FontSize.Size18
i7.Text=
i7.TextColor3=(,,)
i7.TextSize=
i8.Name=()
i8.Parent=i1
i8.Color=({(,guiTheme.windowTopColor),(,guiTheme.windowBottomColor)})
i8.Rotation=
i9.ZIndexBehavior=e.ZIndexBehavior.Sibling
i9.IgnoreGuiInset=
i9.ResetOnSpawn=
i9.DisplayOrder=
i9.Name=()
guimin=
minloop=
i1X=guiTheme.windowRegularSize.X
i1Y=guiTheme.windowRegularSize.Y
i1Xdest=i1X
i1Ydest=i1Y
(i7.MouseButton1Click,()
guimin = guimin
guimin
i8.Color=({(,(,,)),(,(,,))})
i1Xdest=guiTheme.windowMinimizedSize.X
i1Ydest=guiTheme.windowMinimizedSize.Y
i8.Color=({(,(,,)),(,(,,))})
i1Xdest=guiTheme.windowRegularSize.X
i1Ydest=guiTheme.windowRegularSize.Y
minloop
minloop=
i2.Visible=
sine=()
lastsine=sine
sine=()
deltaTime=(sine-lastsine)*
lastsine=sine
difX=i1Xdest-i1X
difY=i1Ydest-i1Y
((difY)<=) ((difX)<=)
i1X=i1Xdest
i1Y=i1Ydest
i1.Size=(,i1X,,i1Y)
i1X=i1X+difX*deltaTime
i1Y=i1Y+difY*deltaTime
i1.Size=(,i1X,,i1Y)
()
i2.Visible= guimin
minloop=
)
(window,obj)
MB1enum = e.UserInputType.MouseButton1
TOUCHenum = e.UserInputType.Touch
obj = obj window
activeEntered =
mouseStart =
dragStart =
inputbegancon =
rendersteppedcon =
inputendedcon =
(a)
a=a.UserInputType
(a==MB1enum) (a==TOUCHenum)
(rendersteppedcon)
(inputendedcon)
()
off = (uis)-mouseStart
window.Position=dragStart+(,off.X,,off.Y)
(a)
a=a.UserInputType
((a==MB1enum) (a==TOUCHenum)) (activeEntered==) (uis)
mouseStart=(uis)
dragStart=window.Position
rendersteppedcon (rendersteppedcon)
rendersteppedcon = (renderstepped,rendersteppedf)
inputendedcon (inputendedcon)
inputendedcon = (uis.InputEnded,inputendedf)
(obj.MouseEnter,()
inputbegancon (inputbegancon)
inputbegancon = (uis.InputBegan,inputbeganf)
)
(obj.MouseLeave,()
(inputbegancon)
)
(d)
(d,)
thisEntered =
thisAdded =
con0 = (d.MouseEnter,()
thisEntered =
( thisAdded) d.Active
activeEntered = activeEntered +
thisAdded =
)
con1 = (d.MouseLeave,()
thisEntered =
thisAdded
activeEntered = activeEntered -
thisAdded =
)
con2 = ((d,),()
thisEntered
thisAdded d.Active
activeEntered = activeEntered -
thisAdded =
d.Active thisAdded
activeEntered = activeEntered +
thisAdded =
)
con3 =
con3 = (d.AncestryChanged,()
(d,window)
thisEntered
activeEntered = activeEntered -
(con0)
(con1)
(con2)
(con3)
)
(window.DescendantAdded,ondes)
des=(window)
i=,#des
(des[i])
(txt, f)
i1=()
i2=()
i1.Font=e.Font.SourceSans
i1.FontSize=e.FontSize.Size14
i1.Text=txt
i1.ClearTextOnFocus=
i1.Position=(,,,)
i1.TextColor3=guiTheme.buttonsTextColor
i1.Name=()
i1.Parent=i2
i2.BackgroundTransparency=
i2.TextTransparency=
i2.Size=(,,,)
i2.Name=()
f
(i2.MouseButton1Click,f)
i2.Parent=i3
i1
(txt)
i1=()
i2=()
i1.Font=e.Font.SourceSans
i1.FontSize=e.FontSize.Size14
i1.Text=txt
i1.ClearTextOnFocus=
i1.TextColor3=guiTheme.labelsTextColor
i1.Position=(,,)
i1.BackgroundTransparency=
i1.Name=()
i1.Parent=i2
i2.Size=(,,,)
i2.BackgroundTransparency=
i2.Name=()
i2.Parent=i3
i1
(i1)
()
()
allowshiftlock=
ctrltp=
placeholders=
clickfling=
highlightflingtargets=
discharscripts=
flingchangestate=
c=
()
c
c=
()
novoid =
speedlimit =
retVelTime =
walkSpeed =
jumpPower =
gravity =
ctrlclicktp = ctrltp
clickfling = clickfling
flingvel = (,,)
highlightflingtargets = highlightflingtargets
()
c=lp.Character
(c (c,ws))
rootpart=(c,,) (c,,) (c,,) (c,,,) (c,)
rootpart
cam=
()
newcam=ws.CurrentCamera
newcam
((ws,))
newcam=ws.CurrentCamera
cam=newcam
()
camcf=cam.CFrame
enumCamS=e.CameraType.Scriptable
camt=cam.CameraType
camcon0=
camcon1=
camcon2=
()
()
camcon0
(camcon0)
(camcon1)
camcon0=
c
cam.CameraType==enumCamS
cam.CameraType=camt
(camcon2)
camcon0=((cam,),()
cam.CFrame~=camcf
cam.CFrame=camcf
)
camcon1=((cam,),()
cam.CameraType~=enumCamS
cam.CameraType=enumCamS
)
cam.CameraType~=enumCamS
cam.CameraType=enumCamS
cam.CFrame~=camcf
cam.CFrame=camcf
camcon2=((ws,),onnewcamera)
()
rGravity=ws.Gravity
((ws,),()
rGravity=ws.Gravity
)
fpdh=ws.FallenPartsDestroyHeight
novoid=novoid (fpdh+)
Yvel=
cfr=rootpart.CFrame
pos=cfr.Position
primarypart=
shiftlock=
firstperson=
xzvel=v3_0
v3_0150=v3_010*
camrot=(v3_0,camcf.LookVector)
cammag=-(camcf.Position-(pos+v3_0150)).Magnitude
R6parts={
head={Name=},
torso={Name=},
root={Name=},
leftArm={Name=},
rightArm={Name=},
leftLeg={Name=},
rightLeg={Name=}
}
rootpart=R6parts.root
cframes={}
i,v (R6parts)
cframes[v]=cfr
joints={
{
Name=,
Part0=R6parts.torso,Part1=R6parts.head,
C0=(,,,-,,,,,,,,-),
C1=(,-,,-,,,,,,,,-)
},
{
Name=,
Part0=rootpart,Part1=R6parts.torso,
C0=(,,,-,,,,,,,,-),
C1=(,,,-,,,,,,,,-)
},
{
Name=,
Part0=R6parts.torso,Part1=R6parts.rightArm,
C0=(,,,,,,,,-,-,,),
C1=(-,,,,,,,,-,-,,)
},
{
Name=,
Part0=R6parts.torso,Part1=R6parts.leftArm,
C0=(-,,,,,-,,,,,,),
C1=(,,,,,-,,,,,,)
},
{
Name=,
Part0=R6parts.torso,Part1=R6parts.rightLeg,
C0=(,-,,,,,,,-,-,,),
C1=(,,,,,,,,-,-,,)
},
{
Name=,
Part0=R6parts.torso,Part1=R6parts.leftLeg,
C0=(-,-,,,,-,,,,,,),
C1=(-,,,,,-,,,,,,)
}
}
refreshedjoints={}
refreshjointsI=
refreshjointsI=(part)
(refreshedjoints,part)
i,v (joints)
part0=v.Part0
part1=v.Part1
part1 (part0==part)
cframes[part1]=cframes[part]*v.C0*(v.C1)
(refreshedjoints,part1)
(part1)
part0 (part1==part)
cframes[part0]=cframes[part]*v.C1*(v.C0)
(refreshedjoints,part0)
(part0)
(rootpart)
(refreshedjoints)
attachments={
RightShoulderAttachment={R6parts.rightArm,(,,,,,,,,,,,)},
RightGripAttachment={R6parts.rightArm,(,-,,,,,,,,,,)},
LeftFootAttachment={R6parts.leftLeg,(,-,,,,,,,,,,)},
LeftShoulderAttachment={R6parts.leftArm,(,,,,,,,,,,,)},
LeftGripAttachment={R6parts.leftArm,(,-,,,,,,,,,,)},
RootAttachment={rootpart,(,,,,,,,,,,,)},
RightFootAttachment={R6parts.rightLeg,(,-,,,,,,,,,,)},
NeckAttachment={R6parts.torso,(,,,,,,,,,,,)},
BodyFrontAttachment={R6parts.torso,(,,-,,,,,,,,,)},
BodyBackAttachment={R6parts.torso,(,,,,,,,,,,,)},
LeftCollarAttachment={R6parts.torso,(-,,,,,,,,,,,)},
RightCollarAttachment={R6parts.torso,(,,,,,,,,,,,)},
WaistFrontAttachment={R6parts.torso,(,-,-,,,,,,,,,)},
WaistCenterAttachment={R6parts.torso,(,-,,,,,,,,,,)},
WaistBackAttachment={R6parts.torso,(,-,,,,,,,,,,)},
HairAttachment={R6parts.head,(,,,,,,,,,,,)},
HatAttachment={R6parts.head,(,,,,,,,,,,,)},
FaceFrontAttachment={R6parts.head,(,,-,,,,,,,,,)},
FaceCenterAttachment={R6parts.head,(,,,,,,,,,,,)}
}
(name,blacklist)
i,v (cframes)
(i.Name==name) (blacklist (blacklist,i))
i
(name)
i,v (joints)
v.Name==name
v
{C0=cf_0,C1=cf_0}
(m,t,blacklist)
blacklist
v,_ (cframes)
v.m ( (blacklist,v)) (v.m,m) (v.t,t)
v
v,_ (cframes)
v.m (v.m,m) (v.t,t)
v
p={m=m,t=t}
cframes[p]=cfr
j={C0=cf_0,C1=cf_0,Part0=p}
p.j=j
p
(p)
cframes[p]
j=p.j
j
j
i,v (joints)
v.Part0==p
v
i,v (joints)
v.Part1==p
v
(m,t)
((m,t))
raycastparams=()
raycastparams.FilterType=e.RaycastFilterType.Blacklist
raycastparams.RespectCanCollide=
rayfilter={}
characters={}
()
(rayfilter)
i,v (characters)
(rayfilter,v)
raycastparams.FilterDescendantsInstances=rayfilter
flingtable={}
rootparts={}
i=,#accessorylimbs
v=accessorylimbs[i]
v.p=(v.Name)
ondes=
ondes=(v)
(v,) (c,ws)
v1=attachments[v.Name]
v1
p=v.Parent
(p.Parent~=c) (p,c)
meshid,textureid=(p)
meshid
found=
i,_ (cframes)
(meshid==i.m) (textureid==i.t)
p1=i.p
p1 (p1,c)
p1==p
found=
found=
i.p=p
j=i.j
j (meshid,i.m) (textureid,i.t)
i.m=meshid
i.t=textureid
i.l=p.Position
i.p=p
i.j=
i.Name=p.Name
j.C0=v.CFrame
j.C1=v1[]
j.Part1=v1[]
(joints,j)
found=
found
i=,#accessorylimbs
l=accessorylimbs[i]
l.p (meshid,l.meshid) (textureid,l.textureid)
t={Name=p.Name,l=p.Position,m=meshid,t=textureid,p=p}
placeholders
t.v=(p)
cframes[t]=p.CFrame
(joints,{Part0=t,Part1=l.p,C0=l.C0,C1=cf_0})
l.p=
found=
found
t={Name=p.Name,l=p.Position,m=meshid,t=textureid,p=p}
placeholders
t.v=(p)
cframes[t]=v.CFrame
(joints,{Part0=t,Part1=v1[],C0=v.CFrame,C1=v1[]})
(v)
lastc=
()
newc=v.Character
c newc (newc~=lastc)
lastc=newc
characters[v]=newc
()
v==lp
discharscripts
(newc.DescendantAdded,discharscripts)
i,v ((newc))
(v,)
v.Disabled=
hrp=(newc,,,)
(hrp c (newc,ws))
c=newc
fi,fv=(flingtable)
fi
flingchangestate
hum=(c,)
hum
hum:(e.HumanoidStateType.Physics)
i,v ((flingtable))
c
startpos=i.Position
stoptime=sine+
()
sine>stoptime
(startpos-i.Position).Magnitude>
tcf=i.CFrame+i.Velocity*((sine*)+)
novoid (tcf.Y<novoid)
tcf=tcf+v3_010*(novoid-tcf.Y)
hrp.CFrame=tcf
hrp.Velocity=i.Velocity*v3_101*
hrp.RotVelocity=flingvel
v
(v)
flingtable[i]=
hrp.Velocity=v3_0
hrp.RotVelocity=v3_0
hrp.CFrame=cfr
()
startpos=pos+((-,),,(-,))
dir=
poscheck=
poscheck
poscheck=
i,v (rootparts)
diff=(startpos-v.Position)*v3_101
diff.Magnitude<
poscheck=
dir=dir (diff.Unit * )
startpos=startpos+dir
diff=(startpos-pos)*v3_101
diff.Magnitude<
poscheck=
dir=dir (diff.Unit * )
startpos=startpos+dir
startpos=cfr.Rotation+startpos
primarypart=c.PrimaryPart hrp
hrp.CFrame=startpos
hrp.Velocity=v3_0
hrp.RotVelocity=v3_0
()
newc:()
cd=(newc)
(newc.DescendantAdded,ondes)
i=,#cd
(cd[i])
hrp=(newc,,,)
hrp c (newc,ws)
rootparts[v]=hrp
((v,),oncharacter)
()
plrst=(plrs)
i=,#plrst (plrst[i])
(plrs.PlayerAdded,onplayer)
(plrs.PlayerRemoving,(v)
characters[v]=
rootparts[v]=
)
mradN05=(-)
KeyCode=e.KeyCode
enumMLC=e.MouseBehavior.LockCenter
enumMB2=e.UserInputType.MouseButton2
enumMLCP=e.MouseBehavior.LockCurrentPosition
enumMD=e.MouseBehavior.Default
enumMW=e.UserInputType.MouseWheel
uis.TouchEnabled
enumMB2=e.UserInputType.MouseButton1
mouseBehavior=
lastMouseBehavior=uis.MouseBehavior
((uis,),()
mouseBehavior (uis.MouseBehavior~=mouseBehavior)
uis.MouseBehavior=mouseBehavior
)
mode=
defaultmode={}
modes={default=defaultmode}
lerpsIdle=emptyfunction
lerpsWalk=emptyfunction
lerpsJump=emptyfunction
lerpsFall=emptyfunction
(key,mode)
((key)~=) ((mode)~=)
i,v (mode)
(v)~=
mode[i]=
key==
defaultmode=mode
modes.default=mode
lerpsIdle=mode.idle emptyfunction
lerpsWalk=mode.walk emptyfunction
lerpsJump=mode.jump emptyfunction
lerpsFall=mode.fall emptyfunction
mode.modeEntered
mode.()
#key==
key=KeyCode[((key,,))]
modes[key]=mode
keyW=KeyCode.W
Wpressed=(uis,keyW)
keyA=KeyCode.A
Apressed=(uis,keyA)
keyS=KeyCode.S
Spressed=(uis,keyS)
keyD=KeyCode.D
Dpressed=(uis,keyD)
keySpace=KeyCode.Space
spacePressed=(uis,keySpace)
keyShift=KeyCode.LeftShift
(uis.InputBegan,(a)
gs.MenuIsOpen (uis)
a=a.KeyCode
a==keyW
Wpressed=
a==keyA
Apressed=
a==keyS
Spressed=
a==keyD
Dpressed=
a==keySpace
spacePressed=
a==keyShift
shiftlock=allowshiftlock shiftlock
modes[a]
modes[mode].modeLeft
modes[mode].()
mode==a
mode=
mode=a
modet=modes[mode]
lerpsIdle=modet.idle defaultmode.idle emptyfunction
lerpsWalk=modet.walk defaultmode.walk emptyfunction
lerpsJump=modet.jump defaultmode.jump emptyfunction
lerpsFall=modet.fall defaultmode.fall emptyfunction
modes[mode].modeEntered
modes[mode].()
)
(uis.InputEnded,(a)
a=a.KeyCode
a==keyW
Wpressed=
a==keyA
Apressed=
a==keyS
Spressed=
a==keyD
Dpressed=
a==keySpace
spacePressed=
)
(uis.InputChanged,(a,b)
( b) (a.UserInputType==enumMW)
cammag=cammag+a.Position.Z*(-cammag/)
cammag<
firstperson=
cammag=
firstperson=
)
(target)
c
()
(target)~=
target=mouse.Target
target
()
(target,) (target,)
target=target.Parent
(target,)
target=target.Parent
( (target,)) (target==c)
()
targetpart=(target,,) (target,,) (target,,)
(targetpart (targetpart,ws))
()
highlightflingtargets
h=()
h.Name=()
h.Adornee=target
h.FillColor=(,,)
h.OutlineColor=(,,)
h.FillTransparency=
h.OutlineTransparency=
h.Parent=i9
flingtable[targetpart]=h
flingtable[targetpart]=
()
ctrlclicktp
ctrlclicktp=KeyCode.LeftControl
tpoff=v3_010*
clickfling
(mouse.Button1Down,()
mouse.Target
(uis,ctrlclicktp)
pos=mouse.Hit.Position+tpoff
cfr=(pos,pos+camrot.LookVector*v3_101)
xzvel=v3_0
Yvel=
()
)
(mouse.Button1Down,()
mouse.Target (uis,ctrlclicktp)
pos=mouse.Hit.Position+tpoff
cfr=(pos,pos+camrot.LookVector*v3_101)
xzvel=v3_0
Yvel=
)
clickfling
(mouse.Button1Down,predictionfling)
noYvelTime=
lastsine=sine
con=
()
c
i,v (cframes)
p=i.v
p
(p)
i,v (flingtable)
v
(v)
mouseBehavior=
uis.MouseBehavior=enumMD
()
c=lp.Character
c
cam.CameraSubject=(c,)
con (con)
sine=()
delta=sine-lastsine
deltaTime=(delta*,)
lastsine=sine
shiftlock
allowshiftlock
mouseBehavior=enumMLC
rotation=(uis)*mradN05
camrot=(v3_0,(camrot*(rotation.Y,rotation.X,)).LookVector)
shiftlock=
firstperson
mouseBehavior=enumMLC
rotation=(uis)*mradN05
camrot=(v3_0,(camrot*(rotation.Y,rotation.X,)).LookVector)
(uis,enumMB2)
mouseBehavior=enumMLCP
rotation=(uis)*mradN05
camrot=(v3_0,(camrot*(rotation.Y,rotation.X,)).LookVector)
mouseBehavior=enumMD
lastMouseBehavior~=mouseBehavior
lastMouseBehavior=mouseBehavior
uis.MouseBehavior=mouseBehavior
raycastresult=(ws,pos,v3_010*(fpdh-pos.Y),raycastparams)
onground=
raycastresult
raycastresult=raycastresult.Position
onground=(pos.Y-raycastresult.Y)<
onground
Yvel=
cfr=cfr+v3_010*(raycastresult.Y+-pos.Y)*(delta*,)
spacePressed
Yvel=jumpPower
Yvel=Yvel-gravity*delta
pos.Y+Yvel*delta<raycastresult.Y
Yvel=
cfr=cfr+v3_010*(raycastresult.Y+-pos.Y)
Yvel=
onground=
xzvel=v3_0
Wpressed
xzvel=xzvel+(camrot.LookVector*v3_101).Unit
Spressed
xzvel=xzvel-(camrot.LookVector*v3_101).Unit
Apressed
xzvel=xzvel-(camrot.RightVector*v3_101).Unit
Dpressed
xzvel=xzvel+(camrot.RightVector*v3_101).Unit
pos=cfr.Position
shiftlock firstperson
xzvel~=v3_0
xzvel=xzvel.Unit*walkSpeed
cfr=(pos,pos+camrot.LookVector*v3_101)
xzvel~=v3_0
walkSpeed==
xzvel=v3_0
xzvel=xzvel.Unit*walkSpeed
cfr=(cfr,(pos,pos+xzvel),deltaTime)
cfr=cfr+(xzvel+(v3_010*Yvel))*delta
pos=cfr.Position
shiftlock firstperson
camcf=camrot+pos+v3_0150+camrot.RightVector*+camrot.LookVector*cammag
camcf=camrot+pos+v3_0150+camrot.LookVector*cammag
cam.CFrame=camcf
cframes[rootpart]=cfr
onground
xzvel==v3_0
()
()
Yvel>
()
()
(rootpart)
(refreshedjoints)
(Yvel)>
noYvelTime=
noYvelTime=(noYvelTime+delta*,)
xzvel=xzvel*(-noYvelTime)
idlerv=(((sine-)*),(sine*),((sine+)*))
idleoff=idlerv*
claimpos=primarypart.Position
claimposY=claimpos.Y
i,v (cframes)
part=i.p
part ( part.Anchored) (part,ws)
part.ReceiveAge==
placeholder=i.v
placeholder
placeholder.Parent=
novoid (v.Y<novoid)
v=v+v3_010*(novoid-v.Y)
lastpos=i.l
vel=(v.Position-lastpos)/delta
vel.Magnitude>speedlimit
vel=vel.Unit*speedlimit
v=v+(lastpos+vel*delta)-v.Position
i.l=v.Position
vel.Magnitude<
v=v+idleoff
claimtime=i.c
claimtime
sine-claimtime<retVelTime
part.Velocity=(claimpos-v.Position)*v3_101/(v.Y,claimposY,rGravity)+v3_net
part.Velocity=(vel*noYvelTime+xzvel)
i.c=sine
part.Velocity=(vel*noYvelTime+xzvel)
part.CFrame=v
part.RotVelocity=idlerv
i.c=
i.l=part.Position
placeholder=i.v
placeholder
placeholder.Parent=ws
placeholder.CFrame=v
placeholder=i.v
placeholder
placeholder.Parent=ws
placeholder.CFrame=v
sine=()
lastsine=sine
con=(heartbeat,mainFunction)
()
(v)
(v)
(refreshedjoints)
legcfR=(,-,)
legcfL=(-,-,)
raydir=v3_010*-
()
rY=(ws,(cfr*legcfR).Position,raydir,raycastparams)
lY=(ws,(cfr*legcfL).Position,raydir,raycastparams)
rY (rY.Position.Y-(pos.Y-)) ,lY (lY.Position.Y-(pos.Y-))
()
fw=cfr.LookVector*xzvel/walkSpeed
rt=cfr.RightVector*xzvel/walkSpeed
fw.X+fw.Z,rt.X+rt.Z
lastvel=v3_0
velchg1=v3_0
()
velchg1=velchg1+(lastvel-xzvel)
lastvel=xzvel
velchg1=velchg1-velchg1*(deltaTime/)
fw=cfr.LookVector*velchg1/
rt=cfr.RightVector*velchg1/
fw.X+fw.Z,rt.X+rt.Z
lastYvel=
velYchg1=
()
velYchg1=(velYchg1+(lastYvel-Yvel),-,)
lastYvel=Yvel
velYchg1=velYchg1-velYchg1*(deltaTime/)
velYchg1
(alpha)
mpos=mouse.Hit.Position
cfr=(cfr,(pos,(mpos.X,pos.Y,mpos.Z)),alpha deltaTime)
(n)
(n)~=
n=
walkSpeed=n
(n)
(n)~=
n=
jumpPower=n
(n)
(n)~=
n=
gravity=n
(v)
(v)==
cfr=v
pos=v.Position
()
xzvel+v3_010*Yvel
{
cframes=cframes,
joints=joints,
fling=predictionfling,
predictionfling=predictionfling,
refreshjoints=refreshjoints,
raycastlegs=raycastlegs,
velbycfrvec=velbycfrvec,
velchgbycfrvec=velchgbycfrvec,
velYchg=velYchg,
addmode=addmode,
getPart=getPart,
getPartFromMesh=getPartFromMesh,
getAccWeldFromMesh=getAccWeldFromMesh,
getJoint=getJoint,
getPartJoint=getPartJoint,
rotToMouse=rotToMouse,
setWalkSpeed=setWalkSpeed,
setJumpPower=setJumpPower,
setGravity=setGravity,
setCfr=setCfr,
getVel=getVel
}
(,()
t=()
(t)~=
getJoint=t.getJoint
rootJoint=()
rightShoulder=()
leftShoulder=()
rightHip=()
leftHip=()
neck=()
t.()
euler=angles
()
sine=sine*
neck.C0 = (neck.C0,(,,) * (,,),deltaTime)
rootJoint.C0 = (rootJoint.C0,(,-,) * (,,-),deltaTime)
leftShoulder.C0 = (leftShoulder.C0,(-,,) * (,,-),deltaTime)
rightShoulder.C0 = (rightShoulder.C0,(,,) * (,,),deltaTime)
leftHip.C0 = (leftHip.C0,(-,-,) * (,,-),deltaTime)
rightHip.C0 = (rightHip.C0,(,-,) * (,,),deltaTime)
t.(,{
idle=()
sine=sine*
neck.C0 = (neck.C0,(,,) * ( * ((sine + ) * ),, + * ((sine + -) * )),deltaTime)
rootJoint.C0 = (rootJoint.C0,(,- + * (sine * ),) * (,,- + * (sine * )),deltaTime)
leftShoulder.C0 = (leftShoulder.C0,(-,,- * (sine * )) * (,, * (sine * )),deltaTime)
rightShoulder.C0 = (rightShoulder.C0,(,,- * (sine * )) * (,, * (sine * )),deltaTime)
leftHip.C0 = (leftHip.C0,(-,-, + - * ((sine + ) * )) * (,, * (sine * )),deltaTime)
rightHip.C0 = (rightHip.C0,(,-, + - * ((sine + ) * )) * (,, * (sine * )),deltaTime)
,
walk=()
sine=sine*
neck.C0 = (neck.C0,(,,) * (, * ((sine + ) * ), + - * ((sine + -) * )),deltaTime)
rootJoint.C0 = (rootJoint.C0,(,-,) * (, * ((sine + ) * ),- + - * (sine * )),deltaTime)
leftShoulder.C0 = (leftShoulder.C0,(-, + * ((sine + ) * ), + * ((sine + -) * )) * ( + * ((sine + ) * ),,- * (sine * )),deltaTime)
rightShoulder.C0 = (rightShoulder.C0,(, + * ((sine + -) * ), + * ((sine + ) * )) * ( + * (sine * ),,- * (sine * )),deltaTime)
leftHip.C0 = (leftHip.C0,(-,- + * ((sine + -) * ), + * ((sine + ) * )) * ( + * (sine * ),,- * (sine * )),deltaTime)
rightHip.C0 = (rightHip.C0,(,- + * ((sine + ) * ), + * ((sine + -) * )) * ( + - * (sine * ),,- * (sine * )),deltaTime)
,
jump=jumplerp,
fall=jumplerp
})
)
(, ()
t=()
(t)~=
raycastlegs=t.raycastlegs
velbycfrvec=t.velbycfrvec
addmode=t.addmode
getJoint=t.getJoint
velYchg=t.velYchg
setWalkSpeed=t.setWalkSpeed
RootJoint=()
RightShoulder=()
LeftShoulder=()
RightHip=()
LeftHip=()
Neck=()
(, {
idle = ()
rY, lY = ()
Ychg=()/
LeftShoulder.C0=(LeftShoulder.C0,(-,+*((sine - )*), * ((sine-)*))*(+*(sine*),-+*(sine*),),deltaTime)
RightShoulder.C0=(RightShoulder.C0,(,+*((sine - )*), * ((sine-)*))*(+*(sine*),-*(sine*),-),deltaTime)
LeftHip.C0=(LeftHip.C0,(-,--*(sine*)+lY-Ychg,lY*-)*(-*(sine*),-,),deltaTime)
RightHip.C0=(RightHip.C0,(,--*(sine*)+rY-Ychg,rY*-)*(-*(sine*),,),deltaTime)
RootJoint.C0=(RootJoint.C0,(,+*(sine*) + Ychg, * (sine*))*(-+*(sine*),,),deltaTime)
Neck.C0=(Neck.C0,(,,)*(--*((sine+)*),*((sine-)*),),deltaTime)
,
walk = ()
Vfw, Vrt = ()
rY, lY = ()
Ychg=()/
LeftShoulder.C0=(LeftShoulder.C0,(-,,)*(-*((sine+)*)*Vfw,-+*((sine+)*),),deltaTime)
RightShoulder.C0=(RightShoulder.C0,(,,)*(*((sine+)*)*Vfw,+*((sine+)*),),deltaTime)
RightHip.C0=(RightHip.C0,(,-+*((sine - )*)+rY-Ychg,rY*-)*(-*(sine*)*Vfw,-*(sine*)*Vrt,-),deltaTime)
LeftHip.C0=(LeftHip.C0,(-,-+*((sine + )*)+lY-Ychg,lY*-)*(+*(sine*)*Vfw,-+*(sine*)*Vrt,),deltaTime)
Neck.C0=(Neck.C0,(,,)*(-+*(sine*),,+*((sine+)*)-Vrt),deltaTime)
RootJoint.C0=(RootJoint.C0,(, * ((sine+)*) + Ychg,)*(-,,),deltaTime)
,
jump = ()
()
Vfw, Vrt = ()
RootJoint.C0 = (RootJoint.C0,(, , ) * (- + Vfw * , Vrt * -, -), deltaTime)
RightShoulder.C0 = (RightShoulder.C0,(, , ) * ( - * ((sine + ) * ), + * ((sine + ) * ), -), deltaTime)
LeftHip.C0 = (LeftHip.C0,(-, -, ) * ( - * ((sine + ) * ), - + * ((sine + ) * ), ), deltaTime)
LeftShoulder.C0 = (LeftShoulder.C0,(-, , ) * ( - * ((sine + ) * ), - - * ((sine + ) * ), ), deltaTime)
Neck.C0 = (Neck.C0,(, , ) * (-, , - - Vrt), deltaTime)
RightHip.C0 = (RightHip.C0,(, -, ) * ( - * ((sine + ) * ), - * ((sine + ) * ), -), deltaTime)
,
fall = ()
()
Vfw, Vrt = ()
RootJoint.C0 = (RootJoint.C0,(, , ) * (- + Vfw * , Vrt * -, -), deltaTime)
RightShoulder.C0 = (RightShoulder.C0,(, , ) * ( - * ((sine + ) * ), + * ((sine + ) * ), -), deltaTime)
LeftHip.C0 = (LeftHip.C0,(-, -, ) * ( - * ((sine + ) * ), - + * ((sine + ) * ), ), deltaTime)
LeftShoulder.C0 = (LeftShoulder.C0,(-, , ) * ( - * ((sine + ) * ), - - * ((sine + ) * ), ), deltaTime)
Neck.C0 = (Neck.C0,(, , ) * (-, , - - Vrt), deltaTime)
RightHip.C0 = (RightHip.C0,(, -, ) * ( - * ((sine + ) * ), - * ((sine + ) * ), -), deltaTime)
})
(, {
idle = ()
()
LeftShoulder.C0 = (LeftShoulder.C0,(-, , -) * ( - * ((sine + ) * ), -, -), deltaTime)
RightShoulder.C0 = (RightShoulder.C0,(, , -) * ( - * ((sine + ) * ), , ), deltaTime)
Neck.C0 = (Neck.C0,(, , ) * (- - * ((sine + ) * ), , ), deltaTime)
RootJoint.C0 = (RootJoint.C0,(, - - * (sine * ), ) * ( * (sine * ), , ), deltaTime)
RightHip.C0 = (RightHip.C0,(, -, ) * ( - * (sine * ), , -), deltaTime)
LeftHip.C0 = (LeftHip.C0,(-, -, ) * ( - * (sine * ), -, ), deltaTime)
})
(, {
idle = ()
()
LeftShoulder.C0 = (LeftShoulder.C0,(-, + * (sine * ), - * (sine * )) * (- - * (sine * ), -, -), deltaTime)
RootJoint.C0 = (RootJoint.C0,(, - - * ((sine + ) * ), ) * (- + * (sine * ), -, ), deltaTime)
RightShoulder.C0 = (RightShoulder.C0,(, + * (sine * ), - * (sine * )) * ( - * (sine * ), , -), deltaTime)
Neck.C0 = (Neck.C0,(, , ) * (- - * ((sine + ) * ), + * (sine * ), + * (sine * )), deltaTime)
RightHip.C0 = (RightHip.C0,(, + * ((sine + ) * ), - + * (sine * )) * ( + * (sine * ), , -), deltaTime)
LeftHip.C0 = (LeftHip.C0,(-, - + * ((sine + ) * ), -) * ( - * (sine * ), -, ), deltaTime)
})
(, {
idle = ()
Ychg=()/
RightHip.C0 = (RightHip.C0,(, - - * (sine * )-Ychg, ) * (, - * (sine + ), -), deltaTime)
RootJoint.C0 = (RootJoint.C0,( * (sine + ), - + * (sine * )+Ychg, ) * (-, , -), deltaTime)
Neck.C0 = (Neck.C0,(, , ) * (- + * ((sine - ) * ), * (sine - ), - + * (sine * )), deltaTime)
LeftShoulder.C0 = (LeftShoulder.C0,(- + * (sine * ), - * (sine + ), -) * ( + * (sine * ), -, * (sine * )), deltaTime)
LeftHip.C0 = (LeftHip.C0,(-, - - * (sine * )-Ychg, ) * (, - - * (sine + ), ), deltaTime)
RightShoulder.C0 = (RightShoulder.C0,( + * (sine * ), + * (sine + ), -) * ( - * (sine * ), , * (sine * )), deltaTime)
})
(, {
idle = ()
Ychg=()/
LeftShoulder.C0 = (LeftShoulder.C0,(-, , ) * (, - + * ((sine - ) * ), ), deltaTime)
RightShoulder.C0 = (RightShoulder.C0,( + * ((sine - ) * ), , ) * (, - * ((sine - ) * ), ), deltaTime)
Neck.C0 = (Neck.C0,(, , ) * (-, - * ((sine + ) * ), - + * (sine * )), deltaTime)
RootJoint.C0 = (RootJoint.C0,( * (sine * ), Ychg, ) * (-, - + * (sine * ), -), deltaTime)
RightHip.C0 = (RightHip.C0,(, - + * (sine * )-Ychg, ) * (, + * (sine * ), -), deltaTime)
LeftHip.C0 = (LeftHip.C0,(- - * (sine * ), - - * (sine * )-Ychg, ) * (, - + * (sine * ), ), deltaTime)
})
(, {
idle = ()
Ychg=()/
LeftShoulder.C0 = (LeftShoulder.C0,(-, , ) * (-, - * (sine * ), -), deltaTime)
RightHip.C0 = (RightHip.C0,(, - - * (sine * )-Ychg, ) * (-, , ), deltaTime)
LeftHip.C0 = (LeftHip.C0,(-, - - * (sine * )-Ychg, ) * (-, -, -), deltaTime)
Neck.C0 = (Neck.C0,(, , ) * (- + * ((sine - ) * ), -, ), deltaTime)
RightShoulder.C0 = (RightShoulder.C0,(, , ) * ( + * ((sine - ) * ), , -), deltaTime)
RootJoint.C0 = (RootJoint.C0,(, * (sine * ) + Ychg, ) * (-, , ), deltaTime)
})
(, {
idle = ()
()
RootJoint.C0 = (RootJoint.C0,(, + * (sine * ), ) * (-, , ), deltaTime)
Neck.C0 = (Neck.C0,(, - * ((sine + ) * ), ) * (- - * ((sine + ) * ), , + * (sine * )), deltaTime)
LeftHip.C0 = (LeftHip.C0,(- - * ((sine + ) * ), - - * (sine * ), * ((sine + ) * )) * (, -, ), deltaTime)
RightHip.C0 = (RightHip.C0,( + * ((sine + ) * ), - - * (sine * ), - * ((sine + ) * )) * (, , ), deltaTime)
RightShoulder.C0 = (RightShoulder.C0,(- - * (sine * ), - * (sine * ), - * ((sine + ) * )) * (, , ), deltaTime)
LeftShoulder.C0 = (LeftShoulder.C0,( + * (sine * ), - * (sine * ), * ((sine + ) * )) * (, -, ), deltaTime)
,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
end
})
addmode("i", {
idle = function()
local Ychg=velYchg()/20
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
LeftHip.C0 = Lerp(LeftHip.C0,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)
RootJoint.C0 = Lerp(RootJoint.C0,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)
Neck.C0 = Lerp(Neck.C0,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)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
RightHip.C0 = Lerp(RightHip.C0,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)
--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
end,
})
addmode("o", {
idle = function()
local Ychg=velYchg()/20
local rY, lY = raycastlegs()
LeftHip.C0 = Lerp(LeftHip.C0,cf(-1, -1 + lY-Ychg, lY * -0.5) * angles(-1.8325957145940461 - 0.08726646259971647 * sin(sine * 2), -1.4835298641951802, -1.5707963267948966), deltaTime)
RootJoint.C0 = Lerp(RootJoint.C0,cf(0, Ychg, 0.09 * sin(sine * 2)) * angles(-1.3962634015954636 + 0.08726646259971647 * sin(sine * 2), -0.08726646259971647, 3.141592653589793), deltaTime)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
RightHip.C0 = Lerp(RightHip.C0,cf(1, -1.1 + rY-Ychg, rY * -0.5) * angles(-1.7453292519943295 - 0.08726646259971647 * sin(sine * 2), 1.5707963267948966, 1.5707963267948966), deltaTime)
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-1.2217304763960306 - 0.08726646259971647 * sin((sine + 0.3) * 2), -0.2617993877991494 - 0.08726646259971647 * sin(sine * 2), 3.141592653589793), deltaTime)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
--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
end,
walk = function()
local Ychg=velYchg()/20
local Vfw, Vrt = velbycfrvec()
local rY, lY = raycastlegs()
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-1.5707963267948966 + 0.04363323129985824 * sin(sine * 16), 0, 3.141592653589793 + 0.08726646259971647 * sin(sine * 8) - Vrt), deltaTime)
RightHip.C0 = Lerp(RightHip.C0,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)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
RootJoint.C0 = Lerp(RootJoint.C0,cf(0, 0.1 * sin((sine + 0.1) * 16)+Ychg, 0) * angles(-1.5707963267948966, 0, 3.141592653589793 - 0.08726646259971647 * sin(sine * 8)), deltaTime)
LeftHip.C0 = Lerp(LeftHip.C0,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)
--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
end
})
addmode("p", {
idle = function()
local Ychg=velYchg()/20
RightShoulder.C0 = Lerp(RightShoulder.C0,cf(1.5, 0.5, 0) * angles(1.5707963267948966, 3.141592653589793, -1.5707963267948966), deltaTime)
RightHip.C0 = Lerp(RightHip.C0,cf(1, -1-Ychg, 0) * angles(0, 1.5707963267948966, 0), deltaTime)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,cf(-1.5, 0.5, 0) * angles(1.5707963267948966, 3.141592653589793, 1.5707963267948966), deltaTime)
LeftHip.C0 = Lerp(LeftHip.C0,cf(-1, -1-Ychg, 0) * angles(0, -1.5707963267948966, 0), deltaTime)
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-1.5707963267948966, 0, -3.141592653589793), deltaTime)
RootJoint.C0 = Lerp(RootJoint.C0,cf(0, Ychg, 0) * angles(-1.5707963267948966, 0, -3.141592653589793), deltaTime)
--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
end
})
addmode("f", {
modeEntered = function()
setWalkSpeed(25)
end,
idle = function()
velYchg()
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
Neck.C0 = Lerp(Neck.C0,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)
RootJoint.C0 = Lerp(RootJoint.C0,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)
LeftHip.C0 = Lerp(LeftHip.C0,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)
RightHip.C0 = Lerp(RightHip.C0,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)
--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
end,
walk = function()
velYchg()
local Vfw, Vrt = velbycfrvec()
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
Neck.C0 = Lerp(Neck.C0,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)
RootJoint.C0 = Lerp(RootJoint.C0,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)
LeftHip.C0 = Lerp(LeftHip.C0,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)
RightHip.C0 = Lerp(RightHip.C0,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)
--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
end,
modeLeft = function()
setWalkSpeed(16)
end,
})
addmode("g", {
idle = function()
local Ychg=velYchg()/20
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
RootJoint.C0 = Lerp(RootJoint.C0,cf(0.3 * sin((sine + 0.4) * 8), Ychg, 0) * angles(-1.5707963267948966, 0.3490658503988659 * sin(sine * 8), -3.141592653589793), deltaTime)
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-1.5707963267948966 + 0.061086523819801536 * sin((sine + 0.125) * 16), -0.3839724354387525 * sin(sine * 8), -3.141592653589793), deltaTime)
RightHip.C0 = Lerp(RightHip.C0,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)
LeftHip.C0 = Lerp(LeftHip.C0,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)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
--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
end
})
addmode("h", {
idle = function()
local Ychg=velYchg()/20
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-1.5707963267948966, -0.4363323129985824 * sin(sine * 8), -3.141592653589793), deltaTime)
RightHip.C0 = Lerp(RightHip.C0,cf(1, -1 + 0.3 * sin(sine * 8)-Ychg, 0) * angles(1.5707963267948966, 1.5707963267948966 + 0.5235987755982988 * sin(sine * 8), -1.5707963267948966), deltaTime)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,cf(-0.5, 1, 0) * angles(-0.5235987755982988, -1.5707963267948966 - 0.5235987755982988 * sin(sine * 8), 3.141592653589793), deltaTime)
RightShoulder.C0 = Lerp(RightShoulder.C0,cf(0.5, 1, 0) * angles(-0.5235987755982988, 1.5707963267948966 - 0.5235987755982988 * sin(sine * 8), 3.141592653589793), deltaTime)
RootJoint.C0 = Lerp(RootJoint.C0,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)
LeftHip.C0 = Lerp(LeftHip.C0,cf(-1, -1 - 0.3 * sin(sine * 8)-Ychg, 0) * angles(1.5707963267948966, -1.5707963267948966 + 0.5235987755982988 * sin(sine * 8), 1.5707963267948966), deltaTime)
--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
end
})
addmode("j", {
idle = function()
local Ychg=velYchg()/20
LeftHip.C0 = Lerp(LeftHip.C0,cf(-0.8, -1, -0.1) * angles(0.17453292519943295, -0.6981317007977318, 0), deltaTime)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
RightHip.C0 = Lerp(RightHip.C0,cf(1.1, -1, 0) * angles(1.5707963267948966, 1.7453292519943295, -1.5707963267948966), deltaTime)
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-1.5707963267948966 + 0.08726646259971647 * sin((sine + 0.1) * 4), 0, 2.792526803190927), deltaTime)
RootJoint.C0 = Lerp(RootJoint.C0,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)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
--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
end
})
addmode("k", {
idle = function()
local Ychg=velYchg()/20
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-1.6580627893946132 - 0.08726646259971647 * sin((sine + 0.3333333333333333) * 12), -0.08726646259971647 * sin((sine + 0.2) * 6), 3.141592653589793), deltaTime)
LeftHip.C0 = Lerp(LeftHip.C0,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)
RightHip.C0 = Lerp(RightHip.C0,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)
RootJoint.C0 = Lerp(RootJoint.C0,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)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
--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
end
})
local function idleL()
local Ychg=velYchg()/20
RightHip.C0=Lerp(RightHip.C0,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)
RootJoint.C0=Lerp(RootJoint.C0,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)
RightShoulder.C0=Lerp(RightShoulder.C0,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)
Neck.C0=Lerp(Neck.C0,cf(0,1,0)*angles(-1.5707963267948966+0.08726646259971647*sin((sine-0.1)*16),0.12217304763960307*sin((sine-0.0785)*8),3.141592653589793),deltaTime)
LeftHip.C0=Lerp(LeftHip.C0,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)
LeftShoulder.C0=Lerp(LeftShoulder.C0,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)
--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
end
addmode("l", {
modeEntered = function()
setWalkSpeed(10)
end,
idle = idleL,
walk = idleL,
modeLeft = function()
setWalkSpeed(16)
end
})
end)
btn("nameless animations V7", function()
local t=reanimate()
if type(t)~="table" then return end
local raycastlegs=t.raycastlegs
local velbycfrvec=t.velbycfrvec
local velchgbycfrvec=t.velchgbycfrvec
local addmode=t.addmode
local getJoint=t.getJoint
local RootJoint=getJoint("RootJoint")
local RightShoulder=getJoint("Right Shoulder")
local LeftShoulder=getJoint("Left Shoulder")
local RightHip=getJoint("Right Hip")
local LeftHip=getJoint("Left Hip")
local Neck=getJoint("Neck")
addmode("default", {
idle = function()
local rY, lY = raycastlegs()
local Cfw, Crt = velchgbycfrvec()
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
Neck.C0 = Lerp(Neck.C0,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)
RootJoint.C0 = Lerp(RootJoint.C0,cf(Crt * 3, 0.1 * sin(sine * 2), Cfw * -3) * angles(-1.5707963267948966 + 0.08726646259971647 * sin(sine * 2) - Cfw, Crt, 3.141592653589793), deltaTime)
RightHip.C0 = Lerp(RightHip.C0,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)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
LeftHip.C0 = Lerp(LeftHip.C0,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)
--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
end,
walk = function()
local Vfw, Vrt = velbycfrvec()
local rY, lY = raycastlegs()
local Cfw, Crt = velchgbycfrvec()
RootJoint.C0 = Lerp(RootJoint.C0,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)
RightHip.C0 = Lerp(RightHip.C0,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)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
LeftHip.C0 = Lerp(LeftHip.C0,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)
Neck.C0 = Lerp(Neck.C0,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)
--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
end,
jump = function()
local Vfw, Vrt = velbycfrvec()
local Cfw, Crt = velchgbycfrvec()
RootJoint.C0 = Lerp(RootJoint.C0,cf(Crt * 3, 0, Cfw * -3) * angles(-1.4835298641951802 + Vfw * 0.1 - Cfw, Vrt * -0.05 + Crt, -3.141592653589793), deltaTime)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
LeftHip.C0 = Lerp(LeftHip.C0,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)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-1.3962634015954636, 0, -3.141592653589793 - Vrt), deltaTime)
RightHip.C0 = Lerp(RightHip.C0,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)
--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
end,
fall = function()
local Vfw, Vrt = velbycfrvec()
local Cfw, Crt = velchgbycfrvec()
RootJoint.C0 = Lerp(RootJoint.C0,cf(Crt * 3, 0, Cfw * -3) * angles(-1.6580627893946132 + Vfw * 0.1 - Cfw, Vrt * -0.05 + Crt, -3.141592653589793), deltaTime)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
LeftHip.C0 = Lerp(LeftHip.C0,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)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-1.7453292519943295, 0, -3.141592653589793 - Vrt), deltaTime)
RightHip.C0 = Lerp(RightHip.C0,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)
--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
end
})
addmode("q", {
idle = function()
local Cfw, Crt = velchgbycfrvec()
LeftShoulder.C0 = Lerp(LeftShoulder.C0,cf(-1, 0.75, -0.2) * angles(2.705260340591211 - 0.08726646259971647 * sin((sine + 0.1) * 2), -2.792526803190927, -0.6981317007977318), deltaTime)
RightShoulder.C0 = Lerp(RightShoulder.C0,cf(1, 0.75, -0.2) * angles(2.705260340591211 - 0.08726646259971647 * sin((sine + 0.1) * 2), 2.792526803190927, 0.6981317007977318), deltaTime)
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-1.9198621771937625 - 0.10471975511965978 * sin((sine + 0.3) * 2), 0, 3.141592653589793), deltaTime)
RootJoint.C0 = Lerp(RootJoint.C0,cf(Crt * 3, -2.45 - 0.05 * sin(sine * 2), Cfw * -3) * angles(0.03490658503988659 * sin(sine * 2) - Cfw, Crt, 3.141592653589793), deltaTime)
RightHip.C0 = Lerp(RightHip.C0,cf(1, -1, 0) * angles(1.3962634015954636 - 0.03490658503988659 * sin(sine * 2), 1.3089969389957472, -0.9599310885968813), deltaTime)
LeftHip.C0 = Lerp(LeftHip.C0,cf(-1, -1, 0) * angles(1.5707963267948966 - 0.03490658503988659 * sin(sine * 2), -1.3089969389957472, 1.5707963267948966), deltaTime)
--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
end
})
addmode("e", {
idle = function()
local Cfw, Crt = velchgbycfrvec()
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
RootJoint.C0 = Lerp(RootJoint.C0,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)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
Neck.C0 = Lerp(Neck.C0,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)
RightHip.C0 = Lerp(RightHip.C0,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)
LeftHip.C0 = Lerp(LeftHip.C0,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)
--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
end
})
addmode("r", {
idle = function()
local Cfw, Crt = velchgbycfrvec()
RightHip.C0 = Lerp(RightHip.C0,cf(1, -0.9 - 0.2 * sin(sine * 2), 0) * angles(1.5707963267948966, 1.6580627893946132 - 0.17453292519943295 * sin(sine + 0.8), -1.5707963267948966), deltaTime)
RootJoint.C0 = Lerp(RootJoint.C0,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)
Neck.C0 = Lerp(Neck.C0,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)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
LeftHip.C0 = Lerp(LeftHip.C0,cf(-1, -0.9 - 0.2 * sin(sine * 2), 0) * angles(1.5707963267948966, -1.6580627893946132 - 0.17453292519943295 * sin(sine + 0.8), 1.5707963267948966), deltaTime)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
--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
end
})
addmode("t", {
idle = function()
local Cfw, Crt = velchgbycfrvec()
LeftShoulder.C0 = Lerp(LeftShoulder.C0,cf(-1, 0.5, 0) * angles(1.5707963267948966, -1.6580627893946132 + 0.08726646259971647 * sin((sine - 0.3) * 4), 1.5707963267948966), deltaTime)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-1.4835298641951802, 0.04363323129985824 - 0.08726646259971647 * sin((sine + 0.1) * 4), -3.141592653589793 + 0.04363323129985824 * sin(sine * 4)), deltaTime)
RootJoint.C0 = Lerp(RootJoint.C0,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)
RightHip.C0 = Lerp(RightHip.C0,cf(1, -1.1 + 0.1 * sin(sine * 4), 0) * angles(1.5707963267948966, 1.5707963267948966 + 0.08726646259971647 * sin(sine * 4), -1.5707963267948966), deltaTime)
LeftHip.C0 = Lerp(LeftHip.C0,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)
--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
end
})
addmode("y", {
idle = function()
local Cfw, Crt = velchgbycfrvec()
LeftShoulder.C0 = Lerp(LeftShoulder.C0,cf(-1.5, 0.5, 0) * angles(-1.7453292519943295, 0.17453292519943295 - 0.04363323129985824 * sin(sine * 2), -1.4835298641951802), deltaTime)
RightHip.C0 = Lerp(RightHip.C0,cf(1, -0.9000000953674316 - 0.1 * sin(sine * 2), 0) * angles(-1.3962634015954636, 1.3962634015954636, 1.5707963267948966), deltaTime)
LeftHip.C0 = Lerp(LeftHip.C0,cf(-1, -1.0000001192092896 - 0.1 * sin(sine * 2), 0) * angles(-1.5707963267948966, -1.3962634015954636, -1.5707963267948966), deltaTime)
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-2.0943951023931953 + 0.08726646259971647 * sin((sine - 1) * 2), -0.08726646259971647, 2.792526803190927), deltaTime)
RightShoulder.C0 = Lerp(RightShoulder.C0,cf(1, 1.2000000476837158, 0) * angles(2.6179938779914944 + 0.08726646259971647 * sin((sine - 1) * 2), 0.6981317007977318, -1.3962634015954636), deltaTime)
RootJoint.C0 = Lerp(RootJoint.C0,cf(Crt * 3, 0.1 * sin(sine * 2), Cfw * -3) * angles(-1.6580627893946132 - Cfw, 0.08726646259971647 + Crt, 3.0543261909900767), deltaTime)
--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
end
})
addmode("u", {
idle = function()
local Cfw, Crt = velchgbycfrvec()
RootJoint.C0 = Lerp(RootJoint.C0,cf(Crt * 3, 0.75 + 0.25 * sin(sine * 2), Cfw * -3) * angles(-1.5707963267948966 - Cfw, Crt, 3.141592653589793), deltaTime)
Neck.C0 = Lerp(Neck.C0,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)
LeftHip.C0 = Lerp(LeftHip.C0,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)
RightHip.C0 = Lerp(RightHip.C0,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)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
--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
end
})
addmode("i", {
idle = function()
local Cfw, Crt = velchgbycfrvec()
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
LeftHip.C0 = Lerp(LeftHip.C0,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)
RootJoint.C0 = Lerp(RootJoint.C0,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)
Neck.C0 = Lerp(Neck.C0,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)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
RightHip.C0 = Lerp(RightHip.C0,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)
--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
end,
})
addmode("o", {
idle = function()
local rY, lY = raycastlegs()
local Cfw, Crt = velchgbycfrvec()
LeftHip.C0 = Lerp(LeftHip.C0,cf(-1, -1 + lY, lY * -0.5) * angles(-1.8325957145940461 - 0.08726646259971647 * sin(sine * 2), -1.4835298641951802, -1.5707963267948966), deltaTime)
RootJoint.C0 = Lerp(RootJoint.C0,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)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
RightHip.C0 = Lerp(RightHip.C0,cf(1, -1.1 + rY, rY * -0.5) * angles(-1.7453292519943295 - 0.08726646259971647 * sin(sine * 2), 1.5707963267948966, 1.5707963267948966), deltaTime)
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-1.2217304763960306 - 0.08726646259971647 * sin((sine + 0.3) * 2), -0.2617993877991494 - 0.08726646259971647 * sin(sine * 2), 3.141592653589793), deltaTime)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
--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
end,
walk = function()
local Vfw, Vrt = velbycfrvec()
local rY, lY = raycastlegs()
local Cfw, Crt = velchgbycfrvec()
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-1.5707963267948966 + 0.04363323129985824 * sin(sine * 16), 0, 3.141592653589793 + 0.08726646259971647 * sin(sine * 8) - Vrt), deltaTime)
RightHip.C0 = Lerp(RightHip.C0,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)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
RootJoint.C0 = Lerp(RootJoint.C0,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)
LeftHip.C0 = Lerp(LeftHip.C0,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)
--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
end
})
addmode("p", {
idle = function()
local Cfw, Crt = velchgbycfrvec()
RightShoulder.C0 = Lerp(RightShoulder.C0,cf(1.5, 0.5, 0) * angles(1.5707963267948966, 3.141592653589793, -1.5707963267948966), deltaTime)
RightHip.C0 = Lerp(RightHip.C0,cf(1, -1, 0) * angles(0, 1.5707963267948966, 0), deltaTime)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,cf(-1.5, 0.5, 0) * angles(1.5707963267948966, 3.141592653589793, 1.5707963267948966), deltaTime)
LeftHip.C0 = Lerp(LeftHip.C0,cf(-1, -1, 0) * angles(0, -1.5707963267948966, 0), deltaTime)
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-1.5707963267948966, 0, -3.141592653589793), deltaTime)
RootJoint.C0 = Lerp(RootJoint.C0,cf(Crt * 3, 0, Cfw * -3) * angles(-1.5707963267948966 - Cfw, Crt, -3.141592653589793), deltaTime)
--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
end
})
addmode("f", {
idle = function()
local Cfw, Crt = velchgbycfrvec()
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
Neck.C0 = Lerp(Neck.C0,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)
RootJoint.C0 = Lerp(RootJoint.C0,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)
LeftHip.C0 = Lerp(LeftHip.C0,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)
RightHip.C0 = Lerp(RightHip.C0,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)
--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
end,
walk = function()
local Vfw, Vrt = velbycfrvec()
local Cfw, Crt = velchgbycfrvec()
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
Neck.C0 = Lerp(Neck.C0,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)
RootJoint.C0 = Lerp(RootJoint.C0,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)
LeftHip.C0 = Lerp(LeftHip.C0,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)
RightHip.C0 = Lerp(RightHip.C0,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)
--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
end
})
addmode("g", {
idle = function()
local Cfw, Crt = velchgbycfrvec()
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
RootJoint.C0 = Lerp(RootJoint.C0,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)
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-1.5707963267948966 + 0.061086523819801536 * sin((sine + 0.125) * 16), -0.3839724354387525 * sin(sine * 8), -3.141592653589793), deltaTime)
RightHip.C0 = Lerp(RightHip.C0,cf(1, -1 + 0.4 * sin((sine - 0.01) * 8), 0) * angles(1.5707963267948966, 1.7453292519943295 + 0.6981317007977318 * sin(sine * 8), -1.5707963267948966), deltaTime)
LeftHip.C0 = Lerp(LeftHip.C0,cf(-1, -1 - 0.4 * sin((sine - 0.01) * 8), 0) * angles(1.5707963267948966, -1.7453292519943295 + 0.6981317007977318 * sin(sine * 8), 1.5707963267948966), deltaTime)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
--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
end
})
addmode("h", {
idle = function()
local Cfw, Crt = velchgbycfrvec()
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-1.5707963267948966, -0.4363323129985824 * sin(sine * 8), -3.141592653589793), deltaTime)
RightHip.C0 = Lerp(RightHip.C0,cf(1, -1 + 0.3 * sin(sine * 8), 0) * angles(1.5707963267948966, 1.5707963267948966 + 0.5235987755982988 * sin(sine * 8), -1.5707963267948966), deltaTime)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,cf(-0.5, 1, 0) * angles(-0.5235987755982988, -1.5707963267948966 - 0.5235987755982988 * sin(sine * 8), 3.141592653589793), deltaTime)
RightShoulder.C0 = Lerp(RightShoulder.C0,cf(0.5, 1, 0) * angles(-0.5235987755982988, 1.5707963267948966 - 0.5235987755982988 * sin(sine * 8), 3.141592653589793), deltaTime)
RootJoint.C0 = Lerp(RootJoint.C0,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)
LeftHip.C0 = Lerp(LeftHip.C0,cf(-1, -1 - 0.3 * sin(sine * 8), 0) * angles(1.5707963267948966, -1.5707963267948966 + 0.5235987755982988 * sin(sine * 8), 1.5707963267948966), deltaTime)
--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
end
})
addmode("j", {
idle = function()
local Cfw, Crt = velchgbycfrvec()
LeftHip.C0 = Lerp(LeftHip.C0,cf(-0.8, -1, -0.1) * angles(0.17453292519943295, -0.6981317007977318, 0), deltaTime)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
RightHip.C0 = Lerp(RightHip.C0,cf(1.1, -1, 0) * angles(1.5707963267948966, 1.7453292519943295, -1.5707963267948966), deltaTime)
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-1.5707963267948966 + 0.08726646259971647 * sin((sine + 0.1) * 4), 0, 2.792526803190927), deltaTime)
RootJoint.C0 = Lerp(RootJoint.C0,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)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
--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
end
})
addmode("k", {
idle = function()
local Cfw, Crt = velchgbycfrvec()
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-1.6580627893946132 - 0.08726646259971647 * sin((sine + 0.3333333333333333) * 12), -0.08726646259971647 * sin((sine + 0.2) * 6), 3.141592653589793), deltaTime)
LeftHip.C0 = Lerp(LeftHip.C0,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)
RightHip.C0 = Lerp(RightHip.C0,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)
RootJoint.C0 = Lerp(RootJoint.C0,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)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
--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
end
})
addmode("l", {
idle = function()
local Cfw, Crt = velchgbycfrvec()
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-1.5707963267948966 + 0.04363323129985824 * sin((sine + 0.1) * 1), -0.17453292519943295 * sin((sine + 0.1) * 5), -3.141592653589793), deltaTime)
RightHip.C0 = Lerp(RightHip.C0,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)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
LeftHip.C0 = Lerp(LeftHip.C0,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)
RootJoint.C0 = Lerp(RootJoint.C0,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)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,cf(-0.7, 0.5, -0.3) * angles(1.7453292519943295, -0.8726646259971648, 1.5707963267948966), deltaTime)
--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
end
})
addmode("x", {
idle = function()
local Cfw, Crt = velchgbycfrvec()
RightShoulder.C0 = Lerp(RightShoulder.C0,cf(1, 0.5, 0) * angles(0, 1.5707963267948966, 0), deltaTime)
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-1.5707963267948966, 0, 3.141592653589793), deltaTime)
RightHip.C0 = Lerp(RightHip.C0,cf(1, -1, 0) * angles(0, 1.5707963267948966, 0), deltaTime)
LeftHip.C0 = Lerp(LeftHip.C0,cf(-1, -1, 0) * angles(0, -1.5707963267948966, 0), deltaTime)
RootJoint.C0 = Lerp(RootJoint.C0,cf(Crt * 3, 0, Cfw * -3) * angles(-1.5707963267948966 - Cfw, Crt, 3.141592653589793), deltaTime)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,cf(-1, 0.5, 0) * angles(0, -1.5707963267948966, 0), deltaTime)
--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
end,
walk = function()
local Cfw, Crt = velchgbycfrvec()
RightShoulder.C0 = Lerp(RightShoulder.C0,cf(1, 0.5, 0) * angles(0, 1.5707963267948966, 0), deltaTime)
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-1.5707963267948966, 0, 3.141592653589793), deltaTime)
RightHip.C0 = Lerp(RightHip.C0,cf(1, -1, 0) * angles(0, 1.5707963267948966, 0), deltaTime)
LeftHip.C0 = Lerp(LeftHip.C0,cf(-1, -1, 0) * angles(0, -1.5707963267948966, 0), deltaTime)
RootJoint.C0 = Lerp(RootJoint.C0,cf(Crt * 3, 0, Cfw * -3) * angles(-1.5707963267948966 - Cfw, Crt, 3.141592653589793), deltaTime)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,cf(-1, 0.5, 0) * angles(0, -1.5707963267948966, 0), deltaTime)
--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
end
})
end)
btn("nameless animations V6", function()
local t=reanimate()
if type(t)~="table" then return end
local raycastlegs=t.raycastlegs
local velbycfrvec=t.velbycfrvec
local addmode=t.addmode
local getJoint=t.getJoint
local RootJoint=getJoint("RootJoint")
local RightShoulder=getJoint("Right Shoulder")
local LeftShoulder=getJoint("Left Shoulder")
local RightHip=getJoint("Right Hip")
local LeftHip=getJoint("Left Hip")
local Neck=getJoint("Neck")
addmode("default", {
idle = function()
local rY, lY = raycastlegs()
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
Neck.C0 = Lerp(Neck.C0,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)
RootJoint.C0 = Lerp(RootJoint.C0,cf(0, 0.1 * sin(sine * 2), 0) * angles(-1.5707963267948966 + 0.08726646259971647 * sin(sine * 2), 0, 3.141592653589793), deltaTime)
RightHip.C0 = Lerp(RightHip.C0,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)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
LeftHip.C0 = Lerp(LeftHip.C0,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)
--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
end,
walk = function()
local fw, rt = velbycfrvec()
local rY, lY = raycastlegs()
RootJoint.C0 = Lerp(RootJoint.C0,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)
RightHip.C0 = Lerp(RightHip.C0,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)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
LeftHip.C0 = Lerp(LeftHip.C0,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)
Neck.C0 = Lerp(Neck.C0,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)
--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
end,
jump = function()
local fw, rt = velbycfrvec()
RootJoint.C0 = Lerp(RootJoint.C0,cf(0, 0, 0) * angles(-1.4835298641951802 + fw * 0.1, rt * -0.05, -3.141592653589793), deltaTime)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
LeftHip.C0 = Lerp(LeftHip.C0,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)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-1.3962634015954636, 0, -3.141592653589793 - rt), deltaTime)
RightHip.C0 = Lerp(RightHip.C0,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)
--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
end,
fall = function()
local fw, rt = velbycfrvec()
RootJoint.C0 = Lerp(RootJoint.C0,cf(0, 0, 0) * angles(-1.6580627893946132 + fw * 0.1, rt * -0.05, -3.141592653589793), deltaTime)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
LeftHip.C0 = Lerp(LeftHip.C0,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)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-1.7453292519943295, 0, -3.141592653589793 - rt), deltaTime)
RightHip.C0 = Lerp(RightHip.C0,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)
--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
end
})
addmode("q", {
idle = function()
LeftShoulder.C0 = Lerp(LeftShoulder.C0,cf(-1, 0.75, -0.2) * angles(2.705260340591211 - 0.08726646259971647 * sin((sine + 0.1) * 2), -2.792526803190927, -0.6981317007977318), deltaTime)
RightShoulder.C0 = Lerp(RightShoulder.C0,cf(1, 0.75, -0.2) * angles(2.705260340591211 - 0.08726646259971647 * sin((sine + 0.1) * 2), 2.792526803190927, 0.6981317007977318), deltaTime)
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-1.9198621771937625 - 0.10471975511965978 * sin((sine + 0.3) * 2), 0, 3.141592653589793), deltaTime)
RootJoint.C0 = Lerp(RootJoint.C0,cf(0, -2.45 - 0.05 * sin(sine * 2), 0) * angles(0.03490658503988659 * sin(sine * 2), 0, 3.141592653589793), deltaTime)
RightHip.C0 = Lerp(RightHip.C0,cf(1, -1, 0) * angles(1.3962634015954636 - 0.03490658503988659 * sin(sine * 2), 1.3089969389957472, -0.9599310885968813), deltaTime)
LeftHip.C0 = Lerp(LeftHip.C0,cf(-1, -1, 0) * angles(1.5707963267948966 - 0.03490658503988659 * sin(sine * 2), -1.3089969389957472, 1.5707963267948966), deltaTime)
--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
end
})
addmode("e", {
idle = function()
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
RootJoint.C0 = Lerp(RootJoint.C0,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)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
Neck.C0 = Lerp(Neck.C0,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)
RightHip.C0 = Lerp(RightHip.C0,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)
LeftHip.C0 = Lerp(LeftHip.C0,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)
--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
end
})
addmode("r", {
idle = function()
RightHip.C0 = Lerp(RightHip.C0,cf(1, -0.9 - 0.2 * sin(sine * 2), 0) * angles(1.5707963267948966, 1.6580627893946132 - 0.17453292519943295 * sin(sine + 0.8), -1.5707963267948966), deltaTime)
RootJoint.C0 = Lerp(RootJoint.C0,cf(0.3 * sin(sine + 0.8), -0.1 + 0.2 * sin(sine * 2), 0) * angles(-1.5707963267948966, 0, -3.141592653589793), deltaTime)
Neck.C0 = Lerp(Neck.C0,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)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
LeftHip.C0 = Lerp(LeftHip.C0,cf(-1, -0.9 - 0.2 * sin(sine * 2), 0) * angles(1.5707963267948966, -1.6580627893946132 - 0.17453292519943295 * sin(sine + 0.8), 1.5707963267948966), deltaTime)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
--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
end
})
addmode("t", {
idle = function()
LeftShoulder.C0 = Lerp(LeftShoulder.C0,cf(-1, 0.5, 0) * angles(1.5707963267948966, -1.6580627893946132 + 0.08726646259971647 * sin((sine - 0.3) * 4), 1.5707963267948966), deltaTime)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-1.4835298641951802, 0.04363323129985824 - 0.08726646259971647 * sin((sine + 0.1) * 4), -3.141592653589793 + 0.04363323129985824 * sin(sine * 4)), deltaTime)
RootJoint.C0 = Lerp(RootJoint.C0,cf(0.1 * sin(sine * 4), 0, 0) * angles(-1.5707963267948966, -0.08726646259971647 + 0.08726646259971647 * sin(sine * 4), -3.141592653589793), deltaTime)
RightHip.C0 = Lerp(RightHip.C0,cf(1, -1.1 + 0.1 * sin(sine * 4), 0) * angles(1.5707963267948966, 1.5707963267948966 + 0.08726646259971647 * sin(sine * 4), -1.5707963267948966), deltaTime)
LeftHip.C0 = Lerp(LeftHip.C0,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)
--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
end
})
addmode("y", {
idle = function()
LeftShoulder.C0 = Lerp(LeftShoulder.C0,cf(-1.5, 0.5, 0) * angles(-1.7453292519943295, 0.17453292519943295 - 0.04363323129985824 * sin(sine * 2), -1.4835298641951802), deltaTime)
RightHip.C0 = Lerp(RightHip.C0,cf(1, -0.9000000953674316 - 0.1 * sin(sine * 2), 0) * angles(-1.3962634015954636, 1.3962634015954636, 1.5707963267948966), deltaTime)
LeftHip.C0 = Lerp(LeftHip.C0,cf(-1, -1.0000001192092896 - 0.1 * sin(sine * 2), 0) * angles(-1.5707963267948966, -1.3962634015954636, -1.5707963267948966), deltaTime)
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-2.0943951023931953 + 0.08726646259971647 * sin((sine - 1) * 2), -0.08726646259971647, 2.792526803190927), deltaTime)
RightShoulder.C0 = Lerp(RightShoulder.C0,cf(1, 1.2000000476837158, 0) * angles(2.6179938779914944 + 0.08726646259971647 * sin((sine - 1) * 2), 0.6981317007977318, -1.3962634015954636), deltaTime)
RootJoint.C0 = Lerp(RootJoint.C0,cf(0, 0.1 * sin(sine * 2), 0) * angles(-1.6580627893946132, 0.08726646259971647, 3.0543261909900767), deltaTime)
--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
end
})
addmode("u", {
idle = function()
RootJoint.C0 = Lerp(RootJoint.C0,cf(0, 0.75 + 0.25 * sin(sine * 2), 0) * angles(-1.5707963267948966, 0, 3.141592653589793), deltaTime)
Neck.C0 = Lerp(Neck.C0,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)
LeftHip.C0 = Lerp(LeftHip.C0,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)
RightHip.C0 = Lerp(RightHip.C0,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)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
--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
end
})
addmode("i", {
idle = function()
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
LeftHip.C0 = Lerp(LeftHip.C0,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)
RootJoint.C0 = Lerp(RootJoint.C0,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)
Neck.C0 = Lerp(Neck.C0,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)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
RightHip.C0 = Lerp(RightHip.C0,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)
--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
end,
})
addmode("o", {
idle = function()
local rY, lY = raycastlegs()
LeftHip.C0 = Lerp(LeftHip.C0,cf(-1, -1 + lY, lY * -0.5) * angles(-1.8325957145940461 - 0.08726646259971647 * sin(sine * 2), -1.4835298641951802, -1.5707963267948966), deltaTime)
RootJoint.C0 = Lerp(RootJoint.C0,cf(0, 0, 0.09 * sin(sine * 2)) * angles(-1.3962634015954636 + 0.08726646259971647 * sin(sine * 2), -0.08726646259971647, 3.141592653589793), deltaTime)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
RightHip.C0 = Lerp(RightHip.C0,cf(1, -1.1 + rY, rY * -0.5) * angles(-1.7453292519943295 - 0.08726646259971647 * sin(sine * 2), 1.5707963267948966, 1.5707963267948966), deltaTime)
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-1.2217304763960306 - 0.08726646259971647 * sin((sine + 0.3) * 2), -0.2617993877991494 - 0.08726646259971647 * sin(sine * 2), 3.141592653589793), deltaTime)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
--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
end,
walk = function()
local fw, rt = velbycfrvec()
local rY, lY = raycastlegs()
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-1.5707963267948966 + 0.04363323129985824 * sin(sine * 16), 0, 3.141592653589793 + 0.08726646259971647 * sin(sine * 8) - rt), deltaTime)
RightHip.C0 = Lerp(RightHip.C0,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)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
RootJoint.C0 = Lerp(RootJoint.C0,cf(0, 0.1 * sin((sine + 0.1) * 16), 0) * angles(-1.5707963267948966, 0, 3.141592653589793 - 0.08726646259971647 * sin(sine * 8)), deltaTime)
LeftHip.C0 = Lerp(LeftHip.C0,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)
--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
end
})
addmode("p", {
idle = function()
RightShoulder.C0 = Lerp(RightShoulder.C0,cf(1.5, 0.5, 0) * angles(1.5707963267948966, 3.141592653589793, -1.5707963267948966), deltaTime)
RightHip.C0 = Lerp(RightHip.C0,cf(1, -1, 0) * angles(0, 1.5707963267948966, 0), deltaTime)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,cf(-1.5, 0.5, 0) * angles(1.5707963267948966, 3.141592653589793, 1.5707963267948966), deltaTime)
LeftHip.C0 = Lerp(LeftHip.C0,cf(-1, -1, 0) * angles(0, -1.5707963267948966, 0), deltaTime)
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-1.5707963267948966, 0, -3.141592653589793), deltaTime)
RootJoint.C0 = Lerp(RootJoint.C0,cf(0, 0, 0) * angles(-1.5707963267948966, 0, -3.141592653589793), deltaTime)
--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
end
})
addmode("f", {
idle = function()
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
Neck.C0 = Lerp(Neck.C0,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)
RootJoint.C0 = Lerp(RootJoint.C0,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)
LeftHip.C0 = Lerp(LeftHip.C0,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)
RightHip.C0 = Lerp(RightHip.C0,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)
--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
end,
walk = function()
local fw, rt = velbycfrvec()
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
Neck.C0 = Lerp(Neck.C0,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)
RootJoint.C0 = Lerp(RootJoint.C0,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)
LeftHip.C0 = Lerp(LeftHip.C0,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)
RightHip.C0 = Lerp(RightHip.C0,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)
--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
end
})
addmode("g", {
idle = function()
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
RootJoint.C0 = Lerp(RootJoint.C0,cf(0.3 * sin((sine + 0.4) * 8), 0, 0) * angles(-1.5707963267948966, 0.3490658503988659 * sin(sine * 8), -3.141592653589793), deltaTime)
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-1.5707963267948966 + 0.061086523819801536 * sin((sine + 0.125) * 16), -0.3839724354387525 * sin(sine * 8), -3.141592653589793), deltaTime)
RightHip.C0 = Lerp(RightHip.C0,cf(1, -1 + 0.4 * sin((sine - 0.01) * 8), 0) * angles(1.5707963267948966, 1.7453292519943295 + 0.6981317007977318 * sin(sine * 8), -1.5707963267948966), deltaTime)
LeftHip.C0 = Lerp(LeftHip.C0,cf(-1, -1 - 0.4 * sin((sine - 0.01) * 8), 0) * angles(1.5707963267948966, -1.7453292519943295 + 0.6981317007977318 * sin(sine * 8), 1.5707963267948966), deltaTime)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
--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
end
})
addmode("h", {
idle = function()
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-1.5707963267948966, -0.4363323129985824 * sin(sine * 8), -3.141592653589793), deltaTime)
RightHip.C0 = Lerp(RightHip.C0,cf(1, -1 + 0.3 * sin(sine * 8), 0) * angles(1.5707963267948966, 1.5707963267948966 + 0.5235987755982988 * sin(sine * 8), -1.5707963267948966), deltaTime)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,cf(-0.5, 1, 0) * angles(-0.5235987755982988, -1.5707963267948966 - 0.5235987755982988 * sin(sine * 8), 3.141592653589793), deltaTime)
RightShoulder.C0 = Lerp(RightShoulder.C0,cf(0.5, 1, 0) * angles(-0.5235987755982988, 1.5707963267948966 - 0.5235987755982988 * sin(sine * 8), 3.141592653589793), deltaTime)
RootJoint.C0 = Lerp(RootJoint.C0,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)
LeftHip.C0 = Lerp(LeftHip.C0,cf(-1, -1 - 0.3 * sin(sine * 8), 0) * angles(1.5707963267948966, -1.5707963267948966 + 0.5235987755982988 * sin(sine * 8), 1.5707963267948966), deltaTime)
--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
end
})
addmode("j", {
idle = function()
LeftHip.C0 = Lerp(LeftHip.C0,cf(-0.8, -1, -0.1) * angles(0.17453292519943295, -0.6981317007977318, 0), deltaTime)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
RightHip.C0 = Lerp(RightHip.C0,cf(1.1, -1, 0) * angles(1.5707963267948966, 1.7453292519943295, -1.5707963267948966), deltaTime)
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-1.5707963267948966 + 0.08726646259971647 * sin((sine + 0.1) * 4), 0, 2.792526803190927), deltaTime)
RootJoint.C0 = Lerp(RootJoint.C0,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)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
--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
end
})
addmode("k", {
idle = function()
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-1.6580627893946132 - 0.08726646259971647 * sin((sine + 0.3333333333333333) * 12), -0.08726646259971647 * sin((sine + 0.2) * 6), 3.141592653589793), deltaTime)
LeftHip.C0 = Lerp(LeftHip.C0,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)
RightHip.C0 = Lerp(RightHip.C0,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)
RootJoint.C0 = Lerp(RootJoint.C0,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)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,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)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
--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
end
})
addmode("l", {
idle = function()
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-1.5707963267948966 + 0.04363323129985824 * sin((sine + 0.1) * 1), -0.17453292519943295 * sin((sine + 0.1) * 5), -3.141592653589793), deltaTime)
RightHip.C0 = Lerp(RightHip.C0,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)
RightShoulder.C0 = Lerp(RightShoulder.C0,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)
LeftHip.C0 = Lerp(LeftHip.C0,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)
RootJoint.C0 = Lerp(RootJoint.C0,cf(0, 0.15 + 0.4 * sin((sine - 0.5) * 10), 0) * angles(-1.4835298641951802, 0.17453292519943295 * sin(sine * 5), -3.141592653589793), deltaTime)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,cf(-0.7, 0.5, -0.3) * angles(1.7453292519943295, -0.8726646259971648, 1.5707963267948966), deltaTime)
--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
end
})
end)
btn("goofy trolus (goofy)", function()
local t=reanimate()
if type(t)~="table" then return end
local velbycfrvec=t.velbycfrvec
local raycastlegs=t.raycastlegs
local getJoint=t.getJoint
local RootJoint=getJoint("RootJoint")
local RightShoulder=getJoint("Right Shoulder")
local LeftShoulder=getJoint("Left Shoulder")
local RightHip=getJoint("Right Hip")
local LeftHip=getJoint("Left Hip")
local Neck=getJoint("Neck")
t.addmode("default", {
idle = function()
local rY, lY = raycastlegs()
RightShoulder.C0 = Lerp(RightShoulder.C0,cf(1, 0.5, 0) * angles(0.6981317007977318 * sin((sine + 0.5) * 4), 1.5707963267948966 - 0.3490658503988659 * sin(sine * 4), 0), deltaTime)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,cf(-1, 0.5, 0) * angles(0.6981317007977318 * sin((sine + 0.5) * 4), -1.5707963267948966 + 0.3490658503988659 * sin(sine * 4), 0), deltaTime)
RightHip.C0 = Lerp(RightHip.C0,cf(1, -1 + rY, 0) * angles(1.5707963267948966 - 1.0471975511965976 * sin(sine * 4), 1.6580627893946132, -1.5707963267948966), deltaTime)
RootJoint.C0 = Lerp(RootJoint.C0,cf(0, -0.2 + 0.2 * sin((sine + 1) * 8), 0) * angles(-1.5707963267948966 + 0.6981317007977318 * sin(sine * 4), 0, 3.141592653589793), deltaTime)
LeftHip.C0 = Lerp(LeftHip.C0,cf(-1, -1 + lY, 0) * angles(1.5707963267948966 - 1.0471975511965976 * sin(sine * 4), -1.6580627893946132, 1.5707963267948966), deltaTime)
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-1.5707963267948966 - 0.8726646259971648 * sin((sine + 0.25) * 4), 0, 3.141592653589793), deltaTime)
--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
end,
walk = function()
local fw, rt = velbycfrvec()
Neck.C0 = Lerp(Neck.C0,cf(0, 1, 0) * angles(-1.5707963267948966 + 0.5235987755982988 * sin((sine + 0.45) * 8), 0, 3.141592653589793), deltaTime)
RightShoulder.C0 = Lerp(RightShoulder.C0,cf(1, 0.5, 0) * angles(2.0943951023931953 - 1.7453292519943295 * sin((sine - 0.1) * 4), 1.9198621771937625, -1.5707963267948966), deltaTime)
RootJoint.C0 = Lerp(RootJoint.C0,cf(0, 0.25 + 0.5 * sin((sine - 0.125) * 8), 0) * angles(-1.5707963267948966 + 0.17453292519943295 * sin(sine * 8), 0, 3.141592653589793), deltaTime)
LeftHip.C0 = Lerp(LeftHip.C0,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)
RightHip.C0 = Lerp(RightHip.C0,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)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,cf(-1, 0.5, 0) * angles(2.0943951023931953 + 1.7453292519943295 * sin((sine - 0.1) * 4), -1.7453292519943295, 1.5707963267948966), deltaTime)
--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
end
})
end)
btn("good cop bad cop animations", function()
local t=reanimate()
if type(t)~="table" then return end
local addmode=t.addmode
local getJoint=t.getJoint
local RootJoint=getJoint("RootJoint")
local RightShoulder=getJoint("Right Shoulder")
local LeftShoulder=getJoint("Left Shoulder")
local RightHip=getJoint("Right Hip")
local LeftHip=getJoint("Left Hip")
local Neck=getJoint("Neck")
t.setWalkSpeed(20)
local ROOTC0 = angles(rad(-90), 0, rad(180))
local NECKC0 = cf(0, 1, 0) * angles(rad(-90), 0, rad(180))
local RIGHTSHOULDERC0 = cf(-0.5, 0, 0) * angles(0, rad(90), 0)
local LEFTSHOULDERC0 = cf(0.5, 0, 0) * angles(0, rad(-90), 0)
local Animation_Speed = 0
--bruh yeah shackluster had a lot of math.rad(0) instead of just 0
--and a lot of multyplying by angles(0, 0, 0)
--and he had ArtificialHB
--and he had a sine value increasing by 2/3 each frame
--and a lot of variables with names saying other things
--and he had both C0 and C1 lerps for the same animations
local function C1lerps(iswalking)
Animation_Speed = 0.45/deltaTime
local sine = sine * 40
if iswalking then
RootJoint.C1 = Lerp(RootJoint.C1,ROOTC0 * cf(0, 0, 0.05 * cos(sine / (2.4))), 2 * 1.25 / Animation_Speed)
Neck.C1 = Lerp(Neck.C1,cf(0, -0.5, 0) * angles(rad(-90), 0, rad(180)), 0.2 * 1.25 / Animation_Speed)
RightHip.C1 = Lerp(RightHip.C1,cf(0.5, 0.875 - 0.125 * sin(sine / 4.8) - 0.15 * cos(sine / 2.4), 0) * angles(0, rad(90), 0) * angles(0, 0, rad(35 * cos(sine / 4.8))), 0.6 / Animation_Speed)
LeftHip.C1 = Lerp(LeftHip.C1,cf(-0.5, 0.875 + 0.125 * sin(sine / 4.8) - 0.15 * cos(sine / 2.4), 0) * angles(0, rad(-90), 0) * angles(0, 0, rad(35 * cos(sine / 4.8))), 0.6 / Animation_Speed)
else
RootJoint.C1 = Lerp(RootJoint.C1,ROOTC0, 0.2 / Animation_Speed)
Neck.C1 = Lerp(Neck.C1,cf(0, -0.5, 0) * angles(rad(-90), 0, rad(180)), 0.2 / Animation_Speed)
RightHip.C1 = Lerp(RightHip.C1,cf(0.5, 1, 0) * angles(0, rad(90), 0), 0.7 / Animation_Speed)
LeftHip.C1 = Lerp(LeftHip.C1,cf(-0.5, 1, 0) * angles(0, rad(-90), 0), 0.7 / Animation_Speed)
end
end
local function jumplerps()
local sine = sine * 40
C1lerps()
RootJoint.C0 = Lerp(RootJoint.C0,ROOTC0, 0.2 / Animation_Speed)
Neck.C0 = Lerp(Neck.C0,NECKC0 * cf(0, 0, 0 + ((1) - 1)) * angles(rad(-20), 0, 0), 0.2 / Animation_Speed)
RightShoulder.C0 = Lerp(RightShoulder.C0,cf(1.5, 0.5, 0) * angles(rad(-40), 0, rad(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,cf(-1.5, 0.5, 0) * angles(rad(-40), 0, rad(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
RightHip.C0 = Lerp(RightHip.C0,cf(1, -1, -0.3) * angles(0, rad(90), 0) * angles(rad(-5), 0, rad(-20)), 0.2 / Animation_Speed)
LeftHip.C0 = Lerp(LeftHip.C0,cf(-1, -1, -0.3) * angles(0, rad(-90), 0) * angles(rad(-5), 0, rad(20)), 0.2 / Animation_Speed)
end
local function falllerps()
local sine = sine * 40
C1lerps()
RootJoint.C0 = Lerp(RootJoint.C0,ROOTC0, 0.2 / Animation_Speed)
Neck.C0 = Lerp(Neck.C0,NECKC0 * cf(0, 0, 0 + ((1) - 1)) * angles(rad(20), 0, 0), 0.2 / Animation_Speed)
RightShoulder.C0 = Lerp(RightShoulder.C0,cf(1.5, 0.5, 0) * angles(0, 0, rad(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,cf(-1.5, 0.5, 0) * angles(0, 0, rad(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
RightHip.C0 = Lerp(RightHip.C0,cf(1, -1, 0) * angles(0, rad(90), 0) * angles(0, 0, rad(20)), 0.2 / Animation_Speed)
LeftHip.C0 = Lerp(LeftHip.C0,cf(-1, -1, 0) * angles(0, rad(-90), 0) * angles(0, 0, rad(10)), 0.2 / Animation_Speed)
end
addmode("default", {
idle = function()
local sine = sine * 40
C1lerps()
RootJoint.C0 = Lerp(RootJoint.C0,ROOTC0 * cf(0.05 * cos(sine / 12), 0, 0 + 0.05 * sin(sine / 12)), 0.15 / Animation_Speed)
Neck.C0 = Lerp(Neck.C0,NECKC0 * cf(0, 0, 0 + ((1) - 1)) * angles(rad(15 - 2.5 * sin(sine / 12)), 0, rad(-25)), 1 / Animation_Speed)
RightShoulder.C0 = Lerp(RightShoulder.C0,cf(1.25, 0.5, 0.3) * angles(rad(-45), 0, rad(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,cf(-1.25, 0.5, 0.3) * angles(rad(-40), 0, rad(45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
RightHip.C0 = Lerp(RightHip.C0,cf(1 + 0.05 * cos(sine / 12), -1 - 0.05 * sin(sine / 12), -0.01) * angles(0, rad(85), 0) * angles(rad(-1), 0, 0), 0.15 / Animation_Speed)
LeftHip.C0 = Lerp(LeftHip.C0,cf(-1 + 0.05 * cos(sine / 12), -1 - 0.05 * sin(sine / 12), -0.01) * angles(0, rad(-85), 0) * angles(rad(-1), 0, 0), 0.15 / Animation_Speed)
end,
walk = function()
local sine = sine * 40
C1lerps(true)
RootJoint.C0 = Lerp(RootJoint.C0,ROOTC0 * cf(0, 0, -0.05), 0.15 / Animation_Speed)
Neck.C0 = Lerp(Neck.C0,NECKC0 * cf(0, 0, 0 + ((1) - 1)) * angles(rad(5), 0, 0), 0.15 / Animation_Speed)
RightShoulder.C0 = Lerp(RightShoulder.C0,cf(1.25, 0.5 + 0.05 * sin(sine / (2.4)), 0.3) * angles(rad(-45), 0, rad(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,cf(-1.25, 0.5 + 0.05 * sin(sine / (2.4)), 0.3) * angles(rad(-40), 0, rad(45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
RightHip.C0 = Lerp(RightHip.C0,cf(1, -1, 0) * angles(0, rad(80), 0) * angles(0, 0, rad(-5)), 2 / Animation_Speed)
LeftHip.C0 = Lerp(LeftHip.C0,cf(-1, -1, 0) * angles(0, rad(-80), 0) * angles(0, 0, rad(5)), 2 / Animation_Speed)
end,
jump = jumplerps,
fall = falllerps
})
addmode("f", {
idle = function()
local sine = sine * 40
C1lerps()
RootJoint.C0 = Lerp(RootJoint.C0,ROOTC0 * cf(0, 0, 0 + 0.05 * cos(sine / 12)), 1 / Animation_Speed)
Neck.C0 = Lerp(Neck.C0,NECKC0 * cf(0, 0, 0 + ((1) - 1)) * angles(rad(-5 - 2.5 * cos(sine / 12)), 0, rad(25)), 1 / Animation_Speed)
RightShoulder.C0 = Lerp(RightShoulder.C0,cf(0.9, 0.5 + 0.05 * sin(sine / 12), -0.5) * angles(rad(100), 0, rad(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,cf(-0.9, 0.25 + 0.05 * sin(sine / 12), -0.35) * angles(rad(70), 0, rad(80)) * LEFTSHOULDERC0, 1 / Animation_Speed)
RightHip.C0 = Lerp(RightHip.C0,cf(1, -1 - 0.05 * cos(sine / 12), -0.01) * angles(0, rad(80), 0), 1 / Animation_Speed)
LeftHip.C0 = Lerp(LeftHip.C0,cf(-1, -1 - 0.05 * cos(sine / 12), -0.01) * angles(0, rad(-80), 0), 1 / Animation_Speed)
end,
walk = function()
local sine = sine * 40
C1lerps(true)
RootJoint.C0 = Lerp(RootJoint.C0,ROOTC0 * cf(0, 0, -0.05), 0.15 / Animation_Speed)
Neck.C0 = Lerp(Neck.C0,NECKC0 * cf(0, 0, 0 + ((1) - 1)) * angles(rad(5), 0, 0), 0.15 / Animation_Speed)
RightShoulder.C0 = Lerp(RightShoulder.C0,cf(0.9, 0.5 + 0.05 * sin(sine / (2.4)), -0.5) * angles(rad(100), 0, rad(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,cf(-0.9, 0.25 + 0.05 * sin(sine / (2.4)), -0.35) * angles(rad(70), 0, rad(80)) * LEFTSHOULDERC0, 1 / Animation_Speed)
RightHip.C0 = Lerp(RightHip.C0,cf(1, -1, 0) * angles(0, rad(80), 0) * angles(0, 0, rad(-5)), 2 / Animation_Speed)
LeftHip.C0 = Lerp(LeftHip.C0,cf(-1, -1, 0) * angles(0, rad(-80), 0) * angles(0, 0, rad(5)), 2 / Animation_Speed)
end,
jump = jumplerps,
fall = falllerps
})
end)
lbl("original by shackluster")
lbl("the classics never die")
btn("metamorphosis vibe", function()
local t=reanimate()
if type(t)~="table" then return end
local addmode=t.addmode
local getJoint=t.getJoint
local velbycfrvec=t.velbycfrvec
local RootJoint=getJoint("RootJoint")
local RightShoulder=getJoint("Right Shoulder")
local LeftShoulder=getJoint("Left Shoulder")
local RightHip=getJoint("Right Hip")
local LeftHip=getJoint("Left Hip")
local Neck=getJoint("Neck")
t.setWalkSpeed(4.5)
addmode("default",{
idle=function()
Neck.C0=Lerp(Neck.C0,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)
RightHip.C0=Lerp(RightHip.C0,cf(1,-1+0.1*sin(sine*4),0)*angles(1.5707963267948966,1.5707963267948966+0.17453292519943295*sin(sine*4),-1.5707963267948966),deltaTime)
RightShoulder.C0=Lerp(RightShoulder.C0,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)
LeftShoulder.C0=Lerp(LeftShoulder.C0,cf(-1,0.5,0)*angles(1.0471975511965976,-1.2217304763960306+0.08726646259971647*sin((sine+0.2)*4),1.5707963267948966),deltaTime)
LeftHip.C0=Lerp(LeftHip.C0,cf(-1,-1-0.1*sin(sine*4),0)*angles(1.5707963267948966,-1.5707963267948966+0.17453292519943295*sin(sine*4),1.5707963267948966),deltaTime)
RootJoint.C0=Lerp(RootJoint.C0,cf(-0.1 * sin(sine*4),0,0)*angles(-1.5707963267948966,0.08726646259971647*sin(sine*4),3.141592653589793),deltaTime)
--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
end,
walk=function()
local fw,rt=velbycfrvec()
Neck.C0=Lerp(Neck.C0,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)
RightHip.C0=Lerp(RightHip.C0,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)
RightShoulder.C0=Lerp(RightShoulder.C0,cf(1,0.5,0)*angles(-0.5235987755982988*sin((sine+0.2)*4),1.5707963267948966-0.3490658503988659*sin(sine*4),0),deltaTime)
LeftShoulder.C0=Lerp(LeftShoulder.C0,cf(-1,0.5,0)*angles(0.5235987755982988*sin((sine+0.2)*4),-1.5707963267948966-0.3490658503988659*sin(sine*4),0),deltaTime)
LeftHip.C0=Lerp(LeftHip.C0,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)
RootJoint.C0=Lerp(RootJoint.C0,cf(0,0.05+0.2*sin((sine + 0.15)*8),0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
--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
end
})
end)
lbl("INTERWORLD - METAMORPHOSIS")
lbl("was listening to ^^ and animating")
btn("empty reanimate (no animations)", reanimate)
btn("stop current script",stopreanimate).TextColor3=c3(0.75,0,0)
lbl("SETTINGS (REANIMATE TO APPLY)")
local function swtc(txt,options,onchanged)
local current=0
local swtcbtn=nil
local function btnpressed()
current=current+1
if current>#options then
current=1
end
local option=options[current]
swtcbtn.Text=txt..": "..option.text
onchanged(option.value)
end
swtcbtn=btn("change",btnpressed)
btnpressed()
return swtcbtn
end
swtc("client sided placeholders",{
{value=true,text="yes"},
{value=false,text="no"}
},function(v)
placeholders=v
end)
swtc("highlight fling targets",{
{value=true,text="yes"},
{value=false,text="no"}
},function(v)
highlightflingtargets=v
end)
swtc("allow shiftlock",{
{value=true,text="yes"},
{value=false,text="no"}
},function(v)
allowshiftlock=v
end)
swtc("ctrl click tp",{
{value=true,text="yes"},
{value=false,text="no"}
},function(v)
ctrltp=v
end)
swtc("click fling",{
{value=true,text="yes"},
{value=false,text="no"}
},function(v)
clickfling=v
end)
swtc("changestate when fling",{
{value=true,text="yes"},
{value=false,text="no"}
},function(v)
flingchangestate=v
end)
lbl("(limb collision)")
local disguiscripts=nil
swtc("new gui scripts",{
{value=true,text="disable"},
{value=false,text="keep"}
},function(v)
disguiscripts=v
end)
Connect(pg.DescendantAdded,function(v)
if c and disguiscripts and IsA(v,"Script") then --mind Enum.RunContext.Client
v.Disabled=true
end
end)
swtc("new character scripts",{
{value=function(v)
if IsA(v,"Script") then --mind Enum.RunContext.Client
v.Disabled=true
end
end,text="disable"},
{value=false,text="keep"}
},function(v)
discharscripts=v
end)
local iscg,_=pcall(function()
i9.Parent=FindFirstChildOfClass(game,"CoreGui")
end)
if not iscg then
i6.Text="PLAYERGUI MODE"
i9.Parent=pg
twait(3)
i6.Text=guiTheme.guiTitle
end SCRIPT MADE BY MYWORLD DISCORD SERVER: discord.gg/QMy5f6DrbH update notes: optimized many tiny things, fixed bug with walking when ur walkspeed is 0 todo for me when release patchma 30: put to changelog that fixed bug that make error which makes detectable, put to changelog that added isFirstPerson function, switched to AssemblyLinearVelocity cuz runs faster, optimize getpartfrommesh p.j, add switch to not teleport and claim faster, fixed ui animation and customization bugs