I need help with zombie game

so im trying to make a script for a wall were if the zombies touch it the wall take 5 seconds to disappear and the zombie can go throught then the wall take 4 seconds to reappear and players can’t go thorugh the wall no matter when only zombies can.
second thing is i need help with a health bar thing for a part like you know the bosses in games were you can see the health of it well im trying to do the same thing but with a part called “gotopart” for now.

2 Likes

Have you done any research? All these topics are mentioned online…

are you sure cause the one thing i can’t find online is a dropper gamepass for zeds tycoon kit

I’d recommend breaking this up into separate groups, and then researching each group as to how you can achieve it; as I assume you’re newer to Roblox development.

I won’t give you actual code, although I will get you pointed in the right direction.

For making the zombie walls, it sounds like you’d want to use Collision Groups. I believe there’s a built-in plugin for editing Collision Groups, or if not, there’s some good ones available on the asset market for Studio.

You can find out more about Collision Groups here:

You would want to create a Zombies group and a Doors group, then you’d want to uncheck the box where Zombies collide with the Doors group. And since player models are automatically in the Default group, they’ll collide with members of the Doors group automatically.

For the health bars, you can check out BillboardGUIs, that’s what you use to display UI in world space.

More info here: BillboardGui | Documentation - Roblox Creator Hub

2 Likes

yes i am new to scripting and new this this site aswell like i barely know scripting.

Well, you can search the dev hub… Never-mind. What you can do to do this is use the part.Touched function for the first part.

For the second part, there is a Gui object called billboard.