make an object invisible in games

hello everyone, so it must surely be a stupid question but as I'm french and core is in english it's not easy for me.I wanted to know how to make an object invisible in games with the press of a key

Hi, welcome! The docs are your best ally.

Here is how to detect if a player pressed a Key

And here you can see every Core Object as this property visibility that you can change with an Script

-- Makes "object" invisible
object.visibility = Visibility.FORCE_OFF

hi, thank you very much, i thought you replied so quickly, i will watch her right away. thanks again :grin: