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

can you please help me add a damage to this and make it only work when HopperBin is equipped?

Asked by 8 years ago

okay i tried to figure this out i cant get it so here is my script

player = game.Players.LocalPlayer

mouse = player:GetMouse()

Punch = script:WaitForChild("Punch")

enabled = true

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

        local animateTrack = player.Character.Humanoid:LoadAnimation(Punch)
        animateTrack:Play()

        enabled = true
    end
end)

i need it to work in a HopperBin and have damage to other players

P.S i know this works without anything equipped which is what i don't want if you can help than you

0
fixed the lua so its all in lua know KillerTeenGaming 5 — 8y

Answer this question