I’m trying to make a 1v1 sword fighting system where there are 2 variables, one for each player. There is a function that detects whether a player dies and clears the value which means the p1spot is empty. But if you were to be player 1 the first round things would work fine but if you are player 2 the second round, the function still thinks you are player 1 for some reason even though in a different function i cleared it. sorry if the way i explained it is confusing.
thanks!