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!