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

How To Change BackgroundColor For A TextButton?

script.Parent.BackgroundColor3 = Color3.new(255, 0, 0)

It doesnt work, and i have no experience. Do I have to change something in the Color3.new? I don't know!

1 answer

✓ Accepted answer

Try using Color3.fromRGB(Red,Green,Blue) instead of Color3.new(Red,Green,Blue).

local TextButton = (script.Parent:IsA("TextButton") and script.Parent) or script:FindFirstAncestorOfClass("TextButton")
TextButton.BackgroundColor3 = Color3.fromRGB(255,0,0)

1 comment

0

Lemme check.

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