So I was having trouble scripting this script:
script.Parent.Touched:Connect(function()
script.Parent.Color = Color3.new(255/255,0/255,0/255)
And then I wanted to make it to where it would undo it I tried this script:
script.Parent.Touched:Connect(function()
script.Parent.Color = Color3.new(255/255,0/255,0/255)
wait(0.1)
undo
end)
And then I realized undo is not a global known word in lua Anyone know what it is?

4 comments
You cannot use undo, unless you are making a plugin, which in your case, is not a plugin.
Just do the opposite of what you did previously... Or you could store the previous color in a variable and set it back to that...
A debounce could work for you..
use color3.fromRGB