RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"button that makes otherparts change color"
-- local script local button = script.Parent local otherParts = game.Workspace.OtherParts:GetChildren() local function changeColor() local newColor = Color3.fromRGB(math.random(0, 255), math.random(0, 255), math.random(0, 255)) for _, part in ipairs(otherParts) do part.BrickColor = BrickColor.new(newColor) end end button.MouseButton1Click:Connect(changeColor)