-- Connect the PlayerAdded event to the followPlayer function

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character)
		while wait() do
			followPlayer(player)
		end
	end)
end)
