Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why Wont My Attacking Animation Load On My Weapon?

Asked by
TtuNkK 37
4 years ago
script.Parent.Equipped:Connect(function(mouse)
    local debounce = false
    mouse.Button1Down:Connect(function()
        if debounce == false then
            local animation = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.Animation)
            animation:Play()
            debounce = true
        end

    end)
    wait(1)
    debounce = false
end)

The script is a local script and is the child of the tool. When I run the game and left-click the mouse, nothing happens. Please help!!

0
The part where you are changing the debounce should be inside of your Button1Down function, not outside of it. DeceptiveCaster 3761 — 4y

Answer this question