This script doesn't work, but it has no errors. Read the message in the script.
function onClicked()
if character.PlayerTouched("Keycard")--If the player touches a part or union operation that is called "Keycard"
then --Then the door, if you have touched "Keycard", then it enables the script in the door that makes it open.
script.Parent.DoorScript.Disabled = false
script.Parent.Panel1.ScreenGUI.Frame.BrickColor.BrickColorNew = ("NeonGreen")
script.Parent.Panel1.ScreenGUI.Frame.BrickColor.BrickColorNew = ("NeonGreen")
end
end
--[[Obviously, "NeonGreen" wouldn't work, I know it's in the (0,0,0) setup,
but I have no clue how to do that. If someone could help me fix this script,
that'd be very helpful, and I will put you in my game's credits.
Also, I know you need values, and such like a "True" or "False" bool value,
I think. But I'm not advanced enough to do that. Also, it's amazing
this has no errors, considering it does absolutely NOTHING. lol
Also, the Keycard will be a UnionOperation, as well, if that factors into
anything.
Also, what I was trying to get in the script, is where it stays red until
you click "Panel" which is where the SurfaceGUI is, IF you have touched
"KeyCard."
]]

2 comments
Slight typo, you've got "BrickColor,new" instead of "BrickColor.new". Nothing major, I just felt it was worth clearing up.
Ah, yes, sorry. How ironic, lol.