How can i edit this script so it works? Note: this script is placed in a part
local SECONDS_PER_LOOP = 5 while wait(1) do script.Parent.BrickColor = Color3.fromHSV((tick()/SECONDS_PER_LOOP)%1,1,1) end
Your code would look like this:
while wait(1) do script.Parent.BrickColor = BrickColor.Random() end
I hope this fixed your script! :)
local SECONDS_PER_LOOP = .35 while wait(SECONDS_PER_LOOP) do script.Parent.BrickColor = BrickColor.random() end