English is not my language so my grammar will probably wrong, but I would try my best to explain.
-
What do you want to achieve? Keep it simple and clear!
-The title says it all, I want to detect if a player was killed by something. I will talk more about what I am trying to do below -
What is the issue? Include screenshots / videos if possible!
-I just wonder is it possible. If it is, you don’t need to script for me, you can give me some hints, advices, or maybe Youtube tutorials. -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
-I played around with the values. Like, touched the obstacles will create a value, and a script will check if there is that value, you will be teleport back. But when I deeper this way, it just make me more confused and messed up.
More information
So basically, I made a parkour game + murder mystery. If the player died by the obstacles, or fell into dead water, they will allow to respawn, but if the player get killed by the murder, they will teleport back to the lobby. I have had success with the matchmaking system, role picker and checkpoints
Your replies would be so good for me. By the way, thanks for your help!