Hey I made a function that makes parts change color but when I call the function then all three parts change colors 3 times.
function ChangeColor(functionspart, part2, part3)
functionspart = game.Workspace.FunctionsPart
part2 = game.Workspace.FunctionsPart2
part3 = game.Workspace.FunctionsPart3
functionspart.BrickColor = BrickColor.Random()
part2.BrickColor = BrickColor.Random()
part3.BrickColor = BrickColor.Random()
end
wait(5)
ChangeColor(1)
wait(2)
ChangeColor(2)
wait(2)
ChangeColor(3)