How would I make a wireframe effect that can be toggled on/off by another script ingame?

Today I discovered a wireframe feature in Roblox Studio. (Link to a video of what the feature looks like)

Is there any way I can make this in a script?