Game controls remain active and text input field captures symbol "'" when typing in chat

A bug occurs when typing in the in-game chat while seated in a vehicle.

Steps to reproduce:

Sit a vehicle (e.g, a car).

Open the chat window and start typing.

Try to use a keycodes: W A S D.

Expected Result:

Vehicle controls should be locked and unavailable while the chat is open.

Actual Result:

Vehicle controls remain partially active (e.g., the vehicle can still be driven).

The apostrophe ’ key does not input the symbol into the chat. Instead, it seems to be captured by the game (e.g., if the “Adonis” admin system is installed, it opens its menu).

This behavior is a recent regression, as it worked correctly before.

Expected behavior

I expect this bug to be fixed so that all game controls (like driving a car or opening the Adonis menu) are completely disabled while the chat is open.

2 Likes

Hi @Vladimir_Luciver,

Thanks for the report! We’ve taken a quick look and can’t seem to reproduce this issue. Can you provide a minimal reproduction file that demonstrates the issue as well as your system information?


Here’s a video guide. To do this, use any car with an A-Chassis system.

  1. Go to your place (game).
  2. Get into an A-Chassis car.
  3. Open the chat window.
  4. Hold down the W key.

While the chat is open, you will be able to drive the car. I tested this on Windows 11 with the latest version of Roblox.

1 Like

Hi, this is not an engine bug, but a side-effect of a change to accessing restricted instances ROBLOX made in release 686 where restricted instances will no longer be returned by engine-level apis.

The work-around for A-Chassis is to implement:

not game:GetService("TextChatService").ChatInputBarConfiguration.IsFocused and game:GetService("UserInputService"):GetFocusedTextBox() == nil

in place of the previous:

game:GetService("UserInputService"):GetFocusedTextBox() == nil

Unfortunately, there are a few side effects to this change, such as typing in the inventory search bar (rarely used) and any other coregui textboxes like the developer console.

Again, this is a scripting bug, not an engine bug. The way A-Chassis was originally programmed worked before ROBLOX’s update a few weeks ago.

The reason you see the behavior you described is because the Adonis textbox is in PlayerGui and not CoreGui, meaning that the A-Chassis Drive script can access it.

4 Likes

Thanks for looking into this @arccitecc! Going to close this post as intended behavior. Let us know if you encounter any more issues!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.