Comment je pourrais faire pour mettre un avertissement si le joueur ne va pas dans la…
- User
Comment je pourrais faire pour mettre un avertissement si le joueur ne va pas dans la bonne direction dans un jeu roblox avec ces instructions là:
This was already attempted by another scripter, but it didn’t work well, it provided false positives, which is unaccpetable. (false negatives if rare are ok).
First it would be nice to have a little introduction to how the checkpoint system works. There are two kind of checkpoints in races, the “accuracy checkpoints” (AP), and the “true checkpoints” (TP).
The TP are the ones that you see when in a race, they are used to determine the respawn point.
The AP are currently used to track where in the race the player is. (So that the leadboard works properly in loops) They are invisible and reset after re-spawning.
The way the previous wrong way warning worked was, and I quoute: “I have it so that it checks every second for each player to see if they're in the wrong direction and if it sees that they are 3 times in a row then they are actually moving in the wrong direction”
This is a very unreliable method. A better solution could be to detect if a player has passed through a already collected checkpoint (AP or TP), and then remove the warning once the distance to the just passed AP or TP starts decreasing.
- Assistant