How do I make an anti-noclip script

Messiah!!!

A while ago I was thinking have making an anti-noclip script and I was to lazy to verify my roblox account so yeah.

Where exactly do I put it? Sorry if this is a stupid question.

Inside your Loop / RunService but make sure u already made a ray

Ok, thanks a lot. This is very helpful.