Run it
Copy the script and paste it into your executor.
Players = :()
RunService = :()
UserInputService = :()
TweenService = :()
player = Players.LocalPlayer
lastActivity = ()
isAfk =
canDash =
isDashing =
ANIMS_DATA = {
Idle = ,
Walk = ,
AfkLoop = ,
Dash = ,
}
SOUND_DORMIR =
SOUND_WALK =
SOUND_NORMAL =
humanoid, animator, rootPart
tracks = {}
sfxDormir, sfxWalk, sfxNormal
(char)
humanoid = char:()
animator = humanoid:()
rootPart = char:()
(id, name, looped)
s = .(, rootPart)
s.Name = name
s.SoundId = id
s.Looped = looped
s.Volume =
s
sfxDormir = (SOUND_DORMIR, , )
sfxWalk = (SOUND_WALK, , )
sfxNormal = (SOUND_NORMAL, , )
_, t (tracks) t:() t:()
tracks = {}
name, id (ANIMS_DATA)
anim = .()
anim.AnimationId = id
track = animator:(anim)
track.Priority = (name == ) .AnimationPriority.Action4 (name == .AnimationPriority.Action .AnimationPriority.Movement)
tracks[name] = track
(name, fadeTime)
fadeTime = fadeTime
tracks[name] tracks[name].IsPlaying
isDashing name ~=
n, t (tracks) n ~= name t:(fadeTime)
tracks[name]:(fadeTime)
()
sg = .(, player.PlayerGui)
sg.Name =
btn = .(, sg)
btn.Size = .(, , , )
btn.Position = .(, , , )
btn.Text =
btn.BackgroundColor3 = .(, , )
btn.TextColor3 = .(,,)
btn.Draggable =
.(, btn).CornerRadius = .(, )
.(, btn).Color = .(, , )
btn.MouseButton1Click:(()
canDash isDashing
canDash = ; isDashing = ; lastActivity = ()
bv = .(, rootPart)
bv.MaxForce = .(, , ); bv.Velocity = rootPart.CFrame.LookVector *
(, )
.()
bv:(); isDashing =
.(); canDash =
)
RunService.RenderStepped:(()
humanoid humanoid.Health <=
moveSpeed = humanoid.MoveDirection.Magnitude
now = ()
moveSpeed > isDashing
lastActivity = now
isAfk
isAfk =
tracks.AfkLoop:()
sfxDormir:()
isDashing
(, )
sfxWalk.IsPlaying sfxWalk:()
sfxNormal.IsPlaying sfxNormal:()
sfxWalk:()
now - lastActivity >=
isAfk
isAfk =
(, )
sfxDormir:()
sfxNormal:()
isAfk isDashing (, )
)
player.Character (player.Character)
player.CharacterAdded:(setupCharacter)
()
None