PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience

Oct 01 2018, 2:24 AM PST

This code sample loops an ImageLabel or ImageButton’s ImageColor3 through the entire rainbow using RunService’s RenderStepped.

local imageLabel = script.Parent

local RunService = game:GetService("RunService")

local function onRenderStep()
	imageLabel.ImageColor3 = Color3.fromHSV(workspace.DistributedGameTime/8%1, 1, 1)
end
RunService.RenderStepped:Connect(onRenderStep)