Search
 
SCRIPT & CODE EXAMPLE
 

LUA

roblox how to make a rainbow part

local TweenService = game:GetService("TweenService")
local part = workspace.ColorPart
local red = Color3.fromHSV(0, 1, 1)
local hue = 0
part.Color = red
local partColorTweenInfo = TweenInfo.new(1 --[[seconds]])
while true do
	hue += (360 / 12) / 360
	if hue > 1 then
		hue -= 1
	end
	local tweenPartColor = TweenService:Create(part, partColorTweenInfo, {Color = Color3.fromHSV(hue, 1, 1)})
	tweenPartColor:Play()
	tweenPartColor.Completed:Wait()
end
Comment

PREVIOUS NEXT
Code Example
Lua :: lua how to get random object from a table 
Lua :: roblox jsonencode 
Lua :: clickdetector player roblox 
Lua :: how to delete a key in a table lua 
Lua :: luau how to make region3 
Lua :: user input lua 
Lua :: roblox difference between __index and __newindex 
Lua :: roblox tween color part 
Lua :: open gui script 
Lua :: remote function unable to cast value to object 
Lua :: roblox vector3 
Lua :: roblox wait for character 
Lua :: Startswith function in lua 
Lua :: Lua numbers 
Lua :: append to array lua 
Lua :: awesome wm tasklist disabled icon 
Lua :: Roblox Luau Wait Alternative 
Lua :: local in script lua local 
Lua :: int and float in lua 
Lua :: the function returning the address of a local variable results in: 
Lua :: roblox lua scripts 
Matlab :: find duplicates in matlab arrauy 
Matlab :: tan in scilab 
Matlab :: matlab invert image 
Basic :: visual basic how to determine if an array already contains an item 
Elixir :: elixir join list of strings 
Elixir :: create new project phoenix 
Scala :: equivalent of spark datetype in scala 
Actionscript :: bs modal is working but not visible 
Excel :: excel get column number 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =