17.07.2016, 05:17
Quote:
for some bizarre reason for a split second it tps me to the train station where the player starts before spawning properly at the wrong hosp
|
The loop working FINE. The reason why this is happening is that you are getting distance when player spawns so it is tp'ing you to the nearest hospital to initial spawn point. For it to work you need player position when he dies store in global variable then use those position to get distance.