How to detect i and o?

I’m tracking all inputs to display as text

I have made a hangman game that also does something similar let me jump on studio quickly to see how I did it…I would just use different keys I guess

Can you run code that actually checks for the specific input in an if statement.

Have you found anything that helps?

Unfortunately there isn’t really any way to detect I and O keys using UserInputService. You’d have to hold shift and then press I or O in order for them to get registered.

I am not entirely sure why, but it might be because they are already reserved for Roblox (camera zooming)

well are there any alternatives?

You’d have to hold shift and then press I or O in order for them to get registered.

I would really avoid the wait(0.05) here.

Why aren’t you just using a TextBox so users can type in here?

Um my game is in first person so is there any way to open a text box automatically?

You can set the Modal property of textbox to true. That way, you can move your cursor on the box even while in first person.

But say it was really micro intensive then wouldn’t clicking on the text box slow them down a bit?

You can call something along the lines of TextBox:CaptureFocus()

What does forces the client to focus mean?

It will let you automatically type in the textbox (without any clicking) after calling that method.

It means instead of the user having to click on the TextBox to activate it, you can make the cursor automatically jump there

You can hide the TextBox then if you want, although I would not recommend this, and this will make it seem like everything is working the same way.

Was right about to say this, here is the api link TextBox | Roblox Creator Documentation

1 Like

How would I make it go to another line once it overflows?

Pretty sure there is a TextWrapped property.

I was having trouble detecting I/O keys the other day in studio. I spent about an hour digging for a solution and I think it’s a studio bug. My project uses all custom player scripts so nothing should be sinking the input. It works fine outside of studio though.

1 Like