0 views0 copies0 likes

Color-Cycling Floor Tiles with Tweens

Universal script

Copy it, then test it in your own Studio place.

Utilities Verified

Script code

18 lines ยท 0.7 KB
Download
local TweenService = game:GetService("TweenService")local folder = workspace:WaitForChild("DiscoveryTiles")local colors = {Color3.fromRGB(28, 211, 192), Color3.fromRGB(163, 106, 255), Color3.fromRGB(255, 108, 108)}local tiles = folder:GetChildren()table.sort(tiles, function(a, b) return a.Name < b.Name end)for index, tile in tiles do	if not tile:IsA("BasePart") then continue end	task.delay((index - 1) * 0.06, function()		while tile.Parent do			for _, color in colors do				if not tile.Parent then return end				local tween = TweenService:Create(tile, TweenInfo.new(0.7), {Color = color})				tween:Play()				tween.Completed:Wait()-- โ€ฆopen Get script for the full source

About this script

Put anchored tile parts in Workspace.DiscoveryTiles. Each tile fades between saturated cyan, violet and coral with a small phase offset, creating a wave across the room. Renaming tiles controls their sequence. The script changes visual color only, so it can sit on top of existing gameplay. Test with your lighting and pick colors with enough contrast for any nearby signs.

Comments

Share what works, ask questions, or report an issue.

0

Log in to leave a comment.

No comments yet

Be the first to share your thoughts!

Raw Luau source

local TweenService = game:GetService("TweenService")
local folder = workspace:WaitForChild("DiscoveryTiles")
local colors = {Color3.fromRGB(28, 211, 192), Color3.fromRGB(163, 106, 255), Color3.fromRGB(255, 108, 108)}
local tiles = folder:GetChildren()
table.sort(tiles, function(a, b) return a.Name < b.Name end)
for index, tile in tiles do
	if not tile:IsA("BasePart") then continue end
	task.delay((index - 1) * 0.06, function()
		while tile.Parent do
			for _, color in colors do
				if not tile.Parent then return end
				local tween = TweenService:Create(tile, TweenInfo.new(0.7), {Color = color})
				tween:Play()
				tween.Completed:Wait()
			end
		end
	end)
end