How to make seed system roblox studio (LUA) – Stack Overflow

I want to make a part that will change color depending on the seed. Example: if seed = 1 then part.Color3 = red, end.
View full source