so im new at scripting and im trying to do the basics
so i tried to make a script that when anything touches it, it changes its color and it worked fine but when i tried to make it change to its first color i couldn't
function onTouch()
script.Parent.BrickColor = BrickColor.new("Bright green")
end
script.Parent.Touched:connect(onTouch)
wait (1)
script.Parent.BrickColor = BrickColor.new("Deep orange")
"the brick's first color is Deep orange"

4 comments
that is what i was looking for, thanks
use :Connect instead :connect is deprecated.
Just used his code, but you are right
Ali you should accept this answer or change title to [solved]