Created
September 17, 2019 17:32
-
-
Save Nimblz/8e95413ff14bf6130fa813c58c62d3e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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