Sorry,I'm kinda new to scripting.So.. I don't know much about it.It would be really good if a good guy helped me.I went into a bar last night,it really hurts my head.
function KeyPress(inputObject, gameProcessEvent) if not debounce then if inputObject.KeyCode == Enum.KeyCode.Z then debounce = true humanoid:LoadAnimation(LAttack):Play() wait(1) debounce = false end if inputObject.KeyCode == Enum.KeyCode.X then debounce = true humanoid:LoadAnimation(HAttack):Play() wait(2) debounce = false end end end uis.InputBegan:Connect(KeyPress)