This script should change the GUI color, but I can't see it change. Here is the code:

local TweenService = game:GetService("TweenService")
local part = script.Parent 

part.BackgroundColor3 = Color3.fromRGB(157, 221, 255); 

local Info = TweenInfo.new(
	1, -- Length
	Enum.EasingStyle.Cubic,
	Enum.EasingDirection.InOut, 
	-1,
	false, --Reverse
	0
)

local Goals = {
	BackgroundColor3 = Color3.fromRGB(65, 246, 255); 
}
local GoalsTwo = {
	BackgroundColor3 = Color3.fromRGB(183, 255, 66); 
}
local GoalsThree = {	
	BackgroundColor3 = Color3.fromRGB(185, 255, 152);
}
local GoalsFour = {
	BackgroundColor3 = Color3.fromRGB(157, 221, 255);
}
 
local tween = TweenService:Create(part,Info,Goals)
local tweenTwo = TweenService:Create(part,Info,GoalsTwo)
local tweenThree = TweenService:Create(part,Info,GoalsThree)
local tweenFour = TweenService:Create(part,Info,GoalsFour)

while true do
	wait(0.1)
	tween:Play()
	tweenTwo:Play()
	tweenThree:Play()
	tweenFour:Play()
end

Thanks for the Help!

2 comments

0

Any errors

0

no