Hello. Use TweenService to do that.
local TweenService = game:GetService("TweenService")
local TweenInformation = TweenInfo.new(
0.3,
Enum.EasingStyle.Linear,
Enum.EasingDirection.InOut,
0,
false,
0
)
local GoalsWhite = {
Color = Color3.fromRGB(255,255,255)
}
local GoalsBlack = {
Color = Color3.fromRGB(17,17,17)
}
local TweenToWhite = TweenService:Create(script.Parent,TweenInformation,GoalsWhite)
local TweenToBlack = TweenService:Create(script.Parent,TweenInformation,GoalsBlack)
while true do
TweenToBlack:Play()
wait(1)
TweenToWhite:Play()
wait(1)
end
NOTE: This is for Parts. If you want to tween a Frame/Button/TextBox/TextLabel etc.. replace Color in the properties table with BackgroundColor3 / TextColor3, depending on what you want to change.
1 comment
please give more description why do you want it