Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

How To Make An Item That Can Destroy Walls?

A Question for Baldi's Basics in Education and Learning

Members see zero ads. Membership is 100% free

I need some help!

Hello, I am trying to make an item for a mod that allows you to destroy a specific wall when you use the item on it, but I can't seem to get it working. (EDIT: Thanks to fasguy helping me figure out how to do it on discord!) I know there are mods that added items that allowed you to destroy walls, so can someone help me? Some screenshots are below:
The code for the item

Code I made for the destroyable gate object

The gate in the game in unity (its also in the prefab folder)

The gate as a gameobject in the script


Answers

Sign up to access this!
  • Fasguy avatar
    Fasguy username pic Joined 1y ago
    Offline
    30Hz Studios Flag Affiliation: 30Hz Studios
    2,123 points Ranked 20556th
    12 medals 2 rare
    • Reached 50 subscribers Medal icon
    • Returned 1000 times Medal icon
    • Returned 100 times Medal icon
    • One month a member Medal icon
    • Reached 10 subscribers Medal icon
    • 6 months a member Medal icon
    Fasguy avatar
    Fasguy
    30Hz Studios Flag
    Affiliation
    30Hz Studios
    access_time 1mo edit 1mo
    Did you put the Prefab or the GameObject itself in the script slot?
    Unprofessional Game Modder
    URL to post:

Embed

menu
Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Asker

JohnsterSpaceProgram avatar
Prob. At School
5,583 points Ranked 1182nd
19 medals 2 rare
  • Returned 1000 times Medal icon
  • 10 submissions featured Medal icon
  • Returned 100 times Medal icon
  • One month a member Medal icon
  • Submitted 5 Gamefiles Medal icon
  • 6 months a member Medal icon
JohnsterSpaceProgram Johnster Space Studio Flag
Affiliation
Johnster Space Studio

Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • favorite 0
  • remove_red_eye 298
  • mode_comment 9
  • access_time 1mo
  • access_time 1mo

More from Submitter

menu

WiPs by Submitter

menu

More Script Help Questions