This script is inside a localscript
local player = game.Players.LocalPlayer player.PlayerGui.BlackSG.BlackGui.BackgroundTransparency = 0
This localscript is inside game.StarterGui
One thing that you could do is to put a local script inside of the gui and then it should work. Here's the script just in case:
script.Parent.BackgroundTransparency = 0