I want put the Hue of part in a “cycle” like shown above of part
–The loop that i want it is up
Also i want put in script not in localscript
Use TweenService.
Code:
local TweenService = game:GetService("TweenService")
local Frame = script.Parent
Frame.BackgroundColor3 = Color3.fromRGB(37, 233, 249)
local goalColor = Color3.fromRGB(29, 70, 246)
local tweenInfo = TweenInfo.new(2, Enum.EasingStyle.Linear, Enum.EasingDirection.In, -1, true)
local colorTween = TweenService:Create(Frame, tweenInfo, {BackgroundColor3 = goalColor})
colorTween:Play()
Why? It will not be smooth if you put it in a Script.
I wanted put it in script to show to all players and not to only one player also it is a literally a part not a frame or something
local RunService = game:GetService(“RunService”)
local TweenService = game:GetService(“TweenService”)
local part = script.Parent
part.Color = Color3.fromRGB(43,177,255) – Light Blue to
local goal = { Color = Color3.fromHSV(0.586389, 0.937148, 0.686275) } – Dark Blue
local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.In, -1, true, 0)
local tween = TweenService:Create(part, tweenInfo, goal)
tween:Play()
local function Render(Time)
print(part.Color:ToHSV())
end
RunService:BindToRenderStep(“Render”, Enum.RenderPriority.Last.Value, Render)
This is a script that actually works in part, anyway TY @Katrist
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.