Hello. I have the following problem:
I want to make my SpotLights and Parts color to change color smoothly. This is the script i made:
local SpotLight = workspace.Workspace1.Shop.ShopMisc.ShopSignLamp2
while wait(0.1) do
SpotLight.Color = Color3.fromRGB(0,0,0)
wait(0.5)
SpotLight.Color = Color3.fromRGB(0,255,38)
wait(0.5)
SpotLight.Color = Color3.fromRGB(20,12,255)
wait(0.5)
SpotLight.Color = Color3.fromRGB(255,66,240)
wait(0.5)
SpotLight.Color = Color3.fromRGB(20,255,27)
wait(0.5)
SpotLight.Color = Color3.fromRGB(114,255,112)
wait(0.5)
SpotLight.Color = Color3.fromRGB(255,149,0)
wait(0.5)
SpotLight.Color = Color3.fromRGB(0,0,0)
wait(0.5)
SpotLight.Color = Color3.fromRGB(85,255,0)
wait(0.5)
SpotLight.Color = Color3.fromRGB(255,0,179)
wait(0.5)
end
Is there a integer to form a gradient? Thanks!

1 comment
Look into TweenService....https://developer.roblox.com/en-us/api-reference/class/TweenService