Universal Script 📌
420 Views
5.4k Executions

Crowbar and Bat No Cooldown

Universal Script 📌
Gabriel358BR
Gabriel358BR10K executions
3 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
Script hub
2.8M
661.0k
Bumped 10 minutes ago
Key System

Script hub

#4 today

Verified script badgeFlow Hub | 35 Games | Updated

Universal Script 📌
53
10
Approved 2 hours ago
Universal Script 📌
4.1k
185.5k
Bumped 9 hours ago
Script hub
832
56
10 hours ago
Universal Script 📌
29.0k
674.0k
Bumped 11 hours ago