This script is inside a localscript
local player = game.Players.LocalPlayer
player.PlayerGui.BlackSG.BlackGui.BackgroundTransparency = 0
This localscript is inside game.StarterGui
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
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
Any errors? You can easily add some waits to make sure the GUI has loaded in. player:WaitForChild("PlayerGui"):WaitForChild("BlackSG"):WaitForChild("BlackGui").BackgroundTransparency = 0
I don't know if roblox replicates scripts in game.StarterGui to PlayerGui.
I have never had good luck with LocalPlayer try what @Dogcraft_01 said