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!
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)