Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Can't change Frame.BackroundTransparency to 0 ?

This script is inside a localscript

local player = game.Players.LocalPlayer
player.PlayerGui.BlackSG.BlackGui.BackgroundTransparency = 0

This localscript is inside game.StarterGui

3 comments

0

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

0

I don't know if roblox replicates scripts in game.StarterGui to PlayerGui.

0

I have never had good luck with LocalPlayer try what @Dogcraft_01 said

1 answer

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.