What do you want to achieve? I want to change my gui’s color to a randomly chosen brickcolor from a table for my minigame.
What is the issue? Playergui won’t work because it’s server sided
What solutions have you tried so far? Everything
Script:
function findBricks(ColorParts)
local ChosenColor = BrickColors[math.random(1, #BrickColors)]
for k,v in pairs(ColorParts:GetDescendants()) do
if v:IsA("BasePart") and v.BrickColor ~= BrickColor.new(ChosenColor) then
v.Transparency = 1
v.CanCollide = false
print(ChosenColor)
end
end
end