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

How would I change the color of a gui from a serverscript?

Asked by 4 years ago

I have a GUI in PlayerGui, and I would like to change its background color using PlayerAdded from a server script. Is this possible and if it is, how would I do this?

2 answers

Log in to vote
4
Answered by
NSMascot 113
4 years ago
game.Players.PlayerAdded:Connect(function(player)
    player.PlayerGui.ScreenGui.Frame.BackgroundColor3 = Color3.new(0,0,0) -- 0,0,0 = black
end)
Ad
Log in to vote
0
Answered by 4 years ago

I found out that I had the GUI's "Reset On Spawn" property on. I just turned it off to fix what I needed to do.

Answer this question