Hello,
I got so frequent reports from many players of my game saying that it lags so much and it makes the game unplayable.
I encountered the lag too while playing and i checked the output if there something wrong.
Basically i saw that it keeps printing the magnitude when players are near, like less then 25 studs, and i remember that i made a loop that see and prints the distance beetween 2 players.
Now the question is, how do i solve it?
Should i put like task.wait() so that there will be a delay?
I will appecciate every help
Do you really need to print the magnitude in-game? I suggest that you only print for testing-purposes as filling the developer console may cause lag.
Edit:
Are your loops stacking? You might want to break them when they are no longer used.