I tried using the ModalEnabled but it still won't work and I have no idea why.

local UIS = game:GetService("UserInputService")

UIS.ModalEnabled = true

help