Skip to content

Instantly share code, notes, and snippets.

@Nimblz
Created September 17, 2019 17:32
Show Gist options
  • Save Nimblz/8e95413ff14bf6130fa813c58c62d3e1 to your computer and use it in GitHub Desktop.
Save Nimblz/8e95413ff14bf6130fa813c58c62d3e1 to your computer and use it in GitHub Desktop.
return function()
return {
attack = {
inputs = {
{
type = Enum.UserInputType.MouseButton1,
keyCode = nil, -- respond to all inputs of the type
passThrough = true, -- dont block
state = Enum.UserInputState.Begin, -- trigger on this state
},
{
type = Enum.UserInputType.Keyboard,
keyCode = Enum.KeyCode.F,
passThrough = true,
state = Enum.UserInputState.Begin,
},
{
type = Enum.UserInputType.Gamepad1,
keyCode = Enum.KeyCode.ButtonR1,
passThrough = true,
state = Enum.UserInputState.Begin,
},
}
},
roll = {
inputs = {
{
type = Enum.UserInputType.Keyboard,
keyCode = Enum.KeyCode.LeftShift,
passThrough = true,
state = Enum.UserInputState.Begin,
},
{
type = Enum.UserInputType.Gamepad1,
keyCode = Enum.KeyCode.ButtonL1,
passThrough = true,
state = Enum.UserInputState.Begin,
},
}
}
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment