Wich script should I chose???

I am lost when I’m trying to code a respawn player script, but I get a ton of errors.:hushed: Should I use a working respawn script or a reload level script?:eyes: I also need the code ASAP!!! Please help!

The question you should be asking is do I need to reset the entire level if the player dies or do I only need to reset the player. That will take you where you want to go.

If you need to reset the level, then save some values in playerprefs and reload the level. You’ll have to make changes to the way the game loads your level but it’s better than some of the alternatives.

If you don’t need to reset the level, it’s easier. Just replace the player where you think he should spawn. Set his stats or values … health and such… to the appropriate levels and let him play.

Should you write your own? Yes. If your game is even remotely custom you need a custom script.

I am using my friend’s “SPEED PLATFORMER DESIGN” where I have a fast character. I also have moving platforms and moving weapons and EVIL SQUIRELS!!! Link to game info form:New 2D platformer (SPOILER ALERT) - Community Showcases - Unity Discussions

ok, how do I do a reload level script using a cube trigger as the trigger???:eyes::face_with_spiral_eyes::eyes::face_with_spiral_eyes::eyes::face_with_spiral_eyes:

When I try to respawn I deletes the original player and makes an un-controllable one…I need a load level script.

Asking for code is frowned upon. If you want to make games, you need to learn to code, period. Try doing it yourself and then post the code here if you do not succeed. Then people will more than likely help you.

I did it! now I restart the level when I die!