I want to find a way to disable all inputs below some priority,
A good example will be if I open the settings menu, I want to disable all input from going further. That means cannot interact with any buttons, cannot toggle a flashlight, and no character input
I have a little idea, but maybe someone can improve it further?
game:GetService("ContextActionService"):BindActionAtPriority("Action", function() return Enum.ContextActionResult.Sink end, false, 10000, table.unpack(Enum.KeyCode:GetEnumItems()))