Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can't change Frame.BackroundTransparency to 0 ?

Asked by 3 years ago

This script is inside a localscript

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

This localscript is inside game.StarterGui

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 Metacalled2 142 — 3y
0
I don't know if roblox replicates scripts in game.StarterGui to PlayerGui. DollorLua 235 — 3y
0
I have never had good luck with LocalPlayer try what @Dogcraft_01 said User#39520 0 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

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
Ad

Answer this question