Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why does't this script change the color of GUI?

Asked by 4 years ago

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!

0
Any errors u1v6 22 — 4y
0
no awesomemode14 68 — 4y

Answer this question