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

Problem with changing BackgroundColor3. Any help?

Hello! I was making a local script that changes backgroundcolor3 of a frame using color3. my script : (local script located in starterplayerscripts)

local frame = game.Players.LocalPlayer.PlayerGui.colors.Frame

local part = workspace.Part


frame.Parent.Enabled = true
	
frame.BackgroundColor3 = Color3.new(part.Color)

I also tried :

local frame = game.Players.LocalPlayer.PlayerGui.colors.Frame

local part = workspace.Part


frame.Parent.Enabled = true
	
frame.BackgroundColor3 = Color3.new(part.Color, part.Color, part.Color)

The problem is when I run the game the frame turns black.

I was looking for it on the internet but there was no solution anywhere. Thanks for your help :)

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.