Skip to content

Instantly share code, notes, and snippets.

@lamarmarshall
Created January 6, 2025 01:02
Show Gist options
  • Save lamarmarshall/5182587704b670b99d7fe1b1d557cb27 to your computer and use it in GitHub Desktop.
Save lamarmarshall/5182587704b670b99d7fe1b1d557cb27 to your computer and use it in GitHub Desktop.
Roblox, array, for loop, change brick color, random
local cubes = game.Workspace.ColorCubes:GetChildren()
for i = 1, #cubes do
cubes[i].Color = BrickColor.Random().Color
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment