How to make a breaking feature

In the game that I’m making, you have to break furniture around the building that you are in. You have to repeatedly press a button for it to break. How would I code that?

1 Like

There are multiple ways to go around this, the most basic method would probably be to just unanchored and unweld the parts that need to be broken.

For the repeatedly pressing a button part, you can either use a proximity prompt per item that needs to be broken, or click detector. If you want to press a button on the keyboard to break the item, proximity prompts are a good way to go. However if you have too many items in one location, that may cause problems with visual cluttering. If that is a problem, you can use the UserInputService.