I want this lua to teleport people to the position i want when they spawn at the spawnpoint
It doesn't work. Help
addhook("spawn","snowspawn") function snowspawn(id) 	if player(id,"team") == 1 then 		parse("setpos "..id.." 2160 435") 	elseif player(id,"team") == 2 then 		parse("setpos "..id.." 1360 108") 	end end