meguy1
(meguy1)
April 16, 2024, 4:13am
#1
On mobile, after opening the developer console (by typing “/console”) in the chat, UserInputService.MouseEnabled gets permanently set to True.
It does not return to False even after resetting the character.
Happens in live games.
Expected behavior
UserInputService.MouseEnabled should not be affected by viewing the console.
1 Like
Thanks for the report! We’ll take a look.
1 Like
We’re having some trouble trying to reproduce this. Are you still seeing this issue? If so what devices are you seeing this occur on?
meguy1
(meguy1)
July 19, 2024, 2:52am
#4
This is still happening. It happens on Android, Galaxy S20.
Here’s a script to view the consequences in-game:
wait(1)
local userInputService = game:GetService("UserInputService")
local playerGui = game.Players.LocalPlayer.PlayerGui
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = playerGui
local frame = Instance.new("Frame")
frame.Parent = screenGui
frame.Position = UDim2.new(0.5, 0, 0.5, 0)
frame.Size = UDim2.new(0, 100, 0, 100)
frame.BackgroundColor3 = Color3.new(0, 1, 0)
frame.Visible = true
while true do
if userInputService.MouseEnabled then
frame.BackgroundColor3 = Color3.new(0, 0.7, 0)
else
frame.BackgroundColor3 = Color3.new(1, 0.3, 0)
end
wait(0.5)
end
Put this in PlayerScripts. It makes a GUI turn green when mouse is enabled, and it turns red when mouse is disabled.
Open the chat and type /console, and it turns green forever.
1 Like