my game uses mouse unlocker for several reasons
it used to work perfectly fine until now
idk if this is a engine bug or it related to the code itself
Code Example
local playerGui = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local screenGui = Instance.new("ScreenGui",playerGui)
local textButton = Instance.new("TextButton")
textButton.BackgroundTransparency = 0
textButton.Size = UDim2.new(0,0,0,0)
textButton.Parent = screenGui
local Unlocked = false
UIS.InputBegan:Connect(function(input,chat)
if not chat then
if input.KeyCode == Enum.KeyCode.L then
if Unlocked == false then
textButton.Modal = true
Unlocked = true
print("unlocked")
elseif Unlocked == true then
textButton.Modal = false
Unlocked = false
print("locked")
end
end
end
end)```
There is an ongoing issue with GUI on studio at the moment, it might be that I’m not entirely sure. I don’t see a problem with the code and as you mentioned it used to work fine. Here is a link to another forum post which a roblox staff member comments on the issue. "Multiple StyleLinks" warning without using StyleLinks - #19 by SirZellek1994