Run it
Copy the script and paste it into your executor.
USE_METAMETHOD_OPTIMIZATIONS =
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
sine=()
deltaTime=
v3_0=(,,)
v3_101=(,,)
v3_010=(,,)
v3_001=(,,)
cf_0=(,,)
v3_xz=v3_101*
v3_xzL=v3_101*
v3_net=v3_010*
rs=(l)
l=l (,)
s=
i=,l
(,)==
s=s..((,))
s=s..((,))
s
insSet =
insGet =
cfGet =
cfMul =
cfAdd =
v3Get =
USE_METAMETHOD_OPTIMIZATIONS
di = debug.info
getMetamethodFromErrorStack=(userdata,f,test)
ret=
(f,()
ret=(,)
,userdata,,)
((ret)~=) (ret)
f
ret
insSet=(,(a,b,c) a[b]=c ,(f) a=() b=() (a,,b) a.Name==b )
insGet=(,(a,b) a[b] ,(f) a=() b=() a.Name=b (a,)==b )
cfGet=(cf_0,(a,b) a[b] ,(f) ((,,),)==(,,) )
cfMul=(cf_0,(a,b) a*b ,(f) (,,)*(,,)==((,,),(,,)) )
cfAdd=(cf_0,(a,b) a+b ,(f) (,,)+(,,)==((,,),(,,)) )
v3Get=(v3_0,(a,b) a[b] ,(f) (,,).Unit==((,,),) )
di =
insSet = (self, index, value)
self[index] = value
insGet = (self, index)
self[index]
cfGet = insGet
cfMul = (cf0, cf1)
cf0 * cf1
cfAdd = (cf0, cf1)
cf0 + cf1
v3Get = insGet
Clone=(,)
ClearAllChildren=(,)
Destroy=(,)
IsA=(,)
FindFirstChildOfClass=(,)
FindFirstChildWhichIsA=(,)
GetChildren=(,)
GetDescendants=(,)
IsDescendantOf=(,)
GetPropertyChangedSignal=(,)
plrs=(,)
rus=(,)
ws=(,)
uis=(,)
gs=(,)
sg=(,)
lp=(plrs,)
pg=(lp,)
mouse=(lp,)(lp)
stepped=(rus,)
heartbeat=(rus,)
renderstepped=(rus,)
GetPlayers=(plrs,)
SetCoreGuiEnabled=(sg,)
GetCoreGuiEnabled=(sg,)
Raycast=(ws,)
Connect=heartbeat.Connect
Disconnect=
Wait=heartbeat.Wait
GetMouseLocation=(uis,)
GetFocusedTextBox=(uis,)
GetMouseDelta=(uis,)
IsMouseButtonPressed=(uis,)
IsKeyDown=(uis,)
Inverse=(cf_0,)
Lerp=(cf_0,)
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=(,,),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=},
{meshid=,textureid=,C0=cf_0,Name=},
{meshid=,textureid=,C0=cf_0,Name=},
{meshid=,textureid=,C0=cf_0,Name=},
{meshid=,textureid=,C0=cf_0,Name=},
{meshid=,textureid=,C0=cf_0,Name=},
}
StarterGui = :()
StarterGui:(, {
Title = ,
Text =
})
gp=(p,n,cl)
i,v ,(p)
(v,cl) ((v,)==n)
v
timegp=(p,n,c,t)
t=()+t
t>()
i,v ,(p)
(v,c) ((v,)==n)
v
(stepped)
makeplaceholder=(v)
(v)~=
(v,)
(v,,)
v=(v)
i,v ,(v)
(v,)
(v,,())
(v)
(v)
(v,,())
(v,,)
(v,,)
(v,,)
(v,,ws)
v
emptyfunction=()
i1=()
i2=()
i3=()
i4=()
i5=()
i6=()
i7=()
i8=()
i9=()
i10=()
(i1,,(,))
(i1,,)
(i1,,)
(i1,,)
(i1,,(,,,guiTheme.windowRegularSize.Y/-))
(i1,,(,guiTheme.windowRegularSize.X,,guiTheme.windowRegularSize.Y))
(i1,,())
(i1,,i10)
(i2,,(,,))
(i2,,)
(i2,,(,guiTheme.windowRegularSize.X,,guiTheme.windowRegularSize.Y))
(i2,,())
(i2,,i1)
(i3,,(,,))
(i3,,)
(i3,,(,,,guiTheme.windowMinimizedSize.Y-))
(i3,,(,-,,guiTheme.windowRegularSize.Y-guiTheme.windowMinimizedSize.Y-))
(i3,,())
(i3,,i2)
(i4,,)
(i4,,)
(i4,,)
(i4,,(,-,,))
(i4,,e.AutomaticSize.Y)
(i4,,(,,,))
(i4,,)
(i4,,())
(i4,,i3)
(i5,,())
(i5,,i4)
(i5,,e.SortOrder.LayoutOrder)
(i6,,())
(i6,,i3)
(i6,,({(,guiTheme.listTopColor),(,guiTheme.listBottomColor)}))
(i6,,)
(i7,,e.Font.SourceSans)
(i7,,e.FontSize.Size18)
(i7,,)
(i7,,guiTheme.guiTitle)
(i7,,guiTheme.windowTitleColor)
(i7,,)
(i7,,(,))
(i7,,)
(i7,,(,,,guiTheme.windowMinimizedSize.Y/))
(i7,,())
(i7,,i2)
(i8,,(,))
(i8,,)
(i8,,(,,,))
(i8,,(,,,guiTheme.windowMinimizedSize.Y))
(i8,,())
(i8,,i2)
(i8,,e.Font.SourceSans)
(i8,,e.FontSize.Size18)
(i8,,)
(i8,,(,,))
(i8,,)
(i9,,())
(i9,,i2)
(i9,,({(,guiTheme.windowTopColor),(,guiTheme.windowBottomColor)}))
(i9,,)
(i10,,e.ZIndexBehavior.Sibling)
(i10,,)
(i10,,)
(i10,,)
(i10,,())
guimin=
minloop=
i1X=guiTheme.windowRegularSize.X
i1Y=guiTheme.windowRegularSize.Y
i1Xdest=i1X
i1Ydest=i1Y
a = ((i8,),()
guimin = guimin
guimin
i1Xdest=guiTheme.windowMinimizedSize.X
i1Ydest=guiTheme.windowMinimizedSize.Y
i1Xdest=guiTheme.windowRegularSize.X
i1Ydest=guiTheme.windowRegularSize.Y
minloop
minloop=
(i3,,)
sine=()
lastsine=sine
sine=()
deltaTime=(sine-lastsine)*
lastsine=sine
difX=i1Xdest-i1X
difY=i1Ydest-i1Y
((difY)<=) ((difX)<=)
i1X=i1Xdest
i1Y=i1Ydest
(i1,,(,i1X,,i1Y))
i1X=i1X+difX*deltaTime
i1Y=i1Y+difY*deltaTime
(i1,,(,i1X,,i1Y))
()
(i3,, guimin)
minloop=
)
Disconnect = a.Disconnect
a =
Draggable=(window,obj)
MB1enum = e.UserInputType.MouseButton1
TOUCHenum = e.UserInputType.Touch
obj = obj window
activeEntered =
mouseStart =
dragStart =
inputbegancon =
rendersteppedcon =
inputendedcon =
inputendedf=(a)
a=(a,)
(a==MB1enum) (a==TOUCHenum)
(rendersteppedcon)
(inputendedcon)
rendersteppedf=()
off = (uis)-mouseStart
(window,,dragStart+(,off.X,,off.Y))
inputbeganf=(a)
a=(a,)
((a==MB1enum) (a==TOUCHenum)) (activeEntered==) (uis)
mouseStart=(uis)
dragStart=(window,)
rendersteppedcon (rendersteppedcon)
rendersteppedcon = (renderstepped,rendersteppedf)
inputendedcon (inputendedcon)
inputendedcon = ((uis,),inputendedf)
((obj,),()
inputbegancon (inputbegancon)
inputbegancon = ((uis,),inputbeganf)
)
((obj,),()
(inputbegancon)
)
ondes=(d)
(d,)
thisEntered =
thisAdded =
con0 = ((d,),()
thisEntered =
( thisAdded) (d,)
activeEntered = activeEntered +
thisAdded =
)
con1 = ((d,),()
thisEntered =
thisAdded
activeEntered = activeEntered -
thisAdded =
)
con2 = ((d,),()
thisEntered
thisAdded (d,)
activeEntered = activeEntered -
thisAdded =
(d,) thisAdded
activeEntered = activeEntered +
thisAdded =
)
con3 =
con3 = ((d,),()
(d,window)
thisEntered
activeEntered = activeEntered -
(con0)
(con1)
(con2)
(con3)
)
((window,),ondes)
i,v ,(window)
(v)
btn=(txt, f)
i1=()
i2=()
(i1,,e.Font.SourceSans)
(i1,,e.FontSize.Size14)
(i1,,txt)
(i1,,)
(i1,,(,,,))
(i1,,guiTheme.buttonsTextColor)
(i1,,())
(i1,,i2)
(i2,,)
(i2,,)
(i2,,(,,,))
(i2,,())
f
((i2,),f)
(i2,,i4)
i1
lbl=(txt)
i1=()
i2=()
(i1,,e.Font.SourceSans)
(i1,,e.FontSize.Size14)
(i1,,txt)
(i1,,)
(i1,,guiTheme.labelsTextColor)
(i1,,(,,))
(i1,,)
(i1,,())
(i1,,i2)
(i2,,(,,,))
(i2,,)
(i2,,())
(i2,,i4)
i1
(i1)
()
()
()
allowshiftlock=
ctrltp=
placeholders=
clickfling=
highlightflingtargets=
discharscripts=
flingchangestate=
respawntp=
breakjointsmethod=
simrad=
hidedeatheffect=
c=
stopreanimate=()
c
c=
reanimate=()
novoid =
speedlimit =
retVelTime =
walkSpeed =
jumpPower =
gravity =
ctrlclicktp = ctrltp
clickfling = clickfling
flingvel = (,,)
()
c=(lp,)
(c (c,ws)) ,
rootpart=(c,,) (c,,) (c,,) (c,,,) (c,)
rootpart ,
cam=
refcam=()
newcam=(ws,)
newcam
((ws,))
newcam=(ws,)
cam=newcam
()
camcf=(cam,)
enumCamS=e.CameraType.Scriptable
camt=(cam,)
camcon0=
camcon1=
camcon2=
onnewcamera=()
()
camcon0
(camcon0)
(camcon1)
camcon0=
c
(cam,)==enumCamS
(cam,,camt)
(camcon2)
camcon0=((cam,),()
(cam,)~=camcf
(cam,,camcf)
)
camcon1=((cam,),()
(cam,)~=enumCamS
(cam,,enumCamS)
)
(cam,)~=enumCamS
(cam,,enumCamS)
(cam,)~=camcf
(cam,,camcf)
camcon2=((ws,),onnewcamera)
()
velYdelta=(ws,)*
((ws,),()
velYdelta=(ws,)*
)
fpdh=(ws,)
novoid=novoid (fpdh+)
Yvel=
cfr=(rootpart,)
pos=(cfr,)
cfr=(pos,pos+(cfr,)*v3_101)
primarypart=
shiftlock=
firstperson=
xzvel=v3_0
v3_0150=v3_010*
camcfLV=(camcf,)
camrot=(v3_0,camcfLV)
camcfRV=(camrot,)
cammag=-(((camcf,)-(pos+v3_0150)),)
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,(,,,,,,,,,,,)}
}
getPart=(name,blacklist)
i,v ,cframes
(i.Name==name) (blacklist (blacklist,i))
i
getJoint=(name)
i,v ,joints
v.Name==name
v
{C0=cf_0,C1=cf_0}
getPartFromMesh=(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
getPartJoint=(p)
cframes[p]
j=p.j
j
j
i,v ,joints
v.Part0==p
v
i,v ,joints
v.Part1==p
v
getAccWeldFromMesh=(m,t)
((m,t))
raycastparams=()
raycastparams.FilterType=e.RaycastFilterType.Exclude
raycastparams.RespectCanCollide=
rayfilter={}
characters={}
refreshrayfilter=()
(rayfilter)
i,v ,characters
(rayfilter,v)
raycastparams.FilterDescendantsInstances=rayfilter
flingtable={}
rootparts={}
i,v ,accessorylimbs
v.p=(v.Name)
makePartCons=(p,t)
(t.p==p) (p,)
t.p=
con0=((p,),()
(p,)
t.p==p
t.c=
t.p=
t.p
t.p=p
)
con1=
con1=((p,),()
(p,ws)
(con0)
(con1)
t.p==p
t.p=
)
ondes=
ondes=(v)
c (v,) (c,ws)
v1=attachments[(v,)]
v1
p=(v,)
(p,)~=c
meshid=
textureid=
(p,)
meshid=(p,)
textureid=(p,)
(p,)
sm=(p,)
sm
meshid=(sm,)
textureid=(sm,)
found=
i,_ ,cframes
(meshid==i.m) (textureid==i.t)
p1=i.p
p1 (p1,c)
p1==p
found=
found=
i.p=p
(p,i)
j=i.j
j (meshid,i.m) (textureid,i.t)
i.m=meshid
i.t=textureid
i.l=(p,)
i.p=p
(p,i)
i.j=
i.Name=(p,)
j.C0=(v,)
j.C1=v1[]
j.Part1=v1[]
(joints,j)
found=
found
i,l ,accessorylimbs
l.p (meshid,l.meshid) (textureid,l.textureid)
t={Name=(p,),l=(p,),m=meshid,t=textureid,p=p}
(p,t)
placeholders
t.v=(p)
cframes[t]=(p,)
(joints,{Part0=t,Part1=l.p,C0=l.C0,C1=cf_0})
l.p=
found=
found
t={Name=(p,),l=(p,),m=meshid,t=textureid,p=p}
(p,t)
placeholders
t.v=(p)
cframes[t]=(p,)
(joints,{Part0=t,Part1=v1[],C0=(v,),C1=v1[]})
simradv=
charcons={}
enumH=e.CoreGuiType.Health
onplayer=(v)
simradv=simradv+
islp=v==lp
lastc=
oncharacter=()
newc=(v,)
c newc (newc~=lastc)
lastc=newc
characters[v]=newc
()
islp
discharscripts
((newc,),discharscripts)
i,v ,(newc)
(v,)
(v,,)
hrp=(newc,,,)
(hrp c (newc,ws))
c=newc
fi,fv=(flingtable)
fi
flingchangestate
hum=(c,)
hum
(hum,)(hum,e.HumanoidStateType.Physics)
i,v ,(flingtable)
c
startpos=(i,)
stoptime=sine+
()
sine>stoptime
(i,) (i,ws)
((startpos-(i,)),)>
tcf=((i,),(i,)*((sine*)+))
novoid ((tcf,)<novoid)
tcf=(tcf,v3_010*(novoid-(tcf,)))
(hrp,,tcf)
(hrp,,(i,)*v3_101*)
(hrp,,flingvel)
v
(v)
flingtable[i]=
(hrp,,v3_0)
(hrp,,v3_0)
(hrp,,cfr)
()
respawntp==
startpos=pos+((-,),,(-,))
dir=
poscheck=
poscheck
poscheck=
i,v ,rootparts
diff=(startpos-(v,))*v3_101
(diff,)<
poscheck=
dir=dir ((diff,)*)
startpos=startpos+dir
diff=(startpos-pos)*v3_101
(diff,)<
poscheck=
dir=dir ((diff,)*)
startpos=startpos+dir
startpos=((cfr,),startpos)
(hrp,,startpos)
(hrp,,v3_0)
(hrp,,v3_0)
()
respawntp==
(hrp,,(cfr,(cfr,)*-(cfr,)*))
(hrp,,v3_0)
(hrp,,v3_0)
()
respawntp==
t=()+
startcf=(((cfr,),(,,)),pos*v3_101+v3_010*(fpdh+,(pos,)-))
()
(hrp,,startcf)
(hrp,,v3_0)
(hrp,,v3_0)
()>t
respawntp ==
(hrp, , v3_0)
(hrp, , v3_0)
(hrp, , ((cfr, ), (ws, ) + , (cfr, )))
()
newc~=c
primarypart=(newc,) hrp
hidedeatheffect (sg,enumH)
(sg,enumH,)
breakjointsmethod==
(newc,)(newc)
h=(newc,)
h
(h,,)
breakjointsmethod==
h=(newc,)
h
(h,,)
(newc,)(newc)
(newc,)(newc)
((newc,),ondes)
i,v ,(newc)
(v)
hrp=(newc,,,)
hrp c (newc,ws)
rootparts[v]=hrp
charcons[v]=((v,),oncharacter)
()
((plrs,),(v)
simradv=simradv-
charcon=charcons[v]
charcon
(charcon)
characters[v]=
rootparts[v]=
)
i,v ,(plrs) simradv=simradv+ v~=lp (onplayer,v)
((plrs,),onplayer)
(lp)
setsimrad=emptyfunction
simrad
setsimrad=()
canset,_=(()
(lp,,simradv)
)
canset
setsimrad=()
(lp,,simradv)
setsimrad=emptyfunction
mradN05=(-)
KeyCode=e.KeyCode
enumMB2=e.UserInputType.MouseButton2
enumMLCP=e.MouseBehavior.LockCurrentPosition
enumMLC=((uis,) enumMLCP) e.MouseBehavior.LockCenter
enumMD=e.MouseBehavior.Default
enumMW=e.UserInputType.MouseWheel
enumMM=e.UserInputType.MouseMovement
mouseBehavior=
lastMouseBehavior=(uis,)
((uis,),()
mouseBehavior ((uis,)~=mouseBehavior)
(uis,,mouseBehavior)
)
mode=
defaultmode={}
modes={default=defaultmode}
lerpsIdle=emptyfunction
lerpsWalk=emptyfunction
lerpsJump=emptyfunction
lerpsFall=emptyfunction
addmode=(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
jumpingInput=(uis,keySpace)
FWmovement=
RTmovement=
isWalking=
refreshKeyboardMovement=()
Wpressed Spressed Dpressed Apressed isWalking= FWmovement= RTmovement= isWalking= Apressed FWmovement= RTmovement=- isWalking= isWalking= FWmovement= Dpressed Apressed RTmovement= RTmovement= Apressed RTmovement=- RTmovement= isWalking= Spressed FWmovement=- Dpressed Apressed RTmovement= RTmovement= Apressed RTmovement=- RTmovement= isWalking= Dpressed Apressed isWalking= FWmovement= RTmovement= isWalking= Apressed FWmovement= RTmovement=- isWalking= isWalking=
()
keyShift=KeyCode.LeftShift
((uis,),(a)
(gs,) (uis)
a=(a,)
a==keyW
Wpressed=
()
a==keyA
Apressed=
()
a==keyS
Spressed=
()
a==keyD
Dpressed=
()
a==keySpace
jumpingInput=
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,),(a)
a=(a,)
a==keyW
Wpressed=
()
a==keyA
Apressed=
()
a==keyS
Spressed=
()
a==keyD
Dpressed=
()
a==keySpace
jumpingInput=
)
thumbstickEndX=
thumbstickStartY=
thumbstickSizeMultiplier=
jumpStartX=
jumpStartY=
jumpEndX=
jumpEndY=
thumbstickInputObject=
jumpInputObject=
cameraRotateInputObject=
cameraZoomInputObject=
thumbstickTouchStart=v3_0
cameraZoomInputMagnitude=
((uis,),(inputObject)
(gs,) (uis)
touchPos=(inputObject,)
touchX=(touchPos,)
touchY=(touchPos,)
( thumbstickInputObject) touchX<thumbstickEndX touchY>thumbstickStartY
thumbstickInputObject=inputObject
thumbstickTouchStart=(inputObject,)
isWalking=
( jumpInputObject) touchY>jumpStartY touchX>jumpStartX touchX<jumpEndX touchY<jumpEndY
jumpInputObject=inputObject
jumpingInput=
cameraRotateInputObject
cameraRotateInputObject=inputObject
cameraZoomInputObject=inputObject
cameraZoomInputMagnitude=((cameraRotateInputObject,)-(cameraZoomInputObject,),)
)
((uis,),(inputObject)
touchPos=(inputObject,)
touchX=(touchPos,)
touchY=(touchPos,)
inputObject==thumbstickInputObject
direction=(inputObject,)-thumbstickTouchStart
directionMag=(direction,)/thumbstickSizeMultiplier
directionMag>
isWalking=
direction=(direction,)*(,(directionMag-)/)
FWmovement=-(direction,)
RTmovement=(direction,)
isWalking=
inputObject==jumpInputObject
jumpingInput=touchY>jumpStartY touchX>jumpStartX touchX<jumpEndX touchY<jumpEndY
cameraZoomInputObject
newMagnitude=((cameraRotateInputObject,)-(cameraZoomInputObject,),)
cammag=cammag+(newMagnitude-cameraZoomInputMagnitude)**(-cammag/)
cameraZoomInputMagnitude=newMagnitude
cammag<
firstperson=
cammag=
firstperson=
inputObject==cameraRotateInputObject
rotation=(uis)*mradN05
camcfLV=((camrot,(rotation.Y,rotation.X,)),)
camrot=(v3_0,camcfLV)
camcfRV=(camrot,)
)
((uis,),(inputObject)
inputObject==thumbstickInputObject
thumbstickInputObject=
isWalking=
inputObject==jumpInputObject
jumpInputObject=
jumpingInput=
inputObject==cameraRotateInputObject
cameraRotateInputObject=
cameraZoomInputObject=
inputObject==cameraZoomInputObject
cameraZoomInputObject=
)
refreshTouchRegions=()
sX=(mouse,)
sY=(mouse,)
isSmallScreen=(sX,sY)<=
sY=sY+(gs,).Height
thumbstickEndX=sX*
thumbstickStartY=(sY+)*
isSmallScreen
thumbstickSizeMultiplier=
jumpStartX=sX-
jumpStartY=sY-
jumpEndX=jumpStartX+
jumpEndY=jumpStartY+
thumbstickSizeMultiplier=
jumpStartX=sX-
jumpStartY=sY-
jumpEndX=jumpStartX+
jumpEndY=jumpStartY+
((mouse,),refreshTouchRegions)
((mouse,),refreshTouchRegions)
((gs,),refreshTouchRegions)
()
mouseCameraMove=
((uis,),(a,b)
b
inputType=(a,)
mouseCameraMove inputType==enumMM
rotation=(uis)*mradN05
camcfLV=((camrot,(rotation.Y,rotation.X,)),)
camrot=(v3_0,camcfLV)
camcfRV=(camrot,)
inputType==enumMW
cammag=cammag+((a,),)*(-cammag/)
cammag<
firstperson=
cammag=
firstperson=
)
predictionfling=(target)
c
(target)~=
target=(mouse,)
target
(target,ws)
(target,) (target,)
target=(target,)
(target,)
target=(target,)
(target==c) ( (target,))
targetpart=(target,,) (target,,) (target,,)
( targetpart) (flingtable[targetpart]~=)
highlightflingtargets
h=()
(h,,())
(h,,target)
(h,,(,,))
(h,,(,,))
(h,,)
(h,,)
(h,,i10)
flingtable[targetpart]=h
flingtable[targetpart]=
clickConnection=
ctrlclicktp
ctrlclicktp=KeyCode.LeftControl
tpoff=v3_010*
clickfling
clickConnection=((mouse,),()
(mouse,)
(uis,ctrlclicktp)
pos=((mouse,),)+tpoff
cfr=(pos,pos+camcfLV*v3_101)
xzvel=v3_0
Yvel=
()
)
clickConnection=((mouse,),()
(mouse,) (uis,ctrlclicktp)
pos=((mouse,),)+tpoff
cfr=(pos,pos+camcfLV*v3_101)
xzvel=v3_0
Yvel=
)
clickfling
clickConnection=((mouse,),predictionfling)
hhOff=
hhOff1=
setHipHeight=(n)
hhOff=n+
hhOff1=n+
noYvelTime=
lastsine=sine
con=
mainFunction=()
c
i,v ,cframes
p=i.v
p
(p)
i,v ,flingtable
v
(v)
i,v ,charcons
(v)
clickConnection
(clickConnection)
mouseBehavior=
(uis,,enumMD)
()
c=(lp,)
c
(cam,,(c,))
con (con)
sine=()
delta=sine-lastsine
deltaTime=(delta*,)
lastsine=sine
shiftlock
allowshiftlock
mouseBehavior=enumMLC
mouseCameraMove=
shiftlock=
firstperson
mouseBehavior=enumMLC
mouseCameraMove=
(uis,enumMB2)
mouseBehavior=enumMLCP
mouseCameraMove=
mouseBehavior=enumMD
mouseCameraMove=
lastMouseBehavior~=mouseBehavior
lastMouseBehavior=mouseBehavior
(uis,,mouseBehavior)
raycastresult=(ws,pos,v3_010*(fpdh-(pos,)),raycastparams)
onground=
raycastresult
raycastresult=(raycastresult.Position,)
onground=(pos,)-raycastresult<hhOff1
onground
Yvel=
pos=pos+v3_010*(raycastresult+hhOff-(pos,))*(delta*,)
jumpingInput (jumpPower>)
Yvel=jumpPower
onground=
Yvel=Yvel-gravity*delta
(pos,)+Yvel*delta<raycastresult
Yvel=
pos=pos+v3_010*(raycastresult+hhOff-(pos,))
Yvel=
onground=
firstperson
isWalking
walkSpeed==
xzvel=v3_0
onground
cfr=(pos,pos+camcfLV*v3_101)
camcf=(camrot,pos+v3_0150)
cframes[rootpart]=cfr
(cam,,camcf)
()
noYvelTime=(noYvelTime+delta*,)
xzvel=xzvel*(-noYvelTime)
Yvel>
pos=pos+v3_010*Yvel*delta
cfr=(pos,pos+camcfLV*v3_101)
camcf=(camrot,pos+v3_0150)
cframes[rootpart]=cfr
(cam,,camcf)
()
noYvelTime=
pos=pos+v3_010*Yvel*delta
cfr=(pos,pos+camcfLV*v3_101)
camcf=(camrot,pos+v3_0150)
cframes[rootpart]=cfr
(cam,,camcf)
()
noYvelTime=
xzvel=((camcfLV*v3_101,)*FWmovement+(camcfRV*v3_101,)*RTmovement,)*walkSpeed
onground
pos=pos+xzvel*delta
cfr=(pos,pos+camcfLV*v3_101)
camcf=(camrot,pos+v3_0150)
cframes[rootpart]=cfr
(cam,,camcf)
()
noYvelTime=(noYvelTime+delta*,)
xzvel=xzvel*(-noYvelTime)
Yvel>
pos=pos+(xzvel+v3_010*Yvel)*delta
cfr=(pos,pos+camcfLV*v3_101)
camcf=(camrot,pos+v3_0150)
cframes[rootpart]=cfr
(cam,,camcf)
()
noYvelTime=
pos=pos+(xzvel+v3_010*Yvel)*delta
cfr=(pos,pos+camcfLV*v3_101)
camcf=(camrot,pos+v3_0150)
cframes[rootpart]=cfr
(cam,,camcf)
()
noYvelTime=
xzvel=v3_0
onground
cfr=(pos,pos+camcfLV*v3_101)
camcf=(camrot,pos+v3_0150)
cframes[rootpart]=cfr
(cam,,camcf)
()
noYvelTime=(noYvelTime+delta*,)
xzvel=xzvel*(-noYvelTime)
Yvel>
pos=pos+v3_010*Yvel*delta
cfr=(pos,pos+camcfLV*v3_101)
camcf=(camrot,pos+v3_0150)
cframes[rootpart]=cfr
(cam,,camcf)
()
noYvelTime=
pos=pos+v3_010*Yvel*delta
cfr=(pos,pos+camcfLV*v3_101)
camcf=(camrot,pos+v3_0150)
cframes[rootpart]=cfr
(cam,,camcf)
()
noYvelTime=
shiftlock
isWalking
walkSpeed==
xzvel=v3_0
onground
cfr=(pos,pos+camcfLV*v3_101)
camcf=(camrot,pos+v3_0150+camcfRV*+camcfLV*cammag)
cframes[rootpart]=cfr
(cam,,camcf)
()
noYvelTime=(noYvelTime+delta*,)
xzvel=xzvel*(-noYvelTime)
Yvel>
pos=pos+v3_010*Yvel*delta
cfr=(pos,pos+camcfLV*v3_101)
camcf=(camrot,pos+v3_0150+camcfRV*+camcfLV*cammag)
cframes[rootpart]=cfr
(cam,,camcf)
()
noYvelTime=
pos=pos+v3_010*Yvel*delta
cfr=(pos,pos+camcfLV*v3_101)
camcf=(camrot,pos+v3_0150+camcfRV*+camcfLV*cammag)
cframes[rootpart]=cfr
(cam,,camcf)
()
noYvelTime=
xzvel=((camcfLV*v3_101,)*FWmovement+(camcfRV*v3_101,)*RTmovement,)*walkSpeed
onground
pos=pos+xzvel*delta
cfr=(pos,pos+camcfLV*v3_101)
camcf=(camrot,pos+v3_0150+camcfRV*+camcfLV*cammag)
cframes[rootpart]=cfr
(cam,,camcf)
()
noYvelTime=(noYvelTime+delta*,)
xzvel=xzvel*(-noYvelTime)
Yvel>
pos=pos+(xzvel+v3_010*Yvel)*delta
cfr=(pos,pos+camcfLV*v3_101)
camcf=(camrot,pos+v3_0150+camcfRV*+camcfLV*cammag)
cframes[rootpart]=cfr
(cam,,camcf)
()
noYvelTime=
pos=pos+(xzvel+v3_010*Yvel)*delta
cfr=(pos,pos+camcfLV*v3_101)
camcf=(camrot,pos+v3_0150+camcfRV*+camcfLV*cammag)
cframes[rootpart]=cfr
(cam,,camcf)
()
noYvelTime=
xzvel=v3_0
onground
cfr=(pos,pos+camcfLV*v3_101)
camcf=(camrot,pos+v3_0150+camcfRV*+camcfLV*cammag)
cframes[rootpart]=cfr
(cam,,camcf)
()
noYvelTime=(noYvelTime+delta*,)
xzvel=xzvel*(-noYvelTime)
Yvel>
pos=pos+v3_010*Yvel*delta
cfr=(pos,pos+camcfLV*v3_101)
camcf=(camrot,pos+v3_0150+camcfRV*+camcfLV*cammag)
cframes[rootpart]=cfr
(cam,,camcf)
()
noYvelTime=
pos=pos+v3_010*Yvel*delta
cfr=(pos,pos+camcfLV*v3_101)
camcf=(camrot,pos+v3_0150+camcfRV*+camcfLV*cammag)
cframes[rootpart]=cfr
(cam,,camcf)
()
noYvelTime=
isWalking
walkSpeed==
xzvel=v3_0
onground
cfr=((cfr,),pos)
camcf=(camrot,pos+v3_0150+camcfLV*cammag)
cframes[rootpart]=cfr
(cam,,camcf)
()
noYvelTime=(noYvelTime+delta*,)
xzvel=xzvel*(-noYvelTime)
Yvel>
pos=pos+v3_010*Yvel*delta
cfr=((cfr,),pos)
camcf=(camrot,pos+v3_0150+camcfLV*cammag)
cframes[rootpart]=cfr
(cam,,camcf)
()
noYvelTime=
pos=pos+v3_010*Yvel*delta
cfr=((cfr,),pos)
camcf=(camrot,pos+v3_0150+camcfLV*cammag)
cframes[rootpart]=cfr
(cam,,camcf)
()
noYvelTime=
xzvel=((camcfLV*v3_101,)*FWmovement+(camcfRV*v3_101,)*RTmovement,)*walkSpeed
onground
pos=pos+xzvel*delta
cfr=(((cfr,),(v3_0,xzvel),deltaTime),pos)
camcf=(camrot,pos+v3_0150+camcfLV*cammag)
cframes[rootpart]=cfr
(cam,,camcf)
()
noYvelTime=(noYvelTime+delta*,)
xzvel=xzvel*(-noYvelTime)
Yvel>
pos=pos+(xzvel+(v3_010*Yvel))*delta
cfr=(((cfr,),(v3_0,xzvel),deltaTime),pos)
camcf=(camrot,pos+v3_0150+camcfLV*cammag)
cframes[rootpart]=cfr
(cam,,camcf)
()
noYvelTime=
pos=pos+(xzvel+(v3_010*Yvel))*delta
cfr=(((cfr,),(v3_0,xzvel),deltaTime),pos)
camcf=(camrot,pos+v3_0150+camcfLV*cammag)
cframes[rootpart]=cfr
(cam,,camcf)
()
noYvelTime=
xzvel=v3_0
onground
cfr=((cfr,),pos)
camcf=(camrot,pos+v3_0150+camcfLV*cammag)
cframes[rootpart]=cfr
(cam,,camcf)
()
noYvelTime=(noYvelTime+delta*,)
xzvel=xzvel*(-noYvelTime)
Yvel>
pos=pos+v3_010*Yvel*delta
cfr=((cfr,),pos)
camcf=(camrot,pos+v3_0150+camcfLV*cammag)
cframes[rootpart]=cfr
(cam,,camcf)
()
noYvelTime=
pos=pos+v3_010*Yvel*delta
cfr=((cfr,),pos)
camcf=(camrot,pos+v3_0150+camcfLV*cammag)
cframes[rootpart]=cfr
(cam,,camcf)
()
noYvelTime=
(rootpart)
(refreshedjoints)
idlerv=(((sine-)*),(sine*),((sine+)*))
idleoff=idlerv*
claimpos=(primarypart,)
claimposY=(claimpos,)
i,v ,cframes
part=i.p
part
(part,)==
placeholder=i.v
novoid ((v,)<novoid)
v=(v,v3_010*(novoid-(v,)))
lastpos=i.l
vel=((v,)-lastpos)/delta
mag=(vel,)
mag<
placeholder
(placeholder,,)
i.l=(v,)
v=(v,idleoff)
mag>speedlimit
placeholder
(placeholder,,v)
(placeholder,,ws)
vel=(vel,)*speedlimit
newpos=lastpos+vel*delta
v=((v,),newpos)
i.l=newpos
placeholder
(placeholder,,)
i.l=(v,)
claimtime=i.c
claimtime
sine-claimtime<retVelTime
Ydiff=(v,)-claimposY
velY=
fallingTime=
(Ydiff>) (velY>)
fallingTime=fallingTime+
fallingTime>
velY=velY-velYdelta
Ydiff=Ydiff+(velY*)
(part,,(claimpos-(v,))*v3_101/fallingTime+v3_net)
vel1=vel*noYvelTime+xzvel
(vel1,)>
(part,,(vel1,)*v3_xzL+v3_net)
(part,,vel1*v3_xz+v3_net)
i.c=sine
vel1=vel*noYvelTime+xzvel
(vel1,)>
(part,,(vel1,)*v3_xzL+v3_net)
(part,,vel1*v3_xz+v3_net)
(part,,v)
(part,,idlerv)
i.c=
i.l=(part,)
placeholder=i.v
placeholder
(placeholder,,v)
(placeholder,,ws)
placeholder=i.v
placeholder
(placeholder,,v)
(placeholder,,ws)
()
sine=()
lastsine=sine
con=(heartbeat,mainFunction)
()
refreshjoints=(v)
(v)
(refreshedjoints)
legcfR=(,-,)
legcfL=(-,-,)
raydir=v3_010*-
raycastlegs=()
rY=(ws,((cfr,legcfR),),raydir,raycastparams)
lY=(ws,((cfr,legcfL),),raydir,raycastparams)
rY ((rY.Position,)-((pos,)-)) ,lY ((lY.Position,)-((pos,)-))
velbycfrvec=()
fw=(cfr,)*xzvel/walkSpeed
rt=(cfr,)*xzvel/walkSpeed
(fw,)+(fw,),(rt,)+(rt,)
lastvel=v3_0
velchg1=v3_0
velchgbycfrvec=() elocity change
velchg1=velchg1+(lastvel-xzvel) --i recommend setting velchg1 to v3_0 when u start using this function or it will look worse
lastvel=xzvel
velchg1=velchg1-velchg1*(deltaTime/2)
local fw=cfGet(cfr,"LookVector")*velchg1/32
local rt=cfGet(cfr,"RightVector")*velchg1/32
return v3Get(fw,"X")+v3Get(fw,"Z"),v3Get(rt,"X")+v3Get(rt,"Z")
end
local lastYvel=0
local velYchg1=0
local velYchg=function() --this returns Y axis velocity change
velYchg1=clamp(velYchg1+(lastYvel-Yvel),-50,50) --i recommend setting velYchg1 to 0 when u start using this function or it will look worse
lastYvel=Yvel
velYchg1=velYchg1-velYchg1*(deltaTime/2)
return velYchg1
end
local rotToMouse=function(alpha) --this rotates ur character towards your mouse hit position
local pos1=pos*v3_010+cfGet(insGet(mouse,"Hit"),"Position")*v3_101
if pos~=pos1 then --could make nan rotation
cfr=Lerp(cfr,cfl(pos,pos1),alpha or deltaTime)
end
end
local glitchJoint=function(joint,targetGlitchTime,delayFrom,delayTo,radiansFrom,radiansTo)
if sine>targetGlitchTime then --local glitchtime=0 addMode("x",{idle=function() glitchtime=glitchJoint(joint,glitchtime,0.2,0.4,-0.1,0.1) end})
radiansFrom=radiansFrom*100
radiansTo=radiansTo*100
joint.C0=cfMul(joint.C0,angles(mrandom(radiansFrom,radiansTo)/100,mrandom(radiansFrom,radiansTo)/100,mrandom(radiansFrom,radiansTo)/100))
return sine+mrandom(delayFrom*100,delayTo*100)/100
end
return targetGlitchTime
end
local setWalkSpeed=function(n)
if type(n)~="number" then
n=16
end
walkSpeed=n
end
local setJumpPower=function(n)
if type(n)~="number" then
n=50
end
jumpPower=n
end
local setGravity=function(n)
if type(n)~="number" then
n=196.2
end
gravity=n
end
local setCfr=function(v) --sets character cframe
if typeof(v)=="CFrame" then
local newpos=cfGet(v,"Position")
camcf=cfAdd(camcf,newpos-pos)
insSet(cam,"CFrame",camcf)
cfr=v
pos=newpos
elseif typeof(v)=="Vector3" then
camcf=cfAdd(camcf,v-pos)
insSet(cam,"CFrame",camcf)
cfr=cfAdd(cfGet(cfr,"Rotation"),v)
pos=v
end
end
local getVel=function() --returns character velocity
return xzvel+v3_010*Yvel --important: use only in lerps or it might not work
end
local getCamCF=function() --returns camera cframe
return camcf
end
local isFirstPerson=function() --returns true if user is in first person camera mode
return firstperson
end
return {
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,
glitchJoint=glitchJoint,
setWalkSpeed=setWalkSpeed,
setJumpPower=setJumpPower,
setGravity=setGravity,
setCfr=setCfr,
getVel=getVel,
getCamCF=getCamCF,
isFirstPerson=isFirstPerson,
setHipHeight=setHipHeight
}
end
btn("Hakari (MADE BY ZPLANT AND TEED)", 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 getPartFromMesh=t.getPartFromMesh
local getPartJoint=t.getPartJoint
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")
local movingsword = getPartFromMesh(7535284433,7535284516)
local SwordWeld = getPartJoint(movingsword)
addmode("default", {
idle = function()
local rY, lY = raycastlegs()
local Cfw, Crt = velchgbycfrvec()
RightHip.C0=Lerp(RightHip.C0,cfMul(cf(1,-1+0.1*sin((sine+2)*1),0),angles(0.17453292519943295,1.3089969389957472,-0.17453292519943295)),deltaTime)
RootJoint.C0=Lerp(RootJoint.C0,cfMul(cf(0,-0.185+0.1*sin(sine*1),0),angles(-1.6580627893946132,-0.08726646259971647+0.017453292519943295*sin((sine+1)*1),2.8797932657906435+0.017453292519943295*sin(sine*1))),deltaTime)
Neck.C0=Lerp(Neck.C0,cfMul(cf(0,1,0),angles(-1.5707963267948966,0.08726646259971647,3.3161255787892263)),deltaTime)
LeftHip.C0=Lerp(LeftHip.C0,cfMul(cf(-1,-0.85+0.1*sin((sine+2)*1),0),angles(-0.17453292519943295,-1.1344640137963142,-0.2617993877991494)),deltaTime)
RightShoulder.C0=Lerp(RightShoulder.C0,cfMul(cf(1,0.5,0),angles(0.08726646259971647*sin(sine*1),1.3089969389957472+0.061086523819801536*sin((sine+0.5)*1),0)),deltaTime)
LeftShoulder.C0=Lerp(LeftShoulder.C0,cfMul(cf(-0.65,0.35,0.5),angles(0.2617993877991494,-2.0943951023931953+0.04363323129985824*sin(sine*1),0)),deltaTime)
--MW_animatorProgressSave: RightLeg,1,0,0,1,10,0,0,1,-1,0.1,2,1,75,0,0,1,0,0,0,1,-10,0,0,1,Torso,0,0,0,1,-95,0,0,1,-0.185,0.1,0,1,-5,1,1,1,0,0,0,1,165,1,0,1,Head,0,0,0,1,-90,0,0,1,1,0,0,1,5,0,0,1,0,0,0,1,190,0,0,1,LeftLeg,-1,0,0,1,-10,0,0,1,-0.85,0.1,2,1,-65,0,0,1,0,0,0,1,-15,0,0,1,RightArm,1,0,0,1,0,5,0,1,0.5,0,0,1,75,3.5,0.5,1,0,0,0,1,0,0,0,1,LeftArm,-0.65,0,0,1,15,0,0,1,0.35,0,0,1,-120,2.5,0,1,0.5,0,0,1,0,0,0,1
SwordWeld.C0=Lerp(SwordWeld.C0,cfMul(cf(-0.01117706298828125,10,-0.8308497667312622),angles(-0.3490658503988659,0,0)),deltaTime)
--MW_animatorProgressSave: 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,NebulaBlade_Handle,-0.01117706298828125,0,0,1,-20,0,0,1,10,0,0,1,0,0,0,1,-0.8308497667312622,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,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,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,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 Vfw, Vrt = velbycfrvec()
local rY, lY = raycastlegs()
local Cfw, Crt = velchgbycfrvec()
LeftShoulder.C0=Lerp(LeftShoulder.C0,cfMul(cf(-0.75,0.15,-0.5+0.05*sin(sine*16)),angles(0.08726646259971647*sin(sine*16),-3.6651914291880923+0.08726646259971647*sin(sine*16),-2.0943951023931953)),deltaTime)
Neck.C0=Lerp(Neck.C0,cfMul(cf(0,1,0),angles(-1.5707963267948966+0.04363323129985824*sin((sine+10)*16),-0.4363323129985824+0.17453292519943295*sin(sine*16),3.141592653589793-0.05235987755982989*sin((sine+5)*8))),deltaTime)
RootJoint.C0=Lerp(RootJoint.C0,cfMul(cf(0,-0.15+0.2*sin(sine*16),0),angles(-1.6580627893946132+0.08726646259971647*sin(sine*16),-0.05235987755982989+0.03490658503988659*sin((sine+0.5)*16),3.141592653589793)),deltaTime)
RightHip.C0=Lerp(RightHip.C0,cfMul(cf(1,-0.8+0.4*sin((sine+0.125)*8),-0.15+0.4*sin((sine+10)*8)),angles(1.3962634015954636+0.6981317007977318*sin(sine*8),1.5707963267948966,-1.5707963267948966+0.2617993877991494*sin(sine*8))),deltaTime)
LeftHip.C0=Lerp(LeftHip.C0,cfMul(cf(-1,-0.8-0.4*sin((sine+0.125)*8),-0.15-0.4*sin((sine+10)*8)),angles(1.3962634015954636-0.6981317007977318*sin(sine*8),-1.5707963267948966,1.5707963267948966+0.2617993877991494*sin(sine*8))),deltaTime)
RightShoulder.C0=Lerp(RightShoulder.C0,cfMul(cf(1,0.35+0.1*sin(sine*8),0),angles(-0.5235987755982988*sin(sine*8),1.5707963267948966-0.5235987755982988*sin(sine*8),-0.5235987755982988*sin(sine*8))),deltaTime)
--MW_animatorProgressSave: LeftArm,-0.75,0,0,1,0,5,0,16,0.15,0,0,8,-210,5,0,16,-0.5,0.05,0,16,-120,0,0.5,16,Head,0,0,0,1,-90,2.5,10,16,1,0,0,1,-25,10,0,16,0,0,0,1,180,-3,5,8,Torso,0,0,0,1,-95,5,0,16,-0.15,0.2,0,16,-3,2,0.5,16,0,0,0,1,180,0,0,1,RightLeg,1,0,0,8,80,40,0,8,-0.8,0.4,0.125,8,90,0,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,0,0,8,-0.15,-0.4,10,8,90,15,0,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
SwordWeld.C0=Lerp(SwordWeld.C0,cfMul(cf(-0.01117706298828125,10,-0.8308497667312622),angles(-0.3490658503988659,0,0)),deltaTime)
--MW_animatorProgressSave: 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,NebulaBlade_Handle,-0.01117706298828125,0,0,1,-20,0,0,1,10,0,0,1,0,0,0,1,-0.8308497667312622,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,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,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,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,
jump = function()
local Vfw, Vrt = velbycfrvec()
local Cfw, Crt = velchgbycfrvec()
RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(Crt * 3, 0, Cfw * -3),angles(-1.4835298641951802 + Vfw * 0.1 - Cfw, Vrt * -0.05 + Crt, -3.141592653589793)),deltaTime)
RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 0.5, 0),angles(4.014257279586958 - 0.08726646259971647 * sin((sine + 0.5) * 4), 1.7453292519943295 + 0.08726646259971647 * sin((sine + 0.25) * 4), -1.5707963267948966)),deltaTime)
LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1, 0),angles(1.5707963267948966 - 0.08726646259971647 * sin((sine + 0.5) * 4), -1.6580627893946132 + 0.06981317007977318 * sin((sine + 0.25) * 4), 1.5707963267948966)),deltaTime)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1, 0.5, 0),angles(4.014257279586958 - 0.08726646259971647 * sin((sine + 0.5) * 4), -1.7453292519943295 - 0.08726646259971647 * sin((sine + 0.25) * 4), 1.5707963267948966)),deltaTime)
Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.3962634015954636, 0, -3.141592653589793 - Vrt)),deltaTime)
RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1, 0),angles(1.5707963267948966 - 0.08726646259971647 * sin((sine + 0.5) * 4), 1.6580627893946132 - 0.06981317007977318 * sin((sine + 0.25) * 4), -1.5707963267948966)),deltaTime)
--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
SwordWeld.C0=Lerp(SwordWeld.C0,cfMul(cf(-0.01117706298828125,10,-0.8308497667312622),angles(-0.3490658503988659,0,0)),deltaTime)
--MW_animatorProgressSave: 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,NebulaBlade_Handle,-0.01117706298828125,0,0,1,-20,0,0,1,10,0,0,1,0,0,0,1,-0.8308497667312622,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,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,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,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,
fall = function()
local Vfw, Vrt = velbycfrvec()
local Cfw, Crt = velchgbycfrvec()
RootJoint.C0 = Lerp(RootJoint.C0,cfMul(cf(Crt * 3, 0, Cfw * -3),angles(-1.6580627893946132 + Vfw * 0.1 - Cfw, Vrt * -0.05 + Crt, -3.141592653589793)),deltaTime)
RightShoulder.C0 = Lerp(RightShoulder.C0,cfMul(cf(1, 0.5, 0),angles(4.014257279586958 - 0.08726646259971647 * sin((sine + 0.5) * 4), 1.7453292519943295 + 0.08726646259971647 * sin((sine + 0.25) * 4), -1.5707963267948966)),deltaTime)
LeftHip.C0 = Lerp(LeftHip.C0,cfMul(cf(-1, -1, 0),angles(1.5707963267948966 - 0.08726646259971647 * sin((sine + 0.5) * 4), -1.6580627893946132 + 0.06981317007977318 * sin((sine + 0.25) * 4), 1.5707963267948966)),deltaTime)
LeftShoulder.C0 = Lerp(LeftShoulder.C0,cfMul(cf(-1, 0.5, 0),angles(4.014257279586958 - 0.08726646259971647 * sin((sine + 0.5) * 4), -1.7453292519943295 - 0.08726646259971647 * sin((sine + 0.25) * 4), 1.5707963267948966)),deltaTime)
Neck.C0 = Lerp(Neck.C0,cfMul(cf(0, 1, 0),angles(-1.7453292519943295, 0, -3.141592653589793 - Vrt)),deltaTime)
RightHip.C0 = Lerp(RightHip.C0,cfMul(cf(1, -1, 0),angles(1.5707963267948966 - 0.08726646259971647 * sin((sine + 0.5) * 4), 1.6580627893946132 - 0.06981317007977318 * sin((sine + 0.25) * 4), -1.5707963267948966)),deltaTime)
--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()
RightShoulder.C0=Lerp(RightShoulder.C0,cfMul(cf(1.3,0.5,1),angles(3.9269908169872414+0.04363323129985824*sin((sine+1)*11),0.2617993877991494*sin(sine*11),-0.5235987755982988)),deltaTime)
LeftShoulder.C0=Lerp(LeftShoulder.C0,cfMul(cf(-1,0.5,1),angles(4.014257279586958,0.04363323129985824*sin((sine-1)*11),0.5235987755982988+0.3490658503988659*sin(sine*11))),deltaTime)
RootJoint.C0=Lerp(RootJoint.C0,cfMul(cf(-0.065 * sin(sine*11),-0.1+0.2*sin(sine*11),0.05 * sin(sine*11)),angles(-1.7453292519943295,0.08726646259971647+0.05235987755982989*sin((sine+0.5)*11),3.141592653589793)),deltaTime)
RightHip.C0=Lerp(RightHip.C0,cfMul(cf(1,-0.85+0.1*sin((sine+2)*11),-0.2),angles(-1.1344640137963142,1.3089969389957472+0.06981317007977318*sin((sine+2)*11),1.4835298641951802)),deltaTime)
Neck.C0=Lerp(Neck.C0,cfMul(cf(0,1,0),angles(-0.5934119456780721,0.17453292519943295,3.141592653589793)),deltaTime)
LeftHip.C0=Lerp(LeftHip.C0,cfMul(cf(-1,-1.05+0.1*sin((sine+2)*11),0),angles(-1.1344640137963142,-1.361356816555577+0.06981317007977318*sin((sine+2)*11),-1.1344640137963142)),deltaTime)
--MW_animatorProgressSave: RightArm,1.3,0,0,8,225,2.5,1,11,0.5,0,0,8,0,15,0,11,1,0,0,8,-30,0,0,8,LeftArm,-1,0,0,8,230,0,0,11,0.5,0,0,8,0,2.5,-1,11,1,0,0,8,30,20,0,11,Torso,0,-0.065,0,11,-100,0,0,8,-0.1,0.2,0,11,5,3,0.5,11,0,0.05,0,11,180,0,0,8,RightLeg,1,0,0,8,-65,0,-2,8,-0.85,0.1,2,11,75,4,2,11,-0.2,0,0,8,85,0,0,8,Head,0,0,0,8,-34,0,0,8,1,0,0,8,10,0,0,11,0,0,0,8,180,0,0,8,LeftLeg,-1,0,0,8,-65,0,-2,8,-1.05,0.1,2,11,-78,4,2,11,0,0,0,8,-65,0,0,8
SwordWeld.C0=Lerp(SwordWeld.C0,cfMul(cf(-0.01117706298828125,10,-0.8308497667312622),angles(-0.3490658503988659,0,0)),deltaTime)
--MW_animatorProgressSave: 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,NebulaBlade_Handle,-0.01117706298828125,0,0,1,-20,0,0,1,10,0,0,1,0,0,0,1,-0.8308497667312622,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,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,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,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
})
addmode("e", {
idle = function()
local Cfw, Crt = velchgbycfrvec()
RootJoint.C0=Lerp(RootJoint.C0,cfMul(cf(0,-0.25,0),angles(-1.7453292519943295,0,3.141592653589793)),deltaTime)
LeftShoulder.C0=Lerp(LeftShoulder.C0,cfMul(cf(-1,0.5,0),angles(-1.7453292519943295,-1.4835298641951802,-1.7453292519943295+0.17453292519943295*sin(sine*0.5))),deltaTime)
Neck.C0=Lerp(Neck.C0,cfMul(cf(0,1,0),angles(-1.1344640137963142,0,3.141592653589793)),deltaTime)
RightShoulder.C0=Lerp(RightShoulder.C0,cfMul(cf(1,0.5,0),angles(-1.7453292519943295,1.4398966328953218,1.7453292519943295-0.17453292519943295*sin((sine-0.5)*0.5))),deltaTime)
LeftHip.C0=Lerp(LeftHip.C0,cfMul(cf(-1,-0.8,-0.5),angles(0.3490658503988659,-1.5707963267948966,0)),deltaTime)
RightHip.C0=Lerp(RightHip.C0,cfMul(cf(1,-0.8,-0.1),angles(0,1.3089969389957472,0)),deltaTime)
--MW_animatorProgressSave: Torso,0,0,0,1,-100,0,0,1,-0.25,0,0,1,0,0,0,1,0,0,0,1,180,0,0,1,LeftArm,-1,0,0,1,-100,0,0,1,0.5,0,0,1,-85,0,0,1,0,0,0,1,-100,10,0,0.5,Head,0,0,0,1,-65,0,0,1,1,0,0,1,0,0,0,1,0,0,0,1,180,0,0,1,RightArm,1,0,0,1,-100,0,0,1,0.5,0,0,1,82.5,0,0,1,0,0,0,1,100,-10,-0.5,0.5,LeftLeg,-1,0,0,1,20,0,0,1,-0.8,0,0,1,-90,0,0,1,-0.5,0,0,1,0,0,0,1,RightLeg,1,0,0,1,0,0,0,1,-0.8,0,0,1,75,0,0,1,-0.1,0,0,1,0,0,0,1
SwordWeld.C0=Lerp(SwordWeld.C0,cfMul(cf(0,0,-2),angles(1.5707963267948966,130.89969389957471*sin(sine*0.2),0)),deltaTime)
--MW_animatorProgressSave: 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,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,NebulaBlade_Handle,,0,0,1,90,,0,1,,0,0,1,,7500,0,0.2,-2,0,0,1,0,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,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,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
end
})
addmode("r", {
idle = function()
local Cfw, Crt = velchgbycfrvec()
LeftShoulder.C0=Lerp(LeftShoulder.C0,cfMul(cf(-1,0.5,0),angles(1.5707963267948966-0.6108652381980153*sin(sine*16),-1.3788101090755203+0.17453292519943295*sin((sine+0.5)*16),0)),deltaTime)
RightHip.C0=Lerp(RightHip.C0,cfMul(cf(1,-1,0),angles(0,1.5707963267948966,0)),deltaTime)
RootJoint.C0=Lerp(RootJoint.C0,cfMul(cf(0,0.1 * sin(sine*1),0),angles(-1.5707963267948966,0,3.141592653589793)),deltaTime)
LeftHip.C0=Lerp(LeftHip.C0,cfMul(cf(-1,-1,0),angles(0,-1.5707963267948966,0)),deltaTime)
Neck.C0=Lerp(Neck.C0,cfMul(cf(0,1,0),angles(-1.5707963267948966,0,3.141592653589793)),deltaTime)
RightShoulder.C0=Lerp(RightShoulder.C0,cfMul(cf(1,0.5,0),angles(1.5707963267948966+0.6108652381980153*sin(sine*16),1.4835298641951802+0.17453292519943295*sin((sine+0.5)*16),0)),deltaTime)
--MW_animatorProgressSave: LeftArm,-1,0,0,1,90,-35,0,16,0.5,0,0,1,-79,10,0.5,16,0,0,0,1,0,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,Torso,0,0,0,1,-90,0,0,1,0,0.1,0,1,0,0,0,1,0,0,0,1,180,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,RightArm,1,0,0,1,90,35,0,16,0.5,0,0,1,85,10,0.5,16,0,0,0,1,0,0,0,1
SwordWeld.C0=Lerp(SwordWeld.C0,cfMul(cf(-0.01117706298828125,0,3+0.3*sin(sine*1)),angles(3.141592653589793+0.08726646259971647*sin(sine*1),3.141592653589793+0.08726646259971647*sin(sine*1),130.89969389957471*sin(sine*0.2))),deltaTime)
--MW_animatorProgressSave: 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,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,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,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,NebulaBlade_Handle,-0.01117706298828125,0,0,1,180,5,0,1,-0.0538939237a5946045,0,0,1,180,5,0,1,3,0.3,0,1,0,7500,0,0.2,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
end
})
addmode("t", {
idle = function()
local Cfw, Crt = velchgbycfrvec()
RightHip.C0=Lerp(RightHip.C0,cfMul(cf(1,-1+0.25*sin((sine-1)*22),0),angles(0.5410520681182421*sin((sine-1)*22),1.5707963267948966,0)),deltaTime)
LeftShoulder.C0=Lerp(LeftShoulder.C0,cfMul(cf(-1,0.5+0.5*sin((sine-0.5)*22),0),angles(2.0943951023931953+1.3962634015954636*sin(sine*22),-1.7453292519943295,0)),deltaTime)
Neck.C0=Lerp(Neck.C0,cfMul(cf(0,1,0),angles(-1.5707963267948966,0,3.141592653589793)),deltaTime)
RightShoulder.C0=Lerp(RightShoulder.C0,cfMul(cf(1,0.5+0.5*sin((sine-0.5)*22),0),angles(2.0943951023931953+1.3962634015954636*sin(sine*22),1.7453292519943295,0)),deltaTime)
RootJoint.C0=Lerp(RootJoint.C0,cfMul(cf(0,0.25 * sin(sine*22),0),angles(-1.7453292519943295+0.3490658503988659*sin(sine*22),0,3.141592653589793+0.08726646259971647*sin((sine+0.5)*22))),deltaTime)
LeftHip.C0=Lerp(LeftHip.C0,cfMul(cf(-1,-1+0.25*sin((sine-1)*22),0),angles(0.5410520681182421*sin((sine-1)*22),-1.5707963267948966,0)),deltaTime)
--MW_animatorProgressSave: RightLeg,1,0,0,1,0,31,-1,22,-1,0.25,-1,22,90,0,0,1,0,0,0,1,0,0,0,1,LeftArm,-1,0,0,1,120,80,0,22,0.5,0.5,-0.5,22,-100,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,RightArm,1,0,0,1,120,80,0,22,0.5,0.5,-0.5,22,100,0,0,1,0,0,0,1,0,0,0,1,Torso,0,0,0,1,-100,20,0,22,0,0.25,0,22,0,0,0,1,0,0,0,1,180,5,0.5,22,LeftLeg,-1,0,0,1,0,31,-1,22,-1,0.25,-1,22,-90,0,0,1,0,0,0,1,0,0,0,1
SwordWeld.C0=Lerp(SwordWeld.C0,cfMul(cf(0,2,2.5),angles(2.6179938779914944+0.17453292519943295*sin(sine*22),3.141592653589793+0.3490658503988659*sin(sine*25),0)),deltaTime)
--MW_animatorProgressSave: 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,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,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,NebulaBlade_Handle,,0,0,1,150,10,0,22,2,0,0,1,180,20,0,25,2.5,0,0,1,0,0,0,1,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,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,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
end
})
addmode("y", {
idle = function()
local Cfw, Crt = velchgbycfrvec()
RightShoulder.C0=Lerp(RightShoulder.C0,cfMul(cf(1,0.5+1*sin(sine*15),0),angles(3.141592653589793+0.3490658503988659*sin((sine-0.5)*15),1.5707963267948966,0)),deltaTime)
LeftHip.C0=Lerp(LeftHip.C0,cfMul(cf(-1,-1,0),angles(0,-1.5707963267948966,0)),deltaTime)
LeftShoulder.C0=Lerp(LeftShoulder.C0,cfMul(cf(-1,0.5+1*sin(sine*15),0),angles(3.141592653589793+0.3490658503988659*sin((sine+0.5)*15),-1.5707963267948966,0)),deltaTime)
Neck.C0=Lerp(Neck.C0,cfMul(cf(0,1,0),angles(-1.5707963267948966,0,3.141592653589793)),deltaTime)
RootJoint.C0=Lerp(RootJoint.C0,angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
RightHip.C0=Lerp(RightHip.C0,cfMul(cf(1,-1,0),angles(0,1.5707963267948966,0)),deltaTime)
--MW_animatorProgressSave: RightArm,1,0,0,1,180,20,-0.5,15,0.5,1,0,15,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,LeftArm,-1,0,0,1,180,20,0.5,15,0.5,1,0,15,-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,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
SwordWeld.C0=Lerp(SwordWeld.C0,cfMul(cf(-0.01117706298828125,-0.05389392375946045,4),angles(0.17453292519943295*sin(sine*10),0.17453292519943295*sin(sine*20),0)),deltaTime)
--MW_animatorProgressSave: 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,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,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,NebulaBlade_Handle,-0.01117706298828125,0,0,1,0,10,0,10,-0.05389392375946045,0,0,1,0,10,0,20,4,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,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,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("empty reanimate (no animations)", reanimate)
insSet(btn("stop current script",stopreanimate),"TextColor3",c3(0.75,0,0))
lbl("SETTINGS (REANIMATE TO APPLY)")
local swtc=function(txt,options,onchanged)
local current=0
local swtcbtn=nil
local btnpressed=function()
current=current+1
if current>#options then
current=1
end
local option=options[current]
insSet(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)")
swtc("respawn tp",{
{value=3,text="hide body"},
{value=0,text="stay at spawn"},
{value=1,text="random tp close"},
{value=2,text="behind char"},
{value=4,text="hat drop"}
},function(v)
respawntp=v
end)
local disguiscripts=nil
swtc("new gui scripts",{
{value=true,text="disable"},
{value=false,text="keep"}
},function(v)
disguiscripts=v
end)
Connect(insGet(pg,"DescendantAdded"),function(v)
if c and disguiscripts and IsA(v,"Script") then --mind Enum.RunContext.Client
insSet(v,"Disabled",true)
end
end)
swtc("new character scripts",{
{value=function(v)
if IsA(v,"Script") then --mind Enum.RunContext.Client
insSet(v,"Disabled",true)
end
end,text="disable"},
{value=false,text="keep"}
},function(v)
discharscripts=v
end)
swtc("breakjoints",{
{value=1,text="breakjoints+health"},
{value=2,text="health or breakjoints"},
{value=3,text="breakjoints"}
},function(v)
breakjointsmethod=v
end)
swtc("coregui death effect",{
{value=true,text="disable"},
{value=false,text="dont modify"},
},function(v)
hidedeatheffect=v
end)
swtc("set simulation radius",{
{value=true,text="yes"},
{value=false,text="no"},
},function(v)
simrad=v
end)
local iscg,_=pcall(insSet,i10,"Parent",FindFirstChildOfClass(game,"CoreGui"))
if not iscg then
insSet(i7,"Text","PLAYERGUI MODE")
insSet(i10,"Parent",pg)
twait(3)
insSet(i7,"Text",guiTheme.guiTitle)
endUmm nothing here

Universal