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

How can I make my character fade after it did an animation?

Asked by 4 years ago

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)

Answer this question