
KeylessUniversal

-- Basic Services
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local localPlayer = Players.LocalPlayer
-- SPEED SETTINGS
-- (1 = Normal | 5 = Very Fast | 15 = Instant. Adjust as desired)
local SPEED_MULTIPLIER = 8
-- Function that changes the speed of the active animation.
local function accelerateAnimationTool()
local character = localPlayer.Character
if not character then return end
local humanoid = character:FindFirstChildOfClass("Humanoid")
if not humanoid then return end
local animator = humanoid:FindFirstChildOfClass("Animator") or humanoid
-- Sweeps the animations running on the character.
for _, track in ipairs(animator:GetPlayingAnimationTracks()) do
local animName = track.Name:lower()
-- Identifies the attack animation of the Bat/Crowbar (RightKick or related terms)
if animName == "rightkick" or string.find(animName, "kick") or string.find(animName, "swing") then
track:AdjustSpeed(SPEED_MULTIPLIER)
end
end
end
-- It constantly monitors to break the speed reset of the original script
RunService.Heartbeat:Connect(function()
local character = localPlayer.Character
if not character then return end
-- Check if the player is holding the Bat or the Crowbar
local tool = character:FindFirstChildOfClass("Tool")
if tool and (tool.Name == "Bat" or tool.Name == "Crowbar") then
accelerateAnimationTool()
end
end)No comments yet for this script.



