so i made a script that makes 1/4 platforms randomly disappear and i put that script in a gui , but how do i make the gui show the color of the platforms that disappear ? here is the script for the disappearing platforms: local platforms = workspace.PlatformsFolder -- platforms in a folder
colors = { --table of colors
BrickColor.new("Really blue"), --Really red
BrickColor.new("Really red"), --Really blue
BrickColor.new("Deep orange") --Deep orange
}
while true do
local color = colors[math.random(1,#colors)] --index the table and get a random color with math.random
print(color)
for i,v in pairs (platforms:GetChildren()) do
for i,v in pairs goes through this table
if v:IsA("BasePart") then
if v.BrickColor == color then
v.CanCollide = false
v.Transparency = 1
else --if not
v.CanCollide = true
v.Transparency = 0
end
end
end
wait(5)
end plsssss help meeeeeeee
