Reset Mechanic, in a One Life Scenario

So about 6 months ago, I developed a really awesome and in-depth FPS engine called Shockwave. I used the engine with much success in my FPS project Recoil (as seen here): RECOIL - Roblox

One mechanic that helps me pack so much content and functionality in a roblox game, is that the system isn’t enabled all the time. When the user is dead; or navigating the menus, the weapon engine and all of it’s components aren’t running. Every time they die and respawn; it reinitializes the whole engine. This prevents all sorts of memory issues, is more secure, and keeps the gamestate relatively fresh the entire time the user is playing the game.

However, I recently released a Zombies version (seen here):

which is beginning to push the boundaries of what’s possible in roblox’s core systems. Users are playing in a single server, not completely dying, for magnitudes as high as 14 hours. Naturally this is causing some issues; mainly in-script variables are starting to fail, I think it may be some kind of overflow problem, I’m not entirely sure. What I am sure of, is allowing the engine to reinitialize periodically would save alot of these issues from happening.

I need some help brainstorming a way that players in a zombies game of this type, could respawn/reset without being jarring, or even worse, giving them an opportunity to cheat, by resetting to avoid a game-over…

Does anyone have an ideas that could work? (I highly encourage the playing the game first to familiarize yourself with how it plays)

2 Likes

This can be achievable with a Value, what this will do is when a player gets Damaged it will become true and so if they die they will- die. But if they die while it is false it will teleport them back into the game.
When the Characters humanoid’s health is on 100, the Value will become false. Stopping them from dying completely.

I like that idea; that seems like it could work, I’m going to try to implement it seamlessly and automatic every half hour (I already refresh the IK every 5 rounds just because of the same problems).

Make sure that if the players health is on 0 that the value doesn’t change. And that it stays how it was before dropping to 0.
As when you reset, your health instantly changes to 0.