Run it
Copy the script and paste it into your executor.
plrs=:()
rs=:()
ws=:()
uis=:()
gs=:()
cg=:()
lp=plrs.LocalPlayer
pg=lp:()
mouse=lp:()
stepped=rs.Stepped
heartbeat=rs.Heartbeat
renderstepped=rs.RenderStepped
osclock=.clock
tspawn=.spawn
twait=.wait
schar=.char
sbyte=.byte
ssub=.sub
sfind=.find
supper=.upper
mrandom=.random
clamp=.clamp
sin=.sin
cos=.cos
abs=.abs
rad=.rad
tinsert=.insert
tclear=.clear
tclone=.clone
tfind=.find
tunpack=.unpack
=
=
i=.new
v2=.new
v3=.new
c3=.new
cf=.new
angles=.Angles
u2=.new
e=
cs=ColorSequence.new
csk=ColorSequenceKeypoint.new
sine=()
deltaTime=
v3_0=(,,)
v3_101=(,,)
v3_010=(,,)
v3_001=(,,)
cf_0=(,,)
v3_xz=v3_101*
v3_net=v3_010*
(f)
(f)==
(...)
a={...}
r=
(()
r={((a))}
)
(r {})
()
(l)
l=l (,)
s=
i=,l
(,)==
s=s..((,))
s=s..((,))
s
(t,v)
i,v1 (t)
v1==v
i
(p,n,cl)
(p)==
c=p:()
i=,#c
v=c[i]
(v.Name==n) v:(cl)
v
(...)
r=(...)
r
r
stepped:()
(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=/
(startY,destY,gravity)
velY=
currY=startY
fallingTime=
(currY>destY) (velY>)
fallingTime=fallingTime+sft
velY=velY-sft*gravity
currY=currY+velY*sft
fallingTime
isClientInstance=((i)
(i:(),,)==
)
isServerInstance=(i)
(i)
shp=((((getfenv)==) ()) {}).sethiddenproperty
guiTheme={
guiTitle=,
windowTopColor=(,,),
windowBottomColor=(,,),
windowMinimizedSize=(,,,),
windowRegularSize=(,,,),
buttonsTextColor=(,,),
labelsTextColor=(,,),
listTopColor=(,,),
listBottomColor=(,,)
}
i1=()
i2=()
i3=()
i4=()
i5=()
i6=()
i7=()
i8=()
i9=()
i10=()
i1.AnchorPoint=(,)
i1.BackgroundColor3=(,,)
i1.BorderSizePixel=
i1.Position=(,,,-)
i1.Size=guiTheme.windowRegularSize
i1.Name=()
i1.Parent=i9
i2.BackgroundColor3=(,,)
i2.BorderSizePixel=
i2.Position=(,,,)
i2.Size=(,-,,-)
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.SourceSansBold
i6.FontSize=e.FontSize.Size18
i6.Text=guiTheme.guiTitle
i6.TextColor3=(,,)
i6.TextSize=
i6.BackgroundTransparency=
i6.BorderSizePixel=
i6.Position=(,,,)
i6.Size=(,-,,)
i6.Name=()
i6.Parent=i1
i7.AnchorPoint=(,)
i7.BackgroundTransparency=
i7.Position=(,,,)
i7.Size=(,,,)
i7.Name=()
i7.Parent=i6
i7.Font=e.Font.SourceSansBold
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.Name=()
i10.AnchorPoint=(,)
i10.BackgroundTransparency=
i10.Position=(,,,)
i10.Size=(,,,)
i10.Name=()
i10.Parent=i6
i10.Font=e.Font.SourceSansBold
i10.FontSize=e.FontSize.Size18
i10.RichText =
i10.Text=
i10.TextColor3=(,,)
i10.TextSize=
stopreanimate=()
min=
i7.MouseButton1Click:(()
min = min
min
i2.Visible=
i8.Color=({[]=(,(,,)),[]=(,(,,))})
i1.Size=guiTheme.windowMinimizedSize
i1.Size=guiTheme.windowRegularSize
i8.Color=({[]=(,(,,)),[]=(,(,,))})
i2.Visible=
)
i10.MouseButton1Click:(()
i1:()
i2:()
i3:()
i4:()
i5:()
i6:()
i7:()
i8:()
i9:()
()
)
(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=()
i1.AutomaticSize=e.AutomaticSize.Y
i1.BackgroundTransparency=
i1.Size=(,,,)
i1.Name=()
i1.Font=e.Font.SourceSans
i1.FontSize=e.FontSize.Size14
i1.Text=txt
i1.TextColor3=guiTheme.buttonsTextColor
f
i1.MouseButton1Click:(f)
i1.Parent=i3
i1
(txt)
i1=()
i1.Font=e.Font.SourceSansBold
i1.FontSize=e.FontSize.Size14
i1.Text=txt
i1.TextColor3=guiTheme.labelsTextColor
i1.AutomaticSize=e.AutomaticSize.Y
i1.BackgroundTransparency=
i1.Size=(,,,)
i1.Name=()
i1.Parent=i3
i1
(i1)
()
()
allowshiftlock=
ctrltp=
simrad=
placeholders=
clickfling=
highlightflingtargets=
claimwait=
stopreanimate=()
()
novoid =
placeholders = placeholders
speedlimit =
retVelTime =
R15toR6 =
walkSpeed =
jumpPower =
allowshiftlock = allowshiftlock
gravity =
simrad = simrad
ctrlclicktp = ctrltp
clickfling = clickfling
flingvel = (,,)
highlightflingtargets = highlightflingtargets
c=lp.Character
() (c c:(ws))
hum=c:()
rootpart=(c,,) (c,,) (c,,) (hum hum.RootPart) (c,,,) c:()
rootpart
R15toR6=R15toR6 hum (hum.RigType==e.HumanoidRigType.R15)
simrad = ((simrad)==) ((shp)==) simrad
cam=
()
cam=ws.CurrentCamera
cam
ws:():()
cam=ws.CurrentCamera
()
camcf=cam.CFrame
enumCamS=e.CameraType.Scriptable
camt=cam.CameraType
camcon0=
camcon1=
()
()
camcon0
camcon0:()
camcon0=
c
cam.CameraType==enumCamS
cam.CameraType=camt
camcon1:()
camcon0=cam.Changed:((p)
c
camcon0:()
camcon1:()
(p==) (cam.CFrame~=camcf)
cam.CFrame=camcf
(p==) (p==)
subj=cam.CameraSubject
subj subj:() (subj.Parent==c) (cam.CameraType~=enumCamS)
cam.CameraType = enumCamS
)
subj=cam.CameraSubject
subj subj:() (subj.Parent==c) (cam.CameraType~=enumCamS)
cam.CameraType=enumCamS
cam.CFrame=camcf
camcon1=ws:():(onnewcamera)
()
rGravity=ws.Gravity
ws:():(()
rGravity=ws.Gravity
)
fpdh=ws.FallenPartsDestroyHeight
novoid=novoid (fpdh+)
(v)
(v)==
v:()
v.MeshId, v.TextureID
v=v:()
v
v.MeshId, v.TextureId
,
joints={}
cframes={}
des=c:()
i=,#des
v=des[i]
v:()
(joints,{
Name=v.Name,
C0=v.C0,
C1=v.C1,
Part0=v.Part0,
Part1=v.Part1
})
v:()
cframes[v]=v.CFrame
(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
(v)
ins=v
(v)
v={=v.CFrame,Name=v.Name,Anchored=}
meshid,textureid=(v)
meshid (meshid~=) textureid (textureid~=) (v.Parent~=c)
placeholders
v={=v.CFrame,Name=v.Name,Anchored=,meshid=meshid,textureid=textureid,placeholder=(v)}
v={=v.CFrame,Name=v.Name,Anchored=,meshid=meshid,textureid=textureid}
v={=v.CFrame,Name=v.Name,Anchored=}
i,v1 ((cframes))
i==ins
cframes[ins]=
cframes[v]=v1
i,v1 (joints)
v1.Part0==ins
v1.Part0=v
v1.Part1==ins
v1.Part1=v
rootpart==ins
rootpart=v
v
i,v (joints)
v.Part0=(v.Part0)
v.Part1=(v.Part1)
Yvel=
cfr=rootpart.CFrame
pos=cfr.Position
primarypart=
shiftlock=
firstperson=
xzvel=v3_0
v3_0150=v3_010*
camoff=(v3_0,camcf.LookVector)
camoff=camoff-v3_001*(camcf.Position-(pos+v3_0150)).Magnitude
refreshjointsinternal=
refreshjointsinternal=(part,refreshed)
part
(refreshed,part)
i,v (joints)
part0=v.Part0
part1=v.Part1
part1 (part0==part)
cframes[part1]=cframes[part]*v.C0*v.C1:()
(refreshed,part1)
(part1,refreshed)
part0 (part1==part)
cframes[part0]=cframes[part]*v.C1*v.C0:()
(refreshed,part0)
(part0,refreshed)
(v)
(v,{})
R15toR6
R6parts={
head={Name=,Anchored=},
torso={Name=,Anchored=},
root={Name=,Anchored=},
leftArm={Name=,Anchored=},
rightArm={Name=,Anchored=},
leftLeg={Name=,Anchored=},
rightLeg={Name=,Anchored=}
}
i,v (R6parts)
cframes[v]=cfr
(joints,{
Name=,
Part0=R6parts.torso,Part1=R6parts.head,
C0=(,,,-,,,,,,,,-),
C1=(,-,,-,,,,,,,,-)
})
(joints,{
Name=,
Part0=R6parts.root,Part1=R6parts.torso,
C0=(,,,-,,,,,,,,-),
C1=(,,,-,,,,,,,,-)
})
(joints,{
Name=,
Part0=R6parts.torso,Part1=R6parts.rightArm,
C0=(,,,,,,,,-,-,,),
C1=(-,,,,,,,,-,-,,)
})
(joints,{
Name=,
Part0=R6parts.torso,Part1=R6parts.leftArm,
C0=(-,,,,,-,,,,,,),
C1=(,,,,,-,,,,,,)
})
(joints,{
Name=,
Part0=R6parts.torso,Part1=R6parts.rightLeg,
C0=(,-,,,,,,,-,-,,),
C1=(,,,,,,,,-,-,,)
})
(joints,{
Name= ,
Part0=R6parts.torso,Part1=R6parts.leftLeg,
C0=(-,-,,,,-,,,,,,),
C1=(-,,,,,-,,,,,,)
})
(joints,{
Part0=R6parts.root,Part1=rootpart,
C0=cf_0,C1=cf_0
})
(rootpart)
(n)
i,_ (cframes)
(i.Name==n) (R6parts,i)
i
(p0, p1, p2)
p1=(p1)
p2=(p2)
(p1 p2)
i,v (joints)
(v.Part0==p1) (v.Part1==p2)
joints[i]=
(v.Part0==p2) (v.Part1==p1)
joints[i]=
(joints,{
Part0=p0,Part1=p1,
C0=cf_0,
C1=cframes[p1]:()*cframes[p0]
})
(R6parts.head,,)
(R6parts.leftArm,,)
(R6parts.rightArm,,)
(R6parts.leftLeg,,)
(R6parts.rightLeg,,)
(R6parts.torso,,)
(name,blacklist)
i,v (cframes)
(i.Name==name) (blacklist (blacklist,i))
i
(meshid,textureid,blacklist)
v,_ (cframes)
((v)==) (blacklist (blacklist,v))
v.meshid (v.meshid,meshid) (v.textureid,textureid)
v
(name)
i,v (joints)
v.Name==name
v
{C0=cf_0,C1=cf_0}
(handle)
i,v (joints)
v.Part0==handle
v
i,v (joints)
v.Part1==handle
v
(...)
((...) {}) {C0=cf_0,C1=cf_0}
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=cf_0,Name=},
{meshid=,textureid=,C0=cf_0,Name=},
{meshid=,textureid=,C0=cf_0,Name=}
}
alignblacklist={}
i=,#accessorylimbs
v=accessorylimbs[i]
p=(v.Name)
h=(v.meshid,v.textureid,alignblacklist)
w=(h)
p w
w.C0=v.C0
w.Part0=h
w.C1=cf_0
w.Part1=p
(alignblacklist,h)
raycastparams=RaycastParams.()
raycastparams.FilterType=e.RaycastFilterType.Blacklist
raycastparams.RespectCanCollide=
rayfilter={}
characters={}
()
(rayfilter)
i,v (characters)
(rayfilter,v)
raycastparams.FilterDescendantsInstances=rayfilter
flingtable={}
cframes1={}
lastpositions={}
claimtimes={}
rootparts={}
ondes=
ondes=(v)
meshid1,textureid1=(v)
meshid1
i,v1 (cframes)
(i)== (cframes1,i)
meshid=i.meshid
meshid (meshid1==meshid) (textureid1==i.textureid)
cframes1[v]=i
lastpositions[v]=v.Position
v:()
(v.Parent)
(v)
lastc=
()
newc=v.Character
newc (newc ~= lastc)
lastc=newc
characters[v]=newc
()
hrp=(newc,,,)
(hrp c newc:(ws))
v==lp
c=newc
fi,fv=(flingtable)
fi
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
claimwait
()
lp.Character=
newc:()
(cframes1)
(claimtimes)
(lastpositions)
cd=newc:()
i=,#cd
(ondes,cd[i])
newc.DescendantAdded:(ondes)
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
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)
camoff=camoff+a.Position*v3_001*(-camoff.Z/)
camoff.Z>
camoff=camoff-camoff.Position
firstperson=camoff.Z==
)
(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+camoff.LookVector*v3_101)
xzvel=v3_0
Yvel=
()
)
mouse.Button1Down:(()
mouse.Target uis:(ctrlclicktp)
pos=mouse.Hit.Position+tpoff
cfr=(pos,pos+camoff.LookVector*v3_101)
xzvel=v3_0
Yvel=
)
clickfling
mouse.Button1Down:(predictionfling)
noYvelTime=
lastsine=sine
con=
()
c
i,v (cframes)
p=i.placeholder
p
p:()
i,v (flingtable)
v
v:()
uis.MouseBehavior=enumMD
()
c=lp.Character
c
cam.CameraSubject=c:()
con con:()
sine=()
delta=sine-lastsine
deltaTime=(delta*,,)
lastsine=sine
shiftlock
allowshiftlock
uis.MouseBehavior=enumMLC
rotation=uis:()*mradN05
camoffpos=camoff.Position
camoff=(camoffpos,camoffpos+camoff.LookVector)*(rotation.Y,rotation.X,)
shiftlock=
firstperson
uis.MouseBehavior=enumMLC
rotation=uis:()*mradN05
camoffpos=camoff.Position
camoff=(camoffpos,camoffpos+camoff.LookVector)*(rotation.Y,rotation.X,)
uis:(enumMB2)
uis.MouseBehavior=enumMLCP
rotation=uis:()*mradN05
camoffpos=camoff.Position
camoff=(camoffpos,camoffpos+camoff.LookVector)*(rotation.Y,rotation.X,)
uis.MouseBehavior=enumMD
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+(camoff.LookVector*v3_101).Unit
Spressed
xzvel=xzvel-(camoff.LookVector*v3_101).Unit
Apressed
xzvel=xzvel-(camoff.RightVector*v3_101).Unit
Dpressed
xzvel=xzvel+(camoff.RightVector*v3_101).Unit
pos=cfr.Position
shiftlock firstperson
xzvel.Magnitude>
xzvel=xzvel.Unit*walkSpeed
cfr=(pos,pos+camoff.LookVector*v3_101)
xzvel.Magnitude>
xzvel=xzvel.Unit*walkSpeed
cfr=cfr:((pos,pos+xzvel),deltaTime)
cfr=cfr+(xzvel+(v3_010*Yvel))*delta
pos=cfr.Position
camcf=(pos,pos+camoff.LookVector)+camoff.LookVector*camoff.Z+v3_0150
shiftlock firstperson
camcf=camcf+camcf.RightVector*
cam
cam.CFrame=camcf
onground
xzvel==v3_0
()
()
Yvel>
()
()
cframes[rootpart]=cfr
(rootpart)
(Yvel)>
noYvelTime=
noYvelTime=(noYvelTime+delta*,,)
xzvel=xzvel*(-noYvelTime)
idlerv=(((sine-)*),(sine*),((sine+)*))
idleoff=idlerv*
i,v (cframes)
p=i.placeholder
p
p.Parent~=ws
p.Parent=ws
p.CFrame=v
claimpos=primarypart.Position
i,v (cframes1)
( i.Anchored) i:(ws)
i.ReceiveAge==
p=v.placeholder
p p.Parent
p.Parent=
v=cframes[v]
lastpos=lastpositions[i]
vel=(v.Position-lastpos)/delta
vel.Magnitude>speedlimit
vel=vel.Unit*speedlimit
v=v+(lastpos+vel*delta)-v.Position
lastpositions[i]=v.Position
vel.Magnitude<
v=v+idleoff
novoid (v.Y<novoid)
v=v+v3_010*(novoid-v.Y)
claimtime=claimtimes[i]
claimtime
sine-claimtime<retVelTime
i.Velocity=(claimpos-v.Position)*v3_101/(v.Y,claimpos.Y,rGravity)+v3_net
i.Velocity=(vel*noYvelTime+xzvel)
claimtimes[i]=sine
i.Velocity=(vel*noYvelTime+xzvel)
i.CFrame=v
i.RotVelocity=idlerv
claimtimes[i]=
lastpositions[i]=i.Position
simrad
(lp,,simrad)
sine=()
lastsine=sine
con=heartbeat:(mainFunction)
()
stopreanimate=()
c
c=
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:(v3_0,deltaTime/)
fw=cfr.LookVector*velchg1/
rt=cfr.RightVector*velchg1/
fw.X+fw.Z,rt.X+rt.Z
(number1,number2,alpha)
number1 + (number2-number1)*alpha
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
{
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
}
()
()
(, ()
t=()
(t)~=
raycastlegs=t.raycastlegs
velbycfrvec=t.velbycfrvec
velchgbycfrvec=t.velchgbycfrvec
addmode=t.addmode
getJoint=t.getJoint
getPartFromMesh=t.getPartFromMesh
getPartJoint=t.getPartJoint
RootJoint=()
RightShoulder=()
LeftShoulder=()
RightHip=()
LeftHip=()
Neck=()
AccessoryWeld = (,)
AccessoryWeld = (AccessoryWeld)
t.()
(, {
idle = ()
t.()
rY, lY = ()
LeftShoulder.C0=LeftShoulder.C0:((-,- * (sine*),)*(-*((sine+)*),-,),deltaTime)
RightHip.C0=RightHip.C0:((,--*(sine*),-)*(-*((sine+)*),,),deltaTime)
RightShoulder.C0=RightShoulder.C0:((,- * (sine*),)*(-*((sine+)*),,),deltaTime)
LeftHip.C0=LeftHip.C0:((-,--*(sine*),-)*(-*((sine+)*),-,),deltaTime)
Neck.C0=Neck.C0:((,,)*(-,,),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:((,-,-)*(,,),deltaTime)
RootJoint.C0=RootJoint.C0:((, * (sine*),)*(-+*((sine+)*),,),deltaTime)
,
walk = ()
fw, rt = ()
rY, lY = ()
LeftShoulder.C0=LeftShoulder.C0:((-,,)*(-*(sine*),-,),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:((,-,-)*(,,),deltaTime)
RootJoint.C0=RootJoint.C0:((,+*((sine + )*),)*(-+*(sine*),,),deltaTime)
RightShoulder.C0=RightShoulder.C0:((,,)*(-*(sine*),,),deltaTime)
RightHip.C0=RightHip.C0:((,-,)*(,,),deltaTime)
LeftHip.C0=LeftHip.C0:((-,-,)*(,-,),deltaTime)
Neck.C0=Neck.C0:((,,)*(-,,),deltaTime)
,
jump = ()
t.()
fw, rt = ()
LeftShoulder.C0=LeftShoulder.C0:((-,,)*(-,-,),deltaTime)
Neck.C0=Neck.C0:((,,)*(-,,),deltaTime)
LeftHip.C0=LeftHip.C0:((-,-,-)*(,-,),deltaTime)
RightHip.C0=RightHip.C0:((,-,-)*(,,),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:((,-,-)*(,,),deltaTime)
RightShoulder.C0=RightShoulder.C0:((,,)*(,,),deltaTime)
RootJoint.C0=RootJoint.C0:((,-,)*(-,,+*(sine*)),deltaTime)
,
fall = ()
t.()
fw, rt = ()
LeftShoulder.C0=LeftShoulder.C0:((-,,)*(-*(sine*),-,),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:((,-,-)*(,,),deltaTime)
RootJoint.C0=RootJoint.C0:((,+*((sine + )*),)*(-+*(sine*),,),deltaTime)
RightShoulder.C0=RightShoulder.C0:((,,)*(-*(sine*),,),deltaTime)
RightHip.C0=RightHip.C0:((,-,)*(,,),deltaTime)
LeftHip.C0=LeftHip.C0:((-,-,)*(,-,),deltaTime)
Neck.C0=Neck.C0:((,,)*(-,,),deltaTime)
})
)
(, ()
t=()
(t)~=
raycastlegs=t.raycastlegs
velbycfrvec=t.velbycfrvec
velchgbycfrvec=t.velchgbycfrvec
addmode=t.addmode
getJoint=t.getJoint
getPartFromMesh=t.getPartFromMesh
getPartJoint=t.getPartJoint
RootJoint=()
RightShoulder=()
LeftShoulder=()
RightHip=()
LeftHip=()
Neck=()
AccessoryWeld = (,)
AccessoryWeld = (AccessoryWeld)
t.()
(, {
idle = ()
t.()
rY, lY = ()
RightHip.C0=RightHip.C0:((,--*(sine*),-)*(-*((sine+)*),,),deltaTime)
RootJoint.C0=RootJoint.C0:((, * (sine*),)*(-+*((sine+)*),,),deltaTime)
Neck.C0=Neck.C0:((,,)*(-+*(sine*),*(sine*),+*(sine*)),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:((-,--*(sine*),-)*(*(sine*),*((sine+)*),*(sine*)),deltaTime)
RightShoulder.C0=RightShoulder.C0:((,,)*(-+*((sine+)*),+*(sine*),),deltaTime)
LeftHip.C0=LeftHip.C0:((-,--*(sine*),-)*(-*((sine+)*),-,),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:((-,,)*(,-+*(sine*),),deltaTime)
,
walk = ()
fw, rt = ()
rY, lY = ()
LeftHip.C0=LeftHip.C0:((-,-+*((sine + )*-),-+*((sine + )*-))*(*(sine*),-,),deltaTime)
Neck.C0=Neck.C0:((,,)*(-+*(sine*),*(sine*),+*(sine*)),deltaTime)
RootJoint.C0=RootJoint.C0:((, * (sine*),)*(-+*((sine+)*),*((sine+)*),),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:((-,,-)*(,-,),deltaTime)
RightHip.C0=RightHip.C0:((,-+*((sine + )*),-+*((sine + )*))*(*(sine*-),,),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:((-,, * ((sine+)*))*(*(sine*),-,),deltaTime)
RightShoulder.C0=RightShoulder.C0:((,,)*(,,),deltaTime)
})
)
(, ()
t=()
(t)~=
raycastlegs=t.raycastlegs
velbycfrvec=t.velbycfrvec
velchgbycfrvec=t.velchgbycfrvec
addmode=t.addmode
getJoint=t.getJoint
getPartFromMesh=t.getPartFromMesh
getPartJoint=t.getPartJoint
RootJoint=()
RightShoulder=()
LeftShoulder=()
RightHip=()
LeftHip=()
Neck=()
ring = (,)
ring = (ring)
t.()
(, {
idle = ()
t.()
rY, lY = ()
RightHip.C0=RightHip.C0:((,--*(sine*),-)*(-*((sine+)*),,+*((sine+)*)),deltaTime)
ring.C0=ring.C0:((,,)*(,,+*(sine*)),deltaTime)
RootJoint.C0=RootJoint.C0:((, * (sine*),)*(-+*((sine+)*),,),deltaTime)
LeftHip.C0=LeftHip.C0:((-,--*(sine*),)*(--*((sine+)*),-,-),deltaTime)
Neck.C0=Neck.C0:((,,)*(-,,),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:((-,,)*(,-,-),deltaTime)
RightShoulder.C0=RightShoulder.C0:((,,-)*(,,-),deltaTime)
ring.C0=ring.C0:((,,)*(,,+*(sine*)),deltaTime)
,
walk = ()
fw, rt = ()
rY, lY = ()
LeftShoulder.C0=LeftShoulder.C0:((-,,)*(*(sine*),-+*((sine+)*),),deltaTime)
RootJoint.C0=RootJoint.C0:((, * (sine*),)*(-+*((sine+)*),,),deltaTime)
RightShoulder.C0=RightShoulder.C0:((,,-)*(,,-),deltaTime)
LeftHip.C0=LeftHip.C0:((-,-+*((sine + )*),-+*((sine + )*))*(*(sine*),-+*(sine*),),deltaTime)
Neck.C0=Neck.C0:((,,)*(-,,),deltaTime)
RightHip.C0=RightHip.C0:((,-+*((sine + )*-),-+*((sine + )*))*(*(sine*-),+*(sine*),),deltaTime)
ring.C0=ring.C0:((+*(sine*),-+*(sine*),-+*(sine*))*(-,,*(sine*)),deltaTime)
})
(, {
idle = ()
t.()
RightShoulder.C0=RightShoulder.C0:((, * (sine*),)*(*((sine+)*),,),deltaTime)
Neck.C0=Neck.C0:((,,)*(-+*((sine+)*),*(sine*),+*(sine*)),deltaTime)
RightHip.C0=RightHip.C0:((,-,-)*(,,+*((sine+)*)),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:((-, * (sine*),)*(*((sine+)*),-,-),deltaTime)
LeftHip.C0=LeftHip.C0:((-,-,)*(,-,-*(sine*)),deltaTime)
RootJoint.C0=RootJoint.C0:((,+*(sine*),)*(-+*((sine+)*),*((sine+)*),),deltaTime)
ring.C0=ring.C0:(( * (sine*),-,-)*(-,,-*(sine*-)),deltaTime)
,
walk = ()
fw, rt = ()
rY, lY = ()
LeftHip.C0=LeftHip.C0:((-,-,-+*(sine*))*(*((sine+)*),-,),deltaTime)
Neck.C0=Neck.C0:((,,)*(-,,),deltaTime)
RightHip.C0=RightHip.C0:((,-,)*(+*((sine+)*-),,-),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:((-,,)*(,-,),deltaTime)
RootJoint.C0=RootJoint.C0:((,+*(sine*),)*(-+*((sine+)*),,),deltaTime)
RightShoulder.C0=RightShoulder.C0:((,,)*(,,),deltaTime)
ring.C0=ring.C0:((-,,)*(,,),deltaTime)
})
(, {
walk = ()
t.()
LeftHip.C0=LeftHip.C0:((-,-+*((sine + )*),-+*((sine + )*))*(*(sine*),-,),deltaTime)
RightHip.C0=RightHip.C0:((,-+*((sine + )*), * ((sine+)*))*(*(sine*-),,),deltaTime)
RootJoint.C0=RootJoint.C0:((, * ((sine+)*),)*(-+*(sine*),,),deltaTime)
Neck.C0=Neck.C0:((,,)*(-,,),deltaTime)
ring.C0=ring.C0:((+*(sine*),-,-+*(sine*))*(-,,*(sine*)),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:((-,,)*(*(sine*),-+*(sine*),),deltaTime)
RightShoulder.C0=RightShoulder.C0:((,,)*(,,-),deltaTime)
})
)
()
(, ()
t=()
(t)~=
raycastlegs=t.raycastlegs
velbycfrvec=t.velbycfrvec
addmode=t.addmode
getJoint=t.getJoint
velYchg=t.velYchg
setWalkSpeed=t.setWalkSpeed
getPartFromMesh=t.getPartFromMesh
getPartJoint=t.getPartJoint
RootJoint=()
RightShoulder=()
LeftShoulder=()
RightHip=()
LeftHip=()
Neck=()
gun = (,)
gun = (gun)
circle = (,)
circle = (circle)
t.()
(, {
idle = ()
rY, lY = ()
Ychg=()/
LeftHip.C0=LeftHip.C0:((-,--*(sine*),)*(-*(sine*),-,),deltaTime)
RightShoulder.C0=RightShoulder.C0:((,,)*(,,-*(sine*)),deltaTime)
RootJoint.C0=RootJoint.C0:((, * (sine*),)*(-+*(sine*),,-*(sine*)),deltaTime)
Neck.C0=Neck.C0:((,,)*(-,,),deltaTime)
RightHip.C0=RightHip.C0:((,--*(sine*),)*(-*(sine*),,),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:((-,,)*(,-,),deltaTime)
gun.C0=gun.C0:((-,-,)*(-,-,-),deltaTime)
,
walk = ()
Vfw, Vrt = ()
rY, lY = ()
Ychg=()/
RightHip.C0=RightHip.C0:((,-,-)*(*(sine*),,),deltaTime)
RightShoulder.C0=RightShoulder.C0:((, * (sine*),)*(+*((sine+)*),,),deltaTime)
Neck.C0=Neck.C0:((,,)*(-,,),deltaTime)
LeftHip.C0=LeftHip.C0:((-,-,-)*(*(sine*-),-,),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:((-, * (sine*),)*(+*((sine+)*),-,),deltaTime)
RootJoint.C0=RootJoint.C0:((,,)*(-+*((sine+)*),,),deltaTime)
})
)
(, ()
t=()
(t)~=
raycastlegs=t.raycastlegs
velbycfrvec=t.velbycfrvec
addmode=t.addmode
getJoint=t.getJoint
velYchg=t.velYchg
setWalkSpeed=t.setWalkSpeed
getPartFromMesh=t.getPartFromMesh
getPartJoint=t.getPartJoint
RootJoint=()
RightShoulder=()
LeftShoulder=()
RightHip=()
LeftHip=()
Neck=()
milk = (,)
milk = (milk)
t.()
(, {
idle = ()
rY, lY = ()
Ychg=()/
RightShoulder.C0=RightShoulder.C0:((, * (sine*),)*(*((sine+)*),,),deltaTime)
RightHip.C0=RightHip.C0:((,--*(sine*),)*(--*((sine+)*),,),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:((-, * (sine*),)*(*((sine+)*),-,),deltaTime)
RootJoint.C0=RootJoint.C0:((, * (sine*),)*(-+*((sine+)*),,),deltaTime)
LeftHip.C0=LeftHip.C0:((-,--*(sine*),)*(--*((sine+)*),-,),deltaTime)
Neck.C0=Neck.C0:((,,)*(-,,+*(sine*)),deltaTime)
milk.C0=milk.C0:((,,-)*(,,),deltaTime)
,
walk = ()
Vfw, Vrt = ()
rY, lY = ()
Ychg=()/
RightHip.C0=RightHip.C0:((,--*(sine*),)*(--*((sine+)*),,),deltaTime)
Neck.C0=Neck.C0:((,,)*(-,,),deltaTime)
RootJoint.C0=RootJoint.C0:((, * (sine*),)*(-+*((sine+)*),,),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:((-, * (sine*),)*(*((sine+)*),-,),deltaTime)
LeftHip.C0=LeftHip.C0:((-,--*(sine*),)*(--*((sine+)*-),-,),deltaTime)
RightShoulder.C0=RightShoulder.C0:((,,)*(,,),deltaTime)
milk.C0=milk.C0:((-,-,)*(,,),deltaTime)
,
})
(, {
idle = ()
()
RightHip.C0=RightHip.C0:((,--*(sine*),)*(--*((sine+)*),,),deltaTime)
Neck.C0=Neck.C0:((,,)*(-,,),deltaTime)
RootJoint.C0=RootJoint.C0:((, * (sine*),)*(-+*((sine+)*),,),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:((-, * (sine*),)*(*((sine+)*),-,),deltaTime)
LeftHip.C0=LeftHip.C0:((-,--*(sine*),)*(--*((sine+)*),-,),deltaTime)
RightShoulder.C0=RightShoulder.C0:((,,)*(,,),deltaTime)
milk.C0=milk.C0:((-,-,)*(,,),deltaTime)
})
)
()
(, ()
t=()
(t)~=
raycastlegs=t.raycastlegs
velbycfrvec=t.velbycfrvec
addmode=t.addmode
getJoint=t.getJoint
velYchg=t.velYchg
setWalkSpeed=t.setWalkSpeed
getPartFromMesh=t.getPartFromMesh
getPartJoint=t.getPartJoint
RootJoint=()
RightShoulder=()
LeftShoulder=()
RightHip=()
LeftHip=()
Neck=()
AccessoryWeld = (,)
AccessoryWeld = (AccessoryWeld)
t.()
(, {
idle = ()
rY, lY = ()
Ychg=()/
LeftShoulder.C0=LeftShoulder.C0:((-,,)*(,-,-),deltaTime)
RightShoulder.C0=RightShoulder.C0:((,,)*(,,),deltaTime)
RootJoint.C0=RootJoint.C0:((,-+*(sine*),)*(-+*((sine+)*),*(sine*),),deltaTime)
RightHip.C0=RightHip.C0:((,--*(sine*),)*(-*((sine+)*),-*(sine*),),deltaTime)
Neck.C0=Neck.C0:((,,)*(-,,),deltaTime)
LeftHip.C0=LeftHip.C0:((-,--*(sine*),-)*(-*((sine+)*),--*(sine*),),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:((-,,-)*(-,,-),deltaTime)
,
walk = ()
Vfw, Vrt = ()
rY, lY = ()
Ychg=()/
LeftShoulder.C0=LeftShoulder.C0:((-,+*((sine + )*),- * (sine*))*(*(sine*),-,),deltaTime)
RightShoulder.C0=RightShoulder.C0:((,,)*(,,),deltaTime)
Neck.C0=Neck.C0:((,,)*(-,,),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:((,,-)*(-,,-),deltaTime)
RightHip.C0=RightHip.C0:((,-+*(sine*),-+*((sine + )*))*(*(sine*-),,),deltaTime)
LeftHip.C0=LeftHip.C0:((-,-+*(sine*),-+*((sine + )*))*(*(sine*),-,),deltaTime)
RootJoint.C0=RootJoint.C0:((, * ((sine+2)*10),0)*angles(-2.0943951023931953+0.17453292519943295*sin(sine*10),0,3.141592653589793),deltaTime)
end
})
local attackAnimation=nil
mouse.Button1Down:Connect(function()
if attackAnimation then return end
attackAnimation=function()
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0.1 * sin((sine+2)*30),0)*angles(2.0943951023931953+0.17453292519943295*sin(sine*30),1.5707963267948966,0),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(1.5,2.3+0.1*sin(sine*30),-1.5)*angles(-1.2217304763960306+0.17453292519943295*sin(sine*30),0,-3.141592653589793),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.5,0)*angles(0,-1.5707963267948966,0),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1.6,0)*angles(-0.8726646259971648,0.6981317007977318,0.5235987755982988),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.0471975511965976,0,3.141592653589793),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-0.35,-1-0.1*sin(sine*16))*angles(0.5235987755982988,-1.0471975511965976,0),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,-0.2,0.1 * sin(sine*16))*angles(-2.0943951023931953,0,3.141592653589793),deltaTime)
end
task.wait(1)
attackAnimation=function()
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0,0)*angles(2.0943951023931953,1.5707963267948966,0),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(1.5,2.3,-1.5)*angles(-1.2217304763960306,0,-3.141592653589793),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(0,0.5+0.4*sin(sine*16),-0.5)*angles(2.443460952792061,0,0.8726646259971648),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1.6,0)*angles(-0.8726646259971648,0.6981317007977318,0.5235987755982988),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.0471975511965976,0,3.141592653589793),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-0.35,-1)*angles(0.5235987755982988,-1.0471975511965976,0),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,-0.2,0)*angles(-2.0943951023931953,0,3.141592653589793),deltaTime)
end
task.wait(1)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0,0)*angles(2.0943951023931953,1.5707963267948966,0),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(1.5,2.3,-1.5)*angles(-1.2217304763960306,0,-3.141592653589793),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(0,0.5+0.4*sin(sine*16),-0.5)*angles(2.443460952792061,0,0.8726646259971648),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1.6,0)*angles(-0.8726646259971648,0.6981317007977318,0.5235987755982988),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.0471975511965976,0,3.141592653589793),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-0.35,-1)*angles(0.5235987755982988,-1.0471975511965976,0),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,-0.2,0)*angles(-2.0943951023931953,0,3.141592653589793),deltaTime)
attackAnimation=nil
end)
addmode("default",{
idle=function()
if attackAnimation then return attackAnimation() end
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966+0.17453292519943295*sin(sine*2),0.17453292519943295*sin(sine*2),3.141592653589793+0.17453292519943295*sin(sine*2)),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1+0.2*sin((sine + 1)*2),0.1 * sin(sine*2))*angles(-0.3490658503988659-0.17453292519943295*sin(sine*2),-0.7853981633974483-0.03490658503988659*sin(sine*2),0),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,-0.2 * sin((sine+1)*2),0)*angles(-1.5707963267948966+0.17453292519943295*sin(sine*2),0.03490658503988659*sin(sine*2),3.141592653589793),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0,0)*angles(-0.3490658503988659,1.5707963267948966,0),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1+0.2*sin((sine + 1)*2),0.1 * sin(sine*2))*angles(-0.17453292519943295*sin(sine*2),1.4835298641951802-0.03490658503988659*sin(sine*2),0),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(1.5,1,0)*angles(2.9670597283903604,0,-3.141592653589793),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0,0)*angles(1.0471975511965976,-0.8726646259971648,0.5235987755982988),deltaTime)
end,
walk = function()
local fw, rt = velbycfrvec()
local rY, lY = raycastlegs()
t.setWalkSpeed(30)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1+0.2*sin((sine + 6)*10),-0.2-0.2*sin((sine + 2)*10))*angles(1.5707963267948966*sin(sine*10),-1.5707963267948966,0),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0.2 * sin((sine+2)*10),0)*angles(-2.0943951023931953+0.17453292519943295*sin(sine*10),0,3.141592653589793),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966+0.17453292519943295*sin(sine*10),0.17453292519943295*sin((sine+1)*10),3.141592653589793+0.17453292519943295*sin(sine*10)),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(1.5,2.2,-1.5)*angles(-1.2217304763960306,0,-3.141592653589793),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.2+0.2*sin((sine + 6)*10),0.1 * sin((sine+2)*10))*angles(0.8726646259971648*sin(sine*10),-1.5707963267948966,0),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1+0.2*sin((sine + 6)*10),-0.2-0.2*sin((sine + 2)*10))*angles(1.5707963267948966*sin(sine*-10),1.5707963267948966,0),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0,0)*angles(2.0943951023931953,1.5707963267948966,0),deltaTime)
end
})
end)
btn("Raygun", 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 velYchg=t.velYchg
local setWalkSpeed=t.setWalkSpeed
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 AccessoryWeld = getPartFromMesh(12307619542,12317304776)
local AccessoryWeld = getPartJoint(AccessoryWeld)
t.setWalkSpeed(30)
addmode("default", {
idle = function()
local rY, lY = raycastlegs()
local Ychg=velYchg()/20
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0,0)*angles(0.8726646259971648,-0.8726646259971648,-0.4363323129985824),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0.5,0)*angles(3.141592653589793,1.5707963267948966,0),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,-0.5+0.3*sin(sine*2),0)*angles(-2.443460952792061+0.17453292519943295*sin((sine+2)*2),0.17453292519943295*sin(sine*2),3.141592653589793),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1.4-0.3*sin(sine*2),0)*angles(-0.3490658503988659*sin((sine+2)*2),1.2217304763960306-0.17453292519943295*sin(sine*2),0),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-0.5-0.3*sin(sine*2),-0.5)*angles(0.8726646259971648-0.2617993877991494*sin((sine+2)*2),-0.8726646259971648-0.17453292519943295*sin(sine*2),0),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(-1.5,1,-1.5)*angles(-1.5707963267948966,0.7853981633974483,-1.5707963267948966),deltaTime)
end,
walk = function()
local Vfw, Vrt = velbycfrvec()
local rY, lY = raycastlegs()
local Ychg=velYchg()/20
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.2+0.3*sin((sine + 1)*10),-0.5 * sin(sine*10))*angles(0.8726646259971648*sin(sine*10),-1.5707963267948966,0),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0,0)*angles(2.0943951023931953,1.5707963267948966,0),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-2.0943951023931953,0,3.141592653589793),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(1.5,2.4,-1.3)*angles(-1.0471975511965976,0,-3.141592653589793),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1+0.5*sin(sine*10),-0.5+0.5*sin((sine + 2)*10))*angles(1.5707963267948966*sin(sine*-10),1.5707963267948966,0),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1+0.5*sin(sine*10),-0.5+0.5*sin((sine + 2)*10))*angles(1.5707963267948966*sin(sine*10),-1.5707963267948966,0),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0.2 * sin((sine+2)*10),0)*angles(-2.0943951023931953+0.17453292519943295*sin(sine*10),0,3.141592653589793),deltaTime)
end
})
local attackAnimation=nil
mouse.Button1Down:Connect(function()
if attackAnimation then return end
attackAnimation=function()
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1,0)*angles(0,-1.5707963267948966,0),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0.5 * sin(sine*5),-1)*angles(2.0943951023931953,0,-0.3490658503988659),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1,0)*angles(0,1.5707963267948966,0),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.5,-1)*angles(2.0943951023931953,-0.6981317007977318,0.8726646259971648),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0,0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(-0.5,2.5,-1)*angles(-1.5707963267948966,0,3.490658503988659),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
end
task.wait(0.2)
attackAnimation=function()
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1,0)*angles(0,-1.5707963267948966,0),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0,0)*angles(2.0943951023931953,0,-0.3490658503988659),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1,0)*angles(0,1.5707963267948966,0),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.5,-1+0.5*sin(sine*10))*angles(2.0943951023931953,-0.6981317007977318,0.8726646259971648),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0,0.5)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(-0.5,2.5+0.5*sin(sine*-10),-1)*angles(-1.5707963267948966,0,3.490658503988659),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
end
task.wait(0.3)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1,0)*angles(0,-1.5707963267948966,0),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0,0)*angles(2.0943951023931953,0,-0.3490658503988659),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1,0)*angles(0,1.5707963267948966,0),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.5,-1+0.5*sin(sine*10))*angles(2.0943951023931953,-0.6981317007977318,0.8726646259971648),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0,0.5)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(-0.5,2.5+0.5*sin(sine*-10),-1)*angles(-1.5707963267948966,0,3.490658503988659),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
attackAnimation=nil
end)
addmode("default",{
idle=function()
if attackAnimation then return attackAnimation() end
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0.2 * sin(sine*2),0)*angles(-2.0943951023931953+0.17453292519943295*sin((sine+1)*2),0.08726646259971647*sin(sine*2),3.141592653589793),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1.5-0.2*sin(sine*2),0)*angles(-0.6981317007977318-0.2617993877991494*sin((sine+1)*2),0.8726646259971648+0.08726646259971647*sin(sine*-2),0.5235987755982988),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-2.0943951023931953,0,3.141592653589793),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1-0.2*sin(sine*2),-0.5)*angles(0.7853981633974483-0.2617993877991494*sin((sine+1)*2),-0.8726646259971648-0.08726646259971647*sin(sine*2),0),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0,0)*angles(-0.5235987755982988,-0.8726646259971648,0),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(1.5,2.3,-1.2)*angles(-1.0471975511965976,0,-3.141592653589793),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0,0)*angles(0,1.5707963267948966,2.0943951023931953),deltaTime)
end,
walk = function()
local fw, rt = velbycfrvec()
local rY, lY = raycastlegs()
t.setWalkSpeed(30)
t.setWalkSpeed(16)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.2+0.3*sin((sine + 1)*10),-0.5 * sin(sine*10))*angles(0.8726646259971648*sin(sine*10),-1.5707963267948966,0),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0,0)*angles(2.0943951023931953,1.5707963267948966,0),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-2.0943951023931953,0,3.141592653589793),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(1.5,2.4,-1.3)*angles(-1.0471975511965976,0,-3.141592653589793),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1+0.5*sin(sine*10),-0.5+0.5*sin((sine + 2)*10))*angles(1.5707963267948966*sin(sine*-10),1.5707963267948966,0),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1+0.5*sin(sine*10),-0.5+0.5*sin((sine + 2)*10))*angles(1.5707963267948966*sin(sine*10),-1.5707963267948966,0),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0.2 * sin((sine+2)*10),0)*angles(-2.0943951023931953+0.17453292519943295*sin(sine*10),0,3.141592653589793),deltaTime)
end
})
end)
btn("Fallen angel", 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 velYchg=t.velYchg
local setWalkSpeed=t.setWalkSpeed
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 AccessoryWeld = getPartFromMesh(5507042353,5507001793)
local AccessoryWeld = getPartJoint(AccessoryWeld)
t.setWalkSpeed(20)
addmode("default", {
idle = function()
local rY, lY = raycastlegs()
local Ychg=velYchg()/20
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0,0)*angles(0.8726646259971648,-0.8726646259971648,-0.4363323129985824),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0.5,0)*angles(3.141592653589793,1.5707963267948966,0),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,-0.5+0.3*sin(sine*2),0)*angles(-2.443460952792061+0.17453292519943295*sin((sine+2)*2),0.17453292519943295*sin(sine*2),3.141592653589793),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1.4-0.3*sin(sine*2),0)*angles(-0.3490658503988659*sin((sine+2)*2),1.2217304763960306-0.17453292519943295*sin(sine*2),0),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-0.5-0.3*sin(sine*2),-0.5)*angles(0.8726646259971648-0.2617993877991494*sin((sine+2)*2),-0.8726646259971648-0.17453292519943295*sin(sine*2),0),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(-1.5,1,-1.5)*angles(-1.5707963267948966,0.7853981633974483,-1.5707963267948966),deltaTime)
end,
walk = function()
local Vfw, Vrt = velbycfrvec()
local rY, lY = raycastlegs()
local Ychg=velYchg()/20
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(-2,0,-2)*angles(0.17453292519943295*sin(sine*5),1.0471975511965976*sin(sine*5),0.17453292519943295*sin((sine+1)*5)),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0,0)*angles(-0.6981317007977318,0.6981317007977318,-0.6981317007977318),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,5+1*sin(sine*5),0)*angles(-2.443460952792061+0.3490658503988659*sin((sine+1)*5),0.17453292519943295*sin((sine+1)*5),3.141592653589793),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0,0)*angles(-0.6981317007977318,-0.6981317007977318,-0.8726646259971648),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-2.0943951023931953,0,3.141592653589793),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1,0)*angles(-0.7853981633974483+0.17453292519943295*sin(sine*-5),1.5707963267948966,0),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1,0)*angles(-0.7853981633974483+0.17453292519943295*sin(sine*5),-1.5707963267948966,0),deltaTime)
end
})
local attackAnimation=nil
mouse.Button1Down:Connect(function()
if attackAnimation then return end
attackAnimation=function()
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1.5,0.5,1)*angles(1.5707963267948966,0,-0.5235987755982988),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1.5,-0.5)*angles(-0.5235987755982988,1.5707963267948966,0),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1.2,-0.5)*angles(0.5235987755982988,-1.5707963267948966,0),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0,-3)*angles(-2.0943951023931953,0,3.141592653589793),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(-0.7598786354064941,0.21443712711334229,-0.7138900756835938)*angles(0,0,0),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1.5,-0.5,0)*angles(2.0943951023931953,0.8726646259971648,0),deltaTime)
end
task.wait(0.2)
attackAnimation=function()
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1.5,0.5,-1)*angles(1.5707963267948966,0.3490658503988659,0.5235987755982988),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1.5,-0.5)*angles(-0.5235987755982988,1.5707963267948966,0),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1.2,-0.5)*angles(0.5235987755982988,-1.5707963267948966,0),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0,-3)*angles(-2.0943951023931953,0,3.141592653589793),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(-0.7598786354064941,0.21443712711334229,-0.7138900756835938)*angles(0.17453292519943295*sin(sine*100),0.17453292519943295*sin(sine*100),0.17453292519943295*sin(sine*100)),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1.5,-0.5,0)*angles(2.0943951023931953,0.8726646259971648,0),deltaTime)
end
task.wait(0.1)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966+0.3490658503988659*sin(sine*100),-0.5235987755982988+0.3490658503988659*sin(sine*100),3.141592653589793+0.3490658503988659*sin(sine*100)),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(-3,0.2,-2)*angles(0.17453292519943295*sin(sine*1),1.0471975511965976*sin(sine*1),0.5235987755982988*sin((sine+1)*1)),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0.5 * sin(sine*1),0)*angles(-2.0943951023931953+0.17453292519943295*sin((sine+1)*1),0,3.141592653589793),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0,0)*angles(2.0943951023931953,-1.2217304763960306,0),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1-0.5*sin(sine*1),-0.5)*angles(0.5235987755982988-0.17453292519943295*sin((sine+1)*1),1.5707963267948966,0),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1.5-0.5*sin(sine*1),0)*angles(-0.17453292519943295*sin((sine+1)*1),-1.5707963267948966,0),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0,0)*angles(0,0.6981317007977318,0.8726646259971648),deltaTime)
attackAnimation=nil
end)
addmode("default",{
idle=function()
if attackAnimation then return attackAnimation() end
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966+0.3490658503988659*sin(sine*100),-0.5235987755982988+0.3490658503988659*sin(sine*100),3.141592653589793+0.3490658503988659*sin(sine*100)),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(-3,0.2,-2)*angles(0.17453292519943295*sin(sine*1),1.0471975511965976*sin(sine*1),0.5235987755982988*sin((sine+1)*1)),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0.5 * sin(sine*1),0)*angles(-2.0943951023931953+0.17453292519943295*sin((sine+1)*1),0,3.141592653589793),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0,0)*angles(2.0943951023931953,-1.2217304763960306,0),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1-0.5*sin(sine*1),-0.5)*angles(0.5235987755982988-0.17453292519943295*sin((sine+1)*1),1.5707963267948966,0),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1.5-0.5*sin(sine*1),0)*angles(-0.17453292519943295*sin((sine+1)*1),-1.5707963267948966,0),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0,0)*angles(0,0.6981317007977318,0.8726646259971648),deltaTime)
end,
walk = function()
local Vfw, Vrt = velbycfrvec()
local rY, lY = raycastlegs()
local Ychg=velYchg()/20
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(-2,0,-2)*angles(0.17453292519943295*sin(sine*5),1.0471975511965976*sin(sine*5),0.17453292519943295*sin((sine+1)*5)),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0,0)*angles(-0.6981317007977318,0.6981317007977318,-0.6981317007977318),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,5+1*sin(sine*5),0)*angles(-2.443460952792061+0.3490658503988659*sin((sine+1)*5),0.17453292519943295*sin((sine+1)*5),3.141592653589793),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0,0)*angles(-0.6981317007977318,-0.6981317007977318,-0.8726646259971648),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-2.0943951023931953,0,3.141592653589793),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1,0)*angles(-0.7853981633974483+0.17453292519943295*sin(sine*-5),1.5707963267948966,0),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1,0)*angles(-0.7853981633974483+0.17453292519943295*sin(sine*5),-1.5707963267948966,0),deltaTime)
end
})
end)
btn("nameless balls v2", 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 right = getPartFromMesh(123442066,12344206675)
local right = getPartJoint(right)
local left = getPartFromMesh(12344207333,12344207341)
local left = getPartJoint(left)
addmode("default", {
idle = function()
local rY, lY = raycastlegs()
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1.5,0,0)*angles(-0.6981317007977318,0,0.8726646259971648),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0.2 * sin(sine*2),0)*angles(-1.5707963267948966+0.17453292519943295*sin((sine+3)*2),0,3.141592653589793),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1-0.2*sin(sine*2),0)*angles(-0.3490658503988659-0.17453292519943295*sin((sine+3)*2),1.2217304763960306+0.17453292519943295*sin(sine*2),0.5235987755982988),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1-0.2*sin(sine*2),0)*angles(-0.17453292519943295*sin((sine+3)*2),-1.5707963267948966,0),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0,0)*angles(0.3490658503988659+0.17453292519943295*sin(sine*2),1.5707963267948966,0),deltaTime)
left.C0=left.C0:Lerp(cf(100,100,100)*angles(3.141592653589793,3.141592653589793,3.141592653589793),deltaTime)
right.C0=right.C0:Lerp(cf(100,100,100)*angles(0,3.141592653589793,3.141592653589793),deltaTime)
end,
walk = function()
local fw, rt = velbycfrvec()
local rY, lY = raycastlegs()
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1+0.2*sin(sine*10),0.2 * sin(sine*-10))*angles(0.8726646259971648*sin((sine+3)*10),-1.5707963267948966+0.17453292519943295*sin(sine*10),0),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1+0.2*sin(sine*10),0.2 * sin(sine*-10))*angles(0.8726646259971648*sin((sine+3)*-10),1.5707963267948966+0.17453292519943295*sin(sine*10),0),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0.075 * sin(sine*10),0)*angles(-1.7453292519943295+0.17453292519943295*sin((sine+2)*10),0,3.141592653589793),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0.2+0.2*sin(sine*10),0)*angles(0.8726646259971648*sin((sine+3)*-10),1.5707963267948966,0),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.2+0.2*sin(sine*10),0)*angles(0.8726646259971648*sin((sine+3)*10),-1.5707963267948966,0),deltaTime)
left.C0=left.C0:Lerp(cf(100,100,100)*angles(3.141592653589793,3.141592653589793,3.141592653589793),deltaTime)
right.C0=right.C0:Lerp(cf(100,100,100)*angles(0,3.141592653589793,3.141592653589793),deltaTime)
end,
jump = function()
local fw, rt = velbycfrvec()
RootJoint.C0 = RootJoint.C0:Lerp(cf(0, 0, 0) * angles(-1.4835298641951802 + fw * 0.1, rt * -0.05, -3.141592653589793), deltaTime)
RightShoulder.C0 = RightShoulder.C0:Lerp(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 = LeftHip.C0:Lerp(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 = LeftShoulder.C0:Lerp(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 = Neck.C0:Lerp(cf(0, 1, 0) * angles(-1.3962634015954636, 0, -3.141592653589793 - rt), deltaTime)
RightHip.C0 = RightHip.C0:Lerp(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)
left.C0=left.C0:Lerp(cf(100,100,100)*angles(3.141592653589793,3.141592653589793,3.141592653589793),deltaTime)
right.C0=right.C0:Lerp(cf(100,100,100)*angles(0,3.141592653589793,3.141592653589793),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 = RootJoint.C0:Lerp(cf(0, 0, 0) * angles(-1.6580627893946132 + fw * 0.1, rt * -0.05, -3.141592653589793), deltaTime)
RightShoulder.C0 = RightShoulder.C0:Lerp(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 = LeftHip.C0:Lerp(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 = LeftShoulder.C0:Lerp(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 = Neck.C0:Lerp(cf(0, 1, 0) * angles(-1.7453292519943295, 0, -3.141592653589793 - rt), deltaTime)
RightHip.C0 = RightHip.C0:Lerp(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)
left.C0=left.C0:Lerp(cf(100,100,100)*angles(3.141592653589793,3.141592653589793,3.141592653589793),deltaTime)
right.C0=right.C0:Lerp(cf(100,100,100)*angles(0,3.141592653589793,3.141592653589793),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()
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1-0.2*sin(sine*2),0)*angles(-0.17453292519943295*sin((sine+3)*2),-1.5707963267948966,0),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0.2 * sin(sine*2),0)*angles(-1.5707963267948966+0.17453292519943295*sin((sine+3)*2),0,3.141592653589793),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(0,-2,-1.5)*angles(-1.5707963267948966,0,0),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1-0.2*sin(sine*2),0)*angles(-0.3490658503988659-0.17453292519943295*sin((sine+3)*2),1.2217304763960306+0.17453292519943295*sin(sine*2),0.5235987755982988),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(-0.5,-1.5,-2.5)*angles(1.5707963267948966,1.5707963267948966,0),deltaTime)
right.C0=right.C0:Lerp(cf(-1.5,2,-1.5)*angles(0,3.141592653589793,3.141592653589793),deltaTime)
left.C0=left.C0:Lerp(cf(1.5,2,-1.5)*angles(1.5707963267948966,1.5707963267948966,-1.5707963267948966),deltaTime)
end,
walk = function()
local fw, rt = velbycfrvec()
local rY, lY = raycastlegs()
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1+0.2*sin(sine*10),0.2 * sin(sine*-10))*angles(0.8726646259971648*sin((sine+3)*10),-1.5707963267948966+0.17453292519943295*sin(sine*10),0),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(-0.5,-1+0.2*sin(sine*10),-2.5)*angles(1.5707963267948966,1.5707963267948966,0),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0.2 * sin(sine*10),0)*angles(-1.5707963267948966+0.17453292519943295*sin((sine+2)*10),0,3.141592653589793),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1,0)*angles(0.8726646259971648*sin((sine+3)*-10),1.5707963267948966+0.17453292519943295*sin(sine*10),0),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(0.5,-1+0.2*sin(sine*10),-1.5)*angles(-1.5707963267948966,-1.5707963267948966,0),deltaTime)
left.C0=left.C0:Lerp(cf(-1.5,2,-1)*angles(3.141592653589793,3.141592653589793,3.141592653589793),deltaTime)
right.C0=right.C0:Lerp(cf(1.5,2,-1)*angles(0,3.141592653589793,3.141592653589793),deltaTime)
end
})
end)
btn("Mini tonk", 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 velYchg=t.velYchg
local setWalkSpeed=t.setWalkSpeed
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 tank = getPartFromMesh(12459488661,12459536185)
local tank = getPartJoint(tank)
t.setWalkSpeed(40)
addmode("default", {
idle = function()
local rY, lY = raycastlegs()
local Ychg=velYchg()/20
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,1,0)*angles(0,-1.5707963267948966,0),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,-1.5+0.2*sin(sine*160),0)*angles(-3.141592653589793+0.08726646259971647*sin(sine*160),0,3.141592653589793),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,0,0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(0,0.5,0)*angles(0,1.5707963267948966,0),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(0,0.5,0)*angles(0,-1.5707963267948966,0),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,1,0)*angles(0,1.5707963267948966,0),deltaTime)
tank.C0=tank.C0:Lerp(cf(-0.03246307373046875,-0.2,1.2)*angles(-1.5707963267948966,0,0),deltaTime)
end,
walk = function()
local Vfw, Vrt = velbycfrvec()
local rY, lY = raycastlegs()
local Ychg=velYchg()/20
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,1,0)*angles(0,-1.5707963267948966,0),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,-1.5+0.2*sin(sine*160),0)*angles(-3.141592653589793+0.08726646259971647*sin(sine*160),0,3.141592653589793),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,0,0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(0,0.5,0)*angles(0,1.5707963267948966,0),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(0,0.5,0)*angles(0,-1.5707963267948966,0),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,1,0)*angles(0,1.5707963267948966,0),deltaTime)
tank.C0=tank.C0:Lerp(cf(-0.03246307373046875,-0.2,1.2)*angles(-1.5707963267948966,0,0),deltaTime)
end
})
addmode("q", {
idle = function()
velYchg()
tank.C0=tank.C0:Lerp(cf(-0.03246307373046875,-0.2,1.2)*angles(-1.5707963267948966,0,0),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(0,0.5,0)*angles(0,-1.5707963267948966,0),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,0,0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,-1.5+0.2*sin(sine*160),0)*angles(-3.141592653589793+0.08726646259971647*sin(sine*160),0,3.141592653589793),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(0,1,0)*angles(0,1.5707963267948966,0),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(0,1,0)*angles(0,-1.5707963267948966,0),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(0,0.5,0)*angles(0,1.5707963267948966,0),deltaTime)
end
})
end)
lbl("----====No items====----")
btn("Slick Spy", 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 AccessoryWeld = getPartFromMesh(5548423017,5548423938)
local AccessoryWeld = getPartJoint(AccessoryWeld)
t.setWalkSpeed(20)
addmode("default", {
idle = function()
t.setWalkSpeed(20)
local rY, lY = raycastlegs()
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0.2 * sin(sine*-2),0)*angles(-1.9198621771937625+0.17453292519943295*sin((sine+2)*2),0,3.141592653589793),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0.1 * sin(sine*2),0)*angles(-3.839724354387525+0.3490658503988659*sin((sine+1)*2),1.2217304763960306,0),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.1 * sin(sine*2),0)*angles(0.17453292519943295*sin((sine+1)*2),-0.8726646259971648,-1.0471975511965976),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1.2+0.2*sin(sine*2),0)*angles(-0.3490658503988659-0.2617993877991494*sin((sine+2)*2),-0.8726646259971648-0.08726646259971647*sin((sine+1)*2),0),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1+0.2*sin(sine*2),-0.5)*angles(0.3490658503988659-0.2617993877991494*sin((sine+2)*2),1.2217304763960306-0.08726646259971647*sin((sine+1)*2),0),deltaTime)
end,
walk = function()
local fw, rt = velbycfrvec()
local rY, lY = raycastlegs()
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.2+0.2*sin((sine + 1)*-10),-0.2 * sin((sine+3)*-10))*angles(0.8726646259971648*sin(sine*10),-1.5707963267948966,0),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1+0.5*sin((sine + 1)*10),-0.2-0.5*sin((sine + 3)*10))*angles(0.8726646259971648*sin(sine*-10),1.5707963267948966,0),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1+0.5*sin((sine + 3)*-10),-0.2-0.5*sin((sine + 1)*10))*angles(0.8726646259971648*sin(sine*10),-1.5707963267948966,0),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0.2+0.2*sin((sine + 1)*-10),0.2 * sin((sine+3)*-10))*angles(0.8726646259971648*sin(sine*-10),1.5707963267948966,0),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0.1 * sin(sine*10),0)*angles(-1.9198621771937625+0.17453292519943295*sin((sine+2)*10),0.08726646259971647*sin(sine*10),3.141592653589793),deltaTime)
end
})
addmode("q", {
idle = function()
t.setWalkSpeed(35)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1.7-0.2*sin(sine*2),0.2-0.2*sin(sine*2))*angles(-0.17453292519943295*sin((sine+2)*2),0.8726646259971648-0.08726646259971647*sin(sine*1),0.5235987755982988),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0,-0.5)*angles(0.3490658503988659+0.17453292519943295*sin(sine*2),0.8726646259971648,0.8726646259971648),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-0.6981317007977318+0.17453292519943295*sin(sine*1),0.17453292519943295*sin(sine*1),3.141592653589793+0.17453292519943295*sin(sine*1)),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,-1.2+0.2*sin(sine*2),0.2 * sin((sine+1)*2))*angles(-2.792526803190927+0.08726646259971647*sin((sine+2)*2),-0.3490658503988659+0.08726646259971647*sin(sine*1),3.141592653589793),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1.5-0.2*sin(sine*2),0.2-0.2*sin(sine*2))*angles(0.5235987755982988-0.17453292519943295*sin((sine+2)*2),-1.0471975511965976-0.08726646259971647*sin(sine*1),0),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,-0.2 * sin(sine*2),-1-0.2*sin(sine*2))*angles(1.5707963267948966,-1.2217304763960306-0.08726646259971647*sin(sine*1),-0.5235987755982988),deltaTime)
end,
walk = function()
local fw, rt = velbycfrvec()
local rY, lY = raycastlegs()
RootJoint.C0=RootJoint.C0:Lerp(cf(0,-0.5+0.2*sin((sine + 2)*10),0)*angles(-2.443460952792061+0.17453292519943295*sin(sine*10),0,3.141592653589793),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.5 * sin(sine*10),0)*angles(-1.5707963267948966,-0.8726646259971648,-0.8726646259971648),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0.5 * sin(sine*10),0)*angles(-1.5707963267948966,0.8726646259971648,0.8726646259971648),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1+0.5*sin((sine + 6)*-10),-0.2-0.5*sin((sine + 3)*10))*angles(0.8726646259971648*sin(sine*10),-1.5707963267948966,0),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-0.8726646259971648,0,3.141592653589793),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1+0.5*sin((sine + 6)*-10),-0.2-0.5*sin((sine + 3)*10))*angles(0.8726646259971648*sin(sine*-10),1.5707963267948966,0),deltaTime)
end
})
end)
btn("Flying man Dan", 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")
t.setWalkSpeed(35)
addmode("default", {
idle = function()
local rY, lY = raycastlegs()
local Cfw, Crt = velchgbycfrvec()
RootJoint.C0=RootJoint.C0:Lerp(cf(0,3+0.5*sin(sine*2),0)*angles(-1.5707963267948966+0.3490658503988659*sin((sine+2.5)*-2),0,3.141592653589793),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0.5,0)*angles(0.6981317007977318+0.3490658503988659*sin((sine+2)*2),1.2217304763960306-0.17453292519943295*sin(sine*2),1.2217304763960306),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.5,0)*angles(0.6981317007977318+0.3490658503988659*sin((sine+2)*2),-1.2217304763960306+0.17453292519943295*sin(sine*2),-1.2217304763960306),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1,0)*angles(-0.5235987755982988+0.3490658503988659*sin((sine+2)*2),1.2217304763960306,0.5235987755982988),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-0.2-0.2*sin(sine*2),-1)*angles(-0.5235987755982988+0.17453292519943295*sin(sine*2),-1.2217304763960306,-0.5235987755982988),deltaTime)
end,
walk = function()
local Vfw, Vrt = velbycfrvec()
local rY, lY = raycastlegs()
local Cfw, Crt = velchgbycfrvec()
RightHip.C0=RightHip.C0:Lerp(cf(1,-1,0)*angles(0,1.5707963267948966,0),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0.2 * sin(sine*4),0)*angles(0.6981317007977318*sin((sine+2)*4),0.8726646259971648,0.5235987755982988),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-0.8726646259971648+0.3490658503988659*sin(sine*1),0.12217304763960307*sin(sine*1),3.141592653589793+0.12217304763960307*sin(sine*1)),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1,0)*angles(-0.5235987755982988+0.6981317007977318*sin((sine+2)*4),-1.5707963267948966,0),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,3+0.5*sin((sine + 3)*4),0.2 * sin(sine*4))*angles(-2.792526803190927+0.3490658503988659*sin(sine*4),0.3490658503988659*sin((sine+2)*4),3.141592653589793),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.2 * sin(sine*3),0)*angles(0.6981317007977318*sin((sine+2.5)*4),-0.8726646259971648,-0.6981317007977318),deltaTime)
end
})
end)
btn("nameless balls v1", 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()
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0.2 * sin(sine*3),0)*angles(-1.5707963267948966+0.17453292519943295*sin(sine*3),0,3.141592653589793),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.5,0)*angles(0.3490658503988659*sin((sine+2)*1),-1.5707963267948966,0),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1-0.2*sin(sine*3),0)*angles(-0.17453292519943295*sin(sine*3),-1.2217304763960306,0),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0.5,0)*angles(0.3490658503988659*sin((sine+2)*1),1.5707963267948966,0),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1-0.2*sin(sine*3),0)*angles(-0.6981317007977318-1.5707963267948966*sin(sine*3),1.5707963267948966,0),deltaTime)
end,
walk = function()
local fw, rt = velbycfrvec()
local rY, lY = raycastlegs()
RootJoint.C0 = RootJoint.C0:Lerp(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 = RightHip.C0:Lerp(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 = LeftShoulder.C0:Lerp(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 = RightShoulder.C0:Lerp(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 = LeftHip.C0:Lerp(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 = Neck.C0:Lerp(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 = RootJoint.C0:Lerp(cf(0, 0, 0) * angles(-1.4835298641951802 + fw * 0.1, rt * -0.05, -3.141592653589793), deltaTime)
RightShoulder.C0 = RightShoulder.C0:Lerp(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 = LeftHip.C0:Lerp(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 = LeftShoulder.C0:Lerp(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 = Neck.C0:Lerp(cf(0, 1, 0) * angles(-1.3962634015954636, 0, -3.141592653589793 - rt), deltaTime)
RightHip.C0 = RightHip.C0:Lerp(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 = RootJoint.C0:Lerp(cf(0, 0, 0) * angles(-1.6580627893946132 + fw * 0.1, rt * -0.05, -3.141592653589793), deltaTime)
RightShoulder.C0 = RightShoulder.C0:Lerp(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 = LeftHip.C0:Lerp(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 = LeftShoulder.C0:Lerp(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 = Neck.C0:Lerp(cf(0, 1, 0) * angles(-1.7453292519943295, 0, -3.141592653589793 - rt), deltaTime)
RightHip.C0 = RightHip.C0:Lerp(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()
RightHip.C0=RightHip.C0:Lerp(cf(1,-1-0.2*sin(sine*1),0)*angles(1.5707963267948966*sin(sine*3),1.5707963267948966,0),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1-0.2*sin(sine*3),0)*angles(-0.17453292519943295*sin((sine+2)*3),-1.2217304763960306,0),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(0.5,-0.5,-1.5)*angles(0.17453292519943295*sin((sine+2.5)*3),-1.5707963267948966,1.5707963267948966),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0.2 * sin(sine*3),0)*angles(-1.5707963267948966+0.17453292519943295*sin(sine*3),0,3.141592653589793),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(0.5,-0.5,-3.5)*angles(-0.08726646259971647*sin((sine+2.5)*3),-1.5707963267948966,1.5707963267948966),deltaTime)
end,
walk = function()
local fw, rt = velbycfrvec()
local rY, lY = raycastlegs()
RightShoulder.C0=RightShoulder.C0:Lerp(cf(-0.5,-1,-3.5)*angles(-0.17453292519943295*sin(sine*16),1.5707963267948966,-1.5707963267948966),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(0.5,-1,-1.5)*angles(0.17453292519943295*sin(sine*16),-1.5707963267948966,1.5707963267948966),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1+0.3*sin((sine + 0.15)*8),0)*angles(1.5707963267948966+0.6981317007977318*sin(sine*8),-1.5707963267948966,1.5707963267948966),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1-0.3*sin((sine + 0.15)*8),0)*angles(-1.5707963267948966-0.6981317007977318*sin(sine*8),1.5707963267948966,1.5707963267948966),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0.1 * sin((sine+0.1)*16),0)*angles(-1.5707963267948966,0,3.141592653589793-0.08726646259971647*sin(sine*8)),deltaTime)
end
})
addmode("e", {
idle = function()
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0.2 * sin(sine*3),0)*angles(-1.5707963267948966+0.17453292519943295*sin((sine+2.5)*3),0,3.141592653589793),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(0,0.4,-1)*angles(-1.5707963267948966-0.17453292519943295*sin((sine+3)*3),-1.5707963267948966,0),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1-0.2*sin(sine*3),0)*angles(-0.003490658503988659*sin(sine*3),-1.5707963267948966,0),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(0,0.4,-1)*angles(-1.5707963267948966-0.17453292519943295*sin((sine+3)*3),1.5707963267948966,0),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1-0.2*sin(sine*1),0)*angles(1.5707963267948966*sin(sine*3),1.5707963267948966,0),deltaTime)
end,
walk = function()
local fw, rt = velbycfrvec()
local rY, lY = raycastlegs()
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0.1 * sin((sine+0.1)*16),0)*angles(-1.5707963267948966,0,3.141592653589793-0.08726646259971647*sin(sine*8)),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1+0.3*sin((sine + 0.15)*8),0)*angles(1.5707963267948966+0.6981317007977318*sin(sine*8),-1.5707963267948966,1.5707963267948966),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(0,0.4,-1)*angles(0.17453292519943295*sin((sine-0.05)*16),1.5707963267948966,-1.5707963267948966),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(0,0.4,-1)*angles(0.08726646259971647*sin((sine-0.05)*16),-1.5707963267948966,1.5707963267948966),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1-0.3*sin((sine + 0.15)*8),0)*angles(-1.5707963267948966-0.6981317007977318*sin(sine*8),1.5707963267948966,1.5707963267948966),deltaTime)
end
})
end)
btn("Floatation", 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.setWalkSpeed(40)
t.addmode("default", {
idle = function()
local rY, lY = raycastlegs()
RootJoint.C0=RootJoint.C0:Lerp(cf(0.5 * sin(sine*2),4+0.5*sin(sine*2),0.5 * sin(sine*2))*angles(-1.5707963267948966+0.17453292519943295*sin((sine+2.5)*2),0.17453292519943295*sin(sine*2),3.141592653589793+0.17453292519943295*sin(sine*2)),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0.2 * sin(sine*2),0)*angles(-0.5235987755982988,0.5235987755982988,0.8726646259971648-0.3490658503988659*sin((sine+3)*2)),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1+0.2*sin(sine*4),0)*angles(-0.6981317007977318+0.3490658503988659*sin(sine*2),-1.5707963267948966,0),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.2 * sin(sine*2),0)*angles(-0.5235987755982988,-0.5235987755982988,-0.8726646259971648+0.3490658503988659*sin(sine*2)),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1+0.2*sin((sine + 4)*4),0)*angles(0.3490658503988659-0.3490658503988659*sin((sine+2)*-2),1.5707963267948966,0),deltaTime)
end,
walk = function()
local fw, rt = velbycfrvec()
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0.2 * sin(sine*2),0)*angles(-0.5235987755982988,0.5235987755982988,0.8726646259971648-0.3490658503988659*sin((sine+3)*2)),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1+0.2*sin(sine*4),0)*angles(-0.6981317007977318+0.3490658503988659*sin(sine*2),-1.5707963267948966,0),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1+0.2*sin((sine + 4)*4),0)*angles(-0.6981317007977318+0.3490658503988659*sin((sine+2)*-2),1.5707963267948966,0),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.2 * sin(sine*2),0)*angles(-0.5235987755982988,-0.5235987755982988,-0.8726646259971648+0.3490658503988659*sin(sine*2)),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,2.5+0.5*sin(sine*2),0.5 * sin(sine*2))*angles(-2.443460952792061+0.3490658503988659*sin((sine+2)*2),0,3.141592653589793),deltaTime)
end
})
end)
btn("Amongus V2", 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(10)
addmode("default",{
idle=function()
Neck.C0=Neck.C0:Lerp(cf(0,-0.5,-0.5)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1.2+0.2*sin((sine + 3)*5),0)*angles(0,1.5707963267948966,0),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(0,0.5,1)*angles(0,-1.5707963267948966,0),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0.2 * sin(sine*5),0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0.5,1)*angles(0,-1.5707963267948966,0),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1.2+0.2*sin((sine + 3)*5),0)*angles(0,-1.5707963267948966,0),deltaTime)
end,
walk=function()
local fw,rt=velbycfrvec()
RightShoulder.C0=RightShoulder.C0:Lerp(cf(-0.5,-1,-1)*angles(1.5707963267948966,1.5707963267948966,0),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1.2+0.2*sin((sine + 3)*5),0)*angles(0.5235987755982988*sin(sine*5),-1.5707963267948966,0),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,-0.3,-0.5)*angles(-1.5707963267948966,0,-3.141592653589793),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0.2 * sin(sine*5),0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(0.5,-0.7,-3)*angles(2.0943951023931953,-1.5707963267948966,0),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1.2+0.2*sin((sine + 3)*5),0)*angles(0.5235987755982988*sin(sine*-5),1.5707963267948966,0),deltaTime)
end
})
end)
btn("retro roblox", 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")
t.setWalkSpeed(10)
addmode("default", {
idle = function()
t.setWalkSpeed(10)
local rY, lY = raycastlegs()
end,
walk = function()
local fw, rt = velbycfrvec()
local rY, lY = raycastlegs()
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0.5,0)*angles(0.8726646259971648*sin(sine*-10),1.5707963267948966,0),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1,0)*angles(0.8726646259971648*sin(sine*-10),1.5707963267948966,0),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1,0)*angles(0.8726646259971648*sin(sine*10),-1.5707963267948966,0),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.5,0)*angles(0.8726646259971648*sin(sine*10),-1.5707963267948966,0),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0,0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
end,
jump = function()
local fw, rt = velbycfrvec()
RightHip.C0=RightHip.C0:Lerp(cf(1,-1,0)*angles(0,1.5707963267948966,0),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0.5,0)*angles(3.141592653589793,1.5707963267948966,0),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.5,0)*angles(-3.141592653589793,-1.5707963267948966,0),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1,0)*angles(0,-1.5707963267948966,0),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0,0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
end,
fall = function()
local fw, rt = velbycfrvec()
RightHip.C0=RightHip.C0:Lerp(cf(1,-1,0)*angles(0,1.5707963267948966,0),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0.5,0)*angles(3.141592653589793,1.5707963267948966,0),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.5,0)*angles(-3.141592653589793,-1.5707963267948966,0),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1,0)*angles(0,-1.5707963267948966,0),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0,0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
end
})
end)
lbl("----====Remakes====----")
btn("Banisher remake", 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 velYchg=t.velYchg
local setWalkSpeed=t.setWalkSpeed
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 AccessoryWeld = getPartFromMesh(4615369575,4615393635)
local AccessoryWeld = getPartJoint(AccessoryWeld)
t.setWalkSpeed(25)
addmode("default", {
idle = function()
local rY, lY = raycastlegs()
local Ychg=velYchg()/20
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0,0)*angles(2.6179938779914944,1.5707963267948966,0),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966+0.3490658503988659*sin((sine+2)*2),0.17453292519943295*sin(sine*1),3.141592653589793+0.17453292519943295*sin(sine*1)),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(-2,1.2,-1.5)*angles(-1.5707963267948966,0.17453292519943295,-1.5707963267948966),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0.3 * sin((sine+1)*-2),0)*angles(-2.0943951023931953+0.17453292519943295*sin(sine*2),0,3.141592653589793),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1+0.3*sin((sine + 1)*2),-0.4+0.2*sin((sine + 1)*2))*angles(0.5235987755982988-0.2617993877991494*sin(sine*2),-1.2217304763960306,0),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.1 * sin((sine+2)*2),0)*angles(0.3490658503988659*sin(sine*2),-0.8726646259971648,0),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1.5+0.3*sin((sine + 1)*2),0.2 * sin(sine*2))*angles(-0.3490658503988659-0.2617993877991494*sin(sine*2),0.8726646259971648,0),deltaTime)
end,
walk = function()
local Vfw, Vrt = velbycfrvec()
local rY, lY = raycastlegs()
local Ychg=velYchg()/20
t.setWalkSpeed(25)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1+0.5*sin((sine + 1)*-10),-0.5+0.5*sin((sine + 3)*-10))*angles(1.5707963267948966*sin(sine*10),-1.5707963267948966+0.17453292519943295*sin(sine*10),0),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.2+0.2*sin((sine + 6)*10),-0.2-0.2*sin((sine + 3)*10))*angles(1.5707963267948966*sin(sine*10),-1.5707963267948966+0.17453292519943295*sin(sine*10),0),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(-1.5,1,-1.5)*angles(-1.5707963267948966,0.5235987755982988,-1.5707963267948966),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1+0.5*sin((sine + 1)*10),-0.5+0.5*sin((sine + 3)*-10))*angles(1.5707963267948966*sin(sine*-10),1.5707963267948966-0.17453292519943295*sin(sine*10),0),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0.2 * sin(sine*10),0)*angles(-2.443460952792061+0.17453292519943295*sin((sine+1)*10),0,3.141592653589793),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0.5,0)*angles(2.792526803190927,1.5707963267948966,0),deltaTime)
end
})
addmode("q", {
idle = function()
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-2.0943951023931953,0.17453292519943295*sin(sine*3),3.141592653589793+0.17453292519943295*sin((sine+1)*3)),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0,0)*angles(0.5235987755982988*sin((sine+2)*3),-0.6981317007977318,-0.8726646259971648),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(-3,2,-1.5)*angles(-1.5707963267948966,0,-1.5707963267948966),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-0.5,-0.5)*angles(0.6806784082777885*sin((sine+5)*3),0.8726646259971648,0.5235987755982988),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1.2,-0.5)*angles(-0.6981317007977318+0.5235987755982988*sin((sine+5)*3),-1.2217304763960306,-0.5235987755982988),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,6+2*sin((sine + 4)*3),0)*angles(-1.5707963267948966-0.5235987755982988*sin(sine*3),0.3490658503988659*sin((sine+2)*3),3.141592653589793),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0.5,0)*angles(2.443460952792061,1.5707963267948966,0),deltaTime)
end,
walk = function()
local fw, rt = velbycfrvec()
local rY, lY = raycastlegs()
t.setWalkSpeed(50)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0,0)*angles(0,-1.2217304763960306,0.3490658503988659),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0.5,0)*angles(2.443460952792061,1.5707963267948966,0),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1.2,-0.5)*angles(-1.0471975511965976+0.3490658503988659*sin((sine+5)*3),-1.2217304763960306,-0.5235987755982988),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(-3,2,-1.5)*angles(-1.5707963267948966,0,-1.5707963267948966),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1,0)*angles(0.3490658503988659*sin((sine+5)*3),1.5707963267948966,-0.8726646259971648),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,6+1*sin((sine + 4)*3),0)*angles(-2.792526803190927-0.17453292519943295*sin(sine*3),0,3.141592653589793),deltaTime)
end
})
addmode("t", {
idle = function()
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-2.2689280275926285,-0.2617993877991494,3.490658503988659),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(-2.25,2,-1.25)*angles(-2.0943951023931953,-1.8325957145940461,-2.705260340591211),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,0,-1)*angles(2.443460952792061+0.17453292519943295*sin((sine+0.5)*3),-2.0943951023931953+0.17453292519943295*sin((sine+0.25)*3),2.792526803190927),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.5,-0.5)*angles(-1.5707963267948966,-0.6981317007977318,2.2689280275926285),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1,0.1)*angles(-1.2217304763960306+0.08726646259971647*sin((sine+0.5)*3),0.6981317007977318,0.6981317007977318),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,-0.25,0.5)*angles(-1.5707963267948966,0.8726646259971648,2.0943951023931953),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0.5 * sin((sine+0.5)*3),4+1*sin(sine*3),0.5 * sin((sine-0.5)*-3))*angles(-1.2217304763960306+0.08726646259971647*sin((sine+0.5)*3),-0.08726646259971647+0.2617993877991494*sin((sine+0.5)*3),2.0943951023931953),deltaTime)
end,
walk = function()
local fw, rt = velbycfrvec()
local rY, lY = raycastlegs()
t.setWalkSpeed(50)
RootJoint.C0=RootJoint.C0:Lerp(cf(0.2 * sin((sine+0.5)*3),4+0.5*sin(sine*3),0.6 * sin((sine-0.5)*-3))*angles(-2.0943951023931953+0.08726646259971647*sin((sine+0.5)*3),-0.08726646259971647+0.08726646259971647*sin((sine+0.5)*3),2.0943951023931953),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1,0.1)*angles(-1.2217304763960306+0.08726646259971647*sin((sine+0.5)*3),0.6981317007977318,0.6981317007977318),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966+0.2617993877991494*sin(sine*1),0.2617993877991494*sin(sine*1),4.363323129985824),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1.4,0,-0.5)*angles(-0.5235987755982988,-0.5235987755982988,-0.8726646259971648),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(-2.25,2,-1.25)*angles(-2.0943951023931953,-1.8325957145940461,-2.705260340591211),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,0,-1)*angles(2.443460952792061+0.17453292519943295*sin((sine+0.5)*3),-2.0943951023931953+0.17453292519943295*sin((sine+0.25)*3),2.792526803190927),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,-0.25,0.5)*angles(-1.5707963267948966,0.8726646259971648,2.0943951023931953),deltaTime)
end
})
addmode("y", {
idle = function()
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,1,-0.05)*angles(1.4835298641951802,1.5707963267948966,1.5707963267948966),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0.1+0.1*sin(sine*3.5),0.1 * sin((sine+0.25)*3.5))*angles(-1.5707963267948966+0.08726646259971647*sin((sine+0.5)*3.5),0,3.141592653589793),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1.15+0.0975*sin((sine + 0.025)*-3.5),-0.1+0.0825*sin((sine - 0.975)*3.5))*angles(-0.8726646259971648+0.08726646259971647*sin((sine+0.5)*-3.5),1.3962634015954636,0.8290313946973066),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.35+0.2*sin((sine - 0.5)*3.5),0)*angles(1.5707963267948966+0.2617993877991494*sin((sine+0.725)*3.5),-1.8325957145940461+0.2617993877991494*sin(sine*3.5),1.5707963267948966),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1.15+0.0975*sin((sine + 0.025)*-3.5),-0.1+0.0825*sin((sine - 0.975)*3.5))*angles(-0.8726646259971648+0.08726646259971647*sin((sine+0.5)*-3.5),-1.3526301702956054,-0.8290313946973066),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(-2.5,2,-1.5)*angles(-1.5707963267948966,0.6981317007977318,-1.5707963267948966),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.9198621771937625,0,3.141592653589793+0.3490658503988659*sin(sine*1.75)),deltaTime)
end,
walk = function()
local fw, rt = velbycfrvec()
local rY, lY = raycastlegs()
t.setWalkSpeed(16)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1+0.35*sin((sine + 0.775)*-8.5),-0.1+0.25*sin((sine + 1)*-8.5))*angles(-0.08726646259971647+1.0471975511965976*sin((sine+0.575)*-8.5),1.5707963267948966,0),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,1,0)*angles(1.5707963267948966,1.5707963267948966,1.5707963267948966),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(-2.5,2,-1.5)*angles(-1.5707963267948966,0.7853981633974483,-1.5707963267948966),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0.1 * sin((sine-0.0825)*8.5),0.025 * sin((sine+0.25)*8.5))*angles(-1.5882496193148399+0.017453292519943295*sin((sine+0.5)*8.5),0,3.141592653589793+0.08726646259971647*sin((sine+0.575)*-8.5)),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1+0.035*sin((sine - 0.05)*8.5),0)*angles(-1.6231562043547265+0.06981317007977318*sin((sine-0.275)*8.5),0,3.141592653589793+0.08726646259971647*sin((sine+0.55)*8.5)),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.4,0.5 * sin((sine-0.115)*8.5))*angles(1.0471975511965976*sin((sine+0.575)*-8.5),-1.5707963267948966+0.17453292519943295*sin(sine*8.5),0),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1+0.35*sin((sine + 0.8)*8.5),-0.1+0.25*sin((sine + 1.05)*8.5))*angles(-0.08726646259971647+1.0471975511965976*sin((sine+0.575)*8.5),-1.5707963267948966,0),deltaTime)
end
})
addmode("e", {
idle = function()
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-2.0943951023931953,0.17453292519943295*sin(sine*3),3.141592653589793+0.17453292519943295*sin((sine+1)*3)),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0,0)*angles(0.5235987755982988*sin((sine+2)*3),-0.6981317007977318,-0.8726646259971648),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(-3,2,-1.5)*angles(-1.5707963267948966,0,-1.5707963267948966),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-0.5,-0.5)*angles(0.6806784082777885*sin((sine+5)*3),0.8726646259971648,0.5235987755982988),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1.2,-0.5)*angles(-0.6981317007977318+0.5235987755982988*sin((sine+5)*3),-1.2217304763960306,-0.5235987755982988),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,6+2*sin((sine + 4)*3),0)*angles(-1.5707963267948966-0.5235987755982988*sin(sine*3),0.3490658503988659*sin((sine+2)*3),3.141592653589793),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0.5,0)*angles(2.443460952792061,1.5707963267948966,0),deltaTime)
end,
walk = function()
local fw, rt = velbycfrvec()
local rY, lY = raycastlegs()
t.setWalkSpeed(50)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0,0)*angles(0,-1.2217304763960306,0.3490658503988659),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0.5,0)*angles(2.443460952792061,1.5707963267948966,0),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1.2,-0.5)*angles(-1.0471975511965976+0.3490658503988659*sin((sine+5)*3),-1.2217304763960306,-0.5235987755982988),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(-3,2,-1.5)*angles(-1.5707963267948966,0,-1.5707963267948966),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1,0)*angles(0.3490658503988659*sin((sine+5)*3),1.5707963267948966,-0.8726646259971648),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,6+1*sin((sine + 4)*3),0)*angles(-2.792526803190927-0.17453292519943295*sin(sine*3),0,3.141592653589793),deltaTime)
end
})
addmode("r", {
idle = function()
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0,0)*angles(0.17453292519943295*sin(sine*5),-0.8726646259971648+0.17453292519943295*sin((sine+0.5)*5),-2.0943951023931953),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(0,-3,-2)*angles(0,0.5235987755982988*sin(sine*5),-0.7853981633974483+0.5235987755982988*sin((sine+1)*5)),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966+0.08726646259971647*sin(sine*5),0.08726646259971647*sin((sine+1)*5),3.141592653589793),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0,0.5)*angles(1.5707963267948966,0.8726646259971648,-2.0943951023931953),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1-0.1*sin(sine*5),0.09 * sin((sine+1)*5))*angles(-0.08726646259971647*sin((sine+1)*5),1.2217304763960306,0),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0.1 * sin(sine*5),0)*angles(-1.5707963267948966+0.08726646259971647*sin((sine+1)*5),0,3.141592653589793),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1-0.1*sin(sine*5),0.09 * sin((sine+1)*5))*angles(-0.08726646259971647*sin((sine+1)*5),-1.2217304763960306,0),deltaTime)
end,
walk = function()
local fw, rt = velbycfrvec()
local rY, lY = raycastlegs()
t.setWalkSpeed(30)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0,0)*angles(0,-0.6981317007977318,0.5235987755982988+0.03490658503988659*sin(sine*5)),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0.1 * sin((sine+1)*5),0)*angles(0,0.8726646259971648,0.8726646259971648+0.03490658503988659*sin(sine*5)),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0.2 * sin(sine*5),1+0.1*sin(sine*5),0)*angles(-2.0943951023931953+0.08726646259971647*sin((sine+1)*5),-0.3490658503988659+0.08726646259971647*sin((sine+2)*5),-10.471975511965978),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1,0)*angles(0,-0.8726646259971648,0.8726646259971648),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(0,-1,0)*angles(0.5235987755982988+0.03490658503988659*sin(sine*5),-0.5235987755982988,0.5235987755982988),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966+0.08726646259971647*sin((sine+1)*5),0.08726646259971647*sin(sine*5),4.1887902047863905+0.08726646259971647*sin(sine*5)),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(-3,-2,-0.23260498046875)*angles(0,0.3490658503988659*sin(sine*2),-0.7853981633974483+0.7853981633974483*sin((sine+1)*2)),deltaTime)
end
})
addmode("u", {
idle = function()
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0,0)*angles(2.6179938779914944,1.5707963267948966,0),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966+0.3490658503988659*sin((sine+2)*2),0.17453292519943295*sin(sine*1),3.141592653589793+0.17453292519943295*sin(sine*1)),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(-2,1.2,-1.5)*angles(-1.5707963267948966,0.17453292519943295,-1.5707963267948966),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0.3 * sin((sine+1)*-2),0)*angles(-2.0943951023931953+0.17453292519943295*sin(sine*2),0,3.141592653589793),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1+0.3*sin((sine + 1)*2),-0.4+0.2*sin((sine + 1)*2))*angles(0.5235987755982988-0.2617993877991494*sin(sine*2),-1.2217304763960306,0),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.1 * sin((sine+2)*2),0)*angles(0.3490658503988659*sin(sine*2),-0.8726646259971648,0),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1.5+0.3*sin((sine + 1)*2),0.2 * sin(sine*2))*angles(-0.3490658503988659-0.2617993877991494*sin(sine*2),0.8726646259971648,0),deltaTime)
end,
walk = function()
local fw, rt = velbycfrvec()
local rY, lY = raycastlegs()
t.setWalkSpeed(50)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0.75,0.07 * sin((sine+0.4)*-15))*angles(2.530727415391778+0.12217304763960307*sin((sine+0.3)*15),1.5707963267948966,0),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966+0.04363323129985824*sin((sine+0.6)*15),0.03490658503988659*sin((sine+0.2)*15),3.141592653589793+0.1308996938995747*sin(sine*15)),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1+1.1*sin((sine + 0.575)*15),-0.25+1*sin((sine + 0.74)*15))*angles(0.17453292519943295+1.9198621771937625*sin((sine+0.7)*-15),-1.5707963267948966+0.17453292519943295*sin((sine-0.23)*-15),0),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.4+0.2*sin((sine - 0.1)*15),0.75 * sin((sine-0.55)*-15))*angles(0.17453292519943295+2.2689280275926285*sin((sine+0.51)*-15),-1.5707963267948966+0.6981317007977318*sin((sine-0.215)*15),0),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(-2.5,1.5,-1.5)*angles(-1.5707963267948966,0.17453292519943295+0.04363323129985824*sin((sine+0.3)*15),-1.5707963267948966),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1+1.1*sin((sine + 0.575)*-15),-0.25+1*sin((sine + 0.75)*-15))*angles(0.17453292519943295+1.9198621771937625*sin((sine+0.7)*15),1.5707963267948966+0.17453292519943295*sin((sine-0.23)*-15),0),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0.1 * sin((sine+0.75)*15),0.1 * sin((sine-0.2)*15))*angles(-2.2689280275926285,0,3.141592653589793+0.1308996938995747*sin((sine+0.225)*15)),deltaTime)
end
})
local attackAnimation=nil
mouse.Button1Down:Connect(function()
if attackAnimation then return end
attackAnimation=function()
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,1,-1.2)*angles(2.443460952792061,-0.3490658503988659,0.6981317007977318),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(-3,3.5,0)*angles(-1.5707963267948966,-0.17453292519943295,-1.5707963267948966),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0,0)*angles(-2.0943951023931953,0,3.141592653589793),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,1,-1.5)*angles(2.443460952792061,0.17453292519943295,-0.5235987755982988),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.2217304763960306,-0.5235987755982988,3.141592653589793),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1,-0.5)*angles(0.5235987755982988,-0.8726646259971648,0),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1.9,0)*angles(-0.5235987755982988,0.8726646259971648,0),deltaTime)
end
task.wait(0.2)
attackAnimation=function()
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(-3,3,0)*angles(-1.5707963267948966,-0.17453292519943295,-1.5707963267948966),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-0.8726646259971648,0,3.141592653589793),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1,-0.5)*angles(0.5235987755982988,-0.8726646259971648,0),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1.9,0)*angles(-0.5235987755982988,0.8726646259971648,0),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,1,-1)*angles(2.443460952792061,0.17453292519943295,-0.5235987755982988),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.5,-1)*angles(2.6179938779914944,-0.17453292519943295,0.5235987755982988),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0,2)*angles(-1.9198621771937625,0,3.141592653589793),deltaTime)
end
task.wait(0.3)
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(-3.5,2.5,0)*angles(-1.5707963267948966,-0.6108652381980153,-1.5707963267948966),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966,0.5235987755982988,3.141592653589793),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,-0.5,3)*angles(-1.5707963267948966,0,3.141592653589793),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-0.5,-1)*angles(0.17453292519943295,-1.5707963267948966,0),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.5,-1.5)*angles(2.0943951023931953,0,0.7853981633974483),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1,0.5)*angles(-0.6981317007977318,0.8726646259971648,0),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(0.7,1,-1)*angles(2.0943951023931953,0.6981317007977318,-0.6981317007977318),deltaTime)
attackAnimation=nil
end)
addmode("default",{
idle=function()
if attackAnimation then return attackAnimation() end
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0,0)*angles(2.6179938779914944,1.5707963267948966,0),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966+0.3490658503988659*sin((sine+2)*2),0.17453292519943295*sin(sine*1),3.141592653589793+0.17453292519943295*sin(sine*1)),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(-2,1.2,-1.5)*angles(-1.5707963267948966,0.17453292519943295,-1.5707963267948966),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0.3 * sin((sine+1)*-2),0)*angles(-2.0943951023931953+0.17453292519943295*sin(sine*2),0,3.141592653589793),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1+0.3*sin((sine + 1)*2),-0.4+0.2*sin((sine + 1)*2))*angles(0.5235987755982988-0.2617993877991494*sin(sine*2),-1.2217304763960306,0),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.1 * sin((sine+2)*2),0)*angles(0.3490658503988659*sin(sine*2),-0.8726646259971648,0),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1.5+0.3*sin((sine + 1)*2),0.2 * sin(sine*2))*angles(-0.3490658503988659-0.2617993877991494*sin(sine*2),0.8726646259971648,0),deltaTime)
end,
walk = function()
local fw, rt = velbycfrvec()
local rY, lY = raycastlegs()
t.setWalkSpeed(30)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0.5,-0.2 * sin((sine+1)*9))*angles(2.9670597283903604,1.4835298641951802,0),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-1.2-0.5*sin((sine + 5)*9),0.5 * sin(sine*9))*angles(-1.2217304763960306*sin(sine*9),1.5707963267948966-0.17453292519943295*sin((sine+10)*9),0),deltaTime)
AccessoryWeld.C0=AccessoryWeld.C0:Lerp(cf(-2+0.2*sin((sine + 1)*9),1.5,-1.5)*angles(-1.5707963267948966,0.6108652381980153,-1.5707963267948966),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,0.2 * sin((sine+5)*9),0)*angles(-2.0943951023931953+0.05235987755982989*sin(sine*9),0,3.141592653589793),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.3962634015954636+0.08726646259971647*sin((sine+3)*9),0.08726646259971647*sin(sine*9),3.141592653589793),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.5+0.2*sin(sine*9),-0.4 * sin(sine*9))*angles(-1.3089969389957472*sin((sine+10)*-9),-1.4835298641951802+0.17453292519943295*sin(sine*9),0),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1.2+0.5*sin((sine + 5)*9),-0.5 * sin(sine*9))*angles(1.2217304763960306*sin(sine*9),-1.5707963267948966-0.17453292519943295*sin((sine+10)*9),0),deltaTime)
end
})
end)
lbl("----====Exotics stuff====----")
btn("winged killer", 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 swordhandle = getPartFromMesh(4315410540,4315250791)
local swordweld = getPartJoint(swordhandle)
local wing1handle = getPartFromMesh(5486588848,13332369316)
local wing1weld = getPartJoint(wing1handle)
local gniwhandle = getPartFromMesh(5593756557,13332369316)
local gniwweld = getPartJoint(gniwhandle)
t.setWalkSpeed(90)
addmode("default", {
idle = function()
local rY, lY = raycastlegs()
local Cfw, Crt = velchgbycfrvec()
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966+0.3490658503988659*sin(sine*5),0,3.141592653589793),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.5,0)*angles(3.3161255787892263+0.2617993877991494*sin(sine*5),-0.5235987755982988,0.8726646259971648),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,6+2*sin(sine*-5),0)*angles(-1.9198621771937625+0.3490658503988659*sin((sine+0.3)*5),0,3.141592653589793),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0.3,0)*angles(-1.2217304763960306,1.0471975511965976+0.17453292519943295*sin(sine*5),1.0471975511965976),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1.2,0)*angles(-0.5235987755982988+0.5235987755982988*sin((sine+0.2)*5),-1.3962634015954636,0),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-0.5,-0.4)*angles(0.6981317007977318*sin((sine+0.3)*5),1.2217304763960306,0),deltaTime)
end,
walk = function()
local Vfw, Vrt = velbycfrvec()
local rY, lY = raycastlegs()
local Cfw, Crt = velchgbycfrvec()
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-0.8726646259971648+0.17453292519943295*sin(sine*5),0,3.141592653589793),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.3,0)*angles(1.7453292519943295-0.2617993877991494*sin((sine+0.3)*5),-2.0943951023931953,2.0943951023931953),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,6+1*sin(sine*-5),0)*angles(-2.443460952792061+0.08726646259971647*sin((sine+0.3)*5),0,3.141592653589793),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0.3,0)*angles(-1.3962634015954636-0.2617993877991494*sin((sine+0.3)*5),1.0471975511965976,1.0471975511965976),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1.5,0)*angles(-0.5235987755982988+0.17453292519943295*sin((sine+0.2)*5),-1.3962634015954636,0),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-0.5,-0.4)*angles(0.3490658503988659*sin((sine+0.3)*5),1.2217304763960306,0),deltaTime)
end,
jump = function()
local Vfw, Vrt = velbycfrvec()
local Cfw, Crt = velchgbycfrvec()
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966+0.3490658503988659*sin(sine*5),0,3.141592653589793),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.5,0)*angles(3.3161255787892263+0.2617993877991494*sin(sine*5),-0.5235987755982988,0.8726646259971648),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,6+2*sin(sine*-5),0)*angles(-1.9198621771937625+0.3490658503988659*sin((sine+0.3)*5),0,3.141592653589793),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0.3,0)*angles(-1.2217304763960306,1.0471975511965976+0.17453292519943295*sin(sine*5),1.0471975511965976),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1.2,0)*angles(-0.5235987755982988+0.5235987755982988*sin((sine+0.2)*5),-1.3962634015954636,0),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-0.5,-0.4)*angles(0.6981317007977318*sin((sine+0.3)*5),1.2217304763960306,0),deltaTime)
end,
fall = function()
local Vfw, Vrt = velbycfrvec()
local Cfw, Crt = velchgbycfrvec()
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-0.8726646259971648+0.17453292519943295*sin(sine*5),0,3.141592653589793),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.3,0)*angles(1.7453292519943295-0.2617993877991494*sin((sine+0.3)*5),-2.0943951023931953,2.0943951023931953),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,6+1*sin(sine*-5),0)*angles(-2.443460952792061+0.08726646259971647*sin((sine+0.3)*5),0,3.141592653589793),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0.3,0)*angles(-1.3962634015954636-0.2617993877991494*sin((sine+0.3)*5),1.0471975511965976,1.0471975511965976),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1.5,0)*angles(-0.5235987755982988+0.17453292519943295*sin((sine+0.2)*5),-1.3962634015954636,0),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-0.5,-0.4)*angles(0.3490658503988659*sin((sine+0.3)*5),1.2217304763960306,0),deltaTime)
end
})
end)
btn("winged killer(paid)", function()
local args = {
[1] = "[[ winged killer fe >>> wings or not you are doomed ]]",
[2] = "All"
}
game:GetService("ReplicatedStorage"):WaitForChild("DefaultChatSystemChatEvents"):WaitForChild("SayMessageRequest"):FireServer(unpack(args))
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 swordhandle = getPartFromMesh(4315410540,4315250791)
local swordweld = getPartJoint(swordhandle)
local wing1handle = getPartFromMesh(5486588848,13332369316)
local wing1weld = getPartJoint(wing1handle)
local gniwhandle = getPartFromMesh(5593756557,13332369316)
local gniwweld = getPartJoint(gniwhandle)
t.setWalkSpeed(90)
local attackAnimation=nil
mouse.Button1Down:Connect(function() --not sure about the event name tho
if attackAnimation then return end
attackAnimation=function()
RightShoulder.C0=RightShoulder.C0:Lerp(cf(0.8,0.9,0)*angles(1.3962634015954636,2.443460952792061,1.0471975511965976),deltaTime)
wing1weld.C0=wing1weld.C0:Lerp(cf(-2,-1.3,0)*angles(-3.141592653589793+0.4363323129985824*sin(sine*5),0.3490658503988659+0.4363323129985824*sin(sine*5),-3.141592653589793+0.17453292519943295*sin(sine*5)),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,6,0)*angles(-1.3962634015954636,0,3.141592653589793),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-0.8,0.9,0)*angles(-1.5707963267948966,-0.6981317007977318,20.943951023931955),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-0.5,-0.4)*angles(0,1.2217304763960306,0),deltaTime)
gniwweld.C0=gniwweld.C0:Lerp(cf(2,-1.3,0)*angles(-3.141592653589793+0.4363323129985824*sin(sine*5),-0.3490658503988659-0.4363323129985824*sin(sine*5),-3.141592653589793-0.17453292519943295*sin(sine*5)),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-2.0943951023931953,0,3.141592653589793),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1.2,0)*angles(-0.5235987755982988,-1.3962634015954636,0),deltaTime)
swordweld.C0=swordweld.C0:Lerp(cf(0.4,3.7,0)*angles(3.141592653589793,-1.5707963267948966,0),deltaTime)
-- add your attack animation here
end
task.wait(0.29) --u choose how long the first keyframe plays for
attackAnimation=function()
RightShoulder.C0=RightShoulder.C0:Lerp(cf(0.8,0.9,0)*angles(1.3962634015954636,2.443460952792061,1.0471975511965976),deltaTime)
wing1weld.C0=wing1weld.C0:Lerp(cf(-2,-1.3,0)*angles(-3.141592653589793+0.4363323129985824*sin(sine*5),0.3490658503988659+0.4363323129985824*sin(sine*5),-3.141592653589793+0.17453292519943295*sin(sine*5)),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,1,0)*angles(-2.2689280275926285,0,3.141592653589793),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-0.8,0.9,0)*angles(-1.5707963267948966,-0.6981317007977318,20.943951023931955),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-0.5,-0.4)*angles(0,1.2217304763960306,0),deltaTime)
gniwweld.C0=gniwweld.C0:Lerp(cf(2,-1.3,0)*angles(-3.141592653589793+0.4363323129985824*sin(sine*5),-0.3490658503988659-0.4363323129985824*sin(sine*5),-3.141592653589793-0.17453292519943295*sin(sine*5)),deltaTime)
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-2.0943951023931953,0,3.141592653589793),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1.2,0)*angles(-0.5235987755982988,-1.3962634015954636,0),deltaTime)
swordweld.C0=swordweld.C0:Lerp(cf(3.2,-0.2,0)*angles(0,1.5707963267948966,0),deltaTime)
--add your attack animation here
end
task.wait(0.49) --u choose how long the second keyframe plays for
--u can add more attack anims here
attackAnimation=nil --this ends the attack anim
end)
addmode("default", {
idle = function()
local rY, lY = raycastlegs()
if attackAnimation then return attackAnimation() end
local Cfw, Crt = velchgbycfrvec()
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966+0.3490658503988659*sin(sine*5),0,3.141592653589793),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.5,0)*angles(3.3161255787892263+0.2617993877991494*sin(sine*5),-0.5235987755982988,0.8726646259971648),deltaTime)
wing1weld.C0=wing1weld.C0:Lerp(cf(-2,-1.3,0)*angles(-3.141592653589793+0.4363323129985824*sin(sine*5),0.3490658503988659+0.4363323129985824*sin(sine*5),-3.141592653589793+0.17453292519943295*sin(sine*5)),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,6+2*sin(sine*-5),0)*angles(-1.9198621771937625+0.3490658503988659*sin((sine+0.3)*5),0,3.141592653589793),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0.3,0)*angles(-1.2217304763960306,1.0471975511965976+0.17453292519943295*sin(sine*5),1.0471975511965976),deltaTime)
gniwweld.C0=gniwweld.C0:Lerp(cf(2,-1.3,0)*angles(-3.141592653589793+0.4363323129985824*sin(sine*5),-0.3490658503988659-0.4363323129985824*sin(sine*5),-3.141592653589793-0.17453292519943295*sin(sine*5)),deltaTime)
swordweld.C0=swordweld.C0:Lerp(cf(2,3.7,1)*angles(-0.6981317007977318+0.17453292519943295*sin(sine*5),1.5707963267948966,0),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1.2,0)*angles(-0.5235987755982988+0.5235987755982988*sin((sine+0.2)*5),-1.3962634015954636,0),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-0.5,-0.4)*angles(0.6981317007977318*sin((sine+0.3)*5),1.2217304763960306,0),deltaTime)
end,
walk = function()
local Vfw, Vrt = velbycfrvec()
local rY, lY = raycastlegs()
local Cfw, Crt = velchgbycfrvec()
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-0.8726646259971648+0.17453292519943295*sin(sine*5),0,3.141592653589793),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.3,0)*angles(1.7453292519943295-0.2617993877991494*sin((sine+0.3)*5),-2.0943951023931953,2.0943951023931953),deltaTime)
wing1weld.C0=wing1weld.C0:Lerp(cf(-2,-1.3,0)*angles(-3.141592653589793+0.4363323129985824*sin(sine*5),0.3490658503988659+0.4363323129985824*sin(sine*5),-3.141592653589793+0.17453292519943295*sin(sine*5)),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,6+1*sin(sine*-5),0)*angles(-2.443460952792061+0.08726646259971647*sin((sine+0.3)*5),0,3.141592653589793),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0.3,0)*angles(-1.3962634015954636-0.2617993877991494*sin((sine+0.3)*5),1.0471975511965976,1.0471975511965976),deltaTime)
gniwweld.C0=gniwweld.C0:Lerp(cf(2,-1.3,0)*angles(-3.141592653589793+0.4363323129985824*sin(sine*5),-0.3490658503988659-0.4363323129985824*sin(sine*5),-3.141592653589793-0.17453292519943295*sin(sine*5)),deltaTime)
swordweld.C0=swordweld.C0:Lerp(cf(2,3.7,1.2)*angles(-0.6981317007977318,1.5707963267948966+0.17453292519943295*sin((sine+0.3)*5),0),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1.5,0)*angles(-0.5235987755982988+0.17453292519943295*sin((sine+0.2)*5),-1.3962634015954636,0),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-0.5,-0.4)*angles(0.3490658503988659*sin((sine+0.3)*5),1.2217304763960306,0),deltaTime)
end,
jump = function()
local Vfw, Vrt = velbycfrvec()
local Cfw, Crt = velchgbycfrvec()
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-1.5707963267948966+0.3490658503988659*sin(sine*5),0,3.141592653589793),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.5,0)*angles(3.3161255787892263+0.2617993877991494*sin(sine*5),-0.5235987755982988,0.8726646259971648),deltaTime)
wing1weld.C0=wing1weld.C0:Lerp(cf(-2,-1.3,0)*angles(-3.141592653589793+0.4363323129985824*sin(sine*5),0.3490658503988659+0.4363323129985824*sin(sine*5),-3.141592653589793+0.17453292519943295*sin(sine*5)),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,6+2*sin(sine*-5),0)*angles(-1.9198621771937625+0.3490658503988659*sin((sine+0.3)*5),0,3.141592653589793),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0.3,0)*angles(-1.2217304763960306,1.0471975511965976+0.17453292519943295*sin(sine*5),1.0471975511965976),deltaTime)
gniwweld.C0=gniwweld.C0:Lerp(cf(2,-1.3,0)*angles(-3.141592653589793+0.4363323129985824*sin(sine*5),-0.3490658503988659-0.4363323129985824*sin(sine*5),-3.141592653589793-0.17453292519943295*sin(sine*5)),deltaTime)
swordweld.C0=swordweld.C0:Lerp(cf(2,3.7,1)*angles(-0.6981317007977318+0.17453292519943295*sin(sine*5),1.5707963267948966,0),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1.2,0)*angles(-0.5235987755982988+0.5235987755982988*sin((sine+0.2)*5),-1.3962634015954636,0),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-0.5,-0.4)*angles(0.6981317007977318*sin((sine+0.3)*5),1.2217304763960306,0),deltaTime)
end,
fall = function()
local Vfw, Vrt = velbycfrvec()
local Cfw, Crt = velchgbycfrvec()
Neck.C0=Neck.C0:Lerp(cf(0,1,0)*angles(-0.8726646259971648+0.17453292519943295*sin(sine*5),0,3.141592653589793),deltaTime)
LeftShoulder.C0=LeftShoulder.C0:Lerp(cf(-1,0.3,0)*angles(1.7453292519943295-0.2617993877991494*sin((sine+0.3)*5),-2.0943951023931953,2.0943951023931953),deltaTime)
wing1weld.C0=wing1weld.C0:Lerp(cf(-2,-1.3,0)*angles(-3.141592653589793+0.4363323129985824*sin(sine*5),0.3490658503988659+0.4363323129985824*sin(sine*5),-3.141592653589793+0.17453292519943295*sin(sine*5)),deltaTime)
RootJoint.C0=RootJoint.C0:Lerp(cf(0,6+1*sin(sine*-5),0)*angles(-2.443460952792061+0.08726646259971647*sin((sine+0.3)*5),0,3.141592653589793),deltaTime)
RightShoulder.C0=RightShoulder.C0:Lerp(cf(1,0.3,0)*angles(-1.3962634015954636-0.2617993877991494*sin((sine+0.3)*5),1.0471975511965976,1.0471975511965976),deltaTime)
gniwweld.C0=gniwweld.C0:Lerp(cf(2,-1.3,0)*angles(-3.141592653589793+0.4363323129985824*sin(sine*5),-0.3490658503988659-0.4363323129985824*sin(sine*5),-3.141592653589793-0.17453292519943295*sin(sine*5)),deltaTime)
swordweld.C0=swordweld.C0:Lerp(cf(2,3.7,1.2)*angles(-0.6981317007977318,1.5707963267948966+0.17453292519943295*sin((sine+0.3)*5),0),deltaTime)
LeftHip.C0=LeftHip.C0:Lerp(cf(-1,-1.5,0)*angles(-0.5235987755982988+0.17453292519943295*sin((sine+0.2)*5),-1.3962634015954636,0),deltaTime)
RightHip.C0=RightHip.C0:Lerp(cf(1,-0.5,-0.4)*angles(0.3490658503988659*sin((sine+0.3)*5),1.2217304763960306,0),deltaTime)
end
})
end)
lbl("----========================----")
btn("Destroy UI",function()
i1:Destroy()
i2:Destroy()
i3:Destroy()
i4:Destroy()
i5:Destroy()
i6:Destroy()
i7:Destroy()
i8:Destroy()
i9:Destroy()
stopreanimate()
end).TextColor3=c3(1,0,0)
btn("Stop reanimate",function()
stopreanimate()
end).TextColor3=c3(1,0,0)
btn("Rejoin",function()
local ts = game:GetService("TeleportService")
local p = game:GetService("Players").LocalPlayer
ts:Teleport(game.PlaceId, p)
end).TextColor3=c3(1,0,0)
btn("Reset",function()
stopreanimate()
end).TextColor3=c3(1,0,0)
lbl("----========================----")
lbl("SETTINGS")
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("claim mode",{
{value=false,text="nowait"},
{value=true,text="safer"}
},function(v)
claimwait=v
end)
if type(shp)=="function" then
swtc("simulation radius",{
{value=1000,text="on"},
{value=false,text="off"}
},function(v)
simrad=v
end)
else
lbl("simulation radius: unavailable")
end
local iscg,_=pcall(function()
i9.Parent=cg
end)
if not iscg then
i6.Text="PLAYERGUI MODE"
i9.Parent=pg
twait(3)
i6.Text=guiTheme.guiTitle
endREAAALLLY good animation hub :D