How to make a highest zindex ui prevent player to click a lower z index ui

how to make a highest zindex ui prevent player to click a lower z index ui
for exmaple
RobloxScreenShot20210724_173306680
i want the transparcnct black ui to prevent the locaol player from clicking the button. pls help

Just turn the “Active” Param of the text button to false.

PlayerGui.ScreenGui.TextButton.Enabled = false

https://developer.roblox.com/en-us/api-reference/class/TextButton