How to make a hat unwearable

Im still making my game called Stud place and i saw someone with no hats/hairs equipped could pick up the hats that i anchored and started glicthing into the hat he could only reset do get out. How do i fix this?

Link: Stud Place - Roblox

From my understanding, one way this could be achieved is by moving the contents of the Accessory into a Model since it would appear the same visually while not having the built-in functionality of an Accessory.

1 Like

Like this? image The egg model is nothing or shoud it be a invisible part around it?

Almost – it’s the items inside of the Accessory that would be placed into the Model, excluding the Accessory Instance so that it would not attempt to equip it when a player’s Character walks over it.

This means that the “TopOfTheWorldEgg” Accessory wouldn’t have anything inside it before it’s deleted since everything would be moved directly into the Model.

1 Like

Thank you it worked like how i wanted it!

1 Like

A better method would be to destroy the TouchTransmitter in the Accessory. An even better method would be to turn off CanTouch on the accessory’s Handle. This will prevent the engine from being able to connect Touched to the accessory’s handle which is responsible for allowing accessory pickups.

This allows you to maintain the simplicity of not creating or shifting around any instances and just using the raw instance itself. That being said, if the hats are just hanging around in your map you probably shouldn’t be using accessory instances in the first place.

2 Likes

This is a great idea but if someone wants to drop their hats and others be able to pick them up again. They can’t