Part = script.Parent
Part1 = game.Workspace.ColorChangingPart
ILikeFood = true
if ILikeFood == true then
Part.BrickColor = BrickColor.Random()
end
if ILikeFood == true then
script.Parent.ClickDetector.MouseClick:Connect(function(fdgdgd)
Part1.BrickColor = BrickColor.Random()
end)
end
What I am trying to achieve: I want the 'Part' to change to a random color as soon as the game starts forever. I also want 'Part1' to change to a random color forever when 'Part' is clicked once.
Errors: None
What happens: 'Part' does not change color at all and 'Part1' only changes color once.

3 comments
Also you'll learn this as you get better at scripting but, don't name your variables things like 'ILikeFood'. It makes your script harder for others to read, look sloppy, unorganized, and harder on yourself. You should be giving variables proper names.
There is no loop
just tried your script and it works!. Not sure whats going on but the part where your script is in changed color once on loading then as you click that said part the second part changed color randomly. might be roblox having a seizure again lol