Does anyone know how to change stuff in a prefab with a script?

So I’m making a multiplayer game using normcore and I want hats with a enable and disable button that everyone can see so I thought I can put the hats in the player prefab but I can’t figure out how to set the hats active in the prefab with a script

What do you mean without a script? A script enabling an object shouldn’t be too hard

I want to enable a object in the prefab that’s all

And the problem is?
You should be able to search for children of the prefab afaik

the problem is I don’t know how

Google ‘unity get child of gameobject’
Prefabs work like gameobjects

Oh ok thank you