Hello,
I need help trying to figure out how I can make a frame visible when the player holds a button down, then goes invisible when the user releases the keycode.
My current code:
Thanks,
Skylexion
Hello,
I need help trying to figure out how I can make a frame visible when the player holds a button down, then goes invisible when the user releases the keycode.
My current code:
Thanks,
Skylexion
You can use UserInputService.InputEnded
. It fires whenever a key is released. And theres no real reason for that while loop since these events fire whenever input is detected.
P.S- Its an event, not a returning function
sorry for screenshot (kinda uncomfortable), but u get the point, u can use inputEnded as UnderratedDev said.