Universal Script 📌
534 Views
8.2k Executions

Crowbar and Bat No Cooldown

Universal Script 📌
Gabriel358BR
Gabriel358BR10K executions
4 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

It only works in the GEF game.

View Raw
-- 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)


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

Tags

More universal scripts

See all