How to make a part that becomes visible when player steps on it and invisible when player steps off?

What the title says. I mean something like in Undertale (In Undertale, there’s an area in hotland with “magical glass”, and you can walk on it to get to a secret room.)

This is my script

And this is the part with the script
image

Any help is appreciated!

Ok, fixed it by using ZonePlus (a module by foreverhd)