#How can I script a disco floor with one script?
1 messages · Page 1 of 1 (latest)
Get every tile using for i , v loop
Make a table with RGB values for the colors you want and use a for loop to change each part's color to a random color from the table
add task.wait(.1) in your script
oh wait u did
for I,V in pairs(Tiles:GetChildren()) do
Tiles.BrickColor = BrickColor.Random()
end
while true do
for each, tile in ipairs(workspace["Disco floor"] :GetChildren() do
tile.BrickColor) = BrickColor.Random()
end
task.wait(1)
end
@thick agate
No need to do use ‘ipairs’ anymore
Cuz GetChildren or what?
Normal pairs
Ipairs use more space
Or smth
Idk i dont write code
No like in general
Theres no need to use ipairs, just ‘in ______’ and whatever ur looping
Oh ok I learned to use ipairs when the key is number and pairs when the key is a key value
I'm confused