How do I disable player controls and then re - enable them

How do I disable player controls and then re - enable them.
I’m making a WalkTo thing but I can’t find a way to disable then re - enable controls.
I’ve looked on Dev Forum threads but they’re outdated.

Something like this?

1 Like