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

Why won't the Background Color of my frame GUI change?

UIS.InputBegan:Connect(function(input)
		if input.KeyCode == Enum.KeyCode.Z then
		while wait(1) do
			Backdrop1.BackgroundColor3 = Color3.new(1, 0, 0)
			Backdrop1.BackgroundColor3 = Color3.new(0, 1, 0)
			Backdrop1.BackgroundColor3 = Color3.new(0, 0, 1)
		end
 	end
end)

1 comment

1

Please use a code block.

1 answer

You don't have a wait between the changing of color, so it just jumps directly to the last color you set the backgroundcolor to be, in this case Color3.new(0,0,1). Simply add a wait() between each line where you change the backgroundcolor.

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