How do i stop people from touching my stuff?

i’ve joined peoples rooms and sometimes the option is on, but other times it isnt. when i host a server people always ruins my houses etc, so i’m just wondering if i have to type a code in or something?

edit: and when i mean option, i mean that people can mess with other peoples stuff or not.

Other then finding a server with prop protection and sticking to it no.

If you host a server, install Prop protection of some sort