BackGroundColor3 does not exist

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I am trying to make that when a player does not have enough Money to buy an item, the buy button turns red.

  2. What is the issue? Include screenshots / videos if possible!
    I have my BuyButton but when i start the game, i have an error saying that BuyButton does not have a BackGroundColor3.
    BackGroundColor3 is not a valid member of TextButton “Players.simsim26102006.PlayerGui.Shop2.Frame.BuyButton”

Here is a screenshot of my Explorer:
image

Here is the Part of the Code that does that

local ShopFrame = script.Parent
local BuyButton = ShopFrame:WaitForChild("BuyButton")

function ChangeItem(Time)
	CurrentItemCamera = ShopFolder[tostring(CurrentItem).."Camera"]
	local CameraTween = Tween:Create(Camera, TweenInfo.new(Time), {CFrame = ShopFolder[CurrentItemCamera.name].CFrame})
	CameraTween:Play()
	ItemPrice.Text = "$"..CurrentItem.Price.Value
	if PlayerMoney.Value >= CurrentItem.Price.Value then
		ItemPrice.TextColor3 = Color3.fromRGB(68, 195, 52)
		BuyButton.BackGroundColor3 = Color3.fromRGB(68, 195, 52)
	else
		ItemPrice.TextColor3 = Color3.fromRGB(194, 0, 3)
		BuyButton.BackGroundColor3 = Color3.fromRGB(194, 0, 3)
	end
end

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

It’s BackgroundColor3, not BackGroundColor3.

oh ok i d’ont know why but i copied it from the explorer and it put this