How to get a bool value when holding down a key

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

    I want to be able to get a bool value based on if I am holding down a key or not.

  2. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

    I have tried to use the InputBegan in user-input-service but I want an easier way to get the bool value.

You should try reading this: UserInputService | Roblox Creator Documentation

1 Like

Try local value = UserInputService:IsKeyDown(key)