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

Punching script animation errors and never loads?

Asked by 5 years ago

My r6 punching script works fine when I use studio, but when I go into the actual game, it doesn't work.

Script:

function onEvent(plr)
    anim = plr.Character.Humanoid:LoadAnimation(script.RIGHTPUNCH)
    c = script.Parent.Parent.DAMAGE:Clone()
    c.Parent = plr.Character["Right Arm"]
    anim:Play()
    wait(0.5)
    c:Destroy()
end
script.Parent.OnServerEvent:Connect(onEvent)

Any answers would be greatly appreciated, thanks for reading!

0
could you add the local script that you are using to the question as well? Echtic 128 — 5y

Answer this question