Im trying to change the colour of a frame created in an Instance.new, but when I try to change the frame backgroundcolour3 it wont work, what could be wrong?
local Players = game:GetService("Players")
local players = Players.LocalPlayer
local SG = Instance.new("ScreenGui")
local Initiate = Instance.new("TextLabel")
local OpenButton = Instance.new("Frame")
local OpenText = Instance.new("TextButton")
--Important Stuff
SG.Parent = game.StarterGui
Initiate.Parent = SG
OpenButton.Parent = SG
OpenText.Parent = OpenButton
--OpenButton
OpenButton.Size = UDim2.new(0, 100,0, 46)
OpenButton.Position = UDim2.new(0.467, 0,0.928, 0)
OpenButton.BackgroundColor3 = Color3.new(129, 129, 129) --Here is issue but idk why :think:
OpenButton.BorderColor3 = Color3.new(255, 255, 255)
OpenButton.BorderSizePixel = 5
OpenText.Size = UDim2.new(0, 100,0, 50)
OpenText.Position = UDim2.new(0, 0,0, 0)
OpenText.BackgroundTransparency = 1
OpenText.Font = Enum.Font.GothamBlack
OpenText.TextSize = 14
OpenText.TextColor3 = Color3.new(255, 255, 255)
On this line of code, OpenButton.BackgroundColor3 = Color3.new(129, 129, 129) --Here is issue but idk why :think:
the OpenButton is meant to change colours, but when I go into studio everything works well except that. What could be the reason?