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

I need help with the 'Equipped' Script?

Asked by 8 years ago

How do I insert this script into this script to make it work??

function onEquippedLocal(mouse)

into...

player = game.Players.LocalPlayer

mouse = player:GetMouse()

animation = script:WaitForChild("Animation")

enabled = true

mouse.Button1Down:connect(function() if enabled then enabled = false

    local animationTrack = player.Character.Humanoid:LoadAnimation(animation)
    animationTrack:Play()

    wait(3)
    enabled = true

    animation:Stop()



end

end)

0
fix your code block pluginfactory 463 — 8y
0
I don't know how wolfbarrier123 -25 — 8y
0
Make sure all your code is in between the ~~~ lines. Also ensure that this script is indeed in a localscript. antonio6643 426 — 8y
0
1. You didn't set up any 'Equipped' event. 2. Please put the code w/in a code block, b/c it's hard to read & decipher your code. 3. You're not using the function at all. 4. The equipped event automatically returns the players mouse, if given an argument from a separate function. TheeDeathCaster 2368 — 8y

Answer this question