Have a framework with string values as the Enum.KeyCode.F for example, im trying to make blocking work and the input ended isnt really working, or idk how to set it up
These are the skills example:
I use them and their value for example “Fire Ball” to make abilities.
I’m not sure but you do know that UserInputService has InputBegan and InputEnded right? I think state might be a boolean, which i am not sure, but nonetheless, it’s still counts as an InputBegan, not Ended.
Yes, i have to detect when i press F to create a boolean on block, after i release it i destroy the boolean. Do you know how to detect the release of the F key beneath the ‘else’ statement at the bottom of the 2nd image screenshot
local UIS = game:GetService("UserInputService")
UIS.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.F then
end
end)
UIS.InputEnded:Connect(function(input)
if input.KeyCode == Enum.KeyCode.F then
end
end)
I do understand what you mean. It’s just that it doesn’t make sense: else refers to something not related to the if. And you can’t check in an inputbegan if a keycode has been released.