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"), BrickColor.new("Really red"), BrickColor.new("Deep orange"), BrickColor.new("Deep green") }
view source
while true do
local color = colors[math.random(1,#colors)]
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
