Run it
Copy the script and paste it into your executor.
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local player = Players.LocalPlayer
local hitId = "rbxassetid://54584713" -- the swing animation, is replacable and supports r15 or r6
local hitSpeed = 1.0 -- speed of the animation i suppose
local hitFadeTime = 0.1 -- how smooth can the animation end
local hitPriority = Enum.AnimationPriority.Action -- layers of animation, now above idle and walk (and run, and jump, and fall)
local hitAnim = .()
hitAnim.AnimationId = hitId
currentHitTrack =
()
char = player.Character
char currentHitTrack
currentHitTrack.IsPlaying
currentHitTrack.TimePosition =
currentHitTrack:(hitFadeTime, , hitSpeed)
UserInputService.InputBegan:((input, gameProcessed)
gameProcessed
input.KeyCode == .KeyCode.Z
()
)
(character)
currentHitTrack
currentHitTrack.IsPlaying
currentHitTrack:()
currentHitTrack:()
currentHitTrack =
humanoid = character:(, )
humanoid
animator = humanoid:()
animator
animator = .(, humanoid)
currentHitTrack = animator:(hitAnim)
currentHitTrack.Looped =
currentHitTrack.Priority = hitPriority
player.CharacterAdded:(setupCharacter)
player.Character
.(setupCharacter, player.Character)

Universal