Hey, here is a script that changes color everytime you rejoin, so when a player joins the game the part will have a color but the second time different color.
local Part = script.parent
while true do
Part.BrickColor = BrickColor.Random()
the game must have only 1 player max for each server. This is because when everyone on the server leaves, the server resets everything. so if there are several players, it wouldn’t work very well
local Part = game.Workspace.Part -- The Part
game.Players.PlayerAdded:Connect(function()
Part.Color = Color3.fromRGB(math.random(1, 255), math.random(1, 255), math.random(1, 255))
end)