Search
 
SCRIPT & CODE EXAMPLE
 

LUA

roblox make 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 :: how to execute scripts when a button gui is pressed roblox 
Lua :: lua dump table 
Lua :: Get number of values in a table lua 
Lua :: how to comment multiple lines in lua 
Lua :: lua click detection 
Lua :: lua pcall 
Lua :: roblox difference between index and newindex 
Lua :: roblox on touch script 
Lua :: lua last item in table 
Lua :: roblox studio lua for loop 
Lua :: input in lua 
Lua :: lua find key in table 
Lua :: lua while loops 
Lua :: lua random number 
Lua :: append to table lua 
Lua :: lua calculator 
Lua :: how do i do a wait lin lua replit 
Lua :: lua unpack 5.4 
Lua :: lua to integer 
Lua :: how do i use the errors module luaassist 
Lua :: lua print hi 
Matlab :: matlab symbolic function 
Matlab :: octave wait 
Matlab :: matlab switch figure 
Basic :: online c++ to c converter 
Elixir :: elixir check type data 
Elixir :: elixir string interpolation 
Scala :: foreach batch spark scala 
Actionscript :: from sys import stdin 
Excel :: excel get number of column 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =